[PATCH:libfontenc] Fail configure if zlib.h & -lz not found

Mark Kettenis mark.kettenis at xs4all.nl
Thu Nov 25 05:55:39 PST 2010


> Date: Wed, 24 Nov 2010 14:49:47 -0800
> From: Alan Coopersmith <alan.coopersmith at oracle.com>
> 
> Mark Kettenis wrote:
> >> Date: Sun, 21 Nov 2010 23:59:20 +0100
> >> From: =?ISO-8859-1?Q?R=E9mi_Cardona?= <remi at gentoo.org>
> >>
> >> Le 20/11/2010 07:04, Alan Coopersmith a �crit :
> >>>  # zlib
> >>> -
> >>> -AC_CHECK_LIB(z, gzclose) 
> >>> +AC_CHECK_HEADER([zlib.h], [],
> >>> +                AC_MSG_FAILURE([zlib.h is required to compile libfontenc]))
> >>> +AC_CHECK_LIB(z, gzclose, [],
> >>> +             AC_MSG_FAILURE([zlib is required to compile libfontenc]))
> >> Any chance we could start using pkg-config to pick up zlib
> >> libs/includes? If memory serves, the .pc file was included upstream 2 or
> >> 3 years ago.
> > 
> > No.  On OpenBSD, zlib is part of the base system and therefore there
> > is no .pc file.
> 
> Which sounds like another reason to use the approach Dan suggested, of
> checking pkg-config first, then falling back to the current header/lib
> checks if that fails.

Yes, that'd be fine.

Don't really see the added benefit of that though.  Are there really
systems out there that don't have zlib in the default search path?


More information about the xorg-devel mailing list