X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=m4%2Fopenssl.m4;h=5d91a7896db2e1a71216d34bf13ae9fb4ad5e548;hp=bf5ce9fcaae010fdef98cff8e61c5ec7fd60629a;hb=b1e97ece9c495ac67e54b8c2675b1eacc645eb1c;hpb=c5c02a0861bf540e07fe64704cb97aae29c4cacf diff --git a/m4/openssl.m4 b/m4/openssl.m4 index bf5ce9fc..5d91a789 100644 --- a/m4/openssl.m4 +++ b/m4/openssl.m4 @@ -28,4 +28,9 @@ AC_DEFUN(tinc_OPENSSL, [LIBS="$LIBS -lcrypto"], [AC_MSG_ERROR("OpenSSL libraries not found.")] ) + + AC_CHECK_LIB(dl, dlopen, + [LIBS="$LIBS -ldl"], + [AC_MSG_ERROR("OpenSSL depends on libdl.")] + ) ])