From: Jonathan Rajotte Date: Mon, 10 Aug 2015 18:45:31 +0000 (-0400) Subject: Build: use AM_PATH_PYTHON to resolve python when building agent X-Git-Tag: v2.7.0-rc2~9 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2840b69e79ba7c3d8cbf50d4905985ee010e4979;p=lttng-ust.git 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 --- 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],