From 089127bd0067425d8bdfb15fcf3f165a2f6c3d1e Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 22 Apr 2022 20:29:33 +0000 Subject: Prefer Python 3.7+ over 2.7. --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'configure.ac') 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 -- cgit v1.2.3