summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-05-02 10:21:52 +0000
committerfoobar <sniper@php.net>2002-05-02 10:21:52 +0000
commitd689414621fb12b56254ac23cd27485fa6bb969b (patch)
treef78f533e91dd7cda7777cf0b175c74fe2b1f6872
parent05729165c3a37db521e57ed79cbb2a907e984487 (diff)
downloadphp-git-d689414621fb12b56254ac23cd27485fa6bb969b.tar.gz
Added the usual search paths where to look for expat.
-rw-r--r--ext/xslt/config.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/xslt/config.m4 b/ext/xslt/config.m4
index 22ab4382f1..3765399963 100644
--- a/ext/xslt/config.m4
+++ b/ext/xslt/config.m4
@@ -55,12 +55,13 @@ if test "$PHP_XSLT" != "no"; then
if test "$PHP_XSLT_SABLOT" != "no"; then
found_expat=no
- for i in $PHP_EXPAT_DIR $XSLT_DIR; do
+ for i in $PHP_EXPAT_DIR $XSLT_DIR /usr/local /usr; do
if test -f $i/lib/libexpat.a -o -f $i/lib/libexpat.$SHLIB_SUFFIX_NAME; then
AC_DEFINE(HAVE_LIBEXPAT2, 1, [ ])
PHP_ADD_INCLUDE($i/include)
PHP_ADD_LIBRARY_WITH_PATH(expat, $i/lib, XSLT_SHARED_LIBADD)
found_expat=yes
+ break
fi
done
@@ -72,6 +73,7 @@ if test "$PHP_XSLT" != "no"; then
if test "$PHP_ICONV" = "no"; then
PHP_ICONV=yes
fi
+
PHP_SETUP_ICONV(XSLT_SHARED_LIBADD, [], [
AC_MSG_ERROR([iconv not found, in order to build sablotron you need the iconv library])
])