From cac2f518514b08959ed2a6a84ec60886552a08f5 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 2 Feb 1999 20:40:33 +0000 Subject: [PATCH] configure sparc subdir if --with-cgen --- sim/configure.in | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/sim/configure.in b/sim/configure.in index 9ecd812e641..6f1e8be9748 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 -- 2.30.2