From cb19345676bc176c70d57bcc1bc348592cfd06eb Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 8 Apr 2005 08:58:56 +0000 Subject: 21107: fix for when there is a native iconv but iconv.h is from GNU libiconv --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 8b967f365..81d5fb2e4 100644 --- a/configure.ac +++ b/configure.ac @@ -743,6 +743,11 @@ if test "x$ac_cv_header_iconv_h" = "xyes"; then if test "x$ac_found_iconv" != "xno"; then LIBS="-liconv $LIBS" fi + else + dnl Handle case where there is a native iconv but iconv.h is from libiconv + AC_CHECK_DECL(_libiconv_version, + [ AC_CHECK_LIB(iconv, libiconv, LIBS="-liconv $LIBS") ],, + [ #include ]) fi fi if test "x$ac_found_iconv" = xyes; then -- cgit 1.4.1