Fix the Python version check. Hopefully no one is running 1.5 or 1.6.
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 5 Aug 2013 20:08:11 +0000 (20:08 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 5 Aug 2013 20:08:11 +0000 (20:08 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@51161 f5534014-38df-0310-8fa8-9805f1628bb7

configure.ac

index 94a29129b2aeee465d52c0fd355dc98ab876d13f..6c27706136a18192119bad64211c310bee9a456b 100644 (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