Detection: link iconv for libintl

Sometimes required for mingw32 cross-builds
This commit is contained in:
Moritz Bunkus 2011-10-23 00:10:50 +02:00
parent eb846ed82e
commit 72b547b836

View File

@ -5,7 +5,9 @@ AC_CHECK_FUNCS(gettext, gettext_found=yes, gettext_found=no)
if test x"$gettext_found" != xyes ; then
AC_CHECK_LIB(intl, gettext,
[ LIBINTL_LIBS="-lintl";
gettext_found=yes ], gettext_found=no)
gettext_found=yes ],
[ gettext_found=no ],
[ -liconv ])
fi
if test x"$gettext_found" = xyes ; then
AC_CHECK_HEADERS(libintl.h, libintl_h_found=yes, libintl_h_found=no)