pkg-config

Mike Taves mwtoews at gmail.com
Mon Nov 20 17:35:21 PST 2023


On Tue, 21 Nov 2023 at 12:20, Paul Ramsey <pramsey at cleverelephant.ca> wrote:
>   if (pkg-config found)
>     use pkg-config
>   elseif (geos-config on path)
>     use geos-config
>   else
>     error cannot find geos

Note that pkg-config support was added 3 years ago for GEOS 3.9.0 via
https://github.com/libgeos/geos/pull/349

In that PR I mention that geos-config could potentially be deprecated,
since there are now two tools that overlap. Now that GEOS 3.8.x has
reached its EOL, maybe it's time to consider this? (If so, I'll start
the GEOS issue for it.)

The only thing that geos-config has over pkg-config is the ability to
link to the C++ API, which nobody should be doing anyways since the C
API is preferred.


More information about the postgis-devel mailing list