From 9391efe4e88077723840a7c085388ba2765ca17c Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 29 Jun 2001 14:15:46 +0000 Subject: [PATCH] Check for dlopen in standard libraries first (needed for DEC OSF). --- m4/openssl.m4 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/m4/openssl.m4 b/m4/openssl.m4 index 5d91a789..d9f8e163 100644 --- a/m4/openssl.m4 +++ b/m4/openssl.m4 @@ -29,8 +29,11 @@ AC_DEFUN(tinc_OPENSSL, [AC_MSG_ERROR("OpenSSL libraries not found.")] ) - AC_CHECK_LIB(dl, dlopen, - [LIBS="$LIBS -ldl"], - [AC_MSG_ERROR("OpenSSL depends on libdl.")] + AC_CHECK_FUNC(dlopen, + [], + AC_CHECK_LIB(dl, dlopen, + [LIBS="$LIBS -ldl"], + [AC_MSG_ERROR("OpenSSL depends on libdl.")] + ) ) ]) -- 2.39.5