]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
configure: Fixed checking if OpenSSL is too old for lib-dcrypt
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 24 Oct 2016 13:57:49 +0000 (16:57 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 24 Oct 2016 13:58:32 +0000 (16:58 +0300)
EVP_PKEY_CTX_set_ec_paramgen_curve_nid() is a macro, so it can't be checked
with AC_CHECK_LIB().

configure.ac

index 12d2156805b207e7e06f486d8d58cbbaec11e11b..d42ebd01cb5b0800a75d80bc5b613b734d471ff5 100644 (file)
@@ -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, [EVP_PKEY_CTX_set_ec_paramgen_curve_nid],
+    AC_CHECK_LIB(ssl, [EVP_PKEY_CTX_new_id],
        [build_dcrypt_openssl="yes"],
        AC_MSG_WARN([No ECC support in OpenSSL - not enabling dcrypt]),
     $SSL_LIBS)