From c18de644f858b8015035ab758f4ffdf4797e3e07 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 18 Jul 2008 16:41:24 +0200 Subject: [PATCH] Attempt to fix bug 5624 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit On SLES8 adding -I/usr/include generates warnings later on which make AC_TRY_RUN_STRICT fail later. Thanks to Björn Jacke for reporting this. Volker --- source/configure.in | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source/configure.in b/source/configure.in index 986facf..77eba77 100644 --- a/source/configure.in +++ b/source/configure.in @@ -2193,7 +2193,9 @@ for i in $ICONV_LOOK_DIRS ; do # This is here to handle -withval stuff for --with-libiconv # Perhaps we should always add a -L - CPPFLAGS="$save_CPPFLAGS -I$i/include" + if test x$i != x/usr ; then + CPPFLAGS="$save_CPPFLAGS -I$i/include" + fi # Check lib and lib32 library variants to cater for IRIX ABI-specific # installation paths. This gets a little tricky since we might have iconv @@ -2222,7 +2224,9 @@ for i in $ICONV_LOOK_DIRS ; do if test x"$ICONV_FOUND" = "xyes" ; then iconv_current_LDFLAGS="-L$i/$libext" - iconv_current_CPPFLAGS="-I$i/include" + if test x$i != x/usr ; then + iconv_current_CPPFLAGS="-I$i/include" + fi if test x"$jm_cv_lib_iconv" != x; then iconv_current_LIBS="$LIBS -l$jm_cv_lib_iconv" -- 1.5.5