enable_option_checking=no
ac_subst_vars='LTLIBOBJS
LIBOBJS
-arch
+sim_arch
subdirs
target_os
target_vendor
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'
# 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 )
;;
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