Skip to content
Prev 4343 / 12125 Next

[R-pkg-devel] set pkg_config for 3rd party software

On Thu, Sep 5, 2019 at 12:27 PM Martin Maechler
<maechler at stat.math.ethz.ch> wrote:

            
I don't know what is best, but here are three alternatives:

* Use PKG_CHECK_MODULES which sets up default variables with _CFLAGS
and _LIBS suffix after searching for a library with pkg-config, c.f.
https://autotools.io/pkgconfig/pkg_check_modules.html
* Call pkg-config by hand in configure.ac (and hence configure).
Example: https://github.com/eddelbuettel/rcppredis/blob/master/configure.ac#L47-L60
* Call pkg-config within an "Anticonf" configure script. Example:
https://github.com/jeroen/curl/blob/master/configure#L16-L24

cheerio
ralf