X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=m4%2Fopenssl.m4;h=2ef9c37853104a993e731e55d8b950710bd38145;hp=bf5ce9fcaae010fdef98cff8e61c5ec7fd60629a;hb=ede6671c1354eeab86936efda32f6cdb3b3fd8d5;hpb=c5c02a0861bf540e07fe64704cb97aae29c4cacf diff --git a/m4/openssl.m4 b/m4/openssl.m4 index bf5ce9fc..2ef9c378 100644 --- a/m4/openssl.m4 +++ b/m4/openssl.m4 @@ -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.")] + ) + ) ])