]> sigrok.org Git - libsigrok.git/blobdiff - configure.ac
Only build BayLibre ACME driver if <sys/timerfd.h> is available.
[libsigrok.git] / configure.ac
index 15b98d4de1123a407cfa5e4b1fb0c3a26dc0602c..3eccf89dc2071d6817db4c52aeeca011fd7d7549 100644 (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*) ;;