]> git.ipfire.org Git - thirdparty/git.git/commitdiff
configure.ac: always save NO_ICONV to config.status
authorAndreas Herrmann <aherrmann@suse.de>
Wed, 19 Jul 2023 14:29:58 +0000 (16:29 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Jul 2023 17:07:55 +0000 (10:07 -0700)
In case 'configure --with-iconv=no' is used, NO_ICONV is not saved to
config.status and thus git is built with iconv support.

Always save NO_ICONV to config.status to honor what user selected
during configure step.

Signed-off-by: Andreas Herrmann <aherrmann@suse.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
configure.ac

index e85e215f14fc9a925bbf90d608bd8091c72b8151..276593cd9dd935a283620f3b9d25b09987c04bf2 100644 (file)
@@ -644,7 +644,6 @@ LIBS="$old_LIBS"
 GIT_UNSTASH_FLAGS($ICONVDIR)
 
 GIT_CONF_SUBST([NEEDS_LIBICONV])
-GIT_CONF_SUBST([NO_ICONV])
 
 if test -n "$NO_ICONV"; then
     NEEDS_LIBICONV=
@@ -652,6 +651,8 @@ fi
 
 fi
 
+GIT_CONF_SUBST([NO_ICONV])
+
 #
 # Define NO_DEFLATE_BOUND if deflateBound is missing from zlib.