aboutsummaryrefslogtreecommitdiff
path: root/m4/ctng_python.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/ctng_python.m4')
-rw-r--r--m4/ctng_python.m412
1 files changed, 7 insertions, 5 deletions
diff --git a/m4/ctng_python.m4 b/m4/ctng_python.m4
index 5e04f377..2c3a1951 100644
--- a/m4/ctng_python.m4
+++ b/m4/ctng_python.m4
@@ -1,5 +1,5 @@
# ===========================================================================
-# Based on: https://www.gnu.org/software/autoconf-archive/ctng_python.html
+# Based on: https://www.gnu.org/software/autoconf-archive/ax_python.html
# ===========================================================================
#
# SYNOPSIS
@@ -60,15 +60,17 @@ AC_DEFUN([CTNG_PYTHON],
[
AC_MSG_CHECKING(for python build information)
AC_MSG_RESULT([])
- for python in python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 dnl
+ for python in python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 dnl
python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 dnl
python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
- AC_CHECK_PROGS(PYTHON_BIN, [$python])
+ AC_PATH_PROGS(PYTHON_BIN, [$python])
+ AC_CHECK_PROGS(PYTHON_BIN_, [$python])
ctng_python_bin=$PYTHON_BIN
+ ctng_python_bin_=$PYTHON_BIN_
if test "$ctng_python_bin" != ""; then
- AC_CHECK_LIB($ctng_python_bin, main, ctng_python_lib=$ctng_python_bin, ctng_python_lib=no)
+ AC_CHECK_LIB($ctng_python_bin_, main, ctng_python_lib=$ctng_python_bin_, ctng_python_lib=no)
if test "$ctng_python_lib" = "no"; then
- AC_CHECK_LIB(${ctng_python_bin}m, main, ctng_python_lib=${ctng_python_bin}m, ctng_python_lib=no)
+ AC_CHECK_LIB(${ctng_python_bin_}m, main, ctng_python_lib=${ctng_python_bin_}m, ctng_python_lib=no)
fi
if test "$ctng_python_lib" != "no"; then
$ctng_python_bin -c 'import sysconfig' 2>&1