diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2020-10-31 08:30:57 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-10-31 08:30:57 -0400 |
commit | 91e1a0ed0961091d0312982da759d8bf378fca50 (patch) | |
tree | f975c28df89bbf2bee9524eb46bfa79113ae2cfc /gdbserver | |
parent | b5e72fb54a432e5d2b572ce605dd04629491a30f (diff) | |
download | gdb-91e1a0ed0961091d0312982da759d8bf378fca50.zip gdb-91e1a0ed0961091d0312982da759d8bf378fca50.tar.gz gdb-91e1a0ed0961091d0312982da759d8bf378fca50.tar.bz2 |
gdb, gdbserver, gdbsupport: use AC_CANONICAL_{BUILD,HOST,TARGET} instead of AC_CANONICAL_SYSTEM
`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
Diffstat (limited to 'gdbserver')
-rw-r--r-- | gdbserver/ChangeLog | 6 | ||||
-rwxr-xr-x | gdbserver/configure | 6 | ||||
-rw-r--r-- | gdbserver/configure.ac | 9 |
3 files changed, 19 insertions, 2 deletions
diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog index 0167163..f9b2b5e 100644 --- a/gdbserver/ChangeLog +++ b/gdbserver/ChangeLog @@ -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) diff --git a/gdbserver/configure b/gdbserver/configure index 95086d0..4b7ef28 100755 --- a/gdbserver/configure +++ b/gdbserver/configure @@ -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: diff --git a/gdbserver/configure.ac b/gdbserver/configure.ac index 4c7e392..c474870 100644 --- a/gdbserver/configure.ac +++ b/gdbserver/configure.ac @@ -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) |