Update version detection for python 3.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/15/head
Michele Calgaro 2 years ago committed by Slávek Banko
parent a7f75ac0ff
commit 7e4fd6fc51
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -4463,7 +4463,7 @@ AC_REQUIRE([KDE_CHECK_LIBPTHREAD])
AC_REQUIRE([KDE_CHECK_PYTHON_DIR]) AC_REQUIRE([KDE_CHECK_PYTHON_DIR])
if test -z "$1"; then if test -z "$1"; then
version="1.5" version="3.0"
else else
version="$1" version="$1"
fi fi
@ -4551,22 +4551,12 @@ fi
AC_DEFUN([KDE_CHECK_PYTHON], AC_DEFUN([KDE_CHECK_PYTHON],
[ [
KDE_CHECK_PYTHON_INTERN("2.7", for PYTHON_VER_TEST in 3.{12,11,10,9,8,7,6,5,4,3,2,1,0}; do
[KDE_CHECK_PYTHON_INTERN("2.6", KDE_CHECK_PYTHON_INTERN("$PYTHON_VER_TEST")
[KDE_CHECK_PYTHON_INTERN("2.5", if test -n "$PYTHONLIB"; then
[KDE_CHECK_PYTHON_INTERN("2.4", break
[KDE_CHECK_PYTHON_INTERN("2.3", fi
[KDE_CHECK_PYTHON_INTERN("2.2", done
[KDE_CHECK_PYTHON_INTERN("2.1",
[KDE_CHECK_PYTHON_INTERN("2.0",
[KDE_CHECK_PYTHON_INTERN($1, $2) ])
])
])
])
])
])
])
])
]) ])
AC_DEFUN([KDE_CHECK_STL], AC_DEFUN([KDE_CHECK_STL],

Loading…
Cancel
Save