diff --git a/configure.ac b/configure.ac
index 5793c2d5..161040c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,11 +93,16 @@ if test "x$found_libcrypto" = xno; then
 	AC_MSG_ERROR("libcrypto not found")
 fi
 AC_SEARCH_LIBS(
-	SSL_library_init,
+	OPENSSL_init_ssl,
 	[ssl],
 	found_libssl=yes,
 	found_libssl=no
 )
+AC_SEARCH_LIBS(
+	SSL_library_init,
+	[ssl],
+	found_libssl=yes
+)
 if test "x$found_libssl" = xno; then
 	AC_MSG_ERROR("libssl not found")
 fi