aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-12-12 15:29:31 +0000
committerDan Albert <danalbert@google.com>2015-01-08 14:44:29 -0800
commitb3f52a221c984c43ace0d08d5a8222e2ddf6b3bc (patch)
tree3f230281c7daf3ab36100b04fe20603326bd6e4d /autoconf
parentd3044d58027b3cb20c7d64acccca4722c58ccc78 (diff)
downloadexternal_llvm-b3f52a221c984c43ace0d08d5a8222e2ddf6b3bc.zip
external_llvm-b3f52a221c984c43ace0d08d5a8222e2ddf6b3bc.tar.gz
external_llvm-b3f52a221c984c43ace0d08d5a8222e2ddf6b3bc.tar.bz2
Require python 2.7.
We were already requiring 2.5, which meant that people on old linux distros had to upgrade anyway. Requiring python 2.6 will make supporting 3.X easier as we can use the 3.X exception syntax. According to the discussion on llvmdev, there is not much value is requiring just 2.6, we may as well just require 2.7. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224129 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit 708bc15ff07dc2fcee3a66988bfc5bc15b80eb5f)
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac10
1 files changed, 5 insertions, 5 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index ca6d710..c998dd5 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -1421,23 +1421,23 @@ else
AC_MSG_WARN([specified python ($PYTHON) is not usable, searching path])
fi
- AC_PATH_PROG([PYTHON], [python python2 python26],
+ AC_PATH_PROG([PYTHON], [python python2 python27],
[AC_MSG_RESULT([not found])
- AC_MSG_ERROR([could not find python 2.5 or higher])])
+ AC_MSG_ERROR([could not find python 2.7 or higher])])
fi
-AC_MSG_CHECKING([for python >= 2.5])
+AC_MSG_CHECKING([for python >= 2.7])
ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
if test "$ac_python_version_major" -gt "2" || \
(test "$ac_python_version_major" -eq "2" && \
- test "$ac_python_version_minor" -ge "5") ; then
+ test "$ac_python_version_minor" -ge "7") ; then
AC_MSG_RESULT([$PYTHON ($ac_python_version)])
else
AC_MSG_RESULT([not found])
- AC_MSG_FAILURE([found python $ac_python_version ($PYTHON); required >= 2.5])
+ AC_MSG_FAILURE([found python $ac_python_version ($PYTHON); required >= 2.7])
fi
dnl===-----------------------------------------------------------------------===