fix conditional compilation of internal CCID driver
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1798 e0336214-984f-0b4b-a45f-81c69e1f0ede
This commit is contained in:
parent
0c22a9dea7
commit
fd10ed49a8
12
configure.in
12
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)
|
||||
|
|
|
@ -6,8 +6,14 @@ lib_LTLIBRARIES = librfid.la
|
|||
CORE=rfid.c rfid_layer2.c rfid_protocol.c rfid_reader.c
|
||||
L2=rfid_layer2_iso14443a.c rfid_layer2_iso14443b.c rfid_layer2_iso15693.c rfid_iso14443_common.c
|
||||
PROTO=rfid_proto_tcl.c rfid_proto_mifare_ul.c rfid_proto_mifare_classic.c
|
||||
READER=rfid_reader_cm5121.c rfid_reader_cm5121_openct.c rfid_asic_rc632.c
|
||||
READER=rfid_reader_cm5121.c rfid_asic_rc632.c
|
||||
|
||||
if MY_CCID
|
||||
READER_LOW=ccid/rfid_reader_cm5121_ccid_direct.c ccid/ccid-driver.c
|
||||
else
|
||||
READER_LOW=rfid_reader_cm5121_openct.c
|
||||
endif
|
||||
|
||||
librfid_la_LDFLAGS = -Wc,-nostartfiles -version-info $(LIBVERSION) -lopenct
|
||||
librfid_la_SOURCES = $(CORE) $(L2) $(PROTO) $(READER)
|
||||
librfid_la_SOURCES = $(CORE) $(L2) $(PROTO) $(READER) $(READER_LOW)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include <librfid/rfid_asic.h>
|
||||
|
||||
#include <include/ccid/ccid-driver.h>
|
||||
#include "ccid-driver.h"
|
||||
|
||||
/* this is the sole function required by rfid_reader_cm5121.c */
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue