]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/configure.ac
[sim]
[thirdparty/binutils-gdb.git] / sim / configure.ac
CommitLineData
b7026657 1dnl Process this file with autoconf to produce a configure script.
d6416cdc 2m4_include([../config/override.m4])
b7026657
AC
3AC_PREREQ(2.59)dnl
4AC_INIT(Makefile.in)
5
6AC_PROG_CC
7AC_PROG_INSTALL
8AC_CHECK_TOOL(AR, ar)
9AC_CHECK_TOOL(RANLIB, ranlib, :)
10
b7026657
AC
11AC_CANONICAL_SYSTEM
12AC_ARG_PROGRAM
13AC_PROG_CC
14AC_SUBST(CFLAGS)
15AC_SUBST(HDEFINES)
16AR=${AR-ar}
17AC_SUBST(AR)
18AC_PROG_RANLIB
19
20# Put a plausible default for CC_FOR_BUILD in Makefile.
21if test "x$cross_compiling" = "xno"; then
22 CC_FOR_BUILD='$(CC)'
23else
24 CC_FOR_BUILD=gcc
25fi
26AC_SUBST(CC_FOR_BUILD)
4b164edf
AS
27CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
28AC_SUBST(CFLAGS_FOR_BUILD)
b7026657
AC
29
30# If a cpu ever has more than one simulator to choose from, use
31# --enable-sim=... to choose.
32AC_ARG_ENABLE(sim,
33[ --enable-sim ],
34[case "${enableval}" in
35yes | no) ;;
36*) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
37esac])
38
39# WHEN ADDING ENTRIES TO THIS MATRIX:
40
41# Make sure that the left side always has two dashes. Otherwise you
42# can get spurious matches. Even for unambiguous cases, do this as a
43# convention, else the table becomes a real mess to understand and
44# maintain.
45
46if test "${enable_sim}" != no; then
47 testsuite=no
c4d800ae 48 common=yes
b7026657
AC
49 igen=no
50 case "${target}" in
51 arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
52 AC_CONFIG_SUBDIRS(arm)
53 testsuite=yes
b7026657 54 ;;
df1756f4
TG
55 avr*-*-*)
56 AC_CONFIG_SUBDIRS(avr)
57 ;;
86b90b55
SR
58 cr16*-*-*)
59 AC_CONFIG_SUBDIRS(cr16)
60 testsuite=yes
61 ;;
f6bcefef
HPN
62 cris-*-* | crisv32-*-*)
63 AC_CONFIG_SUBDIRS(cris)
64 testsuite=yes
f6bcefef 65 ;;
b7026657
AC
66 d10v-*-*)
67 AC_CONFIG_SUBDIRS(d10v)
68 ;;
69 frv-*-*)
70 AC_CONFIG_SUBDIRS(frv)
71 testsuite=yes
b7026657
AC
72 ;;
73 h8300*-*-*)
74 AC_CONFIG_SUBDIRS(h8300)
75 testsuite=yes
edece237
CV
76 ;;
77 iq2000-*-*)
78 AC_CONFIG_SUBDIRS(iq2000)
79 testsuite=yes
b7026657 80 ;;
c28c63d8
JB
81 lm32-*-*)
82 AC_CONFIG_SUBDIRS(lm32)
83 testsuite=yes
84 ;;
d45a4bef
JB
85 m32c-*-*)
86 AC_CONFIG_SUBDIRS(m32c)
d45a4bef 87 ;;
b7026657
AC
88 m32r-*-*)
89 AC_CONFIG_SUBDIRS(m32r)
90 testsuite=yes
b7026657
AC
91 ;;
92 m68hc11-*-*|m6811-*-*)
93 AC_CONFIG_SUBDIRS(m68hc11)
94 testsuite=yes
b7026657
AC
95 ;;
96 mcore-*-*)
97 AC_CONFIG_SUBDIRS(mcore)
98 testsuite=yes
b7026657 99 ;;
bd30e45a
ME
100 microblaze-*-*)
101 AC_CONFIG_SUBDIRS(microblaze)
102 testsuite=yes
103 ;;
b7026657
AC
104 mips*-*-*)
105 AC_CONFIG_SUBDIRS(mips)
106 testsuite=yes
107 igen=yes
108 ;;
109 mn10300*-*-*)
110 AC_CONFIG_SUBDIRS(mn10300)
111 igen=yes
112 ;;
fdd6fa61
AG
113 moxie-*-*)
114 AC_CONFIG_SUBDIRS(moxie)
115 testsuite=yes
116 ;;
4f8d4a38
DD
117 rx-*-*)
118 AC_CONFIG_SUBDIRS(rx)
119 ;;
cecb04b7 120 sh64*-*-*)
21bc7567
CV
121 AC_CONFIG_SUBDIRS(sh64)
122 testsuite=yes
21bc7567 123 ;;
cecb04b7 124 sh*-*-*)
b7026657
AC
125 AC_CONFIG_SUBDIRS(sh)
126 testsuite=yes
b7026657 127 ;;
ce928021
DJ
128 sparc-*-rtems*|sparc-*-elf*)
129 AC_CONFIG_SUBDIRS(erc32)
130 testsuite=yes
ce928021 131 ;;
b7026657
AC
132 powerpc*-*-* )
133 AC_CONFIG_SUBDIRS(ppc)
b7026657
AC
134 ;;
135 v850*-*-* )
136 AC_CONFIG_SUBDIRS(v850)
c3357c64 137 igen=yes
c5fbc25b 138 testsuite=yes
b7026657 139 ;;
c4d800ae
HPN
140 *)
141 # No simulator subdir, so the subdir "common" isn't needed.
142 common=no
143 ;;
b7026657
AC
144 esac
145 if test "$testsuite" = yes; then
146 AC_CONFIG_SUBDIRS(testsuite)
147 fi
148 if test "$common" = yes; then
149 AC_CONFIG_SUBDIRS(common)
150 fi
151 if test "$igen" = yes; then
152 AC_CONFIG_SUBDIRS(igen)
153 fi
154fi
155
156AC_OUTPUT(Makefile)
157
158exit 0