From 2b39da2634b2b6659f1c73c6477930767c4f38f1 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 9 Nov 2015 17:11:21 +0100 Subject: [PATCH] configure: Link against potential -ldl when checking for OpenSSL libcrypto --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1017952e7..a7419fded 100644 --- a/configure.ac +++ b/configure.ac @@ -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