]> Git Repo - binutils.git/blob - gdb/configure.in
* configure.in: Recognize i486 host cpu.
[binutils.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         solaris2*)      gdb_host=sun4sol2 ;;
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 | i486)
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                 linux)  gdb_host=linux ;;
112                 esac
113                 ;;
114         esac
115         ;;
116
117 c1 | c2)        gdb_host=convex ;;
118
119 ns32k)
120         case "${host_vendor}" in
121         umax)   gdb_host=umax ;;
122         esac
123         ;;
124
125 romp)
126         gdb_host=rtbsd
127         ;;
128
129 rs6000)
130         gdb_host=rs6000
131         ;;
132
133 a29k)
134         gdb_host=ultra3
135         ;;
136
137 m88k)
138         case "${host_vendor}" in
139         motorola)
140                 gdb_host=delta88 ;;
141         *)      
142                 gdb_host=m88k ;;
143         esac
144         ;;
145
146 vax)
147         case "${host_os}" in
148         bsd*)
149                 gdb_host=vaxbsd ;;
150         ultrix*)
151                 gdb_host=vaxult ;;
152         esac
153         ;;
154
155 arm | merlin | none | np1 | pn | pyramid | tahoe)
156         gdb_host=${host_cpu}
157         ;;
158
159 hppa*)
160         case "${host_vendor}" in
161         hp)
162                 case "${host_os}" in
163                 hpux)   gdb_host=hppahpux ;;
164                 bsd)    gdb_host=hppabsd ;;
165                 esac
166                 ;;
167         esac
168         ;;
169
170 ### unhandled hosts
171 #altosgas
172 #i386v-g
173 #i386v32-g
174
175 esac
176
177
178 if [ ! -f ${srcdir}/config/${gdb_host}.mh ]; then
179         echo '***' "Gdb does not support host ${host}" 1>&2
180         exit 1
181 fi
182
183 #  We really shouldn't depend on there being a space after XM_FILE= ...
184 hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <${srcdir}/config/${gdb_host}.mh`
185
186 # per-target:
187
188 case "${target_cpu}" in
189
190 m68k)
191         case "${target_vendor}" in
192         att)    gdb_target=3b1 ;;
193         altos)  gdb_target=altos ;;
194         cbm)
195                 case ${target_os} in
196                 amigados)       gdb_host=amigados ;;
197                 sysv4*)         gdb_target=amix ;;
198                 esac
199                 ;;
200         ericsson) gdb_target=es1800 ;;
201         hp)
202                 case "${target_os}" in
203                 bsd)    gdb_target=hp300bsd ;;
204                 hpux)   gdb_target=hp300hpux ;;
205                 esac
206                 ;;
207         sun)
208                 case "${target_os}" in
209                 sunos3) gdb_target=sun3os3 ;;
210                 sunos4) gdb_target=sun3os4 ;;
211                 *)      gdb_target=sun3 ;;
212                 esac
213                 ;;
214         wrs)    gdb_target=vxworks68 ;;
215         isi)    gdb_target=isi ;;
216         sony)   gdb_target=news ;;
217         esac
218         case "${target_os}" in
219         os68k)  gdb_target=os68k ;;
220         esac
221         ;;
222
223 m68000)
224         case "${target_vendor}" in
225         sun)
226                 case "${target_os}" in
227                 sunos3) gdb_target=sun2os3 ;;
228                 sunos4) gdb_target=sun2os4 ;;
229                 *)      gdb_target=sun2 ;;
230                 esac
231                 ;;
232         ericsson) gdb_target=es1800 ;;
233         wrs)    gdb_target=vxworks68 ;;
234         esac
235         ;;
236
237 m680[124]0)
238         case "${target_vendor}" in
239         wrs)    gdb_target=vxworks68 ;;
240         esac
241         ;;
242
243 m68030)
244         case "${target_vendor}" in
245         sony)   gdb_target=news1000 ;;
246         wrs)    gdb_target=vxworks68 ;;
247         esac
248         ;;
249
250 m68kmote)
251         case "${target_vendor}" in
252         tandem) gdb_target=st2000 ;;
253         esac
254         ;;
255
256 none | arm | tahoe | vax | np1 | pn | np1 | pn | pyramid | merlin)
257         gdb_target=${target_cpu} ;;
258
259 m88k)
260         case "${target_vendor}" in
261         motorola) gdb_target=delta88 ;;
262         *) gdb_target=dgux ;;
263         esac
264         ;;
265 a29k)
266         case "${target_os}" in
267         none|aout|coff) gdb_target=a29k ;;
268         sym1)   gdb_target=ultra3 ;;
269         kern)   gdb_target=a29k-kern ;;
270         ebmon)  gdb_target=a29k;;
271         udi)    gdb_target=a29k-udi;;
272         esac
273         ;;
274         
275 mips)
276         case "${target_vendor}" in
277         sony)   gdb_target=bigmips ;;
278         big)    gdb_target=bigmips ;;
279         dec)    gdb_target=decstation ;;
280         little) gdb_target=littlemips ;;
281         sgi)    gdb_target=irix3 ;;
282         esac
283         ;;
284
285 c1 | c2)        gdb_target=convex ;;
286
287 sparc)
288         case "${target_vendor}" in
289         sun)
290                 case "${target_os}" in
291                 sunos3)         gdb_target=sun4os3 ;;
292                 sunos4)         gdb_target=sun4os4 ;;
293                 solaris2*)      gdb_target=sun4sol2 ;;
294                 *)              gdb_target=sun4 ;;
295                 esac
296                 ;;
297         esac
298         ;;
299
300 h8300)
301         gdb_target=h8300hms 
302         ;;
303
304 i860)   gdb_target=stratus
305         ;;
306
307 i386 | i486)
308         case "${target_vendor}" in
309         sco)    gdb_target=i386sco ;;
310         sun)    gdb_target=sun386 ;;
311         sequent)        gdb_target=symmetry ;;
312         ncr)    gdb_target=ncr3000 ;;
313         *)
314                 case "${target_os}" in
315                 sysv32) gdb_target=i386v32 ;;
316                 scosysv3*) gdb_target=i386v32 ;;
317                 sysv4*) gdb_target=i386v4 ;;
318                 sysv*)  gdb_target=i386v ;;
319                 mach)   gdb_target=i386mach ;;
320                 coff)   gdb_target=i386v ;;
321                 aout)   gdb_target=i386aout ;;
322                 linux)  gdb_target=linux ;;
323                 esac
324         esac
325         ;;
326
327 i960)
328         case "${target_vendor}" in
329         bout | wrs)     gdb_target=vxworks960 ;;
330         coff | intel)   gdb_target=nindy960 ;;
331         esac
332         ;;
333
334 ns32k)
335         case "${target_vendor}" in
336         utek)   gdb_target=umax ;;
337         esac
338         ;;
339
340 rs6000)
341         gdb_target=rs6000
342         ;;
343
344 hppa*)
345         case "${target_vendor}" in
346         hp)
347                 case "${target_os}" in
348                 hpux)   gdb_target=hppahpux ;;
349                 bsd)    gdb_target=hppabsd ;;
350                 esac
351                 ;;
352         esac
353         ;;
354
355 ### unhandled targets
356 # altosgas
357 # i386v-g
358 # i386v32-g
359
360 esac
361
362 if [ ! -f ${srcdir}/config/${gdb_target}.mt ]; then
363         echo '***' "Gdb does not support target ${target}" 1>&2
364         exit 1
365 fi
366
367 if [ -z "${removing}" ] ; then
368         cat ${srcdir}/config/${gdb_host}.mh ${srcdir}/config/${gdb_target}.mt | awk '$1 == "#msg" {
369                 print substr($0,6)}'
370 fi
371
372 #  We really shouldn't depend on there being a space after TM_FILE= ...
373 targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/config/${gdb_target}.mt`
374
375 host_makefile_frag=config/${gdb_host}.mh
376 target_makefile_frag=config/${gdb_target}.mt
377
378 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) is not set in the
379 # ?config/* file, we don't make the corresponding links.  But we have
380 # to remove the xm.h files and tm.h files anyway, e.g. when switching
381 # from "configure host" to "configure none".
382 files=
383 links=
384 rm -f xm.h
385 if [ "${hostfile}" != "" ]; then
386         files="${files} ${hostfile}"
387         links="${links} xm.h"
388 fi
389 rm -f tm.h
390 if [ "${targetfile}" != "" ]; then
391         files="${files} ${targetfile}"
392         links="${links} tm.h"
393 fi
394
395 # post-target:
396
397 case ${srcdir} in
398   .)
399     ;;
400   *)
401     grep -s "source ${srcdir}/.gdbinit" .gdbinit 2>/dev/null || \
402       echo "source ${srcdir}/.gdbinit" >> .gdbinit
403 esac
404
405 cat ${srcdir}/alldeps.mak ${srcdir}/depend >>Makefile
This page took 0.044257 seconds and 4 git commands to generate.