2004-07-14 01:01:30 +08:00
|
|
|
dnl
|
|
|
|
dnl $Id$
|
|
|
|
dnl
|
|
|
|
|
2005-12-02 16:59:26 +08:00
|
|
|
PHP_ARG_ENABLE(xmlwriter, whether to enable XMLWriter support,
|
2005-12-03 09:06:36 +08:00
|
|
|
[ --disable-xmlwriter Disable XMLWriter support], yes)
|
2004-07-14 01:01:30 +08:00
|
|
|
|
2005-12-02 16:59:26 +08:00
|
|
|
if test -z "$PHP_LIBXML_DIR"; then
|
|
|
|
PHP_ARG_WITH(libxml-dir, libxml2 install dir,
|
2013-08-07 02:06:09 +08:00
|
|
|
[ --with-libxml-dir=DIR XMLWriter: libxml2 install prefix], no, no)
|
2005-12-02 16:59:26 +08:00
|
|
|
fi
|
2004-07-14 01:01:30 +08:00
|
|
|
|
|
|
|
if test "$PHP_XMLWRITER" != "no"; then
|
|
|
|
|
2005-12-02 16:59:26 +08:00
|
|
|
if test "$PHP_LIBXML" = "no"; then
|
2005-12-04 08:20:52 +08:00
|
|
|
AC_MSG_ERROR([XMLWriter extension requires LIBXML extension, add --enable-libxml])
|
2004-07-14 01:01:30 +08:00
|
|
|
fi
|
|
|
|
|
2005-12-04 08:20:52 +08:00
|
|
|
PHP_SETUP_LIBXML(XMLWRITER_SHARED_LIBADD, [
|
2005-12-02 16:59:26 +08:00
|
|
|
AC_DEFINE(HAVE_XMLWRITER,1,[ ])
|
|
|
|
PHP_NEW_EXTENSION(xmlwriter, php_xmlwriter.c, $ext_shared)
|
|
|
|
PHP_SUBST(XMLWRITER_SHARED_LIBADD)
|
|
|
|
], [
|
|
|
|
AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
|
|
|
|
])
|
2005-02-24 23:30:24 +08:00
|
|
|
fi
|