diff options
author | foobar <sniper@php.net> | 2001-07-27 14:02:44 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2001-07-27 14:02:44 +0000 |
commit | 80b09d007fcd9c91bb079658654fdebc96235127 (patch) | |
tree | 9b6a2b609cefa61515f58b3ce584d45d2b57f466 | |
parent | ca5fd10e1dc1914c68a29b201a0932d0d06beaa9 (diff) | |
download | php-git-80b09d007fcd9c91bb079658654fdebc96235127.tar.gz |
Simplified this a bit and made more consistent.
-rw-r--r-- | ext/domxml/config.m4 | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/ext/domxml/config.m4 b/ext/domxml/config.m4 index ad94373c9c..55d81b5c61 100644 --- a/ext/domxml/config.m4 +++ b/ext/domxml/config.m4 @@ -28,12 +28,8 @@ if test "$PHP_DOM" != "no"; then if test -r $PHP_DOM/include/libxml/tree.h; then DOMXML_DIR=$PHP_DOM else - AC_MSG_CHECKING(for DOM in default path) for i in /usr/local /usr; do - if test -r $i/include/libxml/tree.h; then - DOMXML_DIR=$i - AC_MSG_RESULT(found in $i) - fi + test -r $i/include/libxml/tree.h && DOMXML_DIR=$i done fi @@ -44,23 +40,22 @@ if test "$PHP_DOM" != "no"; then PHP_DOM_CHECK_VERSION - PHP_ADD_INCLUDE($DOMXML_DIR/include) - if test -f $DOMXML_DIR/lib/libxml2.a -o -f $DOMXML_DIR/lib/libxml2.s? ; then DOM_LIBNAME=xml2 else DOM_LIBNAME=xml fi - PHP_SUBST(DOMXML_SHARED_LIBADD) PHP_ADD_LIBRARY_WITH_PATH($DOM_LIBNAME, $DOMXML_DIR/lib, DOMXML_SHARED_LIBADD) + PHP_ADD_INCLUDE($DOMXML_DIR/include) if test "$PHP_ZLIB_DIR" = "no"; then AC_MSG_ERROR(DOMXML requires ZLIB. Use --with-zlib-dir=<DIR>) + else + PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/lib, DOMXML_SHARED_LIBADD) fi - - PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/lib, DOMXML_SHARED_LIBADD) - + AC_DEFINE(HAVE_DOMXML,1,[ ]) PHP_EXTENSION(domxml, $ext_shared) + PHP_SUBST(DOMXML_SHARED_LIBADD) fi |