configure: Link against potential -ldl when checking for OpenSSL libcrypto

This commit is contained in:
Martin Willi
2015-12-04 08:02:03 +01:00
parent 8b0c9cf155
commit 2b39da2634
+2 -1
View File
@@ -1069,7 +1069,8 @@ if test x$sqlite = xtrue; then
fi
if test x$openssl = xtrue; then
AC_CHECK_LIB([$openssl_lib],[main],[LIBS="$LIBS"],[AC_MSG_ERROR([OpenSSL lib$openssl_lib not found])],[])
AC_CHECK_LIB([$openssl_lib],[main],[LIBS="$LIBS"],
[AC_MSG_ERROR([OpenSSL lib$openssl_lib not found])],[$DLLIB])
AC_CHECK_HEADER([openssl/evp.h],,[AC_MSG_ERROR([OpenSSL header openssl/evp.h not found!])])
fi