Try to honor predefined CPPFLAGS when finding correct iconv flags
authorAlexander Bokovoy <ab@samba.org>
Thu, 14 Aug 2003 20:56:04 +0000 (20:56 +0000)
committerAlexander Bokovoy <ab@samba.org>
Thu, 14 Aug 2003 20:56:04 +0000 (20:56 +0000)
(This used to be commit ee362ce47596a90f60b0dd3b414503547863e01b)

source3/configure.in

index d8223a241de2a01b3f1eeb91a411d552729f7d54..8e147cabff9f606bd1552b935fa125adb35c33ef 100644 (file)
@@ -1592,6 +1592,9 @@ main(){
         samba_cv_HAVE_NATIVE_ICONV=yes,samba_cv_HAVE_NATIVE_ICONV=no,samba_cv_HAVE_NATIVE_ICONV=cross)])
         LIBS="$ic_save_LIBS"
         if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
+               CPPFLAGS=$save_CPPFLAGS
+               CFLAGS_ADD_DIR(CPPFLAGS, "$i/include")
+               export CPPFLAGS
            AC_DEFINE(HAVE_NATIVE_ICONV,1,[Whether to use native iconv])
            break
         fi