summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorRui Hirokawa <hirokawa@php.net>2001-11-25 22:20:27 +0000
committerRui Hirokawa <hirokawa@php.net>2001-11-25 22:20:27 +0000
commitac39c13b1c9f0f5947d8a37419bc8f4981ef71e6 (patch)
treed29c39d5290bd23dd2ef479cf1f9b75c41fe1536 /ext
parentfeee0f5a0828357d4ca13aced693d4744f555e68 (diff)
downloadphp-git-ac39c13b1c9f0f5947d8a37419bc8f4981ef71e6.tar.gz
fixed a link error in configure script.
Diffstat (limited to 'ext')
-rw-r--r--ext/xslt/config.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/xslt/config.m4 b/ext/xslt/config.m4
index 2768ebd941..f420ce5b2e 100644
--- a/ext/xslt/config.m4
+++ b/ext/xslt/config.m4
@@ -81,8 +81,12 @@ if test "$PHP_XSLT" != "no"; then
fi
AC_DEFINE(HAVE_SABLOT_BACKEND, 1, [ ])
- AC_CHECK_LIB(sablot, SablotSetEncoding, AC_DEFINE(HAVE_SABLOT_SET_ENCODING, 1, [ ]))
-
+ if test "$found_expat" = "yes"; then
+ old_LIBS=$LIBS
+ LIBS="$LIBS -lexpat"
+ AC_CHECK_LIB(sablot, SablotSetEncoding, AC_DEFINE(HAVE_SABLOT_SET_ENCODING, 1, [ ]))
+ LIBS=$old_LIBS
+ fi
fi
PHP_ADD_INCLUDE($XSLT_DIR/include)