Build: use AM_PATH_PYTHON to resolve python when building agent
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 10 Aug 2015 18:45:31 +0000 (14:45 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 11 Aug 2015 16:13:03 +0000 (12:13 -0400)
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 <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac

index c14cff74dc20182f066f47283ea22369f5642e46..da82bcbaa21e523fe11373e987effb948c6ba40a 100644 (file)
@@ -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],
This page took 0.025405 seconds and 4 git commands to generate.