]> granicus.if.org Git - php/commitdiff
Improve use of $withval. This also cures the problem of adding -Lyes/lib
authorSascha Schumann <sas@php.net>
Wed, 7 Feb 2001 16:01:29 +0000 (16:01 +0000)
committerSascha Schumann <sas@php.net>
Wed, 7 Feb 2001 16:01:29 +0000 (16:01 +0000)
to $LIBS.

ext/domxml/config.m4

index 3ded83a560533c069dfc38abd5166251fa15db88..d2e874d059dc8530a94180deaff498808d88edfc 100644 (file)
@@ -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=<DIR>)
     ])
-    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,[ ])