config: Sync with GCC
[deliverable/binutils-gdb.git] / sim / testsuite / configure
index 03db937f983a8c6ec0027226f53b3a16f0043129..5ddf15adf647a223bbdfe53e412bcea033d1f44f 100755 (executable)
@@ -554,7 +554,7 @@ ac_unique_file="common/bits-tst.c"
 enable_option_checking=no
 ac_subst_vars='LTLIBOBJS
 LIBOBJS
-arch
+sim_arch
 subdirs
 target_os
 target_vendor
@@ -614,7 +614,8 @@ enable_option_checking
       ac_precious_vars='build_alias
 host_alias
 target_alias'
-ac_subdirs_all='frv-elf
+ac_subdirs_all='d10v-elf
+frv-elf
 m32r-elf
 mips64el-elf'
 
@@ -1792,10 +1793,14 @@ test -n "$target_alias" &&
 
 # Configure sub-directory for appropriate targets
 case ${target} in
-    frv-*-elf )
+    d10v-*-elf )
+
 
+subdirs="$subdirs d10v-elf"
 
-subdirs="$subdirs frv-elf"
+       ;;
+    frv-*-elf )
+       subdirs="$subdirs frv-elf"
 
        ;;
     m32r-*-elf )
@@ -1808,14 +1813,113 @@ subdirs="$subdirs frv-elf"
        ;;
 esac
 
-# Compute the target architecture.
-# FIXME: Will need to canonicalize some values.
-# FIXME: Should be in generally accessable place.
-case $target in
-  *) arch=${target_cpu} ;;
+
+# WHEN ADDING ENTRIES TO THIS MATRIX:
+
+# Make sure that the left side always has two dashes.  Otherwise you
+# can get spurious matches.  Even for unambiguous cases, do this as a
+# convention, else the table becomes a real mess to understand and
+# maintain.
+
+
+
+sim_igen=no
+sim_arch=
+case "${target}" in
+   aarch64*-*-*)
+       sim_arch=aarch64
+       ;;
+   arm*-*-*)
+       sim_arch=arm
+       ;;
+   avr*-*-*)
+       sim_arch=avr
+       ;;
+   bfin-*-*)
+       sim_arch=bfin
+       ;;
+   cr16*-*-*)
+       sim_arch=cr16
+       ;;
+   cris-*-* | crisv32-*-*)
+       sim_arch=cris
+       ;;
+   d10v-*-*)
+       sim_arch=d10v
+       ;;
+   frv-*-*)
+       sim_arch=frv
+       ;;
+   h8300*-*-*)
+       sim_arch=h8300
+       ;;
+   iq2000-*-*)
+       sim_arch=iq2000
+       ;;
+   lm32-*-*)
+       sim_arch=lm32
+       ;;
+   m32c-*-*)
+       sim_arch=m32c
+       ;;
+   m32r-*-*)
+       sim_arch=m32r
+       ;;
+   m68hc11-*-*|m6811-*-*)
+       sim_arch=m68hc11
+       ;;
+   mcore-*-*)
+       sim_arch=mcore
+       ;;
+   microblaze-*-*)
+       sim_arch=microblaze
+       ;;
+   mips*-*-*)
+       sim_arch=mips
+       sim_igen=yes
+       ;;
+   mn10300*-*-*)
+       sim_arch=mn10300
+       sim_igen=yes
+       ;;
+   moxie-*-*)
+       sim_arch=moxie
+       ;;
+   msp430*-*-*)
+       sim_arch=msp430
+       ;;
+   or1k-*-* | or1knd-*-*)
+       sim_arch=or1k
+       ;;
+   rl78-*-*)
+       sim_arch=rl78
+       ;;
+   rx-*-*)
+       sim_arch=rx
+       ;;
+   sh64*-*-*)
+       sim_arch=sh64
+       ;;
+   sh*-*-*)
+       sim_arch=sh
+       ;;
+   sparc-*-rtems*|sparc-*-elf*)
+       sim_arch=erc32
+       ;;
+   powerpc*-*-*)
+       sim_arch=ppc
+       ;;
+   ft32-*-*)
+       sim_arch=ft32
+       ;;
+   v850*-*-*)
+       sim_arch=v850
+       sim_igen=yes
+       ;;
 esac
 
 
+
 ac_config_files="$ac_config_files Makefile"
 
 cat >confcache <<\_ACEOF
This page took 0.026027 seconds and 4 git commands to generate.