From 6431e247b5c4344f268ff2c19d32ffc05df6955e Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 30 Jul 2016 22:30:20 +0200 Subject: [PATCH] Stop using `which` for finding python interpreter Which is not available in minimal build environments (see #1825 for an example) so replace it with AC_PATH_PROG. --- configure.ac | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 4aa3af7d..a1c3303b 100644 --- a/configure.ac +++ b/configure.ac @@ -3883,14 +3883,12 @@ PATH="$with_python_path" if test "x$with_python" = "xyes" && test "x$with_python_prog" = "x" then - AC_MSG_CHECKING([for python]) - with_python_prog="`which python 2>/dev/null`" - if test "x$with_python_prog" = "x" + AC_PATH_PROG([PYTHON], [python]) + if test "x$PYTHON" = "x" then - AC_MSG_RESULT([not found]) with_python="no (interpreter not found)" else - AC_MSG_RESULT([$with_python_prog]) + with_python_prog="$PYTHON" fi fi -- 2.11.0