From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 4A93B3857342; Sun, 23 Oct 2022 20:32:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4A93B3857342 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666557135; bh=+5b7aA2N0++h4FLzmVPtsTpHoFj5pC6oWkT/0XXvNRU=; h=From:To:Subject:Date:From; b=FXw1nQJF7JgLCrrt5fEZ+ix7bCmVotcyEWPl1ktpPa3mqYci7E7UaqfSC48/mfib9 7fzm/8jREG5q/FBGtcSnKY1149mFJkuU4TBCeTdeyMwOBzNJmUKzFNPG7F3eIT7/LB 8XBIX3TvEGi2pWTaMkhoS1EDsiKa5E/rauAff6Rs= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: mips/ppc/riscv: re-add AC_CANONICAL_SYSTEM [PR sim/29439] X-Act-Checkin: binutils-gdb X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: df5ffabf1cfcb6b4f04d840ef54b37de379f1ba1 X-Git-Newrev: 89d5fc244fd6bbbb59c6d1b04eb2f048059b3dad Message-Id: <20221023203215.4A93B3857342@sourceware.org> Date: Sun, 23 Oct 2022 20:32:15 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D89d5fc244fd6= bbbb59c6d1b04eb2f048059b3dad commit 89d5fc244fd6bbbb59c6d1b04eb2f048059b3dad Author: Mike Frysinger Date: Sun Oct 23 22:46:16 2022 +0545 sim: mips/ppc/riscv: re-add AC_CANONICAL_SYSTEM [PR sim/29439] =20 These configure scripts check $target and change behavior. They shouldn't be doing that, but until we can rework the sim to change behavior based on the input ELF, restore AC_CANONICAL_SYSTEM to these so that $target is correctly populated. =20 This was lost in the d3562f83a7b8a1ae6e333cd5561419d3da18fcb4 ("sim: unify toolchain probing logic") refactor as the logic was hoisted up to the common code. But the fact the vars weren't passed down to the sub-configure scripts was missed. =20 Bug: https://sourceware.org/PR29439 Diff: --- sim/mips/configure | 158 +++++++++++++++++++++++++++++++++++++++++++++= ++++ sim/mips/configure.ac | 4 ++ sim/ppc/configure | 129 ++++++++++++++++++++++++++++++++++++++++ sim/ppc/configure.ac | 4 ++ sim/riscv/configure | 158 +++++++++++++++++++++++++++++++++++++++++++++= ++++ sim/riscv/configure.ac | 4 ++ 6 files changed, 457 insertions(+) diff --git a/sim/mips/configure b/sim/mips/configure index 2f635a50e10..14d7e0ce52e 100755 --- a/sim/mips/configure +++ b/sim/mips/configure @@ -596,6 +596,18 @@ sim_micromips_flags sim_m16_flags sim_igen_flags SIM_SUBTARGET +target_os +target_vendor +target_cpu +target +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build target_alias host_alias build_alias @@ -1241,6 +1253,11 @@ Fine tuning of the installation directories: _ACEOF =20 cat <<\_ACEOF + +System types: + --build=3DBUILD configure for building on BUILD [guessed] + --host=3DHOST cross-compile to build programs to run on HOST [BUIL= D] + --target=3DTARGET configure for building compilers for TARGET [HOST] _ACEOF fi =20 @@ -1686,6 +1703,147 @@ ac_compiler_gnu=3D$ac_cv_c_compiler_gnu =20 =20 =20 +ac_aux_dir=3D +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=3D$ac_dir + ac_install_sh=3D"$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=3D$ac_dir + ac_install_sh=3D"$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=3D$ac_dir + ac_install_sh=3D"$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcd= ir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a direc= tory +# whose full name contains unusual characters. +ac_config_guess=3D"$SHELL $ac_aux_dir/config.guess" # Please don't use th= is var. +ac_config_sub=3D"$SHELL $ac_aux_dir/config.sub" # Please don't use this v= ar. +ac_configure=3D"$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# 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 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=3D$build_alias +test "x$ac_build_alias" =3D x && + ac_build_alias=3D`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" =3D x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO"= 5 +ac_cv_build=3D`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$= LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=3D$ac_cv_build +ac_save_IFS=3D$IFS; IFS=3D'-' +set x $ac_cv_build +shift +build_cpu=3D$1 +build_vendor=3D$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=3D$* +IFS=3D$ac_save_IFS +case $build_os in *\ *) build_os=3D`echo "$build_os" | sed 's/ /-/g'`;; es= ac + + +{ $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 : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" =3D x; then + ac_cv_host=3D$ac_cv_build +else + ac_cv_host=3D`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LI= NENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=3D$ac_cv_host +ac_save_IFS=3D$IFS; IFS=3D'-' +set x $ac_cv_host +shift +host_cpu=3D$1 +host_vendor=3D$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=3D$* +IFS=3D$ac_save_IFS +case $host_os in *\ *) host_os=3D`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ $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 : + $as_echo_n "(cached) " >&6 +else + if test "x$target_alias" =3D x; then + ac_cv_target=3D$ac_cv_host +else + ac_cv_target=3D`$SHELL "$ac_aux_dir/config.sub" $target_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$= LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +$as_echo "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; +esac +target=3D$ac_cv_target +ac_save_IFS=3D$IFS; IFS=3D'-' +set x $ac_cv_target +shift +target_cpu=3D$1 +target_vendor=3D$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=3D$* +IFS=3D$ac_save_IFS +case $target_os in *\ *) target_os=3D`echo "$target_os" | sed 's/ /-/g'`;;= esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" =3D \ + NONENONEs,x,x, && + program_prefix=3D${target_alias}- + + # DEPRECATED # # Instead of defining a `subtarget' macro, code should be checking diff --git a/sim/mips/configure.ac b/sim/mips/configure.ac index 96806424958..bdc675842d3 100644 --- a/sim/mips/configure.ac +++ b/sim/mips/configure.ac @@ -2,6 +2,10 @@ dnl Process this file with autoconf to produce a configure= script. AC_INIT(Makefile.in) AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config]) =20 +dnl The sim shouldn't be checking $target and changing behavior. But it i= s, +dnl and until we clean that up, we need to expand --target for use below. +AC_CANONICAL_SYSTEM + # DEPRECATED # # Instead of defining a `subtarget' macro, code should be checking diff --git a/sim/ppc/configure b/sim/ppc/configure index 1e5283771fa..98557846236 100755 --- a/sim/ppc/configure +++ b/sim/ppc/configure @@ -649,6 +649,18 @@ sim_line_nr EGREP GREP CPP +target_os +target_vendor +target_cpu +target +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build OBJEXT EXEEXT ac_ct_CC @@ -1326,6 +1338,11 @@ Fine tuning of the installation directories: _ACEOF =20 cat <<\_ACEOF + +System types: + --build=3DBUILD configure for building on BUILD [guessed] + --host=3DHOST cross-compile to build programs to run on HOST [BUIL= D] + --target=3DTARGET configure for building compilers for TARGET [HOST] _ACEOF fi =20 @@ -2915,6 +2932,118 @@ ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFL= AGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=3D$ac_cv_c_compiler_gnu =20 =20 +# 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 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=3D$build_alias +test "x$ac_build_alias" =3D x && + ac_build_alias=3D`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" =3D x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO"= 5 +ac_cv_build=3D`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$= LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=3D$ac_cv_build +ac_save_IFS=3D$IFS; IFS=3D'-' +set x $ac_cv_build +shift +build_cpu=3D$1 +build_vendor=3D$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=3D$* +IFS=3D$ac_save_IFS +case $build_os in *\ *) build_os=3D`echo "$build_os" | sed 's/ /-/g'`;; es= ac + + +{ $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 : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" =3D x; then + ac_cv_host=3D$ac_cv_build +else + ac_cv_host=3D`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LI= NENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=3D$ac_cv_host +ac_save_IFS=3D$IFS; IFS=3D'-' +set x $ac_cv_host +shift +host_cpu=3D$1 +host_vendor=3D$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=3D$* +IFS=3D$ac_save_IFS +case $host_os in *\ *) host_os=3D`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ $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 : + $as_echo_n "(cached) " >&6 +else + if test "x$target_alias" =3D x; then + ac_cv_target=3D$ac_cv_host +else + ac_cv_target=3D`$SHELL "$ac_aux_dir/config.sub" $target_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$= LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +$as_echo "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; +esac +target=3D$ac_cv_target +ac_save_IFS=3D$IFS; IFS=3D'-' +set x $ac_cv_target +shift +target_cpu=3D$1 +target_vendor=3D$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=3D$* +IFS=3D$ac_save_IFS +case $target_os in *\ *) target_os=3D`echo "$target_os" | sed 's/ /-/g'`;;= esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" =3D \ + NONENONEs,x,x, && + program_prefix=3D${target_alias}- + + # Check whether --enable-sim-bitsize was given. if test "${enable_sim_bitsize+set}" =3D set; then : enableval=3D$enable_sim_bitsize; case "${enableval}" in diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac index 75232006e94..b5909b70571 100644 --- a/sim/ppc/configure.ac +++ b/sim/ppc/configure.ac @@ -5,6 +5,10 @@ AC_CONFIG_MACRO_DIRS([../.. ../../config]) AC_PROG_INSTALL AC_PROG_CC =20 +dnl The sim shouldn't be checking $target and changing behavior. But it i= s, +dnl and until we clean that up, we need to expand --target for use below. +AC_CANONICAL_SYSTEM + AC_ARG_ENABLE(sim-bitsize, [ --enable-sim-bitsize=3Dn Specify target bitsize (32 or 64).], [case "${enableval}" in diff --git a/sim/riscv/configure b/sim/riscv/configure index d3f0d47e26e..9b1de250caa 100755 --- a/sim/riscv/configure +++ b/sim/riscv/configure @@ -587,6 +587,18 @@ LIBOBJS SIM_COMMON_BUILD_FALSE SIM_COMMON_BUILD_TRUE sim_float +target_os +target_vendor +target_cpu +target +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build target_alias host_alias build_alias @@ -1230,6 +1242,11 @@ Fine tuning of the installation directories: _ACEOF =20 cat <<\_ACEOF + +System types: + --build=3DBUILD configure for building on BUILD [guessed] + --host=3DHOST cross-compile to build programs to run on HOST [BUIL= D] + --target=3DTARGET configure for building compilers for TARGET [HOST] _ACEOF fi =20 @@ -1673,6 +1690,147 @@ ac_compiler_gnu=3D$ac_cv_c_compiler_gnu =20 =20 =20 +ac_aux_dir=3D +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=3D$ac_dir + ac_install_sh=3D"$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=3D$ac_dir + ac_install_sh=3D"$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=3D$ac_dir + ac_install_sh=3D"$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcd= ir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a direc= tory +# whose full name contains unusual characters. +ac_config_guess=3D"$SHELL $ac_aux_dir/config.guess" # Please don't use th= is var. +ac_config_sub=3D"$SHELL $ac_aux_dir/config.sub" # Please don't use this v= ar. +ac_configure=3D"$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# 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 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=3D$build_alias +test "x$ac_build_alias" =3D x && + ac_build_alias=3D`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" =3D x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO"= 5 +ac_cv_build=3D`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$= LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=3D$ac_cv_build +ac_save_IFS=3D$IFS; IFS=3D'-' +set x $ac_cv_build +shift +build_cpu=3D$1 +build_vendor=3D$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=3D$* +IFS=3D$ac_save_IFS +case $build_os in *\ *) build_os=3D`echo "$build_os" | sed 's/ /-/g'`;; es= ac + + +{ $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 : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" =3D x; then + ac_cv_host=3D$ac_cv_build +else + ac_cv_host=3D`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LI= NENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=3D$ac_cv_host +ac_save_IFS=3D$IFS; IFS=3D'-' +set x $ac_cv_host +shift +host_cpu=3D$1 +host_vendor=3D$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=3D$* +IFS=3D$ac_save_IFS +case $host_os in *\ *) host_os=3D`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ $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 : + $as_echo_n "(cached) " >&6 +else + if test "x$target_alias" =3D x; then + ac_cv_target=3D$ac_cv_host +else + ac_cv_target=3D`$SHELL "$ac_aux_dir/config.sub" $target_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$= LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +$as_echo "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; +esac +target=3D$ac_cv_target +ac_save_IFS=3D$IFS; IFS=3D'-' +set x $ac_cv_target +shift +target_cpu=3D$1 +target_vendor=3D$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=3D$* +IFS=3D$ac_save_IFS +case $target_os in *\ *) target_os=3D`echo "$target_os" | sed 's/ /-/g'`;;= esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" =3D \ + NONENONEs,x,x, && + program_prefix=3D${target_alias}- + + # Select the bitsize of the target. riscv_addr_bitsize=3D case "${target}" in diff --git a/sim/riscv/configure.ac b/sim/riscv/configure.ac index 6edb28c863e..0e74a1edda5 100644 --- a/sim/riscv/configure.ac +++ b/sim/riscv/configure.ac @@ -2,6 +2,10 @@ dnl Process this file with autoconf to produce a configure= script. AC_INIT(Makefile.in) AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config]) =20 +dnl The sim shouldn't be checking $target and changing behavior. But it i= s, +dnl and until we clean that up, we need to expand --target for use below. +AC_CANONICAL_SYSTEM + # Select the bitsize of the target. riscv_addr_bitsize=3D case "${target}" in