From xemacs-m  Mon Aug 11 19:47:31 1997
Received: from orpheus.amdahl.com (orpheus.amdahl.com [159.199.101.3])
	by xemacs.org (8.8.5/8.8.5) with SMTP id TAA26209
	for <xemacs-beta@xemacs.org>; Mon, 11 Aug 1997 19:47:30 -0500 (CDT)
Received: from cliffy.eng.amdahl.com by orpheus.amdahl.com with smtp
	(Smail3.1.29.1 #3) id m0wy57R-0001dvC; Mon, 11 Aug 97 17:47 PDT
Received: from ladybug by cliffy.eng.amdahl.com (4.1/SMI-4.1)
	id AA25300; Mon, 11 Aug 97 17:47:28 PDT
Date: Mon, 11 Aug 1997 17:49:15 -0700 (PDT)
From: Serenella Ciongoli <czs00@amdahl.com>
X-Sender: czs00@ladybug
To: Martin Buchholz <mrb@Eng.Sun.COM>
Cc: xemacs-beta@xemacs.org
Subject: Re: [patch] prim/help.el: allow .el.gz files if `jka-compr' present
In-Reply-To: <199708112329.QAA03419@xemacs.eng.sun.com>
Message-Id: <Pine.SOL.3.96.970811174305.28450B-100000@ladybug>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

xOn Mon, 11 Aug 1997, Martin Buchholz wrote:

> >>>>> "Serenella" == Serenella Ciongoli <czs00@amdahl.com> writes:
>
> Serenella> I just checked the binary gzip distribution for
> Serenella> Solaris. Libz is not in the tar file, it is not searched
> Serenella> for by the configure script, nor it is required by the
> Serenella> executable:
> 
> This is not correct.  libz is currently only detected to allow libpng
> to work, so a test for it is run only if png.h is found first, and
> libpng fails to link by itself.
> 
> Here's the code in configure.in:
> 
> 
> dnl autodetect PNG
> test -z "$with_png" && { AC_CHECK_HEADER(png.h, , with_png=no) }
> test -z "$with_png" && { AC_CHECK_FUNC(pow,     , with_png=no) }
> if test "$with_png" != "no"; then
>   for extra_libs in "" "-lz" "-lgz"; do
>     AC_CHECK_LIB(png, png_read_image,
>       png_libs="-lpng $extra_libs" with_png=yes; break,[:],$extra_libs)
>   done
> fi
> test -z "$with_png" && with_png=no
> if test "$with_png" = "yes"; then
>   AC_DEFINE(HAVE_PNG)
>   XE_PREPEND($png_libs, libs_x)
> fi

The message I answered to was asking if gzip was using libz. I was referring
to the *gzip* tar file, the *gzip* configure script and the *gzip*
executable. I guess I should have made it more clear? :-}

Serenella



