configure sparc subdir if --with-cgen
authorDoug Evans <dje@google.com>
Tue, 2 Feb 1999 20:40:33 +0000 (20:40 +0000)
committerDoug Evans <dje@google.com>
Tue, 2 Feb 1999 20:40:33 +0000 (20:40 +0000)
sim/configure.in

index 9ecd812e641eeb1c7b1230fe2a6f35ec1391b6c7..6f1e8be974876d79df16453e9eb2a88b2be7dcae 100644 (file)
@@ -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