Re: pkg-config zlib check in 3c13bc

Subject: Re: pkg-config zlib check in 3c13bc

Date: Sat, 10 May 2014 09:46:00 +0900

To: Tomi Ollila, Xīcò, notmuch@notmuchmail.org

Cc:

From: David Bremner


Tomi Ollila <tomi.ollila@iki.fi> writes:

>
> Actually my suggestion would be that if that pkg-config line for 
> zlib does not work (btw why does it not work) 

I guess because FreeBSD (and maybe other systems) have a distinction 
between the "base system" and "add on packages" and pkg-config only
works for the latter

> try an option
> where zlib_cflags is expected to be empty and and zlib_ldflags -lz
> -- and try compile and run test program with those options
> then the test program is something like
>
> int main(void)
> {
>     return(ZLIB_VERNUM >= 0x1252);
> }

OK, that sounds like it could work.  Ideally, somebody on FreeBSD could
check...

d

Thread: