X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=configure.ac;h=02169b4c38b1dae24d6e3f085eca39a6c660fae7;hp=d4b556238e625f22a6ce346446de0868146a414a;hb=aaa54fb1a4ec04a0f59e47170feb8173514f5ff5;hpb=d5e8195b504f9b024d4ffe4047d076633bf4e230 diff --git a/configure.ac b/configure.ac index d4b5562..02169b4 100644 --- a/configure.ac +++ b/configure.ac @@ -47,7 +47,10 @@ AS_IF([test "x$OPENSSL_CFLAGS" != "x" -o "x$OPENSSL_LIBS" != "x" ], [ CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS" LIBS="$OPENSSL_LIBS $LIBS" -AS_IF([test "x$use_openssl" != "xyes"], [ +AC_ARG_ENABLE(tomcrypt, + [ --enable-tomcrypt use libtomcrypt even when openssl present]) + +AS_IF([test "x$use_openssl" != "xyes" -o "x$enable_tomcrypt" = "xyes"], [ PKG_CHECK_MODULES([TOMCRYPT], [libtomcrypt], [], [:]) ]) AC_ARG_WITH(libtomcrypt-include-path, @@ -69,10 +72,10 @@ AS_IF([test "x$use_openssl" != "xyes" -a "x$use_tomcrypt" != "xyes"], [ ]) AS_IF([test "x$use_openssl" = "xyes"], [ - CRYPTO_OBJS+=ossl_crypto.lo + CRYPTO_OBJS+=" ossl_crypto.lo" ]) AS_IF([test "x$use_tomcrypt" = "xyes"], [ - CRYPTO_OBJS+=tom_crypto.lo + CRYPTO_OBJS+=" tom_crypto.lo" ]) AC_SUBST(CRYPTO_OBJS)