diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2022-04-22 20:29:33 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2022-09-04 16:53:17 +0200 |
commit | 089127bd0067425d8bdfb15fcf3f165a2f6c3d1e (patch) | |
tree | d7d90ca513bd7edc6444b2172ebb3f150a4a46dd | |
parent | 615f05862cb86a5648c8bc31132e4e039dcbfdfd (diff) | |
download | fetchmail-089127bd0067425d8bdfb15fcf3f165a2f6c3d1e.tar.gz fetchmail-089127bd0067425d8bdfb15fcf3f165a2f6c3d1e.tar.bz2 fetchmail-089127bd0067425d8bdfb15fcf3f165a2f6c3d1e.zip |
Prefer Python 3.7+ over 2.7.
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index cd1cefe2..5799f8eb 100644 --- a/configure.ac +++ b/configure.ac @@ -30,7 +30,11 @@ dnl python is optional # # recent Python 3.x versions are supported. # -AM_PATH_PYTHON(2.7,,AC_MSG_WARN([Disabling fetchmailconf: python 2.7 or greater not found])) +try27=0 +AM_PATH_PYTHON([3.7],,[try27=1]) +if test try27 != 0 ; then + AM_PATH_PYTHON([2.7],,AC_MSG_WARN([[Disabling fetchmailconf: python 2.7 or 3.7 or greater not found]]) ) +fi AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :]) AC_USE_SYSTEM_EXTENSIONS |