From: Guus Sliepen Date: Fri, 29 Jun 2001 14:15:46 +0000 (+0000) Subject: Check for dlopen in standard libraries first (needed for DEC OSF). X-Git-Tag: release-1.0pre5~107 X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=commitdiff_plain;h=9391efe4e88077723840a7c085388ba2765ca17c Check for dlopen in standard libraries first (needed for DEC OSF). --- diff --git a/m4/openssl.m4 b/m4/openssl.m4 index 5d91a78..d9f8e16 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.")] + ) ) ])