xref: /PHP-7.2/ext/xmlreader/config.m4 (revision 5673c641)
1dnl
2dnl $Id$
3dnl
4
5PHP_ARG_ENABLE(xmlreader, whether to enable XMLReader support,
6[  --disable-xmlreader     Disable XMLReader support], yes)
7
8if test -z "$PHP_LIBXML_DIR"; then
9  PHP_ARG_WITH(libxml-dir, libxml2 install dir,
10  [  --with-libxml-dir=DIR   XMLReader: libxml2 install prefix], no, no)
11fi
12
13if test "$PHP_XMLREADER" != "no"; then
14
15  if test "$PHP_LIBXML" = "no"; then
16    AC_MSG_ERROR([XMLReader extension requires LIBXML extension, add --enable-libxml])
17  fi
18
19  PHP_SETUP_LIBXML(XMLREADER_SHARED_LIBADD, [
20    AC_DEFINE(HAVE_XMLREADER,1,[ ])
21    PHP_NEW_EXTENSION(xmlreader, php_xmlreader.c, $ext_shared)
22    PHP_ADD_EXTENSION_DEP(xmlreader, dom, true)
23    PHP_SUBST(XMLREADER_SHARED_LIBADD)
24  ], [
25    AC_MSG_ERROR([libxml2 not found. Please check your libxml2 installation.])
26  ])
27fi
28