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