Commit b079d8a5 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Make Python detection in configure work with version older than 2.7

parent 983507e0
...@@ -569,7 +569,7 @@ if test "$f_python" = NO; then ...@@ -569,7 +569,7 @@ if test "$f_python" = NO; then
for j in $python_dirs; do for j in $python_dirs; do
if test -x "$j/$i"; then if test -x "$j/$i"; then
python_found=YES python_found=YES
if test `$j/$i -c "import sys; print sys.version_info.major"` = 2; then if test `$j/$i -c "import sys; print sys.version_info[0]"` = 2; then
python_prog="$j/$i" python_prog="$j/$i"
break 2 break 2
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment