[Pcsclite-cvs-commit] PCSC configure.in,1.24,1.25

rousseau@quantz.debian.org rousseau@quantz.debian.org
Thu, 28 Aug 2003 15:29:05 +0200


Update of /cvsroot/pcsclite/PCSC
In directory quantz:/tmp/cvs-serv18320

Modified Files:
	configure.in 
Log Message:
to not set use_libusb=false in case the argument is "" | "yes" | "YES"


Index: configure.in
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/configure.in,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- configure.in	26 Aug 2003 14:29:01 -0000	1.24
+++ configure.in	28 Aug 2003 13:29:02 -0000	1.25
@@ -130,7 +130,6 @@
 dnl --enable-libusb=DIR
 AC_ARG_ENABLE(libusb, [  --enable-libusb=PATH    enable USB hotplug using libusb],
 	[
-		use_libusb=false
 		case ${enableval} in
 			"" | "yes" | "YES")
 				;;
@@ -138,6 +137,7 @@
 				use_libusb=false
 				;;
 			*)
+				use_libusb=false
 				libusb_prefix=${enableval}
 				AC_CHECK_LIB(usb, usb_init, [ use_libusb=true ], [ use_libusb=false ], "-L${libusb_prefix}/lib")
 				AC_CHECK_HEADERS(${libusb_prefix}/include/usb.h, [ use_libusb=true ], [ use_libusb=false ])