Python bindings: fail configure if python version < 3.0
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 13 Oct 2014 13:17:36 +0000 (09:17 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 13 Oct 2014 13:17:36 +0000 (09:17 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
README
configure.ac

diff --git a/README b/README
index 95cc1fca9359c32d8250e95ad0b9bca8dac84087..7b07e1e24c472ce94b52bed58cd2ceff685bc47c 100644 (file)
--- 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.
index c9a25e0905f18c575528b94024a2b16684a13e16..bccbcde24269aa0f58e39d342462bb377d797b52 100644 (file)
@@ -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])
This page took 0.026051 seconds and 4 git commands to generate.