Signed-off-by: Stéphane Graber <[email protected]>
---
 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

_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to