From: Eugene Crosser Date: Wed, 15 Aug 2018 15:55:24 +0000 (+0200) Subject: configure: add option "--disable-openssl" X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=commitdiff_plain;h=14c33fc7940be40d5da2b527474e59bfbabf5f71;ds=sidebyside configure: add option "--disable-openssl" As of openssl 1.1.0, HMAC_CTX is an opaque structure and as such cannot be allocated in the stack. One has to use HMAC_CTX_new() that ultimately uses OPENSSL_zmalloc(), so the user has to free it afterwards. Not something I want to do. What they where thinking?! Richard Levitte, I am looking at you! Signed-off-by: Eugene Crosser --- diff --git a/configure.ac b/configure.ac index e6bd59a..8adf940 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT([pam_pcsc_cr], 0.9.4) +AC_INIT([pam_pcsc_cr], 0.9.5) AC_CONFIG_SRCDIR([pam_pcsc_cr.c]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE @@ -45,7 +45,13 @@ PKG_CHECK_MODULES([PCSC], [libpcsclite]) CPPFLAGS="$PCSC_CFLAGS $CPPFLAGS" LIBS="$PCSC_LIBS $LIBS" -PKG_CHECK_MODULES([OPENSSL], [libcrypto], [], [:]) +AC_ARG_ENABLE(openssl, + [ --disable-openssl do not use openssl even when it is present], + [], [enable_openssl=yes] +) +AS_IF([test "x$enable_openssl" = "xyes"], [ + PKG_CHECK_MODULES([OPENSSL], [libcrypto], [], [:]) +]) AS_IF([test "x$OPENSSL_CFLAGS" != "x" -o "x$OPENSSL_LIBS" != "x" ], [ use_openssl=yes ])