aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-08-18 20:09:44 +0000
committerGuy Harris <guy@alum.mit.edu>2001-08-18 20:09:44 +0000
commit4533ae7c5556f1b3c2474426e543df300f615c55 (patch)
tree24157057103391dabea9c01b3b7b929e9dd601ff /wiretap
parentc290d9c859af4d499fc21b8a529fb5840f03386e (diff)
downloadwireshark-4533ae7c5556f1b3c2474426e543df300f615c55.tar.gz
wireshark-4533ae7c5556f1b3c2474426e543df300f615c55.tar.bz2
wireshark-4533ae7c5556f1b3c2474426e543df300f615c55.zip
If there's no "zlib.h" header, we won't be using zlib, so don't bother
checking for "gzgets()" in zlib. If there is a "zlib.h" header, and there is a "gzgets()" in zlib, check whether we find "gzgets()" in zlib when we link with the GTK+ link flags, and, if not, fail. People often grab XFree86 source and build and install it on their systems, and they appear sometimes to misconfigure XFree86 so that, even on systems with zlib, it assumes there is no zlib, so the XFree86 build process builds and installs its own "mini-zlib" in the X11 library directory. The "mini-zlib" lacks "gzgets()", and that's the zlib with which Ethereal gets linked, so the build of Ethereal fails. svn path=/trunk/; revision=3849
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/acinclude.m425
1 files changed, 15 insertions, 10 deletions
diff --git a/wiretap/acinclude.m4 b/wiretap/acinclude.m4
index 9b3ad08a80..d7a466b866 100644
--- a/wiretap/acinclude.m4
+++ b/wiretap/acinclude.m4
@@ -2,7 +2,7 @@ dnl Macros that test for specific features.
dnl This file is part of the Autoconf packaging for Ethereal.
dnl Copyright (C) 1998-2000 by Gerald Combs.
dnl
-dnl $Id: acinclude.m4,v 1.9 2001/07/27 07:10:13 guy Exp $
+dnl $Id: acinclude.m4,v 1.10 2001/08/18 20:09:44 guy Exp $
dnl
# Configure paths for GLIB
@@ -261,14 +261,19 @@ AC_DEFUN(AC_WIRETAP_PCAP_CHECK,
#
AC_DEFUN(AC_WIRETAP_ZLIB_CHECK,
[
- AC_CHECK_HEADER(zlib.h,,enable_zlib=no)
+ AC_CHECK_HEADER(zlib.h,,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, gzgets,,enable_zlib=no)
+ if test x$enable_zlib != xno
+ then
+ #
+ # Well, we at least have the zlib header file.
+ #
+ # Check for "gzgets()" in zlib, because we need it, but
+ # some older versions of zlib don't have it. It appears
+ # from the ChangeLog that any released version of zlib
+ # with "gzgets()" should have the other routines we
+ # depend on, such as "gzseek()", "gztell()", and "zError()".
+ #
+ AC_CHECK_LIB(z, gzgets,,enable_zlib=no)
+ fi
])