summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2011-08-19 09:03:51 +1000
committerSergio Ahumada <sergio.ahumada@nokia.com>2011-08-26 23:26:59 +0200
commit53794d94994cb3149581b1a91762dfa2d6defac0 (patch)
tree4cbc0c7af284cc37e6c68fa3d99887681ecf81e6 /configure
parentfe2da7c82f52e16b87569fe8ef3561014bc8c854 (diff)
Do not unconditionally use pkg-config in .pro files
Using the first pkg-config in PATH is prone to errors when cross compiling. This is a known issue, and `configure' already avoids using pkg-config for cross compiling (unless -force-pkg-config is used). However, there was previously no way for a .pro file to test whether or not the user had passed -force-pkg-config. Let !contains(QT_CONFIG, no-pkg-config) be used to test whether or not it is safe to run pkg-config.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index ec04414148..a0e237ead8 100755
--- a/configure
+++ b/configure
@@ -3269,6 +3269,10 @@ if [ "$QT_CROSS_COMPILE" = "yes" ]; then
fi
fi
+if [ ! -n "$PKG_CONFIG" ]; then
+ QT_CONFIG="$QT_CONFIG no-pkg-config"
+fi
+
# process CFG_MAC_ARCHS
if [ "$PLATFORM_MAC" = "yes" ]; then
# check -arch arguments for validity.