From c3286f32ef6e44894389679723aaf5afe101492e Mon Sep 17 00:00:00 2001 From: Rui Hirokawa Date: Sun, 29 Jun 2008 08:21:35 +0000 Subject: implemented again zend-multibyte for PHP 5.3 --- Zend/Zend.m4 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Zend/Zend.m4') diff --git a/Zend/Zend.m4 b/Zend/Zend.m4 index bbb3411a4a..6de6b0cf13 100644 --- a/Zend/Zend.m4 +++ b/Zend/Zend.m4 @@ -154,6 +154,13 @@ AC_ARG_ENABLE(inline-optimization, ZEND_INLINE_OPTIMIZATION=yes ]) +AC_ARG_ENABLE(zend-multibyte, +[ --enable-zend-multibyte Compile with zend multibyte support], [ + ZEND_MULTIBYTE=$enableval +],[ + ZEND_MULTIBYTE=no +]) + AC_MSG_CHECKING([virtual machine dispatch method]) AC_MSG_RESULT($PHP_ZEND_VM) @@ -166,6 +173,9 @@ AC_MSG_RESULT($ZEND_INLINE_OPTIMIZATION) AC_MSG_CHECKING(whether to enable Zend debugging) AC_MSG_RESULT($ZEND_DEBUG) +AC_MSG_CHECKING(whether to enable Zend multibyte) +AC_MSG_RESULT($ZEND_MULTIBYTE) + case $PHP_ZEND_VM in SWITCH) AC_DEFINE(ZEND_VM_KIND,ZEND_VM_KIND_SWITCH,[virtual machine dispatch method]) @@ -200,6 +210,10 @@ if test "$ZEND_MAINTAINER_ZTS" = "yes"; then LIBZEND_CPLUSPLUS_CHECKS fi +if test "$ZEND_MULTIBYTE" = "yes"; then + AC_DEFINE(ZEND_MULTIBYTE, 1, [ ]) +fi + changequote({,}) if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then INLINE_CFLAGS=`echo $ac_n "$CFLAGS $ac_c" | sed s/-O[0-9s]*//` -- cgit v1.2.1