]> git.meshlink.io Git - meshlink/blobdiff - m4/openssl.m4
Correct inclusion of standard if_tun.h header file.
[meshlink] / m4 / openssl.m4
index bf5ce9fcaae010fdef98cff8e61c5ec7fd60629a..2ef9c37853104a993e731e55d8b950710bd38145 100644 (file)
@@ -28,4 +28,14 @@ AC_DEFUN(tinc_OPENSSL,
     [LIBS="$LIBS -lcrypto"],
     [AC_MSG_ERROR("OpenSSL libraries not found.")]
   )
+
+  AC_CHECK_FUNCS(RAND_pseudo_bytes)
+
+  AC_CHECK_FUNC(dlopen,
+    [],
+    AC_CHECK_LIB(dl, dlopen,
+      [LIBS="$LIBS -ldl"],
+      [AC_MSG_ERROR("OpenSSL depends on libdl.")]
+    )
+  )
 ])