Only build BayLibre ACME driver if <sys/timerfd.h> is available.

This fixes bug #610 (Android build issue).
This commit is contained in:
Uwe Hermann 2015-07-25 19:50:36 +02:00
parent a394bd2813
commit 176c7219bb
1 changed files with 4 additions and 0 deletions

View File

@ -430,6 +430,10 @@ AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
# build it if these headers aren't available.
AC_CHECK_HEADERS([sys/mman.h sys/ioctl.h], [], [HW_BEAGLELOGIC="no"])
# The BayLibre ACME driver needs sys/timerfd.h. Don't try to build it if
# this header isn't available.
AC_CHECK_HEADERS([sys/timerfd.h], [], [HW_BAYLIBRE_ACME="no"])
# The ACME driver can only be built for Linux.
case "$host" in
*linux*) ;;