AC_CHECK_FUNCS checks availability of each function
in argument list and defines HAVE_function macro.
AC_CHECK_FUNC takes single function as an argument and
doesn't automatically define any macros.
When we check for availability of a single function and
define own macro, it is enough to use AC_CHECK_FUNC.
Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <
20200121080828.1310-1-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19333.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
fi
have_crypto_aead_modes="yes"
- AC_CHECK_FUNCS(
+ AC_CHECK_FUNC(
[EVP_aes_256_gcm],
,
- [have_crypto_aead_modes="no"; break]
+ [have_crypto_aead_modes="no"]
)
have_export_keying_material="yes"
- AC_CHECK_FUNCS(
+ AC_CHECK_FUNC(
[SSL_export_keying_material],
,
- [have_export_keying_material="no"; break]
+ [have_export_keying_material="no"]
)
AC_CHECK_FUNCS(
)
have_export_keying_material="yes"
- AC_CHECK_FUNCS(
+ AC_CHECK_FUNC(
[mbedtls_ssl_conf_export_keys_ext_cb],
,
- [have_export_keying_material="no"; break]
+ [have_export_keying_material="no"]
)
CFLAGS="${saved_CFLAGS}"