[Pcsclite-cvs-commit] PCSC configure.in,1.32,1.33
aet-guest@quantz.debian.org
aet-guest@quantz.debian.org
Mon, 08 Sep 2003 14:05:11 +0200
Update of /cvsroot/pcsclite/PCSC
In directory quantz:/tmp/cvs-serv13353
Modified Files:
configure.in
Log Message:
Finish SCF build support, add sanity checks
Index: configure.in
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/configure.in,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- configure.in 8 Sep 2003 11:25:08 -0000 1.32
+++ configure.in 8 Sep 2003 12:05:08 -0000 1.33
@@ -98,7 +98,7 @@
dnl Checks for header files
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS([dirent.h dl.h dlfcn.h errno.h fcntl.h getopt.h malloc.h stdlib.h string.h strings.h sys/filio.h sys/time.h syslog.h unistd.h])
+AC_CHECK_HEADERS([dirent.h dl.h dlfcn.h errno.h fcntl.h getopt.h malloc.h stdlib.h string.h strings.h sys/filio.h sys/time.h syslog.h unistd.h smartcard/scf.h])
dnl Checks for typedefs, structures, and compiler characteristics
AC_C_CONST
@@ -224,11 +224,13 @@
esac], [scf=false])
AC_SUBST(LIBSMARTCARD)
-# FIXME
-LIBSMARTCARD=""
+if test x$scf = xtrue -a x$ac_cv_header_smartcard_scf_h = xyes; then
+ AC_CHECK_LIB(smartcard, SCF_strerror, [LIBSMARTCARD="$LIBSMARTCARD -lsmartcard" scf=true], scf=false)
+else
+ scf=false
+fi
AC_MSG_RESULT([enable SCF reader support : $scf])
-
-AM_CONDITIONAL(MSC_ENABLE_SCF, test x$scf = xtrue)
+AM_CONDITIONAL(HAVE_SCF, test x$scf = xtrue)
dnl --disable-musclecard
AC_ARG_ENABLE(musclecard,