Some distros and users have unusual installation needs that don't
conform to the standard $libdir/pkgconfig and $datadir/pkgconfig
pathways. Help packagers support these users with the macros
PKG_INSTALLDIR and PKG_NOARCH_INSTALLDIR. These are simple macros that
provide the configure parameters --with-pkgconfigdir and
--with-noarch-pkgconfigdir to allow users to override the standard
locations.
Freedesktop #48743
It might be useful to write something like
sdkflags=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=sdkdir xorg-server`
in configure.ac macros. Unfortunately, this will be blocked because
'PKG_CONFIG_SYSROOT' is a forbidden m4 pattern.
This patch extends the list of allowed pattern by the names of
documented pkg-config environment variables.
--exists no longer does a full depth traversal, which means we need to
pay attention to the exit status when calling pkg-config --libs and
--cflags. If those fail, we run with --cflags and --libs to get the
error message before printing it out.
Fixes Freedesktop #36039
* pkg.m4: Don't use --errors-to-stdout in pkg.m4, but rather
redirect stderr to stdout. This makes pkg.m4 with old (pre 0.15)
pkg-config look good, and it makes newer pkg-config with ancient
pkg.m4 work well. Gnome #111054
Author: tfheen
Date: 2005-07-15 06:50:41 GMT
2005-07-15 Tollef Fog Heen <tfheen@err.no>
* pkg.m4: Add a missing AC_MSG_RESULT. Thanks to Gary Kramlich
for noticing this and harassing me to fix it.
Author: tfheen
Date: 2005-06-29 11:06:59 GMT
2005-06-29 Tollef Fog Heen <tfheen@err.no>
* pkg.m4: Brown bag fix. pkg_failed was always set to ���untried���.
Debian #316181.
Author: tfheen
Date: 2005-06-26 22:51:05 GMT
2005-06-27 Tollef Fog Heen <tfheen@err.no>
* pkg.m4: Add PKG_CHECK_EXISTS to check if a module exists.
Thanks to James Henstridge for the patch.
Author: tfheen
Date: 2005-06-26 20:04:10 GMT
2005-06-26 Tollef Fog Heen <tfheen@err.no>
* pkg.m4: Get rid of caching again. This breaks too much stuff,
and pkg-config doesn't take much time to run.
Author: tfheen
Date: 2005-04-12 17:06:32 GMT
2005-04-12 Tollef Fog Heen <tfheen@err.no>
* pkg.m4: Apply patch from James Henstridge to have AC_RUN_LOG in
the right place. (Freedesktop #2992)
Author: tfheen
Date: 2005-04-12 11:46:59 GMT
2005-04-12 Tollef Fog Heen <tfheen@err.no>
* pkg.m4: Add note that PKG_PROG_PKG_CONFIG must be called
explicitly if the first call to PKG_CHECK_MODULES might not
happen. (Debian #303211)
Author: keybuk
Date: 2004-06-07 23:43:21 GMT
Improve pkg-config's configure instructure and bring it bang
up to date.
* pkg.m4: Complete rewrite.
(PKG_PROG_PKG_CONFIG): if PKG_CONFIG not defined, find the
pkg-config in the path or $host-pkg-config if cross-compiling,
check that is of at least version 0.9.0 or one given.
(_PKG_CONFIG): internal macro to call pkg-config.
(PKG_CHECK_MODULES): same semantics as the previous incarnation
except you can prevent pkg-config from being called by defining
xxx_CFLAGS and xxx_LIBS yourself, additionally all results are
cached.
* README, pkg-config.1: Adjust documentation to match.
Author: jamesh
Date: 2003-02-21 14:53:04 GMT
2003-02-21 James Henstridge <james@daa.com.au>
* pkg.m4: split macro into two parts. The check for presence of
pkg-config is now in a helper macro. The main PKG_CHECK_MODULES
macro now AC_REQUIRES() it, so that the pkg-config check is only
performed once.
Also update quoting to match current practices.
Author: hp
Date: 2001-06-17 23:18:00 GMT
2001-06-18 Havoc Pennington <hp@pobox.com>
* pkg.m4: print the error, not the name of the variable containing
it, doh
Author: hp
Date: 2001-06-05 18:41:27 GMT
2001-06-05 Havoc Pennington <hp@redhat.com>
* main.c: add --errors-to-stdout so you can capture them with backticks
* pkg.m4: set FOO_PKG_ERRORS after a failed check, so people can
print the errors.