Fix the Python version check. Hopefully no one is running 1.5 or 1.6.

svn path=/trunk/; revision=51161
This commit is contained in:
Gerald Combs 2013-08-05 20:08:11 +00:00
parent 0048fbc0d4
commit f22f8cc841
1 changed files with 3 additions and 3 deletions

View File

@ -105,11 +105,11 @@ if test ! -z "$PYTHON"; then
AC_MSG_CHECKING([whether $PYTHON is Python 2.5 or later])
python_major_version=`$PYTHON -c 'import sys; print (sys.version_info[[0]])'`
python_minor_version=`$PYTHON -c 'import sys; print (sys.version_info[[1]])'`
if test "$python_major_version" -eq 2 -a "$python_minor_version" -ge 5 ; then
AC_MSG_RESULT(yes)
else
if test "$python_major_version" -eq 2 -a "$python_minor_version" -lt 5 ; then
AC_MSG_RESULT(no)
AC_MSG_WARN([Building with Python $python_major_version.$python_minor_version may not work])
else
AC_MSG_RESULT(yes)
fi
fi