From b4d635a3abae58b73b53efc3625b91ce2c282555 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Sat, 9 Apr 2022 00:33:24 -0500 Subject: [PATCH] Use the python3 that configure found When running preproc.py, use the python3 that the configure script found instead of assuming (via preproc.py's #! line) that it is called "python3" and is located in PATH. This allows the user to specify a different python3 by running e.g.: ./configure ac_cv_path_PYTHON3=/path/to/python3 --- scripts/configure | 2 +- scripts/configure.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/configure b/scripts/configure index 694b1f07..3f0a62e8 100755 --- a/scripts/configure +++ b/scripts/configure @@ -5381,7 +5381,7 @@ if test "x${PYTHON3}" == "xno"; then fi else - MCPP="\${MAGICDIR}/scripts/preproc.py -ccomm" + MCPP="${PYTHON3} \${MAGICDIR}/scripts/preproc.py -ccomm" MSED="cat" usingPython3=1 fi diff --git a/scripts/configure.in b/scripts/configure.in index ffce91e5..590b1c31 100644 --- a/scripts/configure.in +++ b/scripts/configure.in @@ -306,7 +306,7 @@ if test "x${PYTHON3}" == "xno"; then fi else - MCPP="\${MAGICDIR}/scripts/preproc.py -ccomm" + MCPP="${PYTHON3} \${MAGICDIR}/scripts/preproc.py -ccomm" MSED="cat" usingPython3=1 fi