[Pcsclite-cvs-commit] Drivers/ccid INSTALL,1.3,1.4 configure.in,1.10,1.11

rousseau@quantz.debian.org rousseau@quantz.debian.org
Wed, 26 Nov 2003 00:07:35 +0100


Update of /cvsroot/pcsclite/Drivers/ccid
In directory quantz:/tmp/cvs-serv29371

Modified Files:
	INSTALL configure.in 
Log Message:
add a --enable-ccidtwindir argument to ./configure to specify the
serial GemPC Twin installation directory


Index: INSTALL
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/INSTALL,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- INSTALL	16 Sep 2003 13:12:07 -0000	1.3
+++ INSTALL	25 Nov 2003 23:07:33 -0000	1.4
@@ -17,10 +17,24 @@
 
 $ ./configure --enable-usbdropdir=/usr/lib/pcsc/drivers/
 
-You can also enable/disable some debug messages. By default messages of
-level "critical" and "info" are enabled and messages of level "periodic"
-abd "comm" are off. use --enable-debugcomm to enable communication debug
-and --disable-debuginfo to disable info debug messages for example.
+
+more (or less) debug messages
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+You can also enable/disable some debug messages. The driver provides 4
+levels of debug:
+- critical: important error messages
+- info:     informative messages like what reader was detected
+- periodic: periodic info when pcscd test if a card is present (ever
+            1/10 of a second)
+- comm:     a dump of all the bytes exchanged between the host and the
+            reader
+
+By default messages of level "critical" and "info" are enabled and
+messages of level "periodic" abd "comm" are off.
+
+For example use --enable-debugcomm to enable communication debug and
+--disable-debuginfo to disable info debug messages for example.
 
 
 libusb not found
@@ -31,6 +45,20 @@
 You should use --enable-libusb=PATH to tell ./configure where to find
 the usb.h and libusb.so files. The ./configure script will use
 PATH/include/ to search for usb.h and PATH/lib/ to search for libusb.so
+
+
+serial reader only
+~~~~~~~~~~~~~~~~~~
+
+It is possible to generate the driver for the GemPC Twin using serial
+communication only (for example on an embedded system without USB).
+Just do:
+$ ./configure --disable-libusb
+$ cd src ; make libccidtwin.la ; sudo make install_ccidtwin
+
+You can use --enable-ccidtwindir=DIR to specify the target directory to
+use. The default is $(prefix)/pcsc/drivers/serial with $(prefix) default
+value /usr/local.
 
 
 Binary installation:

Index: configure.in
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/configure.in,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- configure.in	25 Nov 2003 22:55:58 -0000	1.10
+++ configure.in	25 Nov 2003 23:07:33 -0000	1.11
@@ -147,14 +147,34 @@
 dnl --enable-usbdropdir=DIR
 AC_ARG_ENABLE(usbdropdir,
 	AC_HELP_STRING([--enable-usbdropdir=DIR],[directory containing USB
-	drivers (default /usr/local/pcsc/drivers)]),
+	drivers (default $(prefix)/pcsc/drivers)]),
 	[usbdropdir="${enableval}"], [usbdropdir=false])
 if test "${usbdropdir}" = false ; then
-	usbdropdir="/usr/local/pcsc/drivers"
+	if test "$prefix" = NONE ; then
+		usbdropdir="$ac_default_prefix/pcsc/drivers"
+	else
+		usbdropdir="$prefix/pcsc/drivers"
+	fi
 fi
 AC_MSG_RESULT([USB drop directory      : $usbdropdir])
 AC_DEFINE_UNQUOTED(PCSCLITE_HP_DROPDIR, "$usbdropdir", [directory containing USB drivers])
 
+dnl --enable-ccidtwindir=DIR
+AC_ARG_ENABLE(ccidtwindir,
+	AC_HELP_STRING([--enable-ccidtwindir=DIR],[directory to install the
+	serial Twin driver (default $(prefix)/pcsc/drivers/serial)]),
+	[ccidtwindir="${enableval}"], [ccidtwindir=false])
+if test "${ccidtwindir}" = false ; then
+	if test "$prefix" = NONE ; then
+		ccidtwindir="$ac_default_prefix/pcsc/drivers/serial"
+	else
+		ccidtwindir="$prefix/pcsc/drivers/serial"
+	fi
+fi
+AC_MSG_RESULT([serial twin install dir : $ccidtwindir])
+AC_DEFINE_UNQUOTED(PCSCLITE_HP_DROPDIR, "$ccidtwindir", [directory containing USB drivers])
+
+
 dnl --enable-debugcritical
 AC_ARG_ENABLE(debugcritical,
 	AC_HELP_STRING([--enable-debugcritical],[print critical debug
@@ -215,6 +235,7 @@
 AC_SUBST(ac_aux_dir)
 AC_SUBST(bundle)
 AC_SUBST(usbdropdir)
+AC_SUBST(ccidtwindir)
 
 dnl Write Makefiles.
 AC_CONFIG_FILES(Makefile aclocal/Makefile src/Makefile readers/Makefile)