[lxc-devel] [PATCH] configure: Disable python3 builds with clang

Stéphane Graber stgraber at ubuntu.com
Mon Dec 23 21:11:58 UTC 2013


Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 configure.ac | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/configure.ac b/configure.ac
index 2818d79..26b4032 100644
--- a/configure.ac
+++ b/configure.ac
@@ -217,6 +217,13 @@ AC_ARG_ENABLE([python],
 
 if test "x$enable_python" = "xauto"; then
 	PKG_CHECK_MODULES([PYTHONDEV], [python3 >= 3.2],[enable_python=yes],[enable_python=no])
+	if test "$CC" = "clang"; then
+		enable_python=no
+	fi
+fi
+
+if test "x$enable_python" = "xyes" && test "$CC" = "clang"; then
+	AC_MSG_ERROR([Python3 is incompatible with the clang compiler])
 fi
 
 AM_CONDITIONAL([ENABLE_PYTHON], [test "x$enable_python" = "xyes"])
-- 
1.8.5.2



More information about the lxc-devel mailing list