From fd10ed49a877adc37c66d60581c589e3c1a49e2a Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 27 May 2006 16:06:18 +0000 Subject: fix conditional compilation of internal CCID driver git-svn-id: https://svn.gnumonks.org/trunk/librfid@1798 e0336214-984f-0b4b-a45f-81c69e1f0ede --- configure.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 1125175..c141be0 100644 --- a/configure.in +++ b/configure.in @@ -11,5 +11,17 @@ AC_EXEEXT AM_PROG_LIBTOOL AC_SUBST(LIBTOOL_DEPS) +AC_ARG_WITH(ccid, + [ --with-ccid Include internal CCID driver], + [MY_CCID=1], [MY_CCID=0]) + +# AC_SUBST(MY_CCID) +AM_CONDITIONAL(MY_CCID, test "$MY_CCID" == "1") + +#AC_CHECK_HEADERS(usb.h, [have_libusb="yes"], [ AC_MSG_WARN([usb.h not found, use --enable-libusb=PATH. Otherwise, INDI will compile without Apogee USB support.]) ]) + +AC_CHECK_LIB(usb, usb_close,,) +AM_CONDITIONAL(HAVE_LIBUSB, test "x$have_libusb" = "xyes") + dnl Output the makefile AC_OUTPUT(Makefile src/Makefile include/Makefile include/librfid/Makefile utils/Makefile) -- cgit v1.2.3