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