cvs: php4 /ext/gd config.m4
| From: | Moriyoshi Koizumi | Date: | Sat, 19 Apr 2003 04:33:38 +0000 |
| Subject: | cvs: php4 /ext/gd config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20373@lists.php.net to get a copy of this message | ||
moriyoshi Sat Apr 19 00:33:38 2003 EDT
Modified files:
/php4/ext/gd config.m4
Log:
MFBed Rui's patch
Index: php4/ext/gd/config.m4
diff -u php4/ext/gd/config.m4:1.132 php4/ext/gd/config.m4:1.133
--- php4/ext/gd/config.m4:1.132 Fri Apr 4 10:56:10 2003
+++ php4/ext/gd/config.m4 Sat Apr 19 00:33:38 2003
@@ -1,5 +1,5 @@
dnl
-dnl $Id: config.m4,v 1.132 2003/04/04 15:56:10 sniper Exp $
+dnl $Id: config.m4,v 1.133 2003/04/19 04:33:38 moriyoshi Exp $
dnl
dnl
@@ -40,6 +40,9 @@
PHP_ARG_ENABLE(gd-native-ttf, whether to enable truetype string function in GD,
[ --enable-gd-native-ttf GD: Enable TrueType string function.], no, no)
+PHP_ARG_ENABLE(gd-jis-conv, whether to enable japanese encoding conversion in GD,
+[ --enable-gd-jis-conv GD: Enable Japanese encoding conversion.], no, no)
+
dnl
dnl Checks for the configure options
dnl
@@ -225,6 +228,12 @@
fi
])
+AC_DEFUN(PHP_GD_JISX0208,[
+ if test "$PHP_GD_JIS_CONV" = "yes"; then
+ USE_GD_JIS_CONV=1
+ fi
+])
+
AC_DEFUN(PHP_GD_CHECK_VERSION,[
PHP_CHECK_LIBRARY(gd, gdImageString16, [AC_DEFINE(HAVE_LIBGD13, 1, [ ])], [],
[ -L$GD_LIB $GD_SHARED_LIBADD ])
PHP_CHECK_LIBRARY(gd, gdImagePaletteCopy, [AC_DEFINE(HAVE_LIBGD15, 1, [ ])], [],
[ -L$GD_LIB $GD_SHARED_LIBADD ])
@@ -269,6 +278,7 @@
dnl Various checks for GD features
PHP_GD_TTSTR
+ PHP_GD_JISX0208
PHP_GD_JPEG
PHP_GD_PNG
PHP_GD_XPM
@@ -317,6 +327,10 @@
if test -n "$TTF_DIR"; then
GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBTTF"
+ fi
+
+ if test -n "$USE_GD_JIS_CONV"; then
+ GDLIB_CFLAGS="$GDLIB_CFLAGS -DJISX0208"
fi
else