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