gdb, gdbserver, gdbsupport: use AC_CANONICAL_{BUILD,HOST,TARGET} instead of AC_CANONI...
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 31 Oct 2020 12:30:57 +0000 (08:30 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 31 Oct 2020 12:30:57 +0000 (08:30 -0400)
`autoreconf -Wall` notes that AC_CANONICAL_SYSTEM is obsolete:

    configure.ac:36: warning: The macro `AC_CANONICAL_SYSTEM' is obsolete.

Replace it by AC_CANONICAL_BUILD, AC_CANONICAL_HOST and
AC_CANONICAL_TARGET in configure.ac files in gdb, gdbserver and
gdbsupport.  All three macros may not be needed everywhere, but it is
hard to completely audit the configure files to see which are required,
so I think it's better (and that there's no downside) to just call all
three.

gdb/ChangeLog:

* configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
AC_CANONICAL_SYSTEM.
* configure: Re-generate.

gdbserver/ChangeLog:

* configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
AC_CANONICAL_SYSTEM.
* configure: Re-generate.

gdbsupport/ChangeLog:

* configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
AC_CANONICAL_SYSTEM.
* configure: Re-generate.

Change-Id: Ifd0e21f1e478634e768b5de1b8ee06a7f690d863

gdb/ChangeLog
gdb/configure
gdb/configure.ac
gdbserver/ChangeLog
gdbserver/configure
gdbserver/configure.ac
gdbsupport/ChangeLog
gdbsupport/configure
gdbsupport/configure.ac

index dce2e11818a7f22da5503735e2264ef135aadc77..03497060e5bc9b7177437e697a9129ed940d88cd 100644 (file)
@@ -1,3 +1,9 @@
+2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
+       AC_CANONICAL_SYSTEM.
+       * configure: Re-generate.
+
 2020-10-30  Simon Marchi  <simon.marchi@efficios.com>
 
        * infrun.h (displaced_debug_printf): New macro.  Replace
index a8942ecbd5d654ec522b769adeab2a5cdc03d7c6..d943424ca5bb175df967c989e8cbd212f685381b 100755 (executable)
@@ -5249,6 +5249,15 @@ ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
 
 
+# Set build, build_cpu, build_vendor and build_os.
+
+
+# Set host, host_cpu, host_vendor, and host_os.
+
+
+# Set target, target_cpu, target_vendor, and target_os.
+
+
 test "$program_prefix" != NONE &&
   program_transform_name="s&^&$program_prefix&;$program_transform_name"
 # Use a double $ so make ignores it.
index 6b4b0fa85109d1e0d0a1610fece2ce13295befb9..1d34d08ee431e7db40f9ef74d5f5b27a6ace30c1 100644 (file)
@@ -33,7 +33,16 @@ AM_PROG_CC_STDC
 AM_PROG_INSTALL_STRIP
 
 AC_CONFIG_AUX_DIR(..)
-AC_CANONICAL_SYSTEM
+
+# Set build, build_cpu, build_vendor and build_os.
+AC_CANONICAL_BUILD
+
+# Set host, host_cpu, host_vendor, and host_os.
+AC_CANONICAL_HOST
+
+# Set target, target_cpu, target_vendor, and target_os.
+AC_CANONICAL_TARGET
+
 AC_ARG_PROGRAM
 
 # We require a C++11 compiler.  Check if one is available, and if
index 0167163e4e3af48a0bbef1ed5690bc58ac737cd0..f9b2b5ee84ba82d8bfcd82b54afb247faf2bd5dd 100644 (file)
@@ -1,3 +1,9 @@
+2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
+       AC_CANONICAL_SYSTEM.
+       * configure: Re-generate.
+
 2020-10-26  Pedro Alves  <pedro@palves.net>
 
        * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
index 95086d0f0a51e8607628f20a40d4ed8bc81aee9a..4b7ef288d06516e63b2998bb2f3fccb2d312fc6f 100755 (executable)
@@ -4588,6 +4588,7 @@ fi
 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
 
+# Set build, build_cpu, build_vendor and build_os.
 # Make sure we can run config.sub.
 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
@@ -4626,6 +4627,8 @@ IFS=$ac_save_IFS
 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
 
+
+# Set host, host_cpu, host_vendor, and host_os.
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 $as_echo_n "checking host system type... " >&6; }
 if ${ac_cv_host+:} false; then :
@@ -4659,6 +4662,8 @@ IFS=$ac_save_IFS
 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
 
+
+# Set target, target_cpu, target_vendor, and target_os.
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
 $as_echo_n "checking target system type... " >&6; }
 if ${ac_cv_target+:} false; then :
@@ -4699,7 +4704,6 @@ test -n "$target_alias" &&
     NONENONEs,x,x, &&
   program_prefix=${target_alias}-
 
-
 # Find a good install program.  We prefer a C program (faster),
 # so one script is as good as another.  But avoid the broken or
 # incompatible versions:
index 4c7e392bbcedfb0b8bb116725b0f438c3d681030..c4748703dcda005faeaab8d744cd204a221a36f2 100644 (file)
@@ -29,7 +29,14 @@ AC_GNU_SOURCE
 AC_SYS_LARGEFILE
 AM_PROG_INSTALL_STRIP
 
-AC_CANONICAL_SYSTEM
+# Set build, build_cpu, build_vendor and build_os.
+AC_CANONICAL_BUILD
+
+# Set host, host_cpu, host_vendor, and host_os.
+AC_CANONICAL_HOST
+
+# Set target, target_cpu, target_vendor, and target_os.
+AC_CANONICAL_TARGET
 
 AC_PROG_INSTALL
 AC_CHECK_TOOL(AR, ar)
index 2b01a0ba8408bcced929066d1734343bbd231a7e..8eae8bb2f5d13e9fb0bbe1c79b00451483ff53a7 100644 (file)
@@ -1,3 +1,9 @@
+2020-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
+       AC_CANONICAL_SYSTEM.
+       * configure: Re-generate.
+
 2020-10-26  Pedro Alves  <pedro@palves.net>
 
        * eintr.h (handle_eintr): Replace Ret template parameter with
index a37f3c232ce525f8e59a8698a3a9511e463ad2a5..cce6f51701b491b34be2f9866377180c0f7edc9f 100755 (executable)
@@ -2728,6 +2728,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 ac_config_headers="$ac_config_headers config.h:config.in"
 
+
+# Set build, build_cpu, build_vendor and build_os.
 ac_aux_dir=
 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   if test -f "$ac_dir/install-sh"; then
@@ -2795,6 +2797,8 @@ IFS=$ac_save_IFS
 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
 
+
+# Set host, host_cpu, host_vendor, and host_os.
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 $as_echo_n "checking host system type... " >&6; }
 if ${ac_cv_host+:} false; then :
@@ -2828,6 +2832,8 @@ IFS=$ac_save_IFS
 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
 
+
+# Set target, target_cpu, target_vendor, and target_os.
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
 $as_echo_n "checking target system type... " >&6; }
 if ${ac_cv_target+:} false; then :
index 401e16f821da462b81d39f9a949b0b419165780b..a62a130fe9965ba944d098b530b02f1476449f02 100644 (file)
@@ -19,7 +19,16 @@ dnl Process this file with autoconf to produce a configure script.
 AC_INIT([gdbsupport], 1.0)
 AC_CONFIG_SRCDIR(common-defs.h)
 AC_CONFIG_HEADER(config.h:config.in)
-AC_CANONICAL_SYSTEM
+
+# Set build, build_cpu, build_vendor and build_os.
+AC_CANONICAL_BUILD
+
+# Set host, host_cpu, host_vendor, and host_os.
+AC_CANONICAL_HOST
+
+# Set target, target_cpu, target_vendor, and target_os.
+AC_CANONICAL_TARGET
+
 AM_MAINTAINER_MODE
 AC_CONFIG_AUX_DIR(..)
 AM_INIT_AUTOMAKE
This page took 0.052271 seconds and 4 git commands to generate.