diff options
author | Doug Evans <dje@google.com> | 1999-02-02 20:40:33 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1999-02-02 20:40:33 +0000 |
commit | cac2f518514b08959ed2a6a84ec60886552a08f5 (patch) | |
tree | d6e29ccb9c734e38ce3cb6abe13e38455f430f28 /sim | |
parent | cd6245ce7034b1a26aedee8ef1a8ad29fcd0dce4 (diff) | |
download | gdb-cac2f518514b08959ed2a6a84ec60886552a08f5.zip gdb-cac2f518514b08959ed2a6a84ec60886552a08f5.tar.gz gdb-cac2f518514b08959ed2a6a84ec60886552a08f5.tar.bz2 |
configure sparc subdir if --with-cgen
Diffstat (limited to 'sim')
-rw-r--r-- | sim/configure.in | 28 |
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 |