From 5aba43708e262d2ac85d8c536dad1604325dc052 Mon Sep 17 00:00:00 2001 From: Michael Mior Date: Fri, 18 May 2018 09:58:25 -0400 Subject: [PATCH] Also check OPENSSL_init_ssl to support OpenSSL 1.1.0 --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 34c06ab..3301c59 100644 --- a/configure.ac +++ b/configure.ac @@ -36,7 +36,10 @@ if ( test -n "$WITH_CPYTHON" || test -n "$WITH_PYPY" || test -n "$WITH_STACKLESS ## OpenSSL AC_CHECK_LIB(ssl, SSL_library_init, [HAVE_LIBSSL=yes], [HAVE_LIBSSL=no]) if test "$HAVE_LIBSSL" = "no"; then - AC_MSG_ERROR([OpenSSL is not installed.]) + AC_CHECK_LIB(ssl, OPENSSL_init_ssl, [HAVE_LIBSSL=yes], [HAVE_LIBSSL=no]) + if test "$HAVE_LIBSSL" = "no"; then + AC_MSG_ERROR([OpenSSL is not installed.]) + fi fi AC_CHECK_HEADERS(openssl/ssl.h, [HAVE_SSL_H=yes], [HAVE_SSL_H=no]) if test "$HAVE_SSL_H" = "no"; then