xref: /PHP-8.2/ext/xmlwriter/config.m4 (revision 75fb7486)
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
9  if test "$PHP_LIBXML" = "no"; then
10    AC_MSG_ERROR([XMLWriter extension requires LIBXML extension, add --with-libxml])
11  fi
12
13  PHP_SETUP_LIBXML(XMLWRITER_SHARED_LIBADD, [
14    AC_DEFINE(HAVE_XMLWRITER,1,[ ])
15    PHP_NEW_EXTENSION(xmlwriter, php_xmlwriter.c, $ext_shared)
16    PHP_SUBST(XMLWRITER_SHARED_LIBADD)
17  ])
18fi
19