cvs: php4 /ext/domxml config.m4

From: Date: Fri, 08 Dec 2000 13:09:32 +0000
Subject: cvs: php4 /ext/domxml config.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3029@lists.php.net to get a copy of this message
sniper Fri Dec 8 05:09:32 2000 EDT Modified files: /php4/ext/domxml config.m4 Log: Version checking for domxml. Requires >= 2.2.7 at the moment. Index: php4/ext/domxml/config.m4 diff -u php4/ext/domxml/config.m4:1.18 php4/ext/domxml/config.m4:1.19 --- php4/ext/domxml/config.m4:1.18 Thu Dec 7 02:04:18 2000 +++ php4/ext/domxml/config.m4 Fri Dec 8 05:09:32 2000 @@ -1,6 +1,23 @@ -dnl $Id: config.m4,v 1.18 2000/12/07 10:04:18 steinm Exp $ +dnl $Id: config.m4,v 1.19 2000/12/08 13:09:32 sniper Exp $ dnl config.m4 for extension domxml +AC_DEFUN(PHP_DOM_CHECK_VERSION,[ + old_CPPFLAGS=$CPPFLAGS + CPPFLAGS="-I$DOMXML_DIR/include" + AC_MSG_CHECKING(for libxml version) + AC_EGREP_CPP(yes,[ + #include <libxml/xmlversion.h> + #if LIBXML_VERSION >= 20207 + yes + #endif + ],[ + AC_MSG_RESULT(>= 2.2.7) + ],[ + AC_MSG_ERROR(libxml version 2.2.7 or greater required.) + ]) + CPPFLAGS=$old_CPPFLAGS +]) + PHP_ARG_WITH(dom, for DOM support, [ --with-dom[=DIR] Include DOM support (requires libxml >= 2.2.7). DIR is the libxml install directory, @@ -25,6 +42,8 @@ AC_MSG_ERROR(Please reinstall the libxml >= 2.2.7 distribution) fi + PHP_DOM_CHECK_VERSION + AC_ADD_INCLUDE($DOMXML_DIR/include) PHP_SUBST(DOMXML_SHARED_LIBADD) @@ -52,8 +71,7 @@ LIBS="$LIBS -L$withval/lib -lz" fi - AC_CHECK_LIB(xml, xmlFreeURI, [AC_DEFINE(HAVE_DOMXML,1,[ ])], - [AC_MSG_ERROR(DOM module requires libxml >= 2.2.7)]) + AC_DEFINE(HAVE_DOMXML,1,[ ]) AC_ADD_LIBRARY(z) PHP_EXTENSION(domxml, $ext_shared)

« previous php.cvs (#3029) next »