]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
autoupdate: replace obsolete macros AC_CANONICAL_SYSTEM
authorMatthieu Longo <matthieu.longo@arm.com>
Tue, 28 May 2024 09:49:43 +0000 (10:49 +0100)
committerAlan Modra <amodra@gmail.com>
Sun, 9 Jun 2024 22:55:55 +0000 (08:25 +0930)
- AC_CANONICAL_SYSTEM by:
    * AC_CANONICAL_HOST where host, and host_alias are needed
    * AC_CANONICAL_TARGET where target_alias is needed
  https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.72/autoconf.html#index-AC_005fCANONICAL_005fTARGET-1

config/acx.m4
config/lthostflags.m4
configure.ac
gnulib/configure.ac
libbacktrace/configure.ac
zlib/configure.ac

index 7efe98aaf960840b39de9d499d04bf82ac08b0d2..69f4bfa4d76931e1f3e9436bb69a2049c6eb23ea 100644 (file)
@@ -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_HOST and AC_CANONICAL_TARGET be called beforehand.
 AC_DEFUN([_NCN_TOOL_PREFIXES],
 [ncn_tool_prefix=
 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
index bc0f59ee79e023ca0f6b6e2da5bd10f5f9de7abd..4a389a75ea836ea29d99fffa7c26f247bfdb151b 100644 (file)
@@ -10,7 +10,7 @@ dnl Defines and AC_SUBSTs lt_host_flags
 
 
 AC_DEFUN([ACX_LT_HOST_FLAGS], [
-AC_REQUIRE([AC_CANONICAL_SYSTEM])
+AC_REQUIRE([AC_CANONICAL_HOST])
 
 case $host in
   *-cygwin* | *-mingw*)
index 1300a805fd8de002e011188f401c583b4db809b3..9f69d46e3247cc6d816cab911486c1b117e4cde3 100644 (file)
@@ -70,14 +70,14 @@ ACX_NONCANONICAL_TARGET
 
 dnl Autoconf 2.5x and later will set a default program prefix if
 dnl --target was used, even if it was the same as --host.  Disable
-dnl that behavior.  This must be done before AC_CANONICAL_SYSTEM
+dnl that behavior.  This must be done before AC_CANONICAL_TARGET
 dnl to take effect.
 test "$host_noncanonical" = "$target_noncanonical" &&
   test "$program_prefix$program_suffix$program_transform_name" = \
     NONENONEs,x,x, &&
   program_transform_name=s,y,y,
 
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
 AC_ARG_PROGRAM
 
 m4_pattern_allow([^AS_FOR_TARGET$])dnl
index 716e1c8eb7022b6ef985d8c561e79bbda6e4c738..66a35911bcaf056feb2b3bdb27fcc50b8c85fb24 100644 (file)
@@ -34,7 +34,7 @@ gl_EARLY
 AM_PROG_CC_STDC
 
 AC_CONFIG_AUX_DIR(..)
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
 
 gl_INIT
 
index da61eff0e56e6fcd82717daf773d96279cc17860..c5d84f773587b47dd05cabeb11160ba94c36c062 100644 (file)
@@ -37,7 +37,8 @@ if test -n "${with_target_subdir}"; then
   AM_ENABLE_MULTILIB(, ..)
 fi
 
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_HOST
+AC_CANONICAL_TARGET
 target_alias=${target_alias-$host_alias}
 
 AC_USE_SYSTEM_EXTENSIONS
index fa1c8fedd6b1a44fbaeec03c9f679c1248c0d292..3fa379fb82a6cda73bedd84e6272c5ee7b946543 100644 (file)
@@ -7,7 +7,7 @@ if test -n "${with_target_subdir}"; then
   AM_ENABLE_MULTILIB(, ..)
 fi
 
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
 
 # This works around an automake problem.
 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"