cvs: php4 /ext/gd config.m4 gd.c
| From: | Moriyoshi Koizumi | Date: | Sat, 19 Apr 2003 07:44:17 +0000 |
| Subject: | cvs: php4 /ext/gd config.m4 gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20379@lists.php.net to get a copy of this message | ||
moriyoshi Sat Apr 19 03:44:17 2003 EDT
Modified files:
/php4/ext/gd config.m4 gd.c
Log:
Made phpinfo() / gd_info() indicate availability of JIS feature
Index: php4/ext/gd/config.m4
diff -u php4/ext/gd/config.m4:1.134 php4/ext/gd/config.m4:1.135
--- php4/ext/gd/config.m4:1.134 Sat Apr 19 03:15:38 2003
+++ php4/ext/gd/config.m4 Sat Apr 19 03:44:16 2003
@@ -1,5 +1,5 @@
dnl
-dnl $Id: config.m4,v 1.134 2003/04/19 07:15:38 moriyoshi Exp $
+dnl $Id: config.m4,v 1.135 2003/04/19 07:44:16 moriyoshi Exp $
dnl
dnl
@@ -230,7 +230,7 @@
AC_DEFUN(PHP_GD_JISX0208,[
if test "$PHP_GD_JIS_CONV" = "yes"; then
- USE_GD_JIS_CONV=1
+ USE_GD_JIS_CONV=1
fi
])
@@ -330,6 +330,7 @@
fi
if test -n "$USE_GD_JIS_CONV"; then
+ AC_DEFINE(USE_GD_JISX0208, 1, [ ])
GDLIB_CFLAGS="$GDLIB_CFLAGS -DJISX0208"
fi
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.267 php4/ext/gd/gd.c:1.268
--- php4/ext/gd/gd.c:1.267 Sat Apr 5 15:43:53 2003
+++ php4/ext/gd/gd.c Sat Apr 19 03:44:16 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.267 2003/04/05 20:43:53 helly Exp $ */
+/* $Id: gd.c,v 1.268 2003/04/19 07:44:16 moriyoshi Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -500,6 +500,9 @@
#ifdef HAVE_GD_XBM
php_info_print_table_row(2, "XBM Support", "enabled");
#endif
+#if defined(USE_GD_JISX0208) && defined(HAVE_GD_BUNDLED)
+ php_info_print_table_row(2, "JIS-mapped Japanese Font Support", "enabled");
+#endif
php_info_print_table_end();
}
/* }}} */
@@ -569,6 +572,11 @@
add_assoc_bool(return_value, "XBM Support", 1);
#else
add_assoc_bool(return_value, "XBM Support", 0);
+#endif
+#if defined(USE_GD_JISX0208) && defined(HAVE_GD_BUNDLED)
+ add_assoc_bool(return_value, "JIS-mapped Japanese Font Support", 1);
+#else
+ add_assoc_bool(return_value, "JIS-mapped Japanese Font Support", 0);
#endif
}
/* }}} */