aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-01-08 05:10:54 -0500
committerMike Frysinger <vapier@gentoo.org>2010-01-08 05:10:54 -0500
commit4ca6710f22a8a2fc21f74f90be798fe21fb37960 (patch)
treee93b8091075fe371c09d717280eb732c216a9b50 /wrappers
parentcross-pkg-config: fix typo in EXTRA_PKG_CONFIG_LIBDIR handling (diff)
downloadcrossdev-4ca6710f22a8a2fc21f74f90be798fe21fb37960.tar.gz
crossdev-4ca6710f22a8a2fc21f74f90be798fe21fb37960.tar.bz2
crossdev-4ca6710f22a8a2fc21f74f90be798fe21fb37960.zip
cross-pkg-config: switch version checking to --atleast-pkgconfig-version
Better than using our own custom version parser. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'wrappers')
-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