threads / patch / 19753

patchfix handling of iconv configuration options

Subject: [PATCH] fix handling of iconv configuration options

## tl;dr

One message between Jun 9, 2009 and Jun 9, 2009. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Marco Nelissen· Jun 9, 2009, 03:46 UTC · lore

Fix the way in which the configure script handles --without-iconv (and --with-iconv=no), which it used to essentially ignore. Also fix the way the configure script determines the value of NEEDS_LIBICONV, which would be incorrectly set to 'YesPlease' on systems that lack iconv entirely.

Signed-off-by: Marco Nelissen <marcone@xs4all.nl>
---
Take two: use doublequotes in test
 configure.ac |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
Show changes to configure.ac +8 −0
diff --git a/configure.ac b/configure.ac
index 108a97f..bd00eba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -385,6 +385,8 @@ AC_SUBST(NO_EXPAT)
 # some Solaris installations).
 # Define NO_ICONV if neither libc nor libiconv support iconv.

+if test -z "$NO_ICONV"; then
+
 GIT_STASH_FLAGS($ICONVDIR)

 AC_DEFUN([ICONVTEST_SRC], [
@@ -431,6 +433,12 @@ GIT_UNSTASH_FLAGS($ICONVDIR)
 AC_SUBST(NEEDS_LIBICONV)
 AC_SUBST(NO_ICONV)

+if test -n "$NO_ICONV"; then
+    NEEDS_LIBICONV=
+fi
+
+fi
+
 #
 # Define NO_DEFLATE_BOUND if deflateBound is missing from zlib.
-- 
1.6.3.1

← back to recent threads