public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/egallager/heads/autotools-tinkering)] run autoupdate on some m4 files in config
@ 2022-05-25 4:35 Eric Gallager
0 siblings, 0 replies; only message in thread
From: Eric Gallager @ 2022-05-25 4:35 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d5ea2aea9c2f3315d789a1e973204fb24f326b58
commit d5ea2aea9c2f3315d789a1e973204fb24f326b58
Author: Eric Gallager <egallager@gcc.gnu.org>
Date: Wed May 25 00:35:05 2022 -0400
run autoupdate on some m4 files in config
just two of them that report warnings with `autoconf -Wall`; trying to autoupdate all of them errors out on me
Diff:
---
config/acx.m4 | 22 ++++++++--------------
config/isl.m4 | 5 +----
configure | 3 ---
3 files changed, 9 insertions(+), 21 deletions(-)
diff --git a/config/acx.m4 b/config/acx.m4
index b86c4f9e51d..7786bee9a1a 100644
--- a/config/acx.m4
+++ b/config/acx.m4
@@ -107,9 +107,9 @@ AC_SUBST([target_subdir]) []dnl
####
-# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
+# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_TARGET
# or AC_INIT.
-# These demand that AC_CANONICAL_SYSTEM be called beforehand.
+# These demand that AC_CANONICAL_TARGET be called beforehand.
AC_DEFUN([_NCN_TOOL_PREFIXES],
[ncn_tool_prefix=
test -n "$host_alias" && ncn_tool_prefix=$host_alias-
@@ -389,8 +389,7 @@ ac_c_preproc_warn_flag=yes])# AC_PROG_CPP_WERROR
# Sets the shell variable have_gnat to yes or no as appropriate, and
# substitutes GNATBIND and GNATMAKE.
AC_DEFUN([ACX_PROG_GNAT],
-[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])
-AC_REQUIRE([AC_PROG_CC])
+[AC_REQUIRE([AC_PROG_CC])
AC_CHECK_TOOL(GNATBIND, gnatbind, no)
AC_CHECK_TOOL(GNATMAKE, gnatmake, no)
AC_CACHE_CHECK([whether compiler driver understands Ada],
@@ -422,8 +421,7 @@ fi
# Test for D.
AC_DEFUN([ACX_PROG_GDC],
-[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])
-AC_REQUIRE([AC_PROG_CC])
+[AC_REQUIRE([AC_PROG_CC])
AC_CHECK_TOOL(GDC, gdc, no)
AC_CACHE_CHECK([whether the D compiler works],
acx_cv_d_compiler_works,
@@ -480,8 +478,8 @@ dnl See whether we can include both string.h and strings.h.
AC_DEFUN([ACX_HEADER_STRING],
[AC_CACHE_CHECK([whether string.h and strings.h may both be included],
gcc_cv_header_string,
-[AC_TRY_COMPILE([#include <string.h>
-#include <strings.h>], , gcc_cv_header_string=yes, gcc_cv_header_string=no)])
+[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <string.h>
+#include <strings.h>]], [[]])],[gcc_cv_header_string=yes],[gcc_cv_header_string=no])])
if test $gcc_cv_header_string = yes; then
AC_DEFINE(STRING_WITH_STRINGS, 1, [Define if you can safely include both <string.h> and <strings.h>.])
fi
@@ -492,17 +490,13 @@ dnl Check whether _Bool is built-in.
AC_DEFUN([ACX_HEADER_STDBOOL],
[AC_CACHE_CHECK([for working stdbool.h],
ac_cv_header_stdbool_h,
-[AC_TRY_COMPILE([#include <stdbool.h>],
-[bool foo = false;],
-ac_cv_header_stdbool_h=yes, ac_cv_header_stdbool_h=no)])
+[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdbool.h>]], [[bool foo = false;]])],[ac_cv_header_stdbool_h=yes],[ac_cv_header_stdbool_h=no])])
if test $ac_cv_header_stdbool_h = yes; then
AC_DEFINE(HAVE_STDBOOL_H, 1,
[Define if you have a working <stdbool.h> header file.])
fi
AC_CACHE_CHECK(for built-in _Bool, gcc_cv_c__bool,
-[AC_TRY_COMPILE(,
-[_Bool foo;],
-gcc_cv_c__bool=yes, gcc_cv_c__bool=no)
+[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[_Bool foo;]])],[gcc_cv_c__bool=yes],[gcc_cv_c__bool=no])
])
if test $gcc_cv_c__bool = yes; then
AC_DEFINE(HAVE__BOOL, 1, [Define if the \`_Bool' type is built-in.])
diff --git a/config/isl.m4 b/config/isl.m4
index bbb973e023b..abdeab42f2e 100644
--- a/config/isl.m4
+++ b/config/isl.m4
@@ -107,10 +107,7 @@ AC_DEFUN([ISL_CHECK_VERSION],
LIBS="${_isl_saved_LIBS} -lisl -lgmp"
AC_MSG_CHECKING([for isl 0.15 or later])
- AC_TRY_LINK([#include <isl/schedule.h>],
- [isl_options_set_schedule_serialize_sccs (NULL, 0);],
- [gcc_cv_isl=yes],
- [gcc_cv_isl=no])
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <isl/schedule.h>]], [[isl_options_set_schedule_serialize_sccs (NULL, 0);]])],[gcc_cv_isl=yes],[gcc_cv_isl=no])
AC_MSG_RESULT([$gcc_cv_isl])
if test "${gcc_cv_isl}" = no ; then
diff --git a/configure b/configure
index 393b17e6509..ecd9973bea2 100755
--- a/configure
+++ b/configure
@@ -5419,8 +5419,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
-
-
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
@@ -5638,7 +5636,6 @@ else
fi
-
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gdc; ac_word=$2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-25 4:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-25 4:35 [gcc(refs/users/egallager/heads/autotools-tinkering)] run autoupdate on some m4 files in config Eric Gallager
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).