summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac19
1 files 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)