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 --- ChangeLog | 5 +++++ configure.ac | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5147b09e4..e0ad7a218 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-04-08 Oliver Kiddle + + * 21107: configure.ac: handle case where there is a native iconv + but GNU libiconv's iconv.h is picked up first + 2005-04-06 Clint Adams * 21096: Completion/X/Command/_gv: update for gv 3.6, 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