aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-01-10 16:52:25 -0500
committerMike Frysinger <vapier@gentoo.org>2016-01-10 17:03:36 -0500
commit16f7876d71604f835aefe48f0bf230c028c05d99 (patch)
tree6e5d6683ee8b3e506058f141a4304f265e458812 /sim/erc32
parent35656e95217a20309c0a0f16bf0c89a49a549177 (diff)
downloadgdb-16f7876d71604f835aefe48f0bf230c028c05d99.zip
gdb-16f7876d71604f835aefe48f0bf230c028c05d99.tar.gz
gdb-16f7876d71604f835aefe48f0bf230c028c05d99.tar.bz2
sim: allow the environment configure option everywhere
Currently ports have to call SIM_AC_OPTION_ENVIRONMENT explicitly in order to make the configure flag available. There's no real reason to not allow this flag for all ports, so move it to the common sim macro. This way we get standard behavior across all ports too.
Diffstat (limited to 'sim/erc32')
-rw-r--r--sim/erc32/ChangeLog4
-rwxr-xr-xsim/erc32/configure26
2 files changed, 28 insertions, 2 deletions
diff --git a/sim/erc32/ChangeLog b/sim/erc32/ChangeLog
index 2ff4bcc..2a3a34a 100644
--- a/sim/erc32/ChangeLog
+++ b/sim/erc32/ChangeLog
@@ -18,6 +18,10 @@
* configure: Regenerate.
+2016-01-10 Mike Frysinger <vapier@gentoo.org>
+
+ * configure: Regenerate.
+
2016-01-09 Mike Frysinger <vapier@gentoo.org>
* config.in, configure: Regenerate.
diff --git a/sim/erc32/configure b/sim/erc32/configure
index 857e093..962bd07 100755
--- a/sim/erc32/configure
+++ b/sim/erc32/configure
@@ -755,6 +755,7 @@ enable_sim_stdio
enable_sim_trace
enable_sim_profile
enable_sim_assert
+enable_sim_environment
enable_sim_inline
with_pkgversion
with_bugurl
@@ -1402,6 +1403,9 @@ Optional Features:
--enable-sim-profile=opts
Enable profiling flags
--enable-sim-assert Specify whether to perform random assertions
+ --enable-sim-environment=environment
+ Specify mixed, user, virtual or operating
+ environment
--enable-sim-inline=inlines
Specify which functions should be inlined
@@ -12831,7 +12835,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12834 "configure"
+#line 12838 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12937,7 +12941,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12940 "configure"
+#line 12944 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -13306,6 +13310,24 @@ else
fi
+# 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="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
+ user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
+ virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
+ operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
+ *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-environment\"" "$LINENO" 5;
+ sim_environment="";;
+esac
+if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
+ echo "Setting sim environment = $sim_environment" 6>&1
+fi
+else
+ sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
+fi
+
+
sim_inline="-DDEFAULT_INLINE=0"
# Check whether --enable-sim-inline was given.
if test "${enable_sim_inline+set}" = set; then :