aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'wrappers/cross-pkg-config')
-rwxr-xr-xwrappers/cross-pkg-config9
1 files changed, 3 insertions, 6 deletions
diff --git a/wrappers/cross-pkg-config b/wrappers/cross-pkg-config
index 38763b3..4622d41 100755
--- a/wrappers/cross-pkg-config
+++ b/wrappers/cross-pkg-config
@@ -23,12 +23,9 @@ error() {
#
# Sanity/distro checks
#
-if ver=$(pkg-config --version) ; then
- if [ ${ver#0.1} != ${ver} ] ; then
- error pkg-config is too old ... upgrade it
- fi
-else
- error unable to find pkg-config in PATH
+MIN_VER="0.20"
+if ! pkg-config --atleast-pkgconfig-version ${MIN_VER} ; then
+ error pkg-config is too old ... upgrade to at least v${MIN_VER}
fi
if [ "$1" = "--cross-pkg-config-install" ] ; then