diff --git a/configure b/configure index 209d371d87..588476367f 100755 --- a/configure +++ b/configure @@ -15956,7 +15956,7 @@ $as_echo_n "checking whether linking with OpenSSL requires -ldl... " >&6; } /* end confdefs.h. */ #include -#if OPENSSL_VERSION_NUMBER >= 0x10100004L +#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L) #include #else #include @@ -15967,7 +15967,7 @@ int main () { -#if OPENSSL_VERSION_NUMBER >= 0x10100004L +#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L) OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL); #else DSO_METHOD_dlfcn(); @@ -15985,7 +15985,7 @@ else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#if OPENSSL_VERSION_NUMBER >= 0x10100004L +#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L) #include #else #include @@ -15996,7 +15996,7 @@ int main () { -#if OPENSSL_VERSION_NUMBER >= 0x10100004L +#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L) OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL); #else DSO_METHOD_dlfcn(); @@ -16193,7 +16193,7 @@ else #include #include int main() { -#if (OPENSSL_VERSION_NUMBER >= 0x10000000L) +#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10000000L) ENGINE *e; EC_KEY *ek; diff --git a/configure.in b/configure.in index 048c68b47d..1ca8946dca 100644 --- a/configure.in +++ b/configure.in @@ -1616,7 +1616,7 @@ shared library configuration (e.g., LD_LIBRARY_PATH).)], AC_MSG_CHECKING(whether linking with OpenSSL requires -ldl) AC_TRY_LINK([ #include -#if OPENSSL_VERSION_NUMBER >= 0x10100004L +#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L) #include #else #include @@ -1624,7 +1624,7 @@ shared library configuration (e.g., LD_LIBRARY_PATH).)], #endif ], [ -#if OPENSSL_VERSION_NUMBER >= 0x10100004L +#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L) OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL); #else DSO_METHOD_dlfcn(); @@ -1633,7 +1633,7 @@ DSO_METHOD_dlfcn(); [AC_MSG_RESULT(no)], [LIBS="$LIBS -ldl" AC_TRY_LINK([ -#if OPENSSL_VERSION_NUMBER >= 0x10100004L +#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L) #include #else #include @@ -1641,7 +1641,7 @@ DSO_METHOD_dlfcn(); #endif ], [ -#if OPENSSL_VERSION_NUMBER >= 0x10100004L +#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100004L) OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN, NULL); #else DSO_METHOD_dlfcn(); @@ -1769,7 +1769,7 @@ int main() { #include #include int main() { -#if (OPENSSL_VERSION_NUMBER >= 0x10000000L) +#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10000000L) ENGINE *e; EC_KEY *ek;