From: Sascha Schumann Date: Wed, 7 Feb 2001 16:01:29 +0000 (+0000) Subject: Improve use of $withval. This also cures the problem of adding -Lyes/lib X-Git-Tag: php-4.0.5RC1~338 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=271617483aff46e0e82fcfe2849ea050c6ca2cfd;p=php Improve use of $withval. This also cures the problem of adding -Lyes/lib to $LIBS. --- diff --git a/ext/domxml/config.m4 b/ext/domxml/config.m4 index 3ded83a560..d2e874d059 100644 --- a/ext/domxml/config.m4 +++ b/ext/domxml/config.m4 @@ -56,7 +56,6 @@ if test "$PHP_DOM" != "no"; then AC_ADD_LIBRARY_WITH_PATH($DOM_LIBNAME, $DOMXML_DIR/lib, DOMXML_SHARED_LIBADD) if test $HAVE_ZLIB; then - old_withval=$withval AC_MSG_CHECKING([for zlib (needed by DOM support)]) AC_ARG_WITH(zlib-dir, [ --with-zlib-dir[=DIR] zlib dir for libxml or include zlib support],[ @@ -71,10 +70,9 @@ if test "$PHP_DOM" != "no"; then AC_MSG_RESULT(no) AC_MSG_WARN(If configure fails try --with-zlib=) ]) - withval=$old_withval else echo "checking for libz needed by libxml ... already zlib support" - LIBS="$LIBS -L$withval/lib -lz" + LIBS="$LIBS -lz" fi AC_DEFINE(HAVE_DOMXML,1,[ ])