configure: Link against potential -ldl when checking for OpenSSL libcrypto
authorMartin Willi <martin@strongswan.org>
Mon, 9 Nov 2015 16:11:21 +0000 (17:11 +0100)
committerMartin Willi <martin@strongswan.org>
Fri, 4 Dec 2015 07:02:03 +0000 (08:02 +0100)
configure.ac

index 1017952..a7419fd 100644 (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