[PATCH:libfontenc] Fail configure if zlib.h & -lz not found
Alan Coopersmith
alan.coopersmith at oracle.com
Wed Nov 24 14:49:47 PST 2010
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.
--
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Platform Engineering: X Window System
More information about the xorg-devel
mailing list