Skip to content

Commit 934f82a

Browse files
Marco Nelissengitster
authored andcommitted
fix handling of iconv configuration options
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 801a011 commit 934f82a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ AC_SUBST(NO_EXPAT)
385385
# some Solaris installations).
386386
# Define NO_ICONV if neither libc nor libiconv support iconv.
387387

388+
if test -z "$NO_ICONV"; then
389+
388390
GIT_STASH_FLAGS($ICONVDIR)
389391

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

436+
if test -n "$NO_ICONV"; then
437+
NEEDS_LIBICONV=
438+
fi
439+
440+
fi
441+
434442
#
435443
# Define NO_DEFLATE_BOUND if deflateBound is missing from zlib.
436444

0 commit comments

Comments
 (0)