From: Uwe Hermann Date: Sat, 25 Jul 2015 17:50:36 +0000 (+0200) Subject: Only build BayLibre ACME driver if is available. X-Git-Tag: libsigrok-0.4.0~457 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=176c7219bbb509d8e3e149315db7db6bd2fb9655 Only build BayLibre ACME driver if is available. This fixes bug #610 (Android build issue). --- diff --git a/configure.ac b/configure.ac index 15b98d4d..3eccf89d 100644 --- a/configure.ac +++ b/configure.ac @@ -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*) ;;