configure.ac: don't overwrite NO_CURL option

Even if 'configure --with-curl=no' was run, curl support is used, because library detection overwrites it. Avoid this overwrite. Configure should obey what the user has specified. Signed-off-by: Andreas Herrmann <aherrmann@suse.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Andreas Herrmann committed Jul 19, 2023 at 16:29 UTC 92d8f00a1118b47fed5806b0830cdccf810500d3
1 file changed +4
configure.ac
+4
@@ -546,6 +546,8 @@ fi
546 # git-http-push are not built, and you cannot use http:// and https://
547 # transports.
548
549 +if test -z "$NO_CURL"; then
550 +
551 GIT_STASH_FLAGS($CURLDIR)
552
553 AC_CHECK_LIB([curl], [curl_global_init],
@@ -554,6 +556,8 @@ AC_CHECK_LIB([curl], [curl_global_init],
556
557 GIT_UNSTASH_FLAGS($CURLDIR)
558
559 +fi
560 +
561 GIT_CONF_SUBST([NO_CURL])
562
563 if test -z "$NO_CURL"; then