php-src/ext/xmlwriter/config.m4

27 lines
756 B
Plaintext
Raw Normal View History

2005-12-02 02:05:26 +00:00
dnl
dnl $Id$
dnl
2005-12-02 02:18:54 +00:00
PHP_ARG_ENABLE(xmlwriter, whether to enable XMLWriter support,
2005-12-03 01:07:00 +00:00
[ --disable-xmlwriter Disable XMLWriter support], yes)
2005-12-02 02:05:26 +00:00
2005-12-02 08:59:35 +00:00
if test -z "$PHP_LIBXML_DIR"; then
PHP_ARG_WITH(libxml-dir, libxml2 install dir,
[ --with-libxml-dir=DIR XMLWriter: libxml2 install prefix], no, no)
fi
2005-12-02 02:05:26 +00:00
2005-12-02 08:59:35 +00:00
if test "$PHP_XMLWRITER" != "no"; then
2005-12-02 02:05:26 +00:00
2005-12-02 08:59:35 +00:00
if test "$PHP_LIBXML" = "no"; then
2005-12-04 00:21:39 +00:00
AC_MSG_ERROR([XMLWriter extension requires LIBXML extension, add --enable-libxml])
2005-12-02 02:05:26 +00:00
fi
2005-12-04 00:21:39 +00:00
PHP_SETUP_LIBXML(XMLWRITER_SHARED_LIBADD, [
2005-12-02 08:59:35 +00: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-12-02 02:05:26 +00:00
fi