diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-08-16 08:16:08 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-08-16 08:16:08 +0000 |
commit | a23976f732b211fef6d95bbd8f120c86f4188ec8 (patch) | |
tree | a8e6c796abe861110be7973bd47a36be676ced2e /configure.ac | |
parent | b4f6cbe5fb7f29b10cfc54c296ed128b9d3f9a7c (diff) |
Fixed "configure script cannot detect libressl" (junk4me46806)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7774601..0827cb0 100644 --- a/configure.ac +++ b/configure.ac @@ -149,9 +149,16 @@ if test x"$https_support" = x"no"; then AC_MSG_NOTICE([disabling https support]) AC_DEFINE(HTS_USEOPENSSL, 0) else +SAVE_LIBS=$LIBS +AC_CHECK_LIB(crypto, EVP_get_digestbyname, + [ + OPENSSL_LIBS="-lcrypto" + ] + ) +LIBS="$LIBS $OPENSSL_LIBS" AC_CHECK_LIB(ssl, SSL_library_init, [ - OPENSSL_LIBS="-lcrypto -lssl" + OPENSSL_LIBS="$OPENSSL_LIBS -lssl" AC_DEFINE(HTS_USEOPENSSL, 1, [Check for OpenSSL]) ], [ @@ -162,6 +169,7 @@ AC_CHECK_LIB(ssl, SSL_library_init, fi ] ) +LIBS=$SAVE_LIBS AC_SUBST(OPENSSL_LIBS) fi |