3 @@ -23035,7 +23035,6 @@
4 clean_CPPFLAGS=$CPPFLAGS
9 # Check whether --with-zlib was given.
10 if test ${with_zlib+y}
11 @@ -23045,6 +23044,7 @@
14 if test "$OPT_ZLIB" = "no" ; then
16 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
17 printf "%s\n" "$as_me: WARNING: zlib disabled" >&2;}
19 @@ -23052,6 +23052,21 @@
23 + if test -n "$ZLIB_CFLAGS$ZLIB_LIBS"; then
24 + CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
25 + LIBS="$ZLIB_LIBS $LIBS"
29 +$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
32 +$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
38 if test -z "$OPT_ZLIB" ; then
40 if test -n "$PKG_CONFIG"; then
41 @@ -23344,6 +23359,7 @@
42 printf "%s\n" "$as_me: found both libz and libz.h header" >&6;}
43 curl_zlib_msg="enabled"
48 if test x"$AMFIXLIB" = x1; then
51 @@ -1243,19 +1243,30 @@
52 clean_CPPFLAGS=$CPPFLAGS
53 clean_LDFLAGS=$LDFLAGS
57 AS_HELP_STRING([--with-zlib=PATH],[search for zlib in PATH])
58 AS_HELP_STRING([--without-zlib],[disable use of zlib]),
59 [OPT_ZLIB="$withval"])
61 if test "$OPT_ZLIB" = "no" ; then
63 AC_MSG_WARN([zlib disabled])
65 if test "$OPT_ZLIB" = "yes" ; then
69 + if test -n "$ZLIB_CFLAGS$ZLIB_LIBS"; then
70 + CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
71 + LIBS="$ZLIB_LIBS $LIBS"
74 + AC_DEFINE(HAVE_ZLIB_H, 1, [if you have the zlib.h header file])
75 + AC_DEFINE(HAVE_LIBZ, 1, [if zlib is available])
80 if test -z "$OPT_ZLIB" ; then
81 CURL_CHECK_PKGCONFIG(zlib)
84 AC_MSG_NOTICE([found both libz and libz.h header])
85 curl_zlib_msg="enabled"
90 dnl set variable for use in automakefile(s)