From: Richard Kreckel Date: Sun, 28 Jun 2020 14:07:30 +0000 (+0200) Subject: [build] Check for python3 command, not python. X-Git-Tag: release_1-7-10~2 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=e937cf43540a47c8163a3f590b2415487a7b8f0a [build] Check for python3 command, not python. PEP 394 does not require the python command to be installed. --- diff --git a/configure.ac b/configure.ac index 0a178069..32ba1485 100644 --- a/configure.ac +++ b/configure.ac @@ -59,10 +59,10 @@ dnl Check for stuff needed for building the GiNaC interactive shell (ginsh). AC_CHECK_HEADERS(unistd.h) GINAC_HAVE_RUSAGE GINAC_READLINE -dnl Python is necessary for building function.{cpp,h} -AC_PATH_PROG(PYTHON, python, "") -AS_IF([test -z "$PYTHON" -a ! -f "$srcdir/ginac/function.cpp"], - [AC_MSG_ERROR([GiNaC will not compile because Python is missing])]) +dnl Python3 is necessary for building function.{cpp,h} +AC_PATH_PROG(PYTHON3, python3, "") +AS_IF([test -z "$PYTHON3" -a ! -f "$srcdir/ginac/function.cpp"], + [AC_MSG_ERROR([GiNaC will not compile because Python3 is missing])]) dnl Check for dl library (needed for GiNaC::compile). GINAC_EXCOMPILER