Add a check for reader.h

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2484 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
martin 2005-08-13 13:14:06 +00:00
parent 0f0f28107c
commit 99c3efb3ed
1 changed files with 9 additions and 0 deletions

View File

@ -560,6 +560,15 @@ SCardControl(NULL, NULL, 0, NULL, NULL);
LIBS="$saved_LIBS"
fi
# check for reader.h
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $PCSC_CFLAGS"
AC_CHECK_HEADER(reader.h,
[AC_DEFINE([HAVE_READER_H], 1, [Define if pcsc-lite with reader.h exists])],
[AC_MSG_WARN([reader.h not found, install pcsc-lite 1.2.9-beta8 or later, or use CFLAGS=... ./configure])],
[ #include <reader.h>])
CFLAGS="$saved_CFLAGS"
OPENCT_MSG=no
openct_path=/usr
AC_SUBST(OPENCT_CFLAGS)