Skip to content

Commit

Permalink
Fix LIBPCSCLITE
Browse files Browse the repository at this point in the history
Rename COMPILE_PAM conditional to HAVE_PAM
Remove lex check from configure.ac


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@95 c6295689-39f2-0310-b995-f0e70906c6a9
  • Loading branch information
aet committed Dec 22, 2001
1 parent 3775b18 commit 468a7e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ rm -f *.cache *.status *.log *.m4
cat aclocal/*.m4 > acinclude.m4
aclocal
libtoolize --copy --force --automake
autoheader configure.in > config.h.in
autoheader
automake --add-missing --copy --force
autoreconf --gnu
10 changes: 4 additions & 6 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AM_PROG_LEX

dnl Special check for pthread support.
ACX_PTHREAD(
Expand Down Expand Up @@ -255,6 +254,7 @@ if (test ! -z "$ac_cv_commondir" && test "x$ac_cv_commondir" != "x(system)") ; t
fi

AC_SUBST(LIBPCSCLITE)
LIBPCSCLITE="-lpcsclite"
saved_LIBS="$LIBS"
saved_LDFLAGS="$LDFLAGS"
saved_CPPFLAGS="$CPPFLAGS"
Expand Down Expand Up @@ -284,16 +284,14 @@ AC_ARG_WITH(pcsclite,
else
CPPFLAGS="-I${withval}${pcscdir} ${CPPFLAGS}"
fi
AC_CHECK_LIB(pcsclite, SCardEstablishContext, [LIBPCSCLITE="$LIBPCSCLITE -lpcsclite"])
AC_CHECK_LIB(pcsclite, SCardEstablishContext)
if test "x$ac_cv_lib_pcsclite_SCardEstablishContext" = "xyes" ; then
break;
fi
done
]
)
if test "x$ac_cv_lib_pcsclite_SCardEstablishContext" = "xno" ; then
AC_CHECK_LIB(pcsclite, SCardEstablishContext, [LIBPCSCLITE="$LIBPCSCLITE -lpcsclite"])
fi
AC_CHECK_LIB(pcsclite, SCardEstablishContext, , AC_MSG_ERROR([*** PC/SC Lite missing - please install first]))
AM_CONDITIONAL(HAVE_PCSCLITE, test "x$ac_cv_lib_pcsclite_SCardEstablishContext" = "xyes")

AC_SUBST(LIBDL)
Expand Down Expand Up @@ -462,7 +460,7 @@ if test "x$PAM_MSG" = "xyes" ; then
)
fi
LIBS="$saved_LIBS"
AM_CONDITIONAL(COMPILE_PAM, test "x$PAM_MSG" = "xyes")
AM_CONDITIONAL(HAVE_PAM, test "x$PAM_MSG" = "xyes")

dnl Enable/disable debugging messages.
AC_ARG_ENABLE(debug,
Expand Down
4 changes: 2 additions & 2 deletions src/pam/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LDFLAGS = @LDFLAGS@ @LIBDL@ @LIBPAM@ @LIBCRYPTO@ \
SRC = pam_pkcs15.c
INC =

if COMPILE_PAM
if HAVE_PAM
lib_LTLIBRARIES = libpam_pkcs15.la
noinst_PROGRAMS = pam_pkcs15-test
else
Expand All @@ -23,7 +23,7 @@ libpam_pkcs15_la_LDFLAGS = -module
pam_pkcs15_test_SOURCES = $(SRC) $(INC)
pam_pkcs15_test_CFLAGS = -DTEST

if COMPILE_PAM
if HAVE_PAM

install-exec-local: install-libLTLIBRARIES
@$(NORMAL_INSTALL)
Expand Down

0 comments on commit 468a7e3

Please sign in to comment.