Check for dlopen in standard libraries first (needed for DEC OSF).
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 29 Jun 2001 14:15:46 +0000 (14:15 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 29 Jun 2001 14:15:46 +0000 (14:15 +0000)
m4/openssl.m4

index 5d91a78..d9f8e16 100644 (file)
@@ -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.")]
+    )
   )
 ])