diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-06 20:11:02 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-12 11:01:57 -0400 |
commit | 5ea45474021e98cbb325534b328e391593119cb0 (patch) | |
tree | 548bbb6a52ad6161ceacaab342532f4c9b89ca1d /sim/configure | |
parent | dba333c1e4051400983d3cb8b13c9c4a2d766e9c (diff) | |
download | fsf-binutils-gdb-5ea45474021e98cbb325534b328e391593119cb0.zip fsf-binutils-gdb-5ea45474021e98cbb325534b328e391593119cb0.tar.gz fsf-binutils-gdb-5ea45474021e98cbb325534b328e391593119cb0.tar.bz2 |
sim: unify environment build settings
Move the --sim-enable-environment option up to the common dir so we
only test & export it once across all ports.
Diffstat (limited to 'sim/configure')
-rwxr-xr-x | sim/configure | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sim/configure b/sim/configure index 5cbe2e6..0b9a118 100755 --- a/sim/configure +++ b/sim/configure @@ -751,6 +751,7 @@ enable_sim enable_example_sims enable_targets enable_sim_assert +enable_sim_environment ' ac_precious_vars='build_alias host_alias @@ -1424,6 +1425,9 @@ Optional Features: --enable-example-sims enable example GNU simulators --enable-targets alternative target configurations --enable-sim-assert Specify whether to perform random assertions + --enable-sim-environment=environment + Specify mixed, user, virtual or operating + environment Some influential environment variables: CC C compiler command @@ -5940,6 +5944,28 @@ _ACEOF $as_echo "$sim_assert" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5 +$as_echo_n "checking default sim environment setting... " >&6; } +sim_environment="ALL_ENVIRONMENT" +# Check whether --enable-sim-environment was given. +if test "${enable_sim_environment+set}" = set; then : + enableval=$enable_sim_environment; case "${enableval}" in + all | ALL) sim_environment="ALL_ENVIRONMENT";; + user | USER) sim_environment="USER_ENVIRONMENT";; + virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";; + operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";; + *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;; +esac +fi + +cat >>confdefs.h <<_ACEOF +#define WITH_ENVIRONMENT $sim_environment +_ACEOF + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5 +$as_echo "$sim_environment" >&6; } + + ac_config_files="$ac_config_files Makefile" cat >confcache <<\_ACEOF |