]> git.ipfire.org Git - thirdparty/git.git/commitdiff
configure.ac: don't overwrite NO_CURL option
authorAndreas Herrmann <aherrmann@suse.de>
Wed, 19 Jul 2023 14:29:56 +0000 (16:29 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Jul 2023 17:07:55 +0000 (10:07 -0700)
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>
configure.ac

index 62cc8197f88552f570c77fd9e1bafd9ed88132e0..e85e215f14fc9a925bbf90d608bd8091c72b8151 100644 (file)
@@ -546,6 +546,8 @@ fi
 # git-http-push are not built, and you cannot use http:// and https://
 # transports.
 
+if test -z "$NO_CURL"; then
+
 GIT_STASH_FLAGS($CURLDIR)
 
 AC_CHECK_LIB([curl], [curl_global_init],
@@ -554,6 +556,8 @@ AC_CHECK_LIB([curl], [curl_global_init],
 
 GIT_UNSTASH_FLAGS($CURLDIR)
 
+fi
+
 GIT_CONF_SUBST([NO_CURL])
 
 if test -z "$NO_CURL"; then