Add support for detected libressl via pkg-config
@@ -34,11 +34,13 @@ AS_IF([test "$enable_ssl" != "no"],[
])
])
AS_IF([test "$enable_ssl" = "libressl"],[
+ PKG_CHECK_MODULES(SSL, [libtls], [enable_ssl=libressl], [
AC_CHECK_LIB([tls],[tls_init],[
SSL_LIBS="-ltls -lcrypto"
enable_ssl=libressl
])
])
+ ])
dnl PKG_CHECK_MODULES() doesn't check for headers
dnl OSX for example has the lib, but not headers, so double confirm if OpenSSL works
