From: Rui Hirokawa Date: Sun, 25 Nov 2001 22:20:27 +0000 (+0000) Subject: fixed a link error in configure script. X-Git-Tag: ChangeLog~242 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac39c13b1c9f0f5947d8a37419bc8f4981ef71e6;p=php fixed a link error in configure script. --- 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)