]> sigrok.org Git - libsigrok.git/blobdiff - configure.ac
drivers: don't try to access the sr_driver_list section with no driver compiled.
[libsigrok.git] / configure.ac
index c5089f1db4ee3132f59f6ca2bcf2e5ffd0e5b181..94e545720ba07c80d9dce57411b149070aebbed3 100644 (file)
@@ -211,7 +211,7 @@ m4_define([_SR_DRIVER], [
        sr_driver_summary_append "$2" "$sr_hw_info"
 
        AM_CONDITIONAL([$3], [test "x[$]$3" = xyes])
-       AM_COND_IF([$3], [AC_DEFINE([HAVE_$3], [1], [Whether to support $1 device.])])
+       AM_COND_IF([$3], [AC_DEFINE([HAVE_$3], [1], [Whether to support $1 device.]) AC_DEFINE([HAVE_DRIVERS], [1], [Whether at least one driver is enabled.])])
 ])
 
 ## SR_DRIVER(Device name, driver-name, [dependencies...])