configure.ac: link with -liconv for locale_charset()
[gitweb.git] / configure.ac
index 2f433939dc9d9001c7ace83bfeadf567eb90c30c..3f5c644afd2168e010f2333fd93e42fc37bffa67 100644 (file)
@@ -890,7 +890,7 @@ GIT_CONF_SUBST([HAVE_STRINGS_H])
 # and libcharset does
 CHARSET_LIB=
 AC_CHECK_LIB([iconv], [locale_charset],
-       [],
+       [CHARSET_LIB=-liconv],
        [AC_CHECK_LIB([charset], [locale_charset],
                      [CHARSET_LIB=-lcharset])])
 GIT_CONF_SUBST([CHARSET_LIB])