Murray Cumming wrote:
> On Sat, 2006-02-11 at 14:50 +0100, Peter Eisentraut wrote:
>> Christoph Zwerschke wrote:
>>> However, there is no such thing as "PQLIB_VERSION_MAJOR".
>>> Anything else I could query instead?
>> You should query the presence of the function, not the version of the
>> library.
>
> If pqlib installed a pkg-config .pc file then this would be simpler.
Yes. You could use pg_config, but this is usually only included in the
server package, not in the libs package.
-- Christoph