summaryrefslogtreecommitdiff
path: root/intltool.m4
diff options
context:
space:
mode:
authordobey <>2006-04-24 20:51:38 +0000
committerdobey <>2006-04-24 20:51:38 +0000
commite2b1e47ddecd425c4b5bbd0df3394808a5b06fb3 (patch)
treec572c2a2ec23021f1984bafebcba82bfb4b8db36 /intltool.m4
parentbb6ebd3c47c548a724ae618230db9ba2c788f7f4 (diff)
downloadintltool-e2b1e47ddecd425c4b5bbd0df3394808a5b06fb3.tar.gz
2006-04-21 Rodney Dawes <dobey@novell.com>
* intltool.m4: Handle micro-version number when checking that the intltool version is >= the requested version Fixes #339627
Diffstat (limited to 'intltool.m4')
-rw-r--r--intltool.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/intltool.m4 b/intltool.m4
index bd006f7..dc0d1e7 100644
--- a/intltool.m4
+++ b/intltool.m4
@@ -38,9 +38,9 @@ esac
if test -n "$1"; then
AC_MSG_CHECKING(for intltool >= $1)
- INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 100 + $ 2; }'`
+ INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
- [INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 100 + VERSION[2];}' ${ac_aux_dir}/intltool-update.in`
+ [INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
]
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||