From: Lev Stipakov <l...@openvpn.net>

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 <l...@openvpn.net>
---
 configure.ac | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 98fd39ce..3c057295 100644
--- a/configure.ac
+++ b/configure.ac
@@ -906,17 +906,17 @@ if test "${with_crypto_library}" = "openssl"; then
        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(
@@ -1018,10 +1018,10 @@ elif test "${with_crypto_library}" = "mbedtls"; then
        )
 
        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}"
-- 
2.17.1



_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to