fix openct detection. fix assuan detection.

improve libltdl detection code.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2541 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
aj 2005-09-05 20:15:38 +00:00
parent 047cb62d45
commit 5b9ac59d73
1 changed files with 9 additions and 2 deletions

View File

@ -186,9 +186,15 @@ AC_CACHE_CHECK([for flex directory], ac_cv_flexdir, [
])
dnl use ltdl
AC_CHECK_LIB(ltdl, lt_dlopen,, [AC_MSG_ERROR([libltdl not found])])
AC_LIB_LINKFLAGS(ltdl)
PKG_CHECK_MODULES(OPENCT, [openct], [
saved_LIBS="$LIBS"
LIBS="$saved_LIBS $LIBLTDL"
AC_CHECK_HEADER([ltdl.h], [ AC_MSG_RESULT "yes" ],
[ AC_MSG_ERROR([ltdl.h not found, please install libltdl and/or libtool]) ])
LIBS="$saved_LIBS"
PKG_CHECK_MODULES(OPENCT, [libopenct], [
OPENCT_MSG=yes
AC_DEFINE(HAVE_OPENCT, 1, [Have OpenCT libraries and header files])
], [
@ -271,6 +277,7 @@ AM_PATH_LIBASSUAN( , [
AM_CONDITIONAL(HAVE_ASSUAN, true)
],
[
AM_CONDITIONAL(HAVE_ASSUAN, false)
])
AC_SUBST(ASSUAN_CFLAGS)
AC_SUBST(ASSUAN_LIBS)