aboutsummaryrefslogtreecommitdiff
path: root/sim/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'sim/configure.in')
-rw-r--r--sim/configure.in28
1 files changed, 22 insertions, 6 deletions
diff --git a/sim/configure.in b/sim/configure.in
index 9ecd812..6f1e8be 100644
--- a/sim/configure.in
+++ b/sim/configure.in
@@ -116,20 +116,36 @@ case "${target}" in
;;
z8k*-*-*) sim_target=z8k ;;
sparc64-*-*)
- sim_target=none # Don't build erc32 if sparc64.
+ only_if_gcc=yes
+ if test "x${with_cgen}" = xyes ; then
+ sim_target=sparc
+ extra_subdirs="${extra_subdirs} testsuite"
+ else
+ sim_target=none # Don't build erc32 if sparc64.
+ fi
;;
sparclite*-*-* | sparc86x*-*-*)
# The SPARC simulator can only be compiled by gcc.
- sim_target=erc32
only_if_gcc=yes
+ if test "x${with_cgen}" = xyes ; then
+ sim_target=sparc
+ extra_subdirs="${extra_subdirs} testsuite"
+ else
+ sim_target=erc32
+ fi
;;
sparc*-*-*)
# The SPARC simulator can only be compiled by gcc.
- sim_target=erc32
only_if_gcc=yes
- # Unfortunately erc32 won't build on many hosts, so only enable
- # it if the user really really wants it.
- only_if_enabled=yes
+ if test "x${with_cgen}" = xyes ; then
+ sim_target=sparc
+ extra_subdirs="${extra_subdirs} testsuite"
+ else
+ # Unfortunately erc32 won't build on many hosts, so only enable
+ # it if the user really really wants it.
+ only_if_enabled=yes
+ sim_target=erc32
+ fi
;;
*) sim_target=none ;;
esac