From 2ffabb05d05f01cea307a29b0a40b70fa5cdccb1 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 19 Oct 2006 20:53:36 +0000 Subject: [PATCH] * Check for zlib if available. --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f4ee44b..5d6afea 100644 --- a/configure.ac +++ b/configure.ac @@ -25,7 +25,7 @@ if test "$build" != "$host" -a "${PKG_CONFIG_LIBDIR}" = ""; then export PKG_CONFIG_LIBDIR=/dev/null fi -AC_CHECK_HEADERS(getopt.h sys/ioctl.h) +AC_CHECK_HEADERS(getopt.h sys/ioctl.h zlib.h) AC_CHECK_FUNCS(getopt_long, [AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)], @@ -34,6 +34,10 @@ AC_CHECK_FUNCS(getopt_long, GETOPT_LIBS="${GETOPT_LIBS} -lgnugetopt"])]) AC_SUBST(GETOPT_LIBS) +AC_CHECK_LIB(z, gzopen, + [ZLIB_LIBS="${ZLIB_LIBS} -lz"]) +AC_SUBST(ZLIB_LIBS) + AC_CACHE_CHECK([for TIOCGWINSZ], [ac_cv_have_tiocgwinsz], [AC_TRY_COMPILE(