summaryrefslogtreecommitdiff
path: root/Zend/Zend.m4
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/Zend.m4')
-rw-r--r--Zend/Zend.m414
1 files changed, 14 insertions, 0 deletions
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]*//`