[Pcsclite-cvs-commit] r2239 - trunk/Drivers/ccid

Ludovic Rousseau rousseau at alioth.debian.org
Wed Nov 29 11:12:05 CET 2006


Author: rousseau
Date: 2006-11-29 11:12:04 +0100 (Wed, 29 Nov 2006)
New Revision: 2239

Modified:
   trunk/Drivers/ccid/configure.in
Log:
use AC_TRY_LINK_FUNC() instead of AC_CHECK_LIB() to not hard code the use of
-lpcsclite


Modified: trunk/Drivers/ccid/configure.in
===================================================================
--- trunk/Drivers/ccid/configure.in	2006-11-29 10:10:55 UTC (rev 2238)
+++ trunk/Drivers/ccid/configure.in	2006-11-29 10:12:04 UTC (rev 2239)
@@ -235,8 +235,10 @@
 	# check that pcsc-lite is installed
 	OLD_LIBS="$LIBS"
 	LIBS="$LIBS $PCSC_LIBS"
-	AC_CHECK_LIB(pcsclite, SCardEstablishContext, [],
-		[AC_MSG_ERROR([SCardEstablishContext() not found, install pcsc-lite 1.2.9-beta9 or later, or use PCSC_LIBS=... ./configure])])
+	AC_MSG_CHECKING([for SCardEstablishContext])
+	AC_TRY_LINK_FUNC(SCardEstablishContext,
+	    [ AC_MSG_RESULT([yes]) ],
+		[ AC_MSG_ERROR([SCardEstablishContext() not found, install pcsc-lite 1.2.9-beta9 or later,or use LDLIBS=...  ./configure]) ])
 	LIBS="$OLD_LIBS"
 
 	AM_CONDITIONAL(WITHOUT_PCSC, false)




More information about the Pcsclite-cvs-commit mailing list