From f8e0b1843969d3d1c6311b18eb19c320b56570f5 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 2 Sep 2002 22:45:46 +0000 Subject: [PATCH] AC_SUBST HAVE_LIBZ for curl-config.in --- configure.in | 4 +++- curl-config.in | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index f4702b768..d07a0c8ba 100644 --- a/configure.in +++ b/configure.in @@ -536,7 +536,9 @@ fi dnl AC_CHECK_FUNC(gzread, , AC_CHECK_LIB(z, gzread)) AC_CHECK_LIB(z, gzread, [AM_CONDITIONAL(CONTENT_ENCODING, true) AC_DEFINE(HAVE_LIBZ) - LIBS="$LIBS -lz"]) + LIBS="$LIBS -lz" + HAVE_LIBZ="1" + AC_SUBST(HAVE_LIBZ)]) dnl Default is to try the thread-safe versions of a few functions OPT_THREAD=on diff --git a/curl-config.in b/curl-config.in index f1b7de2a2..052bf345c 100644 --- a/curl-config.in +++ b/curl-config.in @@ -66,6 +66,9 @@ while test $# -gt 0; do if test "@IPV6_ENABLED@" = "1"; then echo "IPv6" fi + if test "@HAVE_LIBZ@" = "1"; then + echo "libz" + fi if test "@CURL_DISABLE_HTTP@" = "1"; then echo "HTTP-disabled" fi -- 2.34.1