php-src/ext/mbstring/config.m4

44 lines
1.7 KiB
Plaintext
Raw Normal View History

2001-11-30 19:00:13 +00:00
dnl
2001-05-01 01:52:55 +00:00
dnl $Id$
2001-11-30 19:00:13 +00:00
dnl
2001-05-01 01:52:55 +00:00
PHP_ARG_ENABLE(mbstring, whether to enable multibyte string support,
[ --disable-mbstring Disable multibyte string support], yes)
if test "$PHP_MBSTRING" != "no"; then
AC_DEFINE(HAVE_MBSTRING,1,[whether to have multibyte string support])
if test "$PHP_MBSTRING" != "no" -o "$PHP_MBSTRING" = "ja"; then
AC_DEFINE(HAVE_MBSTR_JA,1,[whether to have japanese support])
fi
if test "$PHP_MBSTRING" = "cn"; then
AC_DEFINE(HAVE_MBSTR_CN,1,[whether to have simplified chinese support])
fi
if test "$PHP_MBSTRING" = "tw"; then
AC_DEFINE(HAVE_MBSTR_TW,1,[whether to have traditional chinese support])
fi
if test "$PHP_MBSTRING" = "kr"; then
AC_DEFINE(HAVE_MBSTR_KR,1,[whether to have korean support])
fi
if test "$PHP_MBSTRING" = "ru"; then
AC_DEFINE(HAVE_MBSTR_RU,1,[whether to have russian support])
fi
if test "$PHP_MBSTRING" = "all"; then
AC_DEFINE(HAVE_MBSTR_JA,1,[whether to have japanese support])
AC_DEFINE(HAVE_MBSTR_CN,1,[whether to have simplified chinese support])
AC_DEFINE(HAVE_MBSTR_TW,1,[whether to have traditional chinese support])
AC_DEFINE(HAVE_MBSTR_KR,1,[whether to have korean support])
AC_DEFINE(HAVE_MBSTR_RU,1,[whether to have russian support])
fi
PHP_NEW_EXTENSION(mbstring, mbfilter_ja.c mbfilter_cn.c mbfilter_tw.c mbfilter_kr.c mbfilter_ru.c mbfilter.c mbstring.c mbregex.c php_mbregex.c html_entities.c php_unicode.c, $ext_shared)
2001-05-01 01:52:55 +00:00
fi
2002-07-17 06:01:37 +00:00
PHP_ARG_ENABLE(mbregex, whether to enable multibyte regex support,
2002-09-19 20:14:35 +00:00
[ --disable-mbregex Disable multibyte regex support], yes, no)
2002-07-17 06:01:37 +00:00
2002-10-10 16:57:52 +00:00
if test "$PHP_MBREGEX" != "no" ; then
AC_DEFINE(HAVE_MBREGEX, 1, [whether to have multibyte regex support])
fi