Remove spurious echo
[deliverable/binutils-gdb.git] / gdb / configure.in
CommitLineData
912e0732
RP
1srcname="GDB"
2srctrigger=main.c
0df06ca0
RP
3# per-host:
4
6c815bbe
RP
5# map host info into gdb names.
6
7case "${host_cpu}" in
8
9m68k)
10 case "${host_vendor}" in
11 att) gdb_host=3b1 ;;
12 altos)
13 case "${host_os}" in
14 gas) gdb_host=altosgas ;;
15 *) gdb_host=altos ;;
16 esac
17 ;;
afe4ca15
JG
18
19 cbm)
20 case ${host_os} in
21 amigados) gdb_host=amigados ;;
22 svr4) gdb_host=amix ;;
23 esac
24 ;;
25
6c815bbe
RP
26 hp)
27 case ${host_os} in
28 hpux) gdb_host=hp300hpux ;;
29 bsd) gdb_host=hp300bsd ;;
30 esac
31 ;;
32
33 isi) gdb_host=isi ;;
34 sony) gdb_host=news ;;
35 sun)
36 case "${host_os}" in
37 sunos3) gdb_host=sun3os3 ;;
38 sunos4) gdb_host=sun3os4 ;;
39 *) gdb_host=sun3 ;;
40 esac
41 ;;
42 esac
43 ;;
44
45m68000)
46 case "${host_vendor}" in
47 sun)
48 case "${host_os}" in
49 sunos3) gdb_host=sun2os3 ;;
50 sunos4) gdb_host=sun2os4 ;;
51 *) gdb_host=sun2 ;;
52 esac
53 esac
54 ;;
55
56sparc)
57 case "${host_os}" in
58 sunos3) gdb_host=sun4os3 ;;
59 sunos4) gdb_host=sun4os4 ;;
60 *) gdb_host=sun4 ;;
61 esac
62 ;;
63
64m68030)
65 case "${host_vendor}" in
66 sony) gdb_host=news1000 ;;
67 esac
68 ;;
69
70mips)
71 case "${host_vendor}" in
72 sony) gdb_host=bigmips ;;
5d2cfefe 73 dec) gdb_host=decstation ;;
6c815bbe 74 little) gdb_host=littlemips ;;
625453dc 75 sgi) gdb_host=irix3 ;;
6c815bbe
RP
76 esac
77 ;;
78
79i386)
80 case "${host_vendor}" in
81 sun) gdb_host=sun386 ;;
82 sco) gdb_host=i386sco ;;
83 sequent) gdb_host=symmetry ;;
84 *)
85 case "${host_os}" in
86 sysv) gdb_host=i386v ;;
87 sysv32) gdb_host=i386v32 ;;
6617b94e 88 mach) gdb_host=i386mach ;;
6c815bbe
RP
89 esac
90 ;;
91 esac
92 ;;
93
94c1 | c2) gdb_host=convex ;;
95
96ns32k)
97 case "${host_vendor}" in
98 umax) gdb_host=umax ;;
99 esac
100 ;;
101
0476df73 102romp)
473f3318
JG
103 gdb_host=rtbsd
104 ;;
105
b90c4f33
JG
106rs6000)
107 gdb_host=rs6000
108 ;;
109
473f3318
JG
110a29k)
111 gdb_host=ultra3
112 ;;
113
8c7ae4a2
SC
114m88k)
115 case "${host_vendor}" in
116 motorola)
117 gdb_host=delta88 ;;
118 *)
119 gdb_host=m88k ;;
120 esac
121 ;;
122
123arm | vax | merlin | none | np1 | pn | pyramid | tahoe)
473f3318
JG
124 gdb_host=${host_cpu}
125 ;;
6c815bbe
RP
126
127### unhandled hosts
128#altosgas
129#i386v-g
130#i386v32-g
131
132esac
133
8c7ae4a2 134
6c815bbe
RP
135if [ ! -f xconfig/${gdb_host} ]; then
136 echo '***' "Gdb does not support host ${host}" 1>&2
912e0732
RP
137 exit 1
138fi
139
bdf3621b 140# We really shouldn't depend on there being a space after XM_FILE= ...
6c815bbe 141hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <xconfig/${gdb_host}`
912e0732 142
0df06ca0 143# per-target:
912e0732 144
6c815bbe
RP
145case "${target_cpu}" in
146
147m68k)
148 case "${target_vendor}" in
149 att) gdb_target=3b1 ;;
150 altos) gdb_target=altos ;;
afe4ca15
JG
151 cbm)
152 case ${target_os} in
153 amigados) gdb_host=amigados ;;
154 svr4) gdb_target=amix ;;
155 esac
156 ;;
6c815bbe
RP
157 hp)
158 case "${target_os}" in
159 bsd) gdb_target=hp300bsd ;;
160 hpux) gdb_target=hp300hpux ;;
161 esac
162 ;;
163 sun)
164 case "${target_os}" in
165 sunos3) gdb_target=sun3os3 ;;
166 sunos4) gdb_target=sun3os4 ;;
167 *) gdb_target=sun3 ;;
168 esac
169 ;;
170 wrs) gdb_target=vxworks68 ;;
171 isi) gdb_target=isi ;;
172 sony) gdb_target=news ;;
173 esac
174 ;;
175
176m68000)
177 case "${target_vendor}" in
178 sun)
179 case "${target_os}" in
180 sunos3) gdb_target=sun2os3 ;;
181 sunos4) gdb_target=sun2os4 ;;
182 *) gdb_target=sun2 ;;
183 esac
184 esac
185 ;;
186
187m68030)
188 case "${target_vendor}" in
189 sony) gdb_target=news1000 ;;
190 esac
191 ;;
192
8c7ae4a2 193none | arm | tahoe | vax | np1 | pn | np1 | pn | pyramid | merlin)
6c815bbe 194 gdb_target=${target_cpu} ;;
6c815bbe 195
8c7ae4a2
SC
196m88k)
197 case "${target_vendor}" in
198 motorola) gdb_target=delta88 ;;
199 *) gdb_target=dgux ;;
200 esac
201 ;;
473f3318
JG
202a29k)
203 case "${target_os}" in
f74ff50f 204 none|aout|coff) gdb_target=a29k ;;
473f3318
JG
205 sym1) gdb_target=ultra3 ;;
206 kern) gdb_target=a29k-kern ;;
44e4e473 207 ebmon) gdb_target=a29k;;
473f3318
JG
208 esac
209 ;;
210
6c815bbe
RP
211mips)
212 case "${target_vendor}" in
213 sony) gdb_target=bigmips ;;
5d2cfefe 214 dec) gdb_target=decstation ;;
6c815bbe 215 little) gdb_target=littlemips ;;
625453dc 216 sgi) gdb_target=irix3 ;;
6c815bbe
RP
217 esac
218 ;;
219
220c1 | c2) gdb_target=convex ;;
221
6c815bbe
RP
222sparc)
223 case "${target_vendor}" in
224 sun)
225 case "${target_os}" in
226 sunos3) gdb_target=sun4os3 ;;
227 sunos4) gdb_target=sun4os4 ;;
228 *) gdb_target=sun4 ;;
229 esac
230 ;;
231 esac
232 ;;
233
234
235i386)
236 case "${target_vendor}" in
69e87de2
RP
237 sco) gdb_target=i386sco ;;
238 sun) gdb_target=sun386 ;;
6c815bbe 239 sequent) gdb_target=symmetry ;;
69e87de2 240 coff) gdb_target=i386v ;;
4dbf824f 241 aout) gdb_target=i386aout ;;
6c815bbe
RP
242 *)
243 case "${target_os}" in
244 sysv) gdb_target=i386v ;;
245 sysv32) gdb_target=i386v32 ;;
6617b94e 246 mach) gdb_target=i386mach ;;
6c815bbe
RP
247 esac
248 esac
249 ;;
250
251i960)
252 case "${target_vendor}" in
69e87de2
RP
253 bout | wrs) gdb_target=vxworks960 ;;
254 coff | intel) gdb_target=nindy960 ;;
6c815bbe
RP
255 esac
256 ;;
257
258ns32k)
259 case "${target_vendor}" in
260 utek) gdb_target=umax ;;
261 esac
262 ;;
263
b90c4f33
JG
264rs6000)
265 gdb_target=rs6000
266 ;;
267
6c815bbe
RP
268### unhandled targets
269# altosgas
270# i386v-g
271# i386v32-g
272
273esac
274
275if [ ! -f tconfig/${gdb_target} ]; then
276 echo '***' "Gdb does not support target ${target}" 1>&2
912e0732
RP
277 exit 1
278fi
279
280if [ -z "${removing}" ] ; then
6c815bbe 281 cat xconfig/${gdb_host} tconfig/${gdb_target} | awk '$1 == "#msg" {
912e0732
RP
282 print substr($0,6)}'
283fi
284
bdf3621b 285# We really shouldn't depend on there being a space after TM_FILE= ...
6c815bbe 286targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <tconfig/${gdb_target}`
912e0732 287
6c815bbe
RP
288host_makefile_frag=xconfig/${gdb_host}
289target_makefile_frag=tconfig/${gdb_target}
912e0732 290
bdf3621b 291# If hostfile (XM_FILE) and/or targetfile (TM_FILE) is not set in the
dc0c3f64
JG
292# ?config/* file, we don't make the corresponding links. But we have
293# to remove the xm.h files and tm.h files anyway, e.g. when switching
294# from "configure host" to "configure none".
bdf3621b
JG
295files=
296links=
dc0c3f64 297rm -f xm.h
bdf3621b
JG
298if [ "${hostfile}" != "" ]; then
299 files="${files} ${hostfile}"
300 links="${links} xm.h"
301fi
dc0c3f64 302rm -f tm.h
bdf3621b
JG
303if [ "${targetfile}" != "" ]; then
304 files="${files} ${targetfile}"
305 links="${links} tm.h"
306fi
307
308# post-target:
912e0732 309
bdf3621b
JG
310case ${srcdir} in
311 .)
312 ;;
313 *)
314 grep -s "source ${srcdir}/.gdbinit" .gdbinit 2>/dev/null || \
315 echo "source ${srcdir}/.gdbinit" >> .gdbinit
316esac
317
dc0c3f64 318cat ${srcdir}/alldeps.mak ${srcdir}/depend >>Makefile
This page took 0.052336 seconds and 4 git commands to generate.