summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-10-06 13:49:59 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-10-06 13:49:59 +0000
commit259ff74692aec740fe75d6bda9a096bb0ada22bb (patch)
tree968c2d66e69ae9c926edab3dcac7cefbf9d00e11
parent3fbe8e30c1ca9974ae8820d94ef13b805a5858f2 (diff)
downloadlibxml2-259ff74692aec740fe75d6bda9a096bb0ada22bb.tar.gz
fixed configure.in, Daniel
-rw-r--r--configure.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index ad1fd330..eb5f5d2f 100644
--- a/configure.in
+++ b/configure.in
@@ -45,6 +45,7 @@ dnl Checks for zlib library.
_cppflags="${CPPFLAGS}"
_ldflags="${LDFLAGS}"
+
AC_ARG_WITH(zlib,
[ --with-zlib[=DIR] use libz in DIR],[
if test "$withval" != "no" -a "$withval" != "yes"; then
@@ -52,7 +53,10 @@ AC_ARG_WITH(zlib,
CPPFLAGS="${CPPFLAGS} -I$withval/include"
LDFLAGS="${LDFLAGS} -L$withval/lib"
fi
- if test "$withval" != "no"; then
+])
+if test "$with_zlib" = "no"; then
+ echo "Disabling compression support"
+else
AC_CHECK_HEADERS(zlib.h,
AC_CHECK_LIB(z, gzread,[
AC_DEFINE(HAVE_LIBZ)
@@ -67,8 +71,7 @@ AC_ARG_WITH(zlib,
else
Z_LIBS="-lz"
fi]))
- fi
-])
+fi
AC_SUBST(Z_CFLAGS)
AC_SUBST(Z_LIBS)
@@ -244,7 +247,7 @@ dnl Aloow to disable various pieces
dnl
AC_ARG_WITH(history, [ --with-history Add history support to xmllint shell(off)])
-if test "$with_ftp" = "yes" ; then
+if test "$with_history" = "yes" ; then
echo Enabling xmllint shell history
dnl check for terminal library. this is a very cool solution
dnl from octave's configure.in