]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - configure.ac
cloog.m4: Remove debugging print.
[thirdparty/gcc.git] / configure.ac
index 12b9c550726a35c96c5d2c7f0d288d29ff78403e..9a23049a6ae33109c0743f45621b6409cf689d0b 100644 (file)
@@ -1535,7 +1535,10 @@ fi
 dnl Provide configure switches and initialize clooginc & clooglibs
 dnl with user input.
 CLOOG_INIT_FLAGS
-if test "x$with_cloog" != "xno"; then
+if test "x$isllibs" = x && test "x$islinc" = x; then
+  clooglibs=
+  clooginc=
+elif test "x$with_cloog" != "xno"; then
   dnl The minimal version of CLooG required for Graphite.
   dnl
   dnl If we use CLooG-Legacy, the provided version information is
@@ -1547,6 +1550,12 @@ if test "x$with_cloog" != "xno"; then
     AC_MSG_ERROR([Unable to find a usable CLooG.  See config.log for details.])])
 fi
 
+# If either the ISL or the CLooG check failed, disable builds of in-tree
+# variants of both
+if test "x$clooglibs" = x && test "x$clooginc" = x; then
+  noconfigdirs="$noconfigdirs cloog isl"
+fi
+
 # Check for LTO support.
 AC_ARG_ENABLE(lto,
 [AS_HELP_STRING([--enable-lto], [enable link time optimization support])],