linking against libopensc not easily possible. we need to remove this dependancy
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@366 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -20,18 +20,18 @@ PKG_PROG_PKG_CONFIG
|
||||
|
||||
# Checks for libraries.
|
||||
PKG_CHECK_EXISTS([libopensc],
|
||||
[PKG_CHECK_MODULES([OPENSC], [libopensc])],
|
||||
[AC_MSG_WARN([libopensc not found by pkg-config])])
|
||||
[PKG_CHECK_MODULES([OPENSC], [libopensc < 0.12])],
|
||||
[AC_MSG_WARN([libopensc < 0.12 not found by pkg-config])])
|
||||
|
||||
saved_CPPFLAGS="$CPPFLAGS"
|
||||
saved_LIBS="$LIBS"
|
||||
CPPFLAGS="$CPPFLAGS $OPENSC_CFLAGS"
|
||||
LIBS="$LDFLAGS $OPENSC_LIBS"
|
||||
AC_CHECK_HEADERS(opensc/opensc.h,,
|
||||
[ AC_MSG_ERROR([opensc/opensc.h not found, install libopensc or use ./configure OPENSC_CFLAGS=...]) ])
|
||||
[ AC_MSG_ERROR([opensc/opensc.h not found, install libopensc < 0.12 or use ./configure OPENSC_CFLAGS=...]) ])
|
||||
AC_MSG_CHECKING([for sc_context_create])
|
||||
AC_TRY_LINK_FUNC(sc_context_create, [ AC_MSG_RESULT([yes]) ],
|
||||
[ AC_MSG_ERROR([libopensc not found, use ./configure OPENSC_LIBS=...]) ])
|
||||
[ AC_MSG_ERROR([libopensc < 0.12 not found, use ./configure OPENSC_LIBS=...]) ])
|
||||
CPPFLAGS="$saved_CPPFLAGS"
|
||||
LIBS="$saved_LIBS"
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
../../npa/src/scutil.h
|
||||
@@ -20,8 +20,8 @@ PKG_PROG_PKG_CONFIG
|
||||
|
||||
# Checks for libraries.
|
||||
PKG_CHECK_EXISTS([libopensc],
|
||||
[PKG_CHECK_MODULES([OPENSC], [libopensc])],
|
||||
[AC_MSG_WARN([libopensc not found by pkg-config])])
|
||||
[PKG_CHECK_MODULES([OPENSC], [libopensc < 0.12 ])],
|
||||
[AC_MSG_WARN([libopensc < 0.12 not found by pkg-config])])
|
||||
PKG_CHECK_EXISTS([libssl],
|
||||
[PKG_CHECK_MODULES([OPENSSL], [libssl])],
|
||||
[AC_MSG_WARN([libssl not found by pkg-config])])
|
||||
@@ -33,10 +33,10 @@ CPPFLAGS="$CPPFLAGS $OPENSC_CFLAGS $OPENSSL_CFLAGS"
|
||||
LIBS="$LDFLAGS $OPENSC_LIBS $OPENSSL_LIBS"
|
||||
|
||||
AC_CHECK_HEADERS(opensc/opensc.h,,
|
||||
[ AC_MSG_ERROR([opensc/opensc.h not found, install libopensc or use ./configure OPENSC_CFLAGS=...]) ])
|
||||
[ AC_MSG_ERROR([opensc/opensc.h not found, install libopensc < 0.12 or use ./configure OPENSC_CFLAGS=...]) ])
|
||||
AC_MSG_CHECKING([for sc_context_create])
|
||||
AC_TRY_LINK_FUNC(sc_context_create, [ AC_MSG_RESULT([yes]) ],
|
||||
[ AC_MSG_ERROR([libopensc not found, use ./configure OPENSC_LIBS=...]) ])
|
||||
[ AC_MSG_ERROR([libopensc < 0.12 not found, use ./configure OPENSC_LIBS=...]) ])
|
||||
|
||||
AC_CHECK_HEADERS(openssl/evp.h, [], [ AC_MSG_ERROR([openssl/evp.h not found, install OpenSSL or use ./configure OPENSSL_CFLAGS=...]) ])
|
||||
AC_MSG_CHECKING([for EVP_read_pw_string_min])
|
||||
|
||||
Reference in New Issue
Block a user