tony2001 Wed Oct 26 09:49:26 2005 EDT
Modified files:
/php-src/ext/mbstring config.m4
Log:
fix #34977 (Compile failure on MacOSX due to use of varargs.h)
http://cvs.php.net/diff.php/php-src/ext/mbstring/config.m4?r1=1.58&r2=1.59&ty=u
Index: php-src/ext/mbstring/config.m4
diff -u php-src/ext/mbstring/config.m4:1.58 php-src/ext/mbstring/config.m4:1.59
--- php-src/ext/mbstring/config.m4:1.58 Sun May 29 19:15:16 2005
+++ php-src/ext/mbstring/config.m4 Wed Oct 26 09:49:19 2005
@@ -1,5 +1,5 @@
dnl
-dnl $Id: config.m4,v 1.58 2005/05/29 23:15:16 sniper Exp $
+dnl $Id: config.m4,v 1.59 2005/10/26 13:49:19 tony2001 Exp $
dnl
AC_DEFUN([PHP_MBSTRING_ADD_SOURCES], [
@@ -61,7 +61,8 @@
AC_DEFUN([PHP_MBSTRING_SETUP_MBREGEX], [
if test "$PHP_MBREGEX" = "yes"; then
AC_CACHE_CHECK(for variable length prototypes and stdarg.h,
cv_php_mbstring_stdarg, [
- AC_TRY_COMPILE([#include <stdarg.h>], [
+ AC_TRY_RUN([
+#include <stdarg.h>
int foo(int x, ...) {
va_list va;
va_start(va, x);
@@ -71,7 +72,7 @@
return 0;
}
int main() { return foo(10, "", 3.14); }
- ], [cv_php_mbstring_stdarg=yes], [cv_php_mbstring_stdarg=no])
+ ], [cv_php_mbstring_stdarg=yes], [cv_php_mbstring_stdarg=no],
[cv_php_mbstring_stdarg=no])
])
AC_CHECK_HEADERS([stdlib.h string.h strings.h unistd.h sys/time.h
sys/times.h])
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php