[cig-commits] r17957 - cs/autoconf/trunk
brad at geodynamics.org
brad at geodynamics.org
Wed Feb 23 12:25:20 PST 2011
Author: brad
Date: 2011-02-23 12:25:20 -0800 (Wed, 23 Feb 2011)
New Revision: 17957
Modified:
cs/autoconf/trunk/cit_python.m4
Log:
Added output of version number of python module.
Modified: cs/autoconf/trunk/cit_python.m4
===================================================================
--- cs/autoconf/trunk/cit_python.m4 2011-02-23 20:20:08 UTC (rev 17956)
+++ cs/autoconf/trunk/cit_python.m4 2011-02-23 20:25:20 UTC (rev 17957)
@@ -439,6 +439,7 @@
AC_MSG_FAILURE(not found)
fi
if test -n "$2" ; then
+ AC_MSG_CHECKING([for $1 version])
eval $PYTHON -c "import $1; print $1.__version__" | sed 's/\([0-9]\{1,\}\)\.\([0-9]\{1,\}\)\.\([0-9]\{1,\}\)/avail_major=\1; avail_minor=\2; avail_patch=\3/'
eval `echo $2 | sed 's/\([0-9]\{1,\}\)\.\([0-9]\{1,\}\)\.\([0-9]\{1,\}\)/req_major=\1; req_minor=\2; req_patch=\3/'`
if test $avail_major -lt $req_major ; then
@@ -447,6 +448,8 @@
AC_MSG_FAILURE([$1 version >= $2 is required. You have $avail_major.$avail_minor.$avail_path.])
elif test $avail_major -eq $req_major -a $avail_minor -eq $req_minor -a $avail_patch -lt $req_patch; then
AC_MSG_FAILURE([$1 version >= $2 is required. You have $avail_major.$avail_minor.$avail_path.])
+ else
+ AC_MSG_RESULT([$avail_major.$avail_minor.$avail_patch])
fi
fi
More information about the CIG-COMMITS
mailing list