From: Miroslav Lichvar Date: Thu, 2 Sep 2021 08:36:03 +0000 (+0200) Subject: configure: fix SIV detection in gnutls X-Git-Tag: 4.2-pre1~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fc30baba8419e7183a9e1ad63663fc40f384b06;p=thirdparty%2Fchrony.git configure: fix SIV detection in gnutls gnutls_aead_cipher_init() is declared in gnutls/crypto.h. If the compiler handles implicit declarations as errors, the SIV support was not detected. Fix the check to use the correct header. --- diff --git a/configure b/configure index 5b8948f0..282cc529 100755 --- a/configure +++ b/configure @@ -955,7 +955,7 @@ if [ $feat_ntp = "1" ] && [ $feat_nts = "1" ] && [ $try_gnutls = "1" ]; then add_def HAVE_SIV add_def HAVE_NETTLE_SIV_CMAC else - if test_code 'SIV in gnutls' 'gnutls/gnutls.h' \ + if test_code 'SIV in gnutls' 'gnutls/crypto.h' \ "$test_cflags" "$test_link" ' return gnutls_aead_cipher_init(NULL, GNUTLS_CIPHER_AES_128_SIV, NULL);' then