git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] configure.ac: Fix --without-iconv

From
BKBernd Kuhls <bernd.kuhls@writeme.com>
Date
Jan 16, 2017, 19:56 UTC
Message-ID
<20170116195638.3713-2-bernd.kuhls@writeme.com>
In-Reply-To
<20170116195638.3713-1-bernd.kuhls@writeme.com>

GIT_PARSE_WITH(iconv)) sets NO_ICONV=YesPlease in https://github.com/git/git/blob/maint/configure.ac#L327

But the command GIT_CONF_SUBST([NO_ICONV]) in https://github.com/git/git/blob/maint/configure.ac#L618

is only executed when NO_ICONV is an empty variable https://github.com/git/git/blob/maint/configure.ac#L578

which has the effect that NO_ICONV=YesPlease is not written to config.mak.autogen which breaks compilation in systems without iconv.

Signed-off-by: Bernd Kuhls <bernd.kuhls@writeme.com>
---
 configure.ac | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 63e71a472..419469315 100644
--- a/configure.ac
+++ b/configure.ac
@@ -614,15 +614,15 @@ 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=
 fi
 
 fi
 
+GIT_CONF_SUBST([NEEDS_LIBICONV])
+GIT_CONF_SUBST([NO_ICONV])
+
 #
 # Define NO_DEFLATE_BOUND if deflateBound is missing from zlib.
 
-- 
2.11.0
Previous: Bernd KuhlsNext: Jeff King
Message 2 of 3 in “configure.ac: fix old iconv check”
  1. 1/2 configure.ac: fix old iconv checkBernd Kuhls, Jan 16, 2017
  2. 2/2 configure.ac: Fix --without-iconvBernd Kuhls, Jan 16, 2017
  3. Jeff KingJan 16, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.