From: Jérémie Galarneau Date: Mon, 13 Oct 2014 13:17:36 +0000 (-0400) Subject: Python bindings: fail configure if python version < 3.0 X-Git-Tag: v2.0.0-pre1~1482 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=e0275755322f25c08b035b164fc305035b16f30f Python bindings: fail configure if python version < 3.0 Signed-off-by: Jérémie Galarneau --- diff --git a/README b/README index 95cc1fca..7b07e1e2 100644 --- a/README +++ b/README @@ -53,7 +53,7 @@ To compile Babeltrace, you will need: (Debian/Ubuntu : python3-dev) swig >= 2.0 (optional) (Debian/Ubuntu : swig2.0) - python 3.0 or better (optional) + python >= 3.0 (optional) (Debian/Ubuntu : python3) If you want Python bindings, run ./configure --enable-python-bindings. diff --git a/configure.ac b/configure.ac index c9a25e09..bccbcde2 100644 --- a/configure.ac +++ b/configure.ac @@ -121,7 +121,7 @@ AM_CONDITIONAL([USE_PYTHON], [test "x${enable_python:-yes}" = xyes]) if test "x${enable_python:-yes}" = xyes; then AX_PKG_SWIG($swig_version, [], [ AC_MSG_ERROR([SWIG $swig_version or newer is needed]) ]) - AM_PATH_PYTHON + AM_PATH_PYTHON([3.0], , [AC_MSG_ERROR(Python3 is not available or is not the default Python interpreter on your system. See the README file to learn how to override your distribution's default Python interpreter.)]) AC_ARG_VAR([PYTHON_INCLUDE], [Include flags for python, bypassing python-config]) AC_ARG_VAR([PYTHON_CONFIG], [Path to python-config])