cvs: php-src /ext/mbstring config.m4
| From: | Antony Dovgal | Date: | Wed, 26 Oct 2005 13:49:26 +0000 |
| Subject: | cvs: php-src /ext/mbstring config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-34798@lists.php.net to get a copy of this message | ||
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])