Skip to content

Commit

Permalink
We do not need a minimal pcsc-lite version
Browse files Browse the repository at this point in the history
git-svn-id: svn:https://svn.debian.org/svn/pcsclite/trunk/contrib@6421 0ce88b0d-b2fd-0310-8134-9614164e65ea
  • Loading branch information
LudovicRousseau committed Aug 9, 2012
1 parent f373135 commit 1fcccb2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions libPCSCv2part10/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,21 @@ AM_PROG_AR
PKG_PROG_PKG_CONFIG

# check pcsc-lite version
PCSC_NEEDED_VERSION="1.8.3"
PKG_CHECK_EXISTS([libpcsclite],
[PKG_CHECK_MODULES(PCSC, libpcsclite >= $PCSC_NEEDED_VERSION, [],
[PKG_CHECK_MODULES(PCSC,, [],
[
if test -f /usr/local/lib/pkgconfig/libpcsclite.pc -a "x$PKG_CONFIG" != x ; then
AC_MSG_ERROR([use PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure])
else
AC_MSG_WARN([install pcsc-lite $PCSC_NEEDED_VERSION or later])
AC_MSG_WARN([install pcsc-lite])
fi
])],
[AC_MSG_WARN([libpcsclite not found by pkg-config])]
)

saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $PCSC_CFLAGS"
PCSC_ERROR_MSG="install pcsc-lite $PCSC_NEEDED_VERSION or later, or use ./configure PCSC_CFLAGS=..."
PCSC_ERROR_MSG="install pcsc-lite, or use ./configure PCSC_CFLAGS=..."
AC_CHECK_HEADER(reader.h,, [AC_MSG_ERROR([$PCSC_ERROR_MSG])])
CPPFLAGS="$saved_CPPFLAGS"

Expand Down

0 comments on commit 1fcccb2

Please sign in to comment.