xref: /php-src/ext/xmlwriter/config.m4 (revision f66feaec)
1PHP_ARG_ENABLE([xmlwriter],
2  [whether to enable XMLWriter support],
3  [AS_HELP_STRING([--disable-xmlwriter],
4    [Disable XMLWriter support])],
5  [yes])
6
7if test "$PHP_XMLWRITER" != "no"; then
8  PHP_SETUP_LIBXML([XMLWRITER_SHARED_LIBADD], [
9    AC_DEFINE([HAVE_XMLWRITER], [1],
10      [Define to 1 if the PHP extension 'xmlwriter' is available.])
11    PHP_NEW_EXTENSION([xmlwriter], [php_xmlwriter.c], [$ext_shared])
12    PHP_ADD_EXTENSION_DEP(xmlwriter, libxml)
13    PHP_SUBST([XMLWRITER_SHARED_LIBADD])
14  ])
15fi
16