summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 801a011)
raw | patch | inline | side by side (parent: 801a011)
author | Marco Nelissen <marcone@xs4all.nl> | |
Tue, 9 Jun 2009 03:46:38 +0000 (20:46 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 9 Jun 2009 04:18:02 +0000 (21:18 -0700) |
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
(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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 4e728bca35f5f7b01188ef84df85b161266ce305..25fbe3bb6be2b29501965409670b066ae616c570 100644 (file)
--- a/configure.ac
+++ b/configure.ac
# 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], [
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.