1 dnl Process this file with autoconf to create configure.
7 AM_INIT_AUTOMAKE(librfid, 0.1.0)
12 AC_SUBST(LIBTOOL_DEPS)
15 [ --enable-ccid Include internal CCID driver for CM5121],
16 [MY_CCID=1], [MY_CCID=0])
18 AM_CONDITIONAL(ENABLE_CCID, test "$MY_CCID" == "1")
20 dnl Enable/disable openct
22 AC_HELP_STRING([--enable-openct], [Use (patched) OpenCT for CM5121 CCID access. [[default=no]]]),
23 [ENABLE_OPENCT="${enableval}"],
27 if test "x${ENABLE_OPENCT}" = "xyes"; then
28 PKG_CHECK_MODULES(OPENCT, [libopenct], [
30 AC_DEFINE(HAVE_OPENCT, 1, [Have OpenCT libraries and header files])
34 AC_SUBST(OPENCT_CFLAGS)
37 AM_CONDITIONAL(HAVE_OPENCT, test "x$OPENCT_MSG" = "xyes")
40 [ --with-firmware=PATH Compile for running inside firmware],
41 [FIRMWARE_PATH="$withval"], [FIRMWARE_PATH=""])
42 AC_SUBST(FIRMWARE_PATH)
45 [ --enable-static Don't use dynamic allocations at all],
46 [ENABLE_STATIC=1], [ENABLE_STATIC=0])
47 AM_CONDITIONAL(ENABLE_STATIC, test "$ENABLE_STATIC" == "1")
49 AC_ARG_ENABLE(firmware,
50 [ --enable-firmware Don't use dynamic allocations at all],
51 [ENABLE_FIRMWARE=1], [ENABLE_FIRMWARE=0])
52 AM_CONDITIONAL(ENABLE_FIRMWARE, test "$ENABLE_FIRMWARE" == "1")
54 AC_ARG_ENABLE(reader-cm5x21,
55 [ --enable-reader-cm5x21 Support for Omnikey Cardman 5121/5321],
56 [ENABLE_CM5121=1], [ENABLE_CM5121=0])
57 AM_CONDITIONAL(ENABLE_CM5121, test "$ENABLE_CM5121" == "1")
61 #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.]) ])
63 AC_CHECK_LIB(usb, usb_close,,)
64 AM_CONDITIONAL(HAVE_LIBUSB, test "x$have_libusb" = "xyes")
66 dnl Output the makefile
67 AC_OUTPUT(Makefile etc/Makefile etc/udev/Makefile src/Makefile include/Makefile include/librfid/Makefile utils/Makefile src/librfid.pc)