Check for python 2.4 instead of 2.3

This commit is contained in:
Isaac Clerencia Perez 2007-04-23 10:18:37 +00:00
parent 64446eb9b2
commit 51009a408d

View file

@ -352,10 +352,10 @@ if test "x$python" = "xyes"; then
PYTHON_VERSION="${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}"
AC_MSG_RESULT([$PYTHON, $PYTHON_VERSION, $PYTHON_PREFIX])
AC_MSG_CHECKING(whether Python is at least 2.3)
if test $PYTHON_VERSION_MAJOR -lt 2 -o $PYTHON_VERSION_MAJOR -eq 2 -a $PYTHON_VERSION_MINOR -lt 3; then
AC_MSG_CHECKING(whether Python is at least 2.4)
if test $PYTHON_VERSION_MAJOR -lt 2 -o $PYTHON_VERSION_MAJOR -eq 2 -a $PYTHON_VERSION_MINOR -lt 4; then
AC_MSG_RESULT(no)
AC_ERROR(Wesnoth requires at least Python 2.3)
AC_ERROR(Wesnoth requires at least Python 2.4)
fi
AC_MSG_RESULT(yes)