From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1062) id 0A33E3858C33; Sun, 9 Jun 2024 23:06:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A33E3858C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1717974369; bh=D+yom+whausMeSHsGSjSTe5lzWGS8ejiw4OdcV1Kl1I=; h=From:To:Subject:Date:From; b=bakZivKLZw/3b70FZN55TGJOWrF4EcEKp0e7rEstUbKsGLJ96ZcVd7+6gUTOeE5J7 bkHM1grZmETUYV7hrxdoq0iSJuC+owtI2C4h2Oj5MeBNt7Nonf7uP91zKBXepD3J6n GsZZTj37Sihvyg2r9G+03mOpQlMKj2uJ0boD7PCE= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Alan Modra To: binutils-cvs@sourceware.org, gdb-cvs@sourceware.org Subject: [binutils-gdb] autoupdate: replace obsolete macros AC_CANONICAL_SYSTEM X-Act-Checkin: binutils-gdb X-Git-Author: Matthieu Longo X-Git-Refname: refs/heads/master X-Git-Oldrev: 5a8f592c7618ba2054683469e0c8909273ca4e7d X-Git-Newrev: 29496481662736f0a24bfc1daf31dbfc9d2bb7ee Message-Id: <20240609230609.0A33E3858C33@sourceware.org> Date: Sun, 9 Jun 2024 23:06:08 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D294964816627= 36f0a24bfc1daf31dbfc9d2bb7ee commit 29496481662736f0a24bfc1daf31dbfc9d2bb7ee Author: Matthieu Longo Date: Tue May 28 10:49:43 2024 +0100 autoupdate: replace obsolete macros AC_CANONICAL_SYSTEM =20 - 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 Diff: --- config/acx.m4 | 4 ++-- config/lthostflags.m4 | 2 +- configure.ac | 4 ++-- gnulib/configure.ac | 2 +- libbacktrace/configure.ac | 3 ++- zlib/configure.ac | 2 +- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/config/acx.m4 b/config/acx.m4 index 7efe98aaf96..69f4bfa4d76 100644 --- a/config/acx.m4 +++ b/config/acx.m4 @@ -107,9 +107,9 @@ AC_SUBST([target_subdir]) []dnl =20 =20 #### -# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYS= TEM=20 +# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_TAR= GET # or AC_INIT. -# These demand that AC_CANONICAL_SYSTEM be called beforehand. +# These demand that AC_CANONICAL_HOST and AC_CANONICAL_TARGET be called be= forehand. AC_DEFUN([_NCN_TOOL_PREFIXES], [ncn_tool_prefix=3D test -n "$host_alias" && ncn_tool_prefix=3D$host_alias- diff --git a/config/lthostflags.m4 b/config/lthostflags.m4 index bc0f59ee79e..4a389a75ea8 100644 --- a/config/lthostflags.m4 +++ b/config/lthostflags.m4 @@ -10,7 +10,7 @@ dnl Defines and AC_SUBSTs lt_host_flags =20 =20 AC_DEFUN([ACX_LT_HOST_FLAGS], [ -AC_REQUIRE([AC_CANONICAL_SYSTEM]) +AC_REQUIRE([AC_CANONICAL_HOST]) =20 case $host in *-cygwin* | *-mingw*) diff --git a/configure.ac b/configure.ac index 1300a805fd8..9f69d46e324 100644 --- a/configure.ac +++ b/configure.ac @@ -70,14 +70,14 @@ ACX_NONCANONICAL_TARGET =20 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" =3D "$target_noncanonical" && test "$program_prefix$program_suffix$program_transform_name" =3D \ NONENONEs,x,x, && program_transform_name=3Ds,y,y, =20 -AC_CANONICAL_SYSTEM +AC_CANONICAL_TARGET AC_ARG_PROGRAM =20 m4_pattern_allow([^AS_FOR_TARGET$])dnl diff --git a/gnulib/configure.ac b/gnulib/configure.ac index 716e1c8eb70..66a35911bca 100644 --- a/gnulib/configure.ac +++ b/gnulib/configure.ac @@ -34,7 +34,7 @@ gl_EARLY AM_PROG_CC_STDC =20 AC_CONFIG_AUX_DIR(..) -AC_CANONICAL_SYSTEM +AC_CANONICAL_TARGET =20 gl_INIT =20 diff --git a/libbacktrace/configure.ac b/libbacktrace/configure.ac index da61eff0e56..c5d84f77358 100644 --- a/libbacktrace/configure.ac +++ b/libbacktrace/configure.ac @@ -37,7 +37,8 @@ if test -n "${with_target_subdir}"; then AM_ENABLE_MULTILIB(, ..) fi =20 -AC_CANONICAL_SYSTEM +AC_CANONICAL_HOST +AC_CANONICAL_TARGET target_alias=3D${target_alias-$host_alias} =20 AC_USE_SYSTEM_EXTENSIONS diff --git a/zlib/configure.ac b/zlib/configure.ac index fa1c8fedd6b..3fa379fb82a 100644 --- a/zlib/configure.ac +++ b/zlib/configure.ac @@ -7,7 +7,7 @@ if test -n "${with_target_subdir}"; then AM_ENABLE_MULTILIB(, ..) fi =20 -AC_CANONICAL_SYSTEM +AC_CANONICAL_TARGET =20 # This works around an automake problem. mkinstalldirs=3D"`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"