Ethereal-dev: Re: [ethereal-dev] zlib

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Sat, 12 Feb 2000 17:24:16 +0900
>> 	I really recommend shiping zlib with ethereal, than relying upon
>> 	possibly-broken /usr/lib/libz.a.  wiretap/file_wrappers.[ch] is not
>> 	enough for netbsd 1.4.1.
>Why not?
>What did somebody break *this* time?

	on my environment (NetBSD 1.4.1), with latest ethereal tree from cvs,
	ethereal/config.h and ethereal/wiretap/config.h disagrees with each
	other about HAVE_LIBZ.
ethereal/config.h: #define HAVE_LIBZ 1
ethereal/wiretap/config.h: /* #undef HAVE_LIBZ */

	this should be because of the following portion (which should have been
	removed when file_wrappers.[ch] was introduced).
ethereal/config.h: #define HAVE_LIBZ 1
ethereal/wiretap/config.h: #define HAVE_LIBZ 1

	after applying the following patch, they agrees with each other and
	--enable-zlib works fine (so file_wrappers.[ch] looks effective against
	NetBSD 1.4.1).

itojun


---
Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/ethereal/wiretap/configure.in,v
retrieving revision 1.20
diff -c -r1.20 configure.in
*** configure.in	2000/01/13 07:09:15	1.20
--- configure.in	2000/02/12 08:18:14
***************
*** 56,65 ****
  dnl zlib check
  AC_ARG_ENABLE(zlib,
  [  --enable-zlib           use zlib to read compressed data.  [default=yes]],, [dnl
! case "$host_os" in
! netbsd*)	enable_zlib=no;;
! *)		enable_zlib=yes;;
! esac])
  
  AC_MSG_CHECKING(whether to use zlib for reading compressed capture files)
  if test "x$enable_zlib" = "xno" ; then
--- 56,65 ----
  dnl zlib check
  AC_ARG_ENABLE(zlib,
  [  --enable-zlib           use zlib to read compressed data.  [default=yes]],, [dnl
! dnl case "$host_os" in
! dnl netbsd*)	enable_zlib=no;;
! dnl *)		enable_zlib=yes;;
! dnl esac])
  
  AC_MSG_CHECKING(whether to use zlib for reading compressed capture files)
  if test "x$enable_zlib" = "xno" ; then