]> www.average.org Git - pam_pcsc_cr.git/blobdiff - configure.ac
tweak tomcrypt
[pam_pcsc_cr.git] / configure.ac
index d4b556238e625f22a6ce346446de0868146a414a..02169b4c38b1dae24d6e3f085eca39a6c660fae7 100644 (file)
@@ -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)