From 84d5e1dbe26e80c9f042989968be76b6dfd4ebde Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Thu, 2 Jun 2016 10:27:53 -0700 Subject: [PATCH] [v9_10] prevent spurious warning when configuring native-pkcs11 --- configure | 28 +++++++++++++++------------- configure.in | 27 ++++++++++++++------------- 2 files changed, 29 insertions(+), 26 deletions(-) diff --git a/configure b/configure index c7f362bce1..2dde5769b1 100755 --- a/configure +++ b/configure @@ -15605,21 +15605,23 @@ fi $as_echo_n "checking for OpenSSL library... " >&6; } OPENSSL_WARNING= openssldirs="/usr /usr/local /usr/local/ssl /usr/pkg /usr/sfw" +if test "$want_native_pkcs11" = "yes" +then + use_openssl="native_pkcs11" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: use of native PKCS11 instead" >&5 +$as_echo "use of native PKCS11 instead" >&6; } +fi + if test "$use_openssl" = "auto" then - if test "$want_native_pkcs11" = "yes" - then - use_openssl="native_pkcs11" - else - for d in $openssldirs - do - if test -f $d/include/openssl/opensslv.h - then - use_openssl=$d - break - fi - done - fi + for d in $openssldirs + do + if test -f $d/include/openssl/opensslv.h + then + use_openssl=$d + break + fi + done fi OPENSSL_ECDSA="" OPENSSL_GOST="" diff --git a/configure.in b/configure.in index 70e2097390..f379a206d4 100644 --- a/configure.in +++ b/configure.in @@ -1414,21 +1414,22 @@ fi AC_MSG_CHECKING(for OpenSSL library) OPENSSL_WARNING= openssldirs="/usr /usr/local /usr/local/ssl /usr/pkg /usr/sfw" +if test "$want_native_pkcs11" = "yes" +then + use_openssl="native_pkcs11" + AC_MSG_RESULT(use of native PKCS11 instead) +fi + if test "$use_openssl" = "auto" then - if test "$want_native_pkcs11" = "yes" - then - use_openssl="native_pkcs11" - else - for d in $openssldirs - do - if test -f $d/include/openssl/opensslv.h - then - use_openssl=$d - break - fi - done - fi + for d in $openssldirs + do + if test -f $d/include/openssl/opensslv.h + then + use_openssl=$d + break + fi + done fi OPENSSL_ECDSA="" OPENSSL_GOST=""