Commit 6ff88de7 authored by Jakub Narębski's avatar Jakub Narębski Committed by Junio C Hamano

autoconf: Set NO_ICONV if iconv is found neither in libc, nor in libiconv

Signed-off-by: Jakub Narębski's avatarJakub Narebski <[email protected]>
Signed-off-by: default avatarJunio C Hamano <[email protected]>
parent 7bbf88c5
......@@ -143,9 +143,12 @@ AC_CHECK_LIB([expat], [XML_ParserCreate],
# Define NEEDS_LIBICONV if linking with libc is not enough (Darwin).
# Define NO_ICONV if neither libc nor libiconv support iconv.
AC_CHECK_LIB([c], [iconv],
AC_CHECK_LIB([iconv], [iconv],
test -n "$NEEDS_LIBICONV" && LIBS="$LIBS -liconv"
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment