PR gas/2582
[deliverable/binutils-gdb.git] / sim / configure.ac
CommitLineData
b7026657
AC
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.59)dnl
3AC_INIT(Makefile.in)
4
5AC_PROG_CC
6AC_PROG_INSTALL
7AC_CHECK_TOOL(AR, ar)
8AC_CHECK_TOOL(RANLIB, ranlib, :)
9
b7026657
AC
10AC_CANONICAL_SYSTEM
11AC_ARG_PROGRAM
12AC_PROG_CC
13AC_SUBST(CFLAGS)
14AC_SUBST(HDEFINES)
15AR=${AR-ar}
16AC_SUBST(AR)
17AC_PROG_RANLIB
18
19# Put a plausible default for CC_FOR_BUILD in Makefile.
20if test "x$cross_compiling" = "xno"; then
21 CC_FOR_BUILD='$(CC)'
22else
23 CC_FOR_BUILD=gcc
24fi
25AC_SUBST(CC_FOR_BUILD)
26
27# If a cpu ever has more than one simulator to choose from, use
28# --enable-sim=... to choose.
29AC_ARG_ENABLE(sim,
30[ --enable-sim ],
31[case "${enableval}" in
32yes | no) ;;
33*) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
34esac])
35
36# WHEN ADDING ENTRIES TO THIS MATRIX:
37
38# Make sure that the left side always has two dashes. Otherwise you
39# can get spurious matches. Even for unambiguous cases, do this as a
40# convention, else the table becomes a real mess to understand and
41# maintain.
42
43if test "${enable_sim}" != no; then
44 testsuite=no
45 common=no
46 igen=no
47 case "${target}" in
48 arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
49 AC_CONFIG_SUBDIRS(arm)
50 testsuite=yes
51 common=yes
52 ;;
f6bcefef
HPN
53 cris-*-* | crisv32-*-*)
54 AC_CONFIG_SUBDIRS(cris)
55 testsuite=yes
56 common=yes
57 ;;
b7026657
AC
58 d10v-*-*)
59 AC_CONFIG_SUBDIRS(d10v)
60 ;;
61 frv-*-*)
62 AC_CONFIG_SUBDIRS(frv)
63 testsuite=yes
64 common=yes
65 ;;
66 h8300*-*-*)
67 AC_CONFIG_SUBDIRS(h8300)
68 testsuite=yes
edece237
CV
69 common=yes
70 ;;
71 iq2000-*-*)
72 AC_CONFIG_SUBDIRS(iq2000)
73 testsuite=yes
b7026657
AC
74 common=yes
75 ;;
d45a4bef
JB
76 m32c-*-*)
77 AC_CONFIG_SUBDIRS(m32c)
78 common=yes
79 ;;
b7026657
AC
80 m32r-*-*)
81 AC_CONFIG_SUBDIRS(m32r)
82 testsuite=yes
83 common=yes
84 ;;
85 m68hc11-*-*|m6811-*-*)
86 AC_CONFIG_SUBDIRS(m68hc11)
87 testsuite=yes
88 common=yes
89 ;;
90 mcore-*-*)
91 AC_CONFIG_SUBDIRS(mcore)
92 testsuite=yes
93 common=yes
94 ;;
95 mips*-*-*)
96 AC_CONFIG_SUBDIRS(mips)
97 testsuite=yes
4ac6917f 98 common=yes
b7026657
AC
99 igen=yes
100 ;;
101 mn10300*-*-*)
102 AC_CONFIG_SUBDIRS(mn10300)
4ac6917f 103 common=yes
b7026657
AC
104 igen=yes
105 ;;
21bc7567
CV
106 sh64-*-*)
107 AC_CONFIG_SUBDIRS(sh64)
108 testsuite=yes
109 common=yes
110 ;;
111 sh-*-*)
b7026657
AC
112 AC_CONFIG_SUBDIRS(sh)
113 testsuite=yes
114 common=yes
115 ;;
116 powerpc*-*-* )
117 AC_CONFIG_SUBDIRS(ppc)
118 common=yes
119 ;;
120 v850*-*-* )
121 AC_CONFIG_SUBDIRS(v850)
122 common=yes
c3357c64 123 igen=yes
b7026657 124 ;;
b7026657
AC
125 esac
126 if test "$testsuite" = yes; then
127 AC_CONFIG_SUBDIRS(testsuite)
128 fi
129 if test "$common" = yes; then
130 AC_CONFIG_SUBDIRS(common)
131 fi
132 if test "$igen" = yes; then
133 AC_CONFIG_SUBDIRS(igen)
134 fi
135fi
136
137AC_OUTPUT(Makefile)
138
139exit 0
This page took 0.08079 seconds and 4 git commands to generate.