From 55c9e5ae72080e66a84a205650538a5d4294e95b Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Mon, 10 Aug 2015 14:45:31 -0400 Subject: [PATCH] Build: use AM_PATH_PYTHON to resolve python when building agent The agent can be built against a forced python version by exporting PYTHON environment variable at configure time. ex: $ export PYTHON=python3 $ ./configure --enable-python-agent Signed-off-by: Jonathan Rajotte Signed-off-by: Mathieu Desnoyers --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 1c841da8..57e67507 100644 --- a/configure.ac +++ b/configure.ac @@ -319,6 +319,9 @@ AC_ARG_ENABLE([python-agent], [:] ) AM_CONDITIONAL([BUILD_PYTHON_AGENT], [test "x$python_agent" = "xyes"]) +if test "x$python_agent" = "xyes"; then + AM_PATH_PYTHON([2.7]) +fi # sdt.h integration AC_ARG_WITH([sdt], -- 2.34.1