You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.9 KiB

24 years ago
24 years ago
24 years ago
  1. dnl
  2. dnl $Id$
  3. dnl
  4. PHP_ARG_ENABLE(mbstr_enc_trans, whether to enable encoding translation,
  5. [ --enable-mbstr-enc-trans Enable encoding translation], yes)
  6. PHP_ARG_ENABLE(mbregex, whether to enable multibyte regex support,
  7. [ --enable-mbregex Enable multibyte regex support], yes)
  8. PHP_ARG_WITH(mbstring, whether to enable multibyte string support,
  9. [ --disable-mbstring Disable multibyte string support], yes)
  10. if test "$PHP_MBSTRING" != "no"; then
  11. AC_DEFINE(HAVE_MBSTRING,1,[whether to have multibyte string support])
  12. if test "$PHP_MBSTRING" != "no" -o "$PHP_MBSTRING" = "ja"; then
  13. AC_DEFINE(HAVE_MBSTR_JA,1,[whether to have japanese support])
  14. fi
  15. if test "$PHP_MBSTRING" = "cn"; then
  16. AC_DEFINE(HAVE_MBSTR_CN,1,[whether to have simplified chinese support])
  17. fi
  18. if test "$PHP_MBSTRING" = "tw"; then
  19. AC_DEFINE(HAVE_MBSTR_TW,1,[whether to have traditional chinese support])
  20. fi
  21. if test "$PHP_MBSTRING" = "kr"; then
  22. AC_DEFINE(HAVE_MBSTR_KR,1,[whether to have korean support])
  23. fi
  24. if test "$PHP_MBSTRING" = "ru"; then
  25. AC_DEFINE(HAVE_MBSTR_RU,1,[whether to have russian support])
  26. fi
  27. if test "$PHP_MBSTRING" = "all"; then
  28. AC_DEFINE(HAVE_MBSTR_JA,1,[whether to have japanese support])
  29. AC_DEFINE(HAVE_MBSTR_CN,1,[whether to have simplified chinese support])
  30. AC_DEFINE(HAVE_MBSTR_TW,1,[whether to have traditional chinese support])
  31. AC_DEFINE(HAVE_MBSTR_KR,1,[whether to have korean support])
  32. AC_DEFINE(HAVE_MBSTR_RU,1,[whether to have russian support])
  33. fi
  34. 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, $ext_shared)
  35. else
  36. PHP_MBSTR_ENC_TRANS=no
  37. fi
  38. if test "$PHP_MBSTR_ENC_TRANS" != "no" ; then
  39. AC_DEFINE(MBSTR_ENC_TRANS, 1, [whether to have encoding translation])
  40. fi
  41. if test "$MBREGEX" != "no" ; then
  42. AC_DEFINE(HAVE_MBREGEX, 1, [whether to have multibyte regex support])
  43. fi