diff options
author | grosser <grosser@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-12 22:08:38 +0000 |
---|---|---|
committer | grosser <grosser@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-12 22:08:38 +0000 |
commit | 81b9d1484f3d9fffc46ce306183595749bcdf557 (patch) | |
tree | b8557238fb990683a41038e8d6019c55d457f0ec /config | |
parent | 9282e471abe27dea89d6011b241ee35abc866673 (diff) | |
download | gcc-81b9d1484f3d9fffc46ce306183595749bcdf557.tar.gz |
Improve check for CLooG PPL Legacy.
* config/cloog.m4: Use CLooG predefined macro to check for CLooG PPL.
* configure: regenerate
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166682 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config')
-rw-r--r-- | config/cloog.m4 | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/config/cloog.m4 b/config/cloog.m4 index a44aac4c6ec..6ed0f1b55ec 100644 --- a/config/cloog.m4 +++ b/config/cloog.m4 @@ -91,15 +91,17 @@ AC_DEFUN([CLOOG_REQUESTED], # ------------------ # Helper for detecting CLooG.org's backend. m4_define([_CLOOG_ORG_PROG],[AC_LANG_PROGRAM( - [#include <cloog/cloog.h>], + [#include "cloog/cloog.h"], [cloog_version ()])]) # _CLOOG_PPL_LEGACY_PROG () # ------------------------- # Helper for detecting CLooG-Legacy (CLooG-PPL). m4_define([_CLOOG_PPL_LEGACY_PROG], [AC_LANG_PROGRAM( - [#include <cloog/cloog.h>], - [ppl_version_major ()])]) + [#include "cloog/cloog.h"], + [#ifndef CLOOG_PPL_BACKEND + choke me + #endif ])]) # CLOOG_FIND_FLAGS () # ------------------ @@ -114,12 +116,11 @@ AC_DEFUN([CLOOG_FIND_FLAGS], _cloog_saved_LDFLAGS=$LDFLAGS _cloog_saved_LIBS=$LIBS - _clooglegacyinc="-DCLOOG_PPL_BACKEND" _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG" dnl clooglibs & clooginc may have been initialized by CLOOG_INIT_FLAGS. CFLAGS="${CFLAGS} ${clooginc} ${pplinc} ${gmpinc}" - CPPFLAGS="${CPPFLAGS} ${_clooglegacyinc} ${_cloogorginc}" + CPPFLAGS="${CPPFLAGS} ${_cloogorginc}" LDFLAGS="${LDFLAGS} ${clooglibs} ${ppllibs}" AC_CACHE_CHECK([for installed CLooG], @@ -137,7 +138,7 @@ AC_DEFUN([CLOOG_FIND_FLAGS], case $gcc_cv_cloog_type in "PPL Legacy") - clooginc="${clooginc} ${_clooglegacyinc}" + clooginc="${clooginc}" clooglibs="${clooglibs} -lcloog" cloog_org=no ;; |