From b1e97ece9c495ac67e54b8c2675b1eacc645eb1c Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 21 Jun 2001 16:37:05 +0000 Subject: [PATCH] Check for and add -ldl. --- m4/openssl.m4 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/m4/openssl.m4 b/m4/openssl.m4 index bf5ce9fc..5d91a789 100644 --- a/m4/openssl.m4 +++ b/m4/openssl.m4 @@ -28,4 +28,9 @@ AC_DEFUN(tinc_OPENSSL, [LIBS="$LIBS -lcrypto"], [AC_MSG_ERROR("OpenSSL libraries not found.")] ) + + AC_CHECK_LIB(dl, dlopen, + [LIBS="$LIBS -ldl"], + [AC_MSG_ERROR("OpenSSL depends on libdl.")] + ) ]) -- 2.39.5