python: Fix detection of Python available versions.
authorJustus Winter <justus@g10code.com>
Tue, 20 Sep 2016 09:10:10 +0000 (11:10 +0200)
committerJustus Winter <justus@g10code.com>
Tue, 20 Sep 2016 09:10:10 +0000 (11:10 +0200)
* configure.ac: Test for 'PYTHON_VERSION' as 'AX_PYTHON_DEVEL' sets
'PYTHON' but clears the former.

Fixes-commit: 99db3512
Signed-off-by: Justus Winter <justus@g10code.com>
configure.ac

index 352ac8b..d6f3e0a 100644 (file)
@@ -407,7 +407,7 @@ if test "$found_py" = "1" -o "$found_py2" = "1" -o "$found_py3" = "1"; then
        if test "$found_py" = "1" -o "$found_py2" = "1"; then
            AM_PATH_PYTHON([2.7])
            AX_PYTHON_DEVEL
-           if test "$PYTHON"; then
+           if test "$PYTHON_VERSION"; then
                PYTHONS="$(echo $PYTHONS $PYTHON)"
                PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
            fi
@@ -430,7 +430,7 @@ if test "$found_py" = "1" -o "$found_py2" = "1" -o "$found_py3" = "1"; then
            unset am_cv_python_pyexecdir
            AM_PATH_PYTHON([3.4])
            AX_PYTHON_DEVEL
-           if test "$PYTHON"; then
+           if test "$PYTHON_VERSION"; then
                PYTHONS="$(echo $PYTHONS $PYTHON)"
                PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
            fi