]> sigrok.org Git - libsigrok.git/blobdiff - configure.ac
Add GPIB SCPI backend using linux-gpib and libgpib.
[libsigrok.git] / configure.ac
index 798128efe6ae176551136a882ebe27d1de5635c7..bd8b79647c8e221c2a5adc224b357015fb0cb785 100644 (file)
@@ -316,6 +316,14 @@ if test "x$have_librevisa" != "xno"; then
                [Specifies whether we have librevisa.])
 fi
 
+# GPIB backend is only compiled in if libgpib headers found.
+AC_CHECK_HEADERS([gpib/ib.h], [LIBS="$LIBS -lgpib"], [have_libgpib="no"])
+AM_CONDITIONAL(NEED_GPIB, test "x$have_libgpib" != xno)
+if test "x$have_libgpib" != "xno"; then
+       AC_DEFINE_UNQUOTED(HAVE_LIBGPIB, [1],
+               [Specifies whether we have libgpib.])
+fi
+
 # libusb-1.0 is only needed for some hardware drivers. Disable the respective
 # drivers if it is not found.
 if test "x$enable_libusb" != "xno"; then