* configure.in: Move test for m68*-est-* before m68*-*-coff*.
[deliverable/binutils-gdb.git] / gdb / configure.in
CommitLineData
6ec7e4d3
SS
1# This file is a shell script fragment that supplies the information
2# necessary to tailor a template configure script into the configure
cc5702bd 3# script approriate for this directory. For more information, check
6ec7e4d3
SS
4# any existing configure script.
5
912e0732
RP
6srcname="GDB"
7srctrigger=main.c
bc028766 8
6ec7e4d3
SS
9configdirs="doc testsuite"
10
0df06ca0
RP
11# per-host:
12
1a0edbc7
FF
13# Map host cpu into the config cpu subdirectory name.
14# The default is $host_cpu.
15
16case "${host_cpu}" in
17
18c[12]) gdb_host_cpu=convex ;;
19hppa*) gdb_host_cpu=pa ;;
7382b3b1 20i[345]86) gdb_host_cpu=i386 ;;
1a0edbc7 21m68*) gdb_host_cpu=m68k ;;
6ec7e4d3 22m88*) gdb_host_cpu=m88k ;;
1a0edbc7
FF
23np1) gdb_host_cpu=gould ;;
24pyramid) gdb_host_cpu=pyr ;;
25*) gdb_host_cpu=$host_cpu ;;
26
27esac
28
6c815bbe
RP
29# map host info into gdb names.
30
19758e9e 31case "${host}" in
6c815bbe 32
19758e9e
JG
33a29k-*-*) gdb_host=ultra3 ;;
34
2592eef8
PS
35alpha-*-osf1*) gdb_host=alpha-osf1 ;;
36alpha-*-osf[23456789]*) gdb_host=alpha-osf2 ;;
7ccb1e44 37
19758e9e
JG
38arm-*-*) gdb_host=arm ;;
39
40c[12]-*-*) gdb_host=convex ;;
41
e8e13040 42hppa*-*-bsd*) gdb_host=hppabsd ;;
e8e13040 43hppa*-*-hiux*) gdb_host=hppahpux ;;
6ec7e4d3 44hppa*-*-hpux*) gdb_host=hppahpux ;;
6bfd168c 45hppa*-*-osf*) gdb_host=hppabsd ;;
19758e9e 46
7382b3b1
ILT
47i[345]86-ncr-*) gdb_host=ncr3000 ;;
48i[345]86-sequent-bsd*) gdb_host=symmetry ;; # dynix
49i[345]86-sequent-sysv4*) gdb_host=ptx4 ;;
50i[345]86-sequent-sysv*) gdb_host=ptx ;;
51i[345]86-*-aix*) gdb_host=i386aix ;;
52i[345]86-*-bsd*) gdb_host=i386bsd ;;
151d7f0a 53i[345]86-*-freebsd*) gdb_host=fbsd ;;
b40fa612 54i[345]86-*-netbsd*) gdb_host=nbsd ;;
7382b3b1
ILT
55i[345]86-*-go32*) gdb_host=go32 ;;
56i[345]86-*-linux*) gdb_host=linux ;;
57i[345]86-*-lynxos*) gdb_host=i386lynx ;;
58i[345]86-*-mach3*) gdb_host=i386m3 ;;
59i[345]86-*-mach*) gdb_host=i386mach ;;
60i[345]86-*-osf1mk*) gdb_host=osf1mk ;;
61i[345]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
62i[345]86-*-sco*) gdb_host=i386sco ;;
63i[345]86-*-solaris*) gdb_host=i386sol2 ;;
64i[345]86-*-sunos*) gdb_host=sun386 ;;
65i[345]86-*-sysv3.2*) gdb_host=i386v32 ;;
66i[345]86-*-sysv32*) gdb_host=i386v32 ;;
67i[345]86-*-sysv4*) gdb_host=i386v4 ;;
68i[345]86-*-unixware) gdb_host=i386v4 ;;
69i[345]86-*-sysv*) gdb_host=i386v ;;
70i[345]86-*-isc*) gdb_host=i386v32 ;;
71i[345]86-*-os9k) gdb_host=i386os9k ;;
19758e9e 72
358ca35e
JG
73m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;;
74m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;;
ef131e13 75m68030-sony-*) gdb_host=news1000 ;;
19758e9e 76
358ca35e
JG
77m68*-altos-*) gdb_host=altos ;;
78m68*-apollo*-sysv*) gdb_host=apollo68v ;;
79m68*-apollo*-bsd*) gdb_host=apollo68b ;;
80m68*-att-*) gdb_host=3b1 ;;
0a8f1742 81m68*-bull*-sysv*) gdb_host=dpx2 ;;
8f59e92b
FF
82m68*-hp-bsd*) gdb_host=hp300bsd ;;
83m68*-hp-hpux*) gdb_host=hp300hpux ;;
358ca35e 84m68*-isi-*) gdb_host=isi ;;
9bebe500 85m68*-*-lynxos*) gdb_host=m68klynx ;;
670a8e09 86m68*-*-sysv4*) gdb_host=m68kv4 ;;
c649a7c2 87m68*-motorola-*) gdb_host=delta68 ;;
358ca35e
JG
88m68*-sony-*) gdb_host=news ;;
89m68*-sun-sunos3*) gdb_host=sun3os3 ;;
90m68*-sun-sunos4*) gdb_host=sun3os4 ;;
91m68*-sun-*) gdb_host=sun3os4 ;;
19758e9e 92
670a8e09 93m88*-harris-cxux*) gdb_host=cxux ;;
304977ab
JK
94m88*-motorola-sysv4*) gdb_host=delta88v4 ;;
95m88*-motorola-sysv*) gdb_host=delta88 ;;
6ec7e4d3 96m88*-*-mach3*) gdb_host=mach3 ;;
304977ab 97m88*-*-*) gdb_host=m88k ;;
19758e9e 98
6ec7e4d3 99mips-dec-mach3*) gdb_host=mach3 ;;
19758e9e
JG
100mips-dec-*) gdb_host=decstation ;;
101mips-little-*) gdb_host=littlemips ;;
3b891e0b 102mips-sgi-irix3*) gdb_host=irix3 ;;
81029114 103mips-sgi-irix4*) gdb_host=irix4 ;;
e03c0cc6 104mips-sgi-irix5*) gdb_host=irix5 ;;
b487ba2e 105mips-sony-*) gdb_host=news-mips ;;
6ec7e4d3 106mips-*-mach3*) gdb_host=mach3 ;;
2fe3b329 107mips-*-sysv4*) gdb_host=mipsv4 ;;
ee06f230 108mips-*-sysv*) gdb_host=riscos ;;
e8f8e093 109mips-*-riscos*) gdb_host=riscos ;;
19758e9e
JG
110
111none-*-*) gdb_host=none ;;
ef131e13 112
19758e9e
JG
113np1-*-*) gdb_host=np1 ;;
114
6ec7e4d3 115ns32k-*-mach3*) gdb_host=mach3 ;;
84f652b1 116ns32k-*-netbsd*) gdb_host=nbsd ;;
19758e9e 117ns32k-umax-*) gdb_host=umax ;;
3b891e0b 118ns32k-utek-sysv*) gdb_host=merlin ;;
19758e9e 119
19758e9e
JG
120pn-*-*) gdb_host=pn ;;
121
122pyramid-*-*) gdb_host=pyramid ;;
123
124romp-*-*) gdb_host=rtbsd ;;
125
d87d7b10 126rs6000-*-lynxos*) gdb_host=rs6000lynx ;;
19758e9e
JG
127rs6000-*-*) gdb_host=rs6000 ;;
128
9bebe500 129sparc-*-lynxos*) gdb_host=sparclynx ;;
331d515a 130sparc-*-netbsd*) gdb_host=nbsd ;;
ef131e13 131sparc-*-solaris2*) gdb_host=sun4sol2 ;;
ebb3a1e5 132sparc-*-sunos4*) gdb_host=sun4os4 ;;
b52373a2 133sparc-*-*) gdb_host=sun4os4 ;;
19758e9e
JG
134
135tahoe-*-*) gdb_host=tahoe ;;
136
137vax-*-bsd*) gdb_host=vaxbsd ;;
6985bc54 138vax-*-ultrix2*) gdb_host=vaxult2 ;;
19758e9e 139vax-*-ultrix*) gdb_host=vaxult ;;
7da1e27d 140
d723ade7
SC
141w65-*-*) gdb_host=w65 ;;
142
6c815bbe
RP
143esac
144
8c7ae4a2 145
1a0edbc7 146if [ ! -f ${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh ]; then
6c815bbe 147 echo '***' "Gdb does not support host ${host}" 1>&2
912e0732
RP
148 exit 1
149fi
150
bdf3621b 151# We really shouldn't depend on there being a space after XM_FILE= ...
1a0edbc7 152hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh`
912e0732 153
0df06ca0 154# per-target:
912e0732 155
1a0edbc7
FF
156# Map target cpu into the config cpu subdirectory name.
157# The default is $target_cpu.
158
159case "${target_cpu}" in
160
cef4c2e7 161alpha) gdb_target_cpu=alpha ;;
1a0edbc7
FF
162c[12]) gdb_target_cpu=convex ;;
163hppa*) gdb_target_cpu=pa ;;
7382b3b1 164i[345]86) gdb_target_cpu=i386 ;;
1a0edbc7 165m68*) gdb_target_cpu=m68k ;;
6ec7e4d3 166m88*) gdb_target_cpu=m88k ;;
b60f6584 167mips*) gdb_target_cpu=mips ;;
1a0edbc7
FF
168np1) gdb_target_cpu=gould ;;
169pn) gdb_target_cpu=gould ;;
170pyramid) gdb_target_cpu=pyr ;;
2c30f258 171sparclite*) gdb_target_cpu=sparc
6ec7e4d3 172 configdirs="${configdirs} sparclite" ;;
0c101d49 173sparc*) gdb_target_cpu=sparc ;;
1a0edbc7
FF
174*) gdb_target_cpu=$target_cpu ;;
175
176esac
177
178# map target info into gdb names.
179
ef131e13
JG
180case "${target}" in
181
3b891e0b
JK
182a29k-*-aout*) gdb_target=a29k ;;
183a29k-*-coff*) gdb_target=a29k ;;
184a29k-*-elf*) gdb_target=a29k ;;
185a29k-*-ebmon*) gdb_target=a29k ;;
186a29k-*-kern*) gdb_target=a29k-kern ;;
187a29k-*-none*) gdb_target=a29k ;;
188a29k-*-sym1*) gdb_target=ultra3 ;;
189a29k-*-udi*) gdb_target=a29k-udi ;;
83d9bb14 190a29k-*-vxworks*) gdb_target=vx29k ;;
ef131e13 191
cef4c2e7 192alpha-*-osf*) gdb_target=alpha-osf1 ;;
6ec7e4d3 193
c1ac88f9 194# start-sanitize-arc
83d9bb14 195arc-*-*) gdb_target=arc ;;
c1ac88f9
DE
196# end-sanitize-arc
197
ef131e13
JG
198arm-*-*) gdb_target=arm ;;
199
200c1-*-*) gdb_target=convex ;;
201c2-*-*) gdb_target=convex ;;
202
203h8300-*-*) gdb_target=h8300hms ;;
195e46ea 204h8500-*-*) gdb_target=h8500hms ;;
ef131e13 205
9faacb92
SC
206sh-*-*) gdb_target=sh ;;
207
03c4ce2f
MT
208# start-sanitize-r16
209r16-*-*) gdb_target=r16 ;;
210# end-sanitize-r16
211
8f59e92b 212hppa*-*-bsd*) gdb_target=hppabsd ;;
cc5702bd 213hppa*-*-pro*) gdb_target=hppapro ;;
8f59e92b 214hppa*-*-hpux*) gdb_target=hppahpux ;;
7079e766 215hppa*-*-hiux*) gdb_target=hppahpux ;;
6bfd168c 216hppa*-*-osf*) gdb_target=hppaosf ;;
ef131e13 217
7382b3b1
ILT
218i[345]86-sequent-bsd*) gdb_target=symmetry ;;
219i[345]86-sequent-sysv4*) gdb_target=ptx4 ;;
220i[345]86-sequent-sysv*) gdb_target=ptx ;;
221i[345]86-ncr-*) gdb_target=ncr3000 ;;
222i[345]86-*-aout*) gdb_target=i386aout ;;
223i[345]86-*-coff*) gdb_target=i386v ;;
224i[345]86-*-elf*) gdb_target=i386v ;;
225i[345]86-*-aix*) gdb_target=i386aix ;;
226i[345]86-*-bsd*) gdb_target=i386bsd ;;
151d7f0a 227i[345]86-*-freebsd*) gdb_target=fbsd ;;
b40fa612 228i[345]86-*-netbsd*) gdb_target=nbsd ;;
7382b3b1
ILT
229i[345]86-*-os9k) gdb_target=i386os9k ;;
230i[345]86-*-go32*) gdb_target=i386aout ;;
231i[345]86-*-lynxos*) gdb_target=i386lynx
6ec7e4d3 232 configdirs="${configdirs} gdbserver" ;;
7382b3b1
ILT
233i[345]86-*-solaris*) gdb_target=i386sol2 ;;
234i[345]86-*-sunos*) gdb_target=sun386 ;;
235i[345]86-*-sysv4*) gdb_target=i386v4 ;;
236i[345]86-*-sco*) gdb_target=i386v ;;
237i[345]86-*-sysv*) gdb_target=i386v ;;
238i[345]86-*-linux*) gdb_target=linux ;;
239i[345]86-*-isc*) gdb_target=i386v ;;
240i[345]86-*-mach3*) gdb_target=i386m3 ;;
241i[345]86-*-mach*) gdb_target=i386mach ;;
242i[345]86-*-netware*) gdb_target=i386nw
bdf218b3 243 configdirs="${configdirs} nlm" ;;
7382b3b1 244i[345]86-*-osf1mk*) gdb_target=i386mk ;;
ef131e13 245
3b891e0b
JK
246i960-*-bout*) gdb_target=vxworks960 ;;
247i960-*-coff*) gdb_target=nindy960 ;;
248i960-*-elf*) gdb_target=nindy960 ;;
ebb3a1e5 249
3b891e0b
JK
250i960-*-nindy*) gdb_target=nindy960 ;;
251i960-*-vxworks*) gdb_target=vxworks960 ;;
ef131e13 252
ebb3a1e5
JG
253m68000-*-sunos3*) gdb_target=sun2os3 ;;
254m68000-*-sunos4*) gdb_target=sun2os4 ;;
ef131e13 255
835fe6e6 256m68*-apollo*-bsd*) gdb_target=apollo68b ;;
6ec7e4d3 257m68*-bull-sysv*) gdb_target=dpx2 ;;
6ec7e4d3
SS
258m68*-hp-bsd*) gdb_target=hp300bsd ;;
259m68*-hp-hpux*) gdb_target=hp300hpux ;;
670a8e09
SS
260m68*-altos-*) gdb_target=altos ;;
261m68*-att-*) gdb_target=3b1 ;;
262m68*-cisco*-*) gdb_target=cisco ;;
263m68*-ericsson-*) gdb_target=es1800 ;;
358ca35e 264m68*-isi-*) gdb_target=isi ;;
c649a7c2 265m68*-motorola-*) gdb_target=delta68 ;;
358ca35e
JG
266m68*-netx-*) gdb_target=vxworks68 ;;
267m68*-sony-*) gdb_target=news ;;
268m68*-tandem-*) gdb_target=st2000 ;;
c1128340
RS
269m68*-rom68k-*) gdb_target=monitor ;;
270m68*-*bug-*) gdb_target=monitor ;;
271m68*-monitor-*) gdb_target=monitor ;;
a25a9f49 272m68*-est-*) gdb_target=est ;;
0ffba029
RS
273m68*-*-aout*) gdb_target=monitor ;;
274m68*-*-coff*) gdb_target=monitor ;;
275m68*-*-elf*) gdb_target=monitor ;;
9bebe500 276m68*-*-lynxos*) gdb_target=m68klynx
6ec7e4d3 277 configdirs="${configdirs} gdbserver" ;;
3b891e0b 278m68*-*-os68k*) gdb_target=os68k ;;
358ca35e
JG
279m68*-*-sunos3*) gdb_target=sun3os3 ;;
280m68*-*-sunos4*) gdb_target=sun3os4 ;;
670a8e09 281m68*-*-sysv4*) gdb_target=m68kv4 ;;
358ca35e 282m68*-*-vxworks*) gdb_target=vxworks68 ;;
ef131e13 283
670a8e09 284m88*-harris-cxux*) gdb_target=cxux ;;
f9440640 285m88*-motorola-sysv4*) gdb_target=delta88v4 ;;
6ec7e4d3 286m88*-*-mach3*) gdb_target=mach3 ;;
304977ab
JK
287m88*-motorola-*) gdb_target=delta88 ;;
288m88*-*-*) gdb_target=m88k ;;
ef131e13 289
70126bf9 290mips64*-big-*) gdb_target=bigmips64 ;;
b60f6584 291mips*-big-*) gdb_target=bigmips ;;
6ec7e4d3 292mips*-dec-mach3*) gdb_target=mach3 ;;
b60f6584 293mips*-dec-*) gdb_target=decstation ;;
70126bf9
KH
294mips64*el-*-ecoff*) gdb_target=idtl64 ;;
295mips64*-idt-ecoff*) gdb_target=idt64 ;;
296mips64*el-*-elf*) gdb_target=idtl64 ;;
297mips64*-*-elf*) gdb_target=idt64 ;;
b60f6584 298mips*el-*-ecoff*) gdb_target=idtl ;;
2e1b3b03 299mips*-*-ecoff*) gdb_target=idt ;;
b60f6584
ILT
300mips*el-*-elf*) gdb_target=idtl ;;
301mips*-*-elf*) gdb_target=idt ;;
302mips*-little-*) gdb_target=littlemips ;;
303mips*-sgi-irix5*) gdb_target=irix5 ;;
304mips*-sgi-*) gdb_target=irix3 ;;
305mips*-sony-*) gdb_target=bigmips ;;
6ec7e4d3 306mips*-*-mach3*) gdb_target=mach3 ;;
2fe3b329 307mips*-*-sysv4*) gdb_target=mipsv4 ;;
b60f6584
ILT
308mips*-*-sysv*) gdb_target=bigmips ;;
309mips*-*-riscos*) gdb_target=bigmips ;;
ef131e13
JG
310
311none-*-*) gdb_target=none ;;
312
313np1-*-*) gdb_target=np1 ;;
314
6ec7e4d3 315ns32k-*-mach3*) gdb_target=mach3 ;;
84f652b1 316ns32k-*-netbsd*) gdb_target=nbsd ;;
3b891e0b 317ns32k-utek-sysv*) gdb_target=merlin ;;
ef131e13
JG
318ns32k-utek-*) gdb_target=umax ;;
319
320pn-*-*) gdb_target=pn ;;
b7da2494
SG
321powerpc-*-netware*) gdb_target=ppc-nw
322 configdirs="${configdirs} nlm" ;;
ef131e13 323
97544048
MM
324powerpc-*-eabi*) gdb_target=ppc-eabi
325 configdirs="${configdirs}" ;;
326
ef131e13
JG
327pyramid-*-*) gdb_target=pyramid ;;
328
d87d7b10 329rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
ef131e13
JG
330rs6000-*-*) gdb_target=rs6000 ;;
331
3b891e0b
JK
332sparc-*-aout*) gdb_target=sparc-em ;;
333sparc-*-coff*) gdb_target=sparc-em ;;
334sparc-*-elf*) gdb_target=sparc-em ;;
9bebe500 335sparc-*-lynxos*) gdb_target=sparclynx
6ec7e4d3 336 configdirs="${configdirs} gdbserver" ;;
331d515a 337sparc-*-netbsd*) gdb_target=nbsd ;;
ef131e13 338sparc-*-solaris2*) gdb_target=sun4sol2 ;;
ebb3a1e5 339sparc-*-sunos4*) gdb_target=sun4os4 ;;
54d44c8c 340sparc-*-vxworks*) gdb_target=vxsparc ;;
b52373a2 341sparc-*-*) gdb_target=sun4os4 ;;
0c101d49 342sparclite*-*-*) gdb_target=sparclite ;;
6ec7e4d3 343sparc64-*-*) gdb_target=sp64 ;;
ef131e13
JG
344
345tahoe-*-*) gdb_target=tahoe ;;
6ec7e4d3 346
ef131e13 347vax-*-*) gdb_target=vax ;;
6c815bbe 348
d723ade7
SC
349w65-*-*) gdb_target=w65 ;;
350
3b891e0b
JK
351z8k-*-sim*) gdb_target=z8ksim ;;
352z8k-*-coff*) gdb_target=z8ksim ;;
6ec7e4d3 353
6c815bbe
RP
354esac
355
1a0edbc7 356if [ ! -f ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt ]; then
6c815bbe 357 echo '***' "Gdb does not support target ${target}" 1>&2
912e0732
RP
358 exit 1
359fi
360
361if [ -z "${removing}" ] ; then
1a0edbc7 362 cat ${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | awk '$1 == "#msg" {
912e0732
RP
363 print substr($0,6)}'
364fi
365
bdf3621b 366# We really shouldn't depend on there being a space after TM_FILE= ...
1a0edbc7 367targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt`
912e0732 368
79f68f0f
DZ
369
370# these really aren't orthogonal true/false values of the same condition,
371# but shells are slow enough that I like to reuse the test conditions
372# whenever possible
373#
d40309c7 374if [ "${target}" = "${host}" ] ; then
1a0edbc7 375 nativefile=`awk '$1 == "NAT_FILE=" { print $2 }' <${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh`
79f68f0f
DZ
376else
377 # GDBserver is only useful in a "native" enviroment
378 configdirs=`echo $configdirs | sed 's/gdbserver//'`
d40309c7
JG
379fi
380
1a0edbc7
FF
381host_makefile_frag=config/${gdb_host_cpu}/${gdb_host}.mh
382target_makefile_frag=config/${gdb_target_cpu}/${gdb_target}.mt
912e0732 383
d40309c7 384# If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
6573c898 385# (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
d40309c7
JG
386# corresponding links. But we have to remove the xm.h files and tm.h
387# files anyway, e.g. when switching from "configure host" to
388# "configure none".
389
bdf3621b
JG
390files=
391links=
dc0c3f64 392rm -f xm.h
bdf3621b 393if [ "${hostfile}" != "" ]; then
b40fa612 394 files="${files} config/${gdb_host_cpu}/${hostfile}"
bdf3621b
JG
395 links="${links} xm.h"
396fi
dc0c3f64 397rm -f tm.h
bdf3621b 398if [ "${targetfile}" != "" ]; then
b40fa612 399 files="${files} config/${gdb_target_cpu}/${targetfile}"
bdf3621b
JG
400 links="${links} tm.h"
401fi
1a0edbc7 402rm -f nm.h
d40309c7 403if [ "${nativefile}" != "" ]; then
b40fa612 404 files="${files} config/${gdb_host_cpu}/${nativefile}"
dfc82617 405 links="${links} nm.h"
c9c23412 406else
6573c898
SS
407 # A cross-only configuration.
408 files="${files} config/nm-empty.h"
dfc82617 409 links="${links} nm.h"
d40309c7 410fi
bdf3621b 411
d3d75ec9 412# start-sanitize-gdbtk
754e5da2 413# Make it possible to use the GUI without doing a full install
4b078dc3 414if [ "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ] ; then
754e5da2
SG
415 files="${files} gdbtk.tcl"
416 links="${links} gdbtk.tcl"
417fi
d3d75ec9 418# end-sanitize-gdbtk
754e5da2 419
bdf3621b 420# post-target:
912e0732 421
bdf3621b
JG
422case ${srcdir} in
423 .)
424 ;;
425 *)
e8f8e093 426 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
bdf3621b
JG
427 echo "source ${srcdir}/.gdbinit" >> .gdbinit
428esac
429
c1ab5dba 430if [ "${nativefile}" = "" ] ; then
41617f8b 431 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
d40309c7
JG
432 < Makefile > Makefile.tem
433 mv -f Makefile.tem Makefile
434fi
94d4b713 435
d3d75ec9 436# start-sanitize-gdbtk
754e5da2
SG
437if [ "${enable_gdbtk}" = "yes" ] ; then
438 sed -e '/# End of host and/i\
439\
5b21fb68 440ENABLE_GDBTK = 1\
754e5da2 441ENABLE_DEPFILES = gdbtk.o\
cd2df226 442ENABLE_CLIBS = $(TCL) $(TK) -lX11 -lm
754e5da2
SG
443' < Makefile > Makefile.tem
444 mv -f Makefile.tem Makefile
445fi
d3d75ec9 446# end-sanitize-gdbtk
754e5da2 447
94d4b713
JK
448sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
449/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
450/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
451mv -f Makefile.tmp Makefile
This page took 0.202162 seconds and 4 git commands to generate.