From: Timo Sirainen Date: Sat, 22 Oct 2016 09:58:40 +0000 (+0300) Subject: configure: Improved checking if OpenSSL is too old for lib-dcrypt X-Git-Tag: 2.2.26~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9af3c0b71a3bfe361e101cf82c569485a998ba1c;p=thirdparty%2Fdovecot%2Fcore.git configure: Improved checking if OpenSSL is too old for lib-dcrypt Some OpenSSL versions had EC_KEY_new, but not other needed functions. --- diff --git a/configure.ac b/configure.ac index 75e34f3ef5..12d2156805 100644 --- a/configure.ac +++ b/configure.ac @@ -1716,7 +1716,7 @@ if test $want_openssl != no && test $have_ssl = no; then AC_CHECK_LIB(ssl, SSL_COMP_free_compression_methods, [ AC_DEFINE(HAVE_SSL_COMP_FREE_COMPRESSION_METHODS,, [Build with SSL_COMP_free_compression_methods() support]) ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, [EC_KEY_new], + AC_CHECK_LIB(ssl, [EVP_PKEY_CTX_set_ec_paramgen_curve_nid], [build_dcrypt_openssl="yes"], AC_MSG_WARN([No ECC support in OpenSSL - not enabling dcrypt]), $SSL_LIBS)