configure: Set PKG_CONFIG_PATH to get the right settings for the target host.
commit20d41d9e2810696ca38598abcef6da8e77f9aae7
authorFrancois Gouget <fgouget@codeweavers.com>
Wed, 7 Jun 2017 09:25:36 +0000 (7 11:25 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 8 Jun 2017 15:20:18 +0000 (8 17:20 +0200)
treed5909af12fc2c8ee58e9fd941e3210b9e36d1fb5
parent2b03d20759ef086c229848a192d071764c59d8aa
configure: Set PKG_CONFIG_PATH to get the right settings for the target host.

Ideally we would use the right <triplet>-pkg-config tool for the target
host. However Red Hat and SUSE respectively add '-redhat' and '-suse' to
the triplet which makes it hard to find the right tool. Furthermore on
Debian and derivatives a lot of development packages do not support
multiarch so that the required .pc files would not be found.

Setting PKG_CONFIG_PATH side-steps the non-standard Red Hat and SUSE
triplets. It also lets pkg-config fall back to the 'wrong' .pc files
on Debian which is fine in most cases, while using the right one in
cases where it matters (GStreamer 1.0), assuming they are actually
present.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
configure
configure.ac