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 5d91a7896db2e1a71216d34bf13ae9fb4ad5e548..d9f8e1634d490d52da569b7e1c9b0d4d9ccd41f1 100644 (file)
@@ -29,8 +29,11 @@ AC_DEFUN(tinc_OPENSSL,
     [AC_MSG_ERROR("OpenSSL libraries not found.")]
   )
 
     [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.")]
+    )
   )
 ])
   )
 ])