From f0416e8d8191e7eee3d57a8578d9a53b880ba121 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 6 Feb 2022 15:43:41 -0300 Subject: [skip ci] Note: It may catch fire --- configure.ac | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/configure.ac b/configure.ac index 8a89d54..f408b58 100644 --- a/configure.ac +++ b/configure.ac @@ -335,19 +335,10 @@ AC_SEARCH_LIBS([pcre_study], [pcre], [], AC_MSG_ERROR([PCRE not found or incompa # AC_MSG_CHECKING([OpenSSL library]) -dnl Order matters! -if test "$PORTNAME" != "win32"; then - AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, [], [AC_MSG_ERROR([library 'crypto' is required for OpenSSL])]) - FOUND_SSL_LIB="no" - AC_CHECK_LIB(ssl, OPENSSL_init_ssl, [FOUND_SSL_LIB="yes"]) - AC_CHECK_LIB(ssl, SSL_library_init, [FOUND_SSL_LIB="yes"]) - AS_IF([test "x$FOUND_SSL_LIB" = xno], [AC_MSG_ERROR([library 'ssl' is required for OpenSSL])]) -else - AC_SEARCH_LIBS(CRYPTO_new_ex_data, eay32 crypto, [], [AC_MSG_ERROR([library 'eay32' or 'crypto' is required for OpenSSL])]) - FOUND_SSL_LIB="no" - AC_SEARCH_LIBS(OPENSSL_init_ssl, ssleay32 ssl, [FOUND_SSL_LIB="yes"]) - AC_SEARCH_LIBS(SSL_library_init, ssleay32 ssl, [FOUND_SSL_LIB="yes"]) - AS_IF([test "x$FOUND_SSL_LIB" = xno], [AC_MSG_ERROR([library 'ssleay32' or 'ssl' is required for OpenSSL])]) -fi +AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, [], [AC_MSG_WARN([library 'crypto' is required for OpenSSL])]) +FOUND_SSL_LIB="no" +AC_CHECK_LIB(ssl, OPENSSL_init_ssl, [FOUND_SSL_LIB="yes"]) +AC_CHECK_LIB(ssl, SSL_library_init, [FOUND_SSL_LIB="yes"]) +AS_IF([test "x$FOUND_SSL_LIB" = xno], [AC_MSG_WARN([library 'ssl' is required for OpenSSL])]) AC_OUTPUT(Makefile src/Makefile) -- cgit v1.2.3-70-g09d2