moriyoshi               Thu Oct 31 15:23:53 2002 EDT

  Modified files:              
    /php4/ext/iconv     config.m4 
  Log:
  Fixed library capability detection behaviour.
  # Whew! I've fixed all the known problems.
  # And should I become a maintainer of this module? 
  
  
  
Index: php4/ext/iconv/config.m4
diff -u php4/ext/iconv/config.m4:1.18 php4/ext/iconv/config.m4:1.19
--- php4/ext/iconv/config.m4:1.18       Tue Oct 29 11:18:12 2002
+++ php4/ext/iconv/config.m4    Thu Oct 31 15:23:53 2002
@@ -1,5 +1,5 @@
 dnl
-dnl $Id: config.m4,v 1.18 2002/10/29 16:18:12 moriyoshi Exp $
+dnl $Id: config.m4,v 1.19 2002/10/31 20:23:53 moriyoshi Exp $
 dnl
 
 PHP_ARG_WITH(iconv, for iconv support,
@@ -14,7 +14,8 @@
   ])
 
   if test "$iconv_avail" != "no"; then
-
+    iconv_cflags_save="$CFLAGS"
+    CFLAGS="$CFLAGS $INCLUDES"
     AC_MSG_CHECKING([if iconv supports errno])
     AC_TRY_RUN([
 #define LIBICONV_PLUG
@@ -106,6 +107,8 @@
         AC_DEFINE([PHP_ICONV_IMPL],["glibc"],[Which iconv implementation to use])
         ;;
     esac
+
+    CFLAGS="$iconv_cflags_save"
 
     PHP_NEW_EXTENSION(iconv, iconv.c, $ext_shared)
     PHP_SUBST(ICONV_SHARED_LIBADD)



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to