diff options
author | Darren Tucker <dtucker@dtucker.net> | 2018-11-25 14:05:08 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2018-11-25 14:05:08 +1100 |
commit | 98f878d2272bf8dff21f2a0265d963c29e33fed2 (patch) | |
tree | 3845ffe8f04ea9926daf20918cbc79d1e40ce40c | |
parent | 9e34e0c59ab04514f9de9934a772283f7f372afe (diff) |
Improve OpenSSL_add_all_algorithms check.
OpenSSL_add_all_algorithms() may be a macro so check for that too.
-rw-r--r-- | configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 14e7c4a6..c1427247 100644 --- a/configure.ac +++ b/configure.ac @@ -2705,10 +2705,19 @@ if test "x$openssl" = "xyes" ; then EVP_MD_CTX_copy_ex \ EVP_MD_CTX_init \ HMAC_CTX_init \ - OpenSSL_add_all_algorithms \ RSA_generate_key_ex \ RSA_get_default_method \ ]) + + # OpenSSL_add_all_algorithms may be a macro. + AC_CHECK_FUNC(OpenSSL_add_all_algorithms, + AC_DEFINE(HAVE_OPENSSL_ADD_ALL_ALGORITHMS, 1, [as a function]), + AC_CHECK_DECL(OpenSSL_add_all_algorithms, + AC_DEFINE(HAVE_OPENSSL_ADD_ALL_ALGORITHMS, 1, [as a macro]), , + [[#include <openssl/evp.h>]] + ) + ) + # LibreSSL/OpenSSL 1.1x API AC_CHECK_FUNCS([ \ OPENSSL_init_crypto \ |