Changed iconv search

This commit is contained in:
Michiel Broek 2007-08-25 13:13:25 +00:00
parent 4771af7cec
commit 5835a1ed72

View File

@ -196,13 +196,13 @@ fi
# #
# Support for iconv, check libc first. # Support for iconv, check libc first.
# #
AC_CHECK_FUNC(iconv_open,result=yes,
AC_SEARCH_LIBS(iconv_open,iconv,result=yes,result=no)
# AC_CHECK_LIB(iconv,iconv_open,result=yes,result=no)
if test "$result" = "yes"; then
# LIBS="$LIBS -liconv"
AC_CHECK_HEADERS(iconv.h) AC_CHECK_HEADERS(iconv.h)
fi AC_CHECK_FUNC(iconv_open,,
AC_SEARCH_LIBS(iconv_open, iconv)
# AC_CHECK_LIB(iconv,iconv_open,result=yes,result=no)
# if test "$result" = "yes"; then
# LIBS="$LIBS -liconv"
# fi
) )