[newlib-cygwin/main] config: remove obsolete cloog.m4 autotools macros
Corinna Vinschen via Cygwin-cvs <[email protected]> Fri, 10 Apr 2026 10:07:07 +0000 (GMT)
| Newsgroups | gmane.os.cygwin.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Dd5ce89c39a3= e637e1cf35fcf7d0f39f4a4eedc19 commit d5ce89c39a3e637e1cf35fcf7d0f39f4a4eedc19 Author: John Scott <jscott-VwIFZPTo/[email protected]> AuthorDate: Fri Apr 10 04:17:55 2026 +0000 Commit: Corinna Vinschen <[email protected]> CommitDate: Fri Apr 10 12:06:41 2026 +0200 config: remove obsolete cloog.m4 autotools macros =20 GCC used to use the CLooG library to optionally enable some special opt= imizations. However, it hasn't been used since commit 4a9bb2aac4da (2014-11-11) and= GCC removed this cloog.m4 file then. Newlib and Cygwin have never used CLooG, so this cruft can be obliterat= ed to spare others from confuzzlement. Diff: --- config/cloog.m4 | 152 ----------------------------------------------------= ---- 1 file changed, 152 deletions(-) diff --git a/config/cloog.m4 b/config/cloog.m4 deleted file mode 100644 index 670cd652fcb2..000000000000 --- a/config/cloog.m4 +++ /dev/null @@ -1,152 +0,0 @@ -# This file is part of GCC. -# -# GCC is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free -# Software Foundation; either version 3, or (at your option) any later -# version. -# -# GCC is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -# for more details. -# -# You should have received a copy of the GNU General Public License -# along with GCC; see the file COPYING3. If not see -# <http://www.gnu.org/licenses/>. -# -# Contributed by Andreas Simbuerger <[email protected]> - -# CLOOG_INIT_FLAGS () -# ------------------------- -# Provide configure switches for CLooG support. -# Initialize clooglibs/clooginc according to the user input. -AC_DEFUN([CLOOG_INIT_FLAGS], -[ - AC_ARG_WITH([cloog-include], - [AS_HELP_STRING( - [--with-cloog-include=3DPATH], - [Specify directory for installed CLooG include files])]) - AC_ARG_WITH([cloog-lib], - [AS_HELP_STRING( - [--with-cloog-lib=3DPATH], - [Specify the directory for the installed CLooG library])]) - - AC_ARG_ENABLE(cloog-version-check, - [AS_HELP_STRING( - [--disable-cloog-version-check], - [disable check for CLooG version])], - ENABLE_CLOOG_CHECK=3D$enableval, - ENABLE_CLOOG_CHECK=3Dyes) - =20 - # Initialize clooglibs and clooginc. - case $with_cloog in - no) - clooglibs=3D - clooginc=3D - ;; - "" | yes) - ;; - *) - clooglibs=3D"-L$with_cloog/lib" - clooginc=3D"-I$with_cloog/include" - ;; - esac - if test "x${with_cloog_include}" !=3D x ; then - clooginc=3D"-I$with_cloog_include" - fi - if test "x${with_cloog_lib}" !=3D x; then - clooglibs=3D"-L$with_cloog_lib" - fi - dnl If no --with-cloog flag was specified and there is in-tree CLooG - dnl source, set up flags to use that and skip any version tests - dnl as we cannot run them reliably before building CLooG - if test "x${clooginc}" =3D x && test "x${clooglibs}" =3D x \ - && test -d ${srcdir}/cloog; then - clooglibs=3D'-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' ' - clooginc=3D'-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I= '${srcdir}'/cloog/include ' - ENABLE_CLOOG_CHECK=3Dno - AC_MSG_WARN([using in-tree CLooG, disabling version check]) - fi - - clooginc=3D"-DCLOOG_INT_GMP ${clooginc}" - clooglibs=3D"${clooglibs} -lcloog-isl ${isllibs} -lisl" -] -) - -# CLOOG_REQUESTED (ACTION-IF-REQUESTED, ACTION-IF-NOT) -# ---------------------------------------------------- -# Provide actions for failed CLooG detection. -AC_DEFUN([CLOOG_REQUESTED], -[ - AC_REQUIRE([CLOOG_INIT_FLAGS]) - - if test "x${with_cloog}" =3D xno; then - $2 - elif test "x${with_cloog}" !=3D x \ - || test "x${with_cloog_include}" !=3D x \ - || test "x${with_cloog_lib}" !=3D x ; then - $1 - else - $2 - fi -] -) - -# _CLOOG_CHECK_CT_PROG(MAJOR, MINOR, REVISION) -# -------------------------------------------- -# Helper for verifying CLooG's compile time version. -m4_define([_CLOOG_CHECK_CT_PROG],[AC_LANG_PROGRAM( - [#include "cloog/version.h"], - [#if CLOOG_VERSION_MAJOR !=3D $1 \ - || CLOOG_VERSION_MINOR !=3D $2 \ - || CLOOG_VERSION_REVISION < $3 - choke me - #endif])]) - -# CLOOG_CHECK_VERSION CLOOG_CHECK_VERSION (MAJOR, MINOR, REVISION) -# ---------------------------------------------------------------- -# Test the found CLooG to be exact of version MAJOR.MINOR and at least -# REVISION. -AC_DEFUN([CLOOG_CHECK_VERSION], -[ - AC_REQUIRE([CLOOG_INIT_FLAGS]) - - if test "${ENABLE_CLOOG_CHECK}" =3D yes ; then - _cloog_saved_CFLAGS=3D$CFLAGS - _cloog_saved_LDFLAGS=3D$LDFLAGS - - CFLAGS=3D"${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}" - LDFLAGS=3D"${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}" - - AC_MSG_CHECKING([for version $1.$2.$3 of CLooG]) - AC_COMPILE_IFELSE([_CLOOG_CHECK_CT_PROG($1,$2,$3)], - [gcc_cv_cloog=3Dyes], - [gcc_cv_cloog=3Dno]) - AC_MSG_RESULT([$gcc_cv_cloog]) - - CFLAGS=3D$_cloog_saved_CFLAGS - LDFLAGS=3D$_cloog_saved_LDFLAGS - fi -] -) - -# CLOOG_IF_FAILED (ACTION-IF-FAILED) -# ---------------------------------- -# Executes ACTION-IF-FAILED, if GRAPHITE was requested and -# the checks failed. -AC_DEFUN([CLOOG_IF_FAILED], -[ - CLOOG_REQUESTED([graphite_requested=3Dyes], [graphite_requested=3Dno]) - =20 - if test "${gcc_cv_cloog}" =3D no ; then - clooglibs=3D - clooginc=3D - fi - - if test "${graphite_requested}" =3D yes \ - && test "x${clooglibs}" =3D x \ - && test "x${clooginc}" =3D x ; then - $1 - fi -] -)