]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
configure: don't try AES-SIV-CMAC in nettle when disabled
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 12 Sep 2023 08:19:09 +0000 (10:19 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 12 Sep 2023 08:31:36 +0000 (10:31 +0200)
Avoid confusing message when --without-nettle is specified.

configure

index e18560feca6ada8b0319e3ce4648220c6782b54e..d84f3448381911df676d6e75c1e3470c4c4cf14f 100755 (executable)
--- a/configure
+++ b/configure
@@ -991,7 +991,7 @@ if [ $feat_ntp = "1" ] && [ $feat_nts = "1" ] && [ $try_gnutls = "1" ]; then
         gnutls_priority_init2((void *)1, "", NULL, GNUTLS_PRIORITY_INIT_DEF_APPEND) +
         gnutls_prf_rfc5705((void *)1, 0, "", 0, "", 16, (void *)2);'
   then
-    if test_code 'AES-SIV-CMAC in nettle' \
+    if [ $try_nettle = "1" ] && test_code 'AES-SIV-CMAC in nettle' \
       'nettle/siv-cmac.h' "" "$LIBS" \
       'siv_cmac_aes128_set_key((void *)1, (void *)2);'
     then