From 2bc93759f6407181586d851be47b60ed1330c723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Mon, 23 Dec 2013 22:11:58 +0100 Subject: [PATCH] configure: Disable python3 builds with clang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber Signed-off-by: Serge Hallyn --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 9b2a55b50..4c5f0028e 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"])