From f3c3ed2c03147f8200816764f30a5f7578c2bd19 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 29 Nov 1999 05:10:18 +0000 Subject: Of the "zlib" functions we use that aren't in all versions of "zlib", "gzgets()" is the one most recently added; it was added in 1.0.9. Check for it, rather than for a list of functions, when checking for "zlib" support - if you check for N functions, and they're all there, you get N "-lz"s added to the list of libraries with which to link. Indicate in the README that "zlib" versions prior to 1.0.9 definitely won't work. svn path=/trunk/; revision=1144 --- acinclude.m4 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 index b97e0ed41a..59ef086002 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -197,11 +197,15 @@ AC_DEFUN(AC_ETHEREAL_PCAP_CHECK, AC_DEFUN(AC_ETHEREAL_ZLIB_CHECK, [ AC_CHECK_HEADER(zlib.h,,enable_zlib=no) - AC_CHECK_LIB(z, gzopen,,enable_zlib=no) + + dnl + dnl Check for "gzgets()" in zlib, because we need it, but + dnl some older versions of zlib don't have it. It appears + dnl from the ChangeLog that any released version of zlib + dnl with "gzgets()" should have the other routines we + dnl depend on, such as "gzseek()", "gztell()", and "zError()". + dnl AC_CHECK_LIB(z, gzseek,,enable_zlib=no) - AC_CHECK_LIB(z, gztell,,enable_zlib=no) - AC_CHECK_LIB(z, gzgets,,enable_zlib=no) - AC_CHECK_LIB(z, zError,,enable_zlib=no) ]) # -- cgit v1.2.3