From xemacs-m  Mon Aug 11 19:38:14 1997
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id TAA26094
	for <xemacs-beta@xemacs.org>; Mon, 11 Aug 1997 19:38:13 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.13]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id RAA19401; Mon, 11 Aug 1997 17:37:45 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id RAA22653; Mon, 11 Aug 1997 17:37:41 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id QAA10865; Mon, 11 Aug 1997 16:29:17 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id QAA03419; Mon, 11 Aug 1997 16:29:15 -0700
Date: Mon, 11 Aug 1997 16:29:15 -0700
Message-Id: <199708112329.QAA03419@xemacs.eng.sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: Serenella Ciongoli <czs00@amdahl.com>
Cc: xemacs-beta@xemacs.org
Subject: Re: [patch] prim/help.el: allow .el.gz files if `jka-compr' present
In-Reply-To: <Pine.SOL.3.96.970811141213.28174E-100000@ladybug>
References: <m2n2mp1615.fsf@altair.xemacs.org>
	<Pine.SOL.3.96.970811141213.28174E-100000@ladybug>
X-Mailer: VM 6.33 under 20.3 "Vienna" XEmacs  Lucid (beta14)
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "Serenella" == Serenella Ciongoli <czs00@amdahl.com> writes:

Serenella>  n 11 Aug 1997, SL Baur wrote:
>> Jan Vroonhof <vroonhof@math.ethz.ch> writes:
>> > Then shouldn't we use it fure ungzipping buffers too?
>> 
>> It might be a good idea at some point.  It would be Yet Another
>> Library dependency.  Right now you don't have to have this library to
>> link.  Does this library get installed when you install gzip?  I can't 
>> recall and I don't have the gzip source handy.

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

Martin

