Commit 10d472bf authored by Matthieu Herrb's avatar Matthieu Herrb Committed by Matthieu Herrb

Support for BSD apm

XXX check amd64 pci init
parent f4e725f2
......@@ -272,6 +272,15 @@ if test -c /dev/xf86 ; then
AC_DEFINE(HAS_APERTURE_DRV, 1, [System has /dev/xf86 aperture driver])
fi
dnl BSD APM support
AC_CHECK_HEADER([machine/apmvar.h],[
AC_CHECK_HEADER([sys/event.h],
ac_cv_BSD_KQUEUE_APM=yes,
ac_cv_BSD_APM=yes)])
AM_CONDITIONAL(BSD_APM, [test "x$ac_cv_BSD_APM" = xyes])
AM_CONDITIONAL(BSD_KQUEUE_APM, [test "x$ac_cv_BSD_KQUEUE_APM" = xyes])
dnl glibc backtrace support check (hw/xfree86/common/xf86Events.c)
AC_CHECK_HEADER([execinfo.h],[
AC_CHECK_LIB(c, backtrace, [
......@@ -1268,6 +1277,10 @@ if test "x$XORG" = xyes; then
xorg_bus_bsdpci="yes"
;;
openbsd*)
if test "x$ac_cv_BSD_APM" = xyes \
-o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
fi
XORG_OS="openbsd"
XORG_OS_SUBDIR="bsd"
xorg_bus_bsdpci="yes"
......
......@@ -2,8 +2,16 @@ noinst_LTLIBRARIES = libbsd.la
# FIXME: Add USB mouse support?
# FIXME: APM support.
# APM support.
if BSD_KQUEUE_APM
APM_SOURCES = $(srcdir)/bsd_kqueue_apm.c
else
if BSD_APM
APM_SOURCES = $(srcdir)/bsd_apm.c
else
APM_SOURCES = $(srcdir)/../shared/pm_noop.c
endif
endif
if FREEBSD_KLDLOAD
KMOD_SOURCES = bsd_kmod.c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment