m4: add AG_GST_PKG_CONFIG_PATH macro
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 14 Aug 2010 17:59:23 +0000 (18:59 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 14 Aug 2010 17:59:23 +0000 (18:59 +0100)
commitca1c867ac96a3bdb83f2bc4cb2081e2a0deb1a16
tree48e2072a37731c2328f39f020dbe24bdea5065ca
parentec60217bf93d537b324c3682c1bd7d49ad9ad9b3
m4: add AG_GST_PKG_CONFIG_PATH macro

Sets up a GST_PKG_CONFIG_PATH variable for use in Makefile.am
which contains the path of the in-tree pkgconfig directory first
and then any paths specified in PKG_CONFIG_PATH.

We do this mostly so we don't have to use unportable shell constructs
such as ${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH} in Makefile.am to handle
the case where the environment variable is not set, but also in order
to avoid a trailing ':' in the PKG_CONFIG_PATH which apparently causes
problems with pkg-config on windows with msys/mingw.

Also shows the PKG_CONFIG_PATH set up in the configure output,
which is handy when debugging other people's configure problems.
m4/gst.m4