From eddaf8c39620d13b8a0e81e9ab9b2eb8e5700e38 Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Thu, 5 Jan 2017 12:48:37 -0500 Subject: build: Fix checking for OpenSSL 1.1 functions Fixes #1920 --- configure.ac | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 10a15504..d4357893 100644 --- a/configure.ac +++ b/configure.ac @@ -374,8 +374,6 @@ AS_IF([test "$openssl" != no], [ openssl=yes COMMON_LIBS="$COMMON_LIBS $OPENSSL_LIBS" COMMON_CFLAGS="$COMMON_CFLAGS $OPENSSL_CFLAGS" - dnl Test for various functions that are not available in LibreSSL - AC_CHECK_FUNCS([SSL_CTX_get_ssl_method X509_get_signature_nid DH_set0_pqg DH_get0_key DH_set0_key]) ], [ unset openssl_path ac_cv_lib_ssl_SSL_new ac_cv_header_openssl_ssl_h AS_IF([test "$openssl" != yes], [ @@ -406,6 +404,14 @@ AS_IF([test "$openssl" != no], [ ]) LIBS=$SAVED_LIBS ]) + + AS_IF([test "$openssl" = yes], [ + dnl Test for various functions that are not available in LibreSSL + SAVED_LIBS="$LIBS" + LIBS="$OPENSSL_LIBS" + AC_CHECK_FUNCS([SSL_CTX_get_ssl_method X509_get_signature_nid DH_set0_pqg DH_get0_key DH_set0_key]) + LIBS="$SAVED_LIBS" + ]) ]) dnl ********************************************************************* -- cgit 1.4.1