Print "buggy but acceptable" when CLooG revision is less than 9.
authorSebastian Pop <sebastian.pop@amd.com>
Fri, 2 Apr 2010 17:35:39 +0000 (17:35 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Fri, 2 Apr 2010 17:35:39 +0000 (17:35 +0000)
2010-04-02  Sebastian Pop  <sebastian.pop@amd.com>

* configure.ac: Print "buggy but acceptable" when CLooG
revision is less than 9.
* configure: Regenerated.

From-SVN: r157945

configure
configure.ac
gcc/ChangeLog

index c2c406e..fe2bb65 100755 (executable)
--- a/configure
+++ b/configure
@@ -5951,9 +5951,30 @@ main ()
 }
 _ACEOF
 if ac_fn_c_try_compile "$LINENO"; then :
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include "cloog/cloog.h"
+int
+main ()
+{
+
+  #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 9
+  choke me
+  #endif
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
 else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
+$as_echo "buggy but acceptable" >&6; }
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }; clooglibs= ; clooginc=
 fi
index 72407f8..edad2b6 100644 (file)
@@ -1617,7 +1617,12 @@ if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
   #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 5
   choke me
   #endif
-  ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); clooglibs= ; clooginc= ])
+  ], AC_TRY_COMPILE([#include "cloog/cloog.h"],[
+  #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 9
+  choke me
+  #endif
+  ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])]),
+  [AC_MSG_RESULT([no]); clooglibs= ; clooginc= ])
   CFLAGS="$saved_CFLAGS"
 fi
 
index 9ba9e7a..ac81f7b 100644 (file)
@@ -1,3 +1,9 @@
+2010-04-02  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * configure.ac: Print "buggy but acceptable" when CLooG
+       revision is less than 9.
+       * configure: Regenerated.
+
 2010-04-02  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/43629