Differences From Artifact [0105515e9a]:
- File
aclocal/dc_pcscheaders.m4
— part of check-in
[40726d3b6c]
at
2010-05-11 16:49:46
on branch trunk
— Removed unused variables
Began work towards talking to the smartcard through PC/SC
Began work on a GSC-IS v2.1 SPM implementation (user: rkeene, size: 1460) [annotate] [blame] [check-ins using]
To Artifact [9403cfa6bd]:
- File
aclocal/dc_pcsc.m4
— part of check-in
[6e6d64508e]
at
2010-06-07 04:41:59
on branch trunk
— Added LICENSE and README
Renamed aclocal PCSC script
Added warnings for PC/SC libraries and headers not being found (user: rkeene, size: 1758) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
CFLAGS="${SAVE_CFLAGS}${ADD_CFLAGS}"
CPPFLAGS="${SAVE_CPPFLAGS}${ADD_CPPFLAGS}"
unset ac_cv_header_winscard_h
AC_CHECK_HEADER(winscard.h, [
AC_DEFINE(HAVE_WINSCARD_H, [1], [Define if you have the PCSC-Lite header file (you should)])
])
])
AC_DEFUN(DC_PCSC_LIBS, [
for lib in pcsclite pcsc-lite pcsc; do
AC_CHECK_LIB(${lib}, SCardEstablishContext, [
LIBS="${LIBS} -l${lib}"
break
])
done
AC_CHECK_FUNCS(SCardIsValidContext)
])
AC_DEFUN(DC_PCSC, [
DC_PCSC_HEADERS
DC_PCSC_LIBS
])
| > > > > > > > > > > | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
CFLAGS="${SAVE_CFLAGS}${ADD_CFLAGS}"
CPPFLAGS="${SAVE_CPPFLAGS}${ADD_CPPFLAGS}"
unset ac_cv_header_winscard_h
AC_CHECK_HEADER(winscard.h, [
AC_DEFINE(HAVE_WINSCARD_H, [1], [Define if you have the PCSC-Lite header file (you should)])
], [
AC_MSG_WARN([unable to find winscard.h from PC/SC, compilation will likely fail.])
])
])
AC_DEFUN(DC_PCSC_LIBS, [
foundlib="0"
for lib in pcsclite pcsc-lite pcsc; do
AC_CHECK_LIB(${lib}, SCardEstablishContext, [
LIBS="${LIBS} -l${lib}"
foundlib="1"
break
])
done
if test "${foundlib}" = "0"; then
AC_MSG_WARN([unable to find PCSC library, compilation will likely fail.])
fi
dnl Check for SCardIsValidContext, only in newer PCSC-Lite
AC_CHECK_FUNCS(SCardIsValidContext)
])
AC_DEFUN(DC_PCSC, [
DC_PCSC_HEADERS
DC_PCSC_LIBS
])
|