| 40 |
fi |
fi |
| 41 |
]) |
]) |
| 42 |
|
|
| 43 |
OLD_CFLAGS="$CFLAGS" |
saved_CPPFLAGS="$CPPFLAGS" |
| 44 |
CFLAGS="$CFLAGS $PCSC_CFLAGS" |
CPPFLAGS="$CPPFLAGS $PCSC_CFLAGS" |
| 45 |
AC_CHECK_HEADER(ifdhandler.h,, |
AC_CHECK_HEADER(ifdhandler.h,, |
| 46 |
[AC_MSG_ERROR([ifdhandler.h not found, install pcsc-lite 1.2.9-beta9 or later, or use CFLAGS=... ./configure])], |
[AC_MSG_ERROR([ifdhandler.h not found, install pcsc-lite 1.2.9-beta9 or later, or use ./configure PCSC_CFLAGS=...])], |
| 47 |
[ #include <ifdhandler.h> ]) |
[ #include <ifdhandler.h> ]) |
| 48 |
AC_CHECK_HEADER(reader.h,, |
AC_CHECK_HEADER(reader.h,, |
| 49 |
[AC_MSG_ERROR([reader.h not found, install pcsc-lite 1.2.9-beta9 or later, or use CFLAGS=... ./configure])], |
[AC_MSG_ERROR([reader.h not found, install pcsc-lite 1.2.9-beta9 or later, or use ./configure PCSC_CFLAGS=...])], |
| 50 |
[ #include <reader.h> ]) |
[ #include <reader.h> ]) |
| 51 |
CFLAGS="$OLD_CFLAGS" |
CPPFLAGS="$saved_CPPFLAGS" |
| 52 |
|
|
| 53 |
# Add libtool support. |
# Add libtool support. |
| 54 |
AM_PROG_LIBTOOL |
AM_PROG_LIBTOOL |