From 2840b69e79ba7c3d8cbf50d4905985ee010e4979 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 c14cff74..da82bcba 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