X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=configure.ac;h=a1c3303beca22cb7aefd4d9dca4d2d07bc2d09f2;hb=69b8a9a1af204685dfdfaf1279a0f2928e0bbb32;hp=4aa3af7d5b7eac90318746c262faee717e5d9acd;hpb=e6ce09aeed6b269f583e1d4a9c4b3586d1351917;p=collectd.git 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