Mercurial > dovecot > core-2.2
comparison configure.ac @ 22859:c7aa25186973
configure.ac: Add SSL_CTX_set_min_proto_version detection
author | Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
---|---|
date | Thu, 30 Nov 2017 11:15:50 +0200 |
parents | 11dcd0b74b86 |
children |
comparison
equal
deleted
inserted
replaced
22858:aa3c9a064b17 | 22859:c7aa25186973 |
---|---|
1767 ]) | 1767 ]) |
1768 LIBS=$old_LIBS | 1768 LIBS=$old_LIBS |
1769 ]) | 1769 ]) |
1770 if test $i_cv_have_ssl_new_mem_funcs = yes; then | 1770 if test $i_cv_have_ssl_new_mem_funcs = yes; then |
1771 AC_DEFINE(HAVE_SSL_NEW_MEM_FUNCS,, [Define if CRYPTO_set_mem_functions has new style parameters]) | 1771 AC_DEFINE(HAVE_SSL_NEW_MEM_FUNCS,, [Define if CRYPTO_set_mem_functions has new style parameters]) |
1772 fi | |
1773 | |
1774 # SSL_CTX_set_min_proto_version is also a macro so AC_CHECK_LIB fails here. | |
1775 AC_CACHE_CHECK([whether SSL_CTX_set_min_proto_version exists],i_cv_have_ssl_ctx_set_min_proto_version,[ | |
1776 old_LIBS=$LIBS | |
1777 LIBS="$LIBS -lssl" | |
1778 AC_TRY_LINK([ | |
1779 #include <openssl/ssl.h> | |
1780 ], [ | |
1781 SSL_CTX_set_min_proto_version((void*)0, 0); | |
1782 ], [ | |
1783 i_cv_have_ssl_ctx_set_min_proto_version=yes | |
1784 ], [ | |
1785 i_cv_have_ssl_ctx_set_min_proto_version=no | |
1786 ]) | |
1787 LIBS=$old_LIBS | |
1788 ]) | |
1789 if test $i_cv_have_ssl_ctx_set_min_proto_version = yes; then | |
1790 AC_DEFINE(HAVE_SSL_CTX_SET_MIN_PROTO_VERSION,, [Define if you have SSL_CTX_set_min_proto_version]) | |
1772 fi | 1791 fi |
1773 | 1792 |
1774 AC_CHECK_LIB(ssl, ERR_remove_thread_state, [ | 1793 AC_CHECK_LIB(ssl, ERR_remove_thread_state, [ |
1775 AC_DEFINE(HAVE_OPENSSL_ERR_REMOVE_THREAD_STATE,, [Define if you have ERR_remove_thread_state]) | 1794 AC_DEFINE(HAVE_OPENSSL_ERR_REMOVE_THREAD_STATE,, [Define if you have ERR_remove_thread_state]) |
1776 ],, $SSL_LIBS) | 1795 ],, $SSL_LIBS) |