1 dnl Process this file with autoconf to produce a configure script.
3 AC_CONFIG_MACRO_DIRS([.. ../config])
8 AC_CHECK_TOOL(RANLIB, ranlib, :)
19 # Put a plausible default for CC_FOR_BUILD in Makefile.
20 if test -z "$CC_FOR_BUILD"; then
21 if test "x$cross_compiling" = "xno"; then
27 AC_SUBST(CC_FOR_BUILD)
28 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
29 AC_SUBST(CFLAGS_FOR_BUILD)
31 # If a cpu ever has more than one simulator to choose from, use
32 # --enable-sim=... to choose.
34 [AS_HELP_STRING([--enable-sim], [Enable the GNU simulator])],
35 [case "${enableval}" in
37 *) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
40 dnl WHEN ADDING ENTRIES TO THIS MATRIX:
41 dnl Make sure that the left side always has two dashes. Otherwise you can get
42 dnl spurious matches. Even for unambiguous cases, do this as a convention, else
43 dnl the table becomes a real mess to understand and maintain.
44 if test "${enable_sim}" != no; then
48 AC_CONFIG_SUBDIRS(aarch64)
51 AC_CONFIG_SUBDIRS(arm)
54 AC_CONFIG_SUBDIRS(avr)
57 AC_CONFIG_SUBDIRS(bfin)
60 AC_CONFIG_SUBDIRS(bpf)
63 AC_CONFIG_SUBDIRS(cr16)
65 cris-*-* | crisv32-*-*)
66 AC_CONFIG_SUBDIRS(cris)
69 AC_CONFIG_SUBDIRS(d10v)
72 AC_CONFIG_SUBDIRS(frv)
75 AC_CONFIG_SUBDIRS(h8300)
78 AC_CONFIG_SUBDIRS(iq2000)
81 AC_CONFIG_SUBDIRS(lm32)
84 AC_CONFIG_SUBDIRS(m32c)
87 AC_CONFIG_SUBDIRS(m32r)
89 m68hc11-*-*|m6811-*-*)
90 AC_CONFIG_SUBDIRS(m68hc11)
93 AC_CONFIG_SUBDIRS(mcore)
96 AC_CONFIG_SUBDIRS(microblaze)
99 AC_CONFIG_SUBDIRS(mips)
103 AC_CONFIG_SUBDIRS(mn10300)
107 AC_CONFIG_SUBDIRS(moxie)
110 AC_CONFIG_SUBDIRS(msp430)
112 or1k-*-* | or1knd-*-*)
113 AC_CONFIG_SUBDIRS(or1k)
116 AC_CONFIG_SUBDIRS(pru)
119 AC_CONFIG_SUBDIRS(riscv)
122 AC_CONFIG_SUBDIRS(rl78)
125 AC_CONFIG_SUBDIRS(rx)
128 AC_CONFIG_SUBDIRS(sh)
130 sparc-*-rtems*|sparc-*-elf*)
131 AC_CONFIG_SUBDIRS(erc32)
134 AC_CONFIG_SUBDIRS(ppc)
137 AC_CONFIG_SUBDIRS(ft32)
140 AC_CONFIG_SUBDIRS(v850)
144 if test "$sim_igen" = yes; then
145 AC_CONFIG_SUBDIRS(igen)
149 AC_CONFIG_FILES([Makefile testsuite/Makefile])