The revision 2.48 change (grossman 1995/10/16) had unfortunately
[binutils-gdb.git] / gdb / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.3)dnl
3 AC_INIT(main.c)
4
5 CC=${CC-cc}
6 AC_PROG_CC
7 AC_AIX
8 AC_MINIX
9 AC_ISC_POSIX
10
11 AC_PROG_INSTALL
12 AC_PROG_RANLIB
13 AC_PROG_YACC
14
15 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)
16 AC_CANONICAL_SYSTEM
17 AC_ARG_PROGRAM
18
19 AC_HEADER_STDC
20 AC_CHECK_HEADERS(memory.h string.h strings.h unistd.h termios.h termio.h sgtty.h)
21 AC_HEADER_STAT
22
23 AC_FUNC_MMAP
24
25 dnl Handle optional features that can be enabled.
26 ENABLE_CFLAGS=
27 ENABLE_CLIBS=
28 ENABLE_OBS=
29
30 AC_ARG_ENABLE(netrom,
31 [ --enable-netrom ],
32 [case "${enableval}" in
33 yes) enable_netrom=yes ;;
34 no) enable_netrom=no ;;
35 *) AC_MSG_ERROR(bad value ${enableval} given for netrom option) ;;
36 esac])
37
38 if test "${enable_netrom}" = "yes"; then
39 ENABLE_OBS="${ENABLE_OBS} remote-nrom.o"
40 fi
41
42 # start-sanitize-gdbtk
43 ENABLE_GDBTK=
44
45 AC_ARG_ENABLE(gdbtk,
46 [ --enable-gdbtk ],
47 [case "${enableval}" in
48 yes) enable_gdbtk=yes ;;
49 no) enable_gdbtk=no ;;
50 *) AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
51 esac])
52
53 if test "${enable_gdbtk}" = "yes"; then
54 AC_PATH_X
55 AC_PATH_XTRA
56
57 CYGNUS_PATH_TK
58 CYGNUS_PATH_TCL
59
60 ENABLE_GDBTK=1
61
62 if test "x$x_includes" != "x" ;
63 then
64 X_INCDIR="-I$x_includes"
65 else
66 X_INCDIR=""
67 fi
68
69 if test "x$x_libraries" != "x" ;
70 then
71 X_LIBDIR="-L$x_libraries"
72 else
73 X_LIBDIR=""
74 fi
75
76 TCL_LIBS='$(TCL) $(TK) $(X11)'
77 ENABLE_CLIBS="${ENABLE_CLIBS} ${TCL_LIBS} -lm"
78 ENABLE_OBS="${ENABLE_OBS} gdbtk.o"
79 fi
80 AC_SUBST(ENABLE_GDBTK)
81 AC_SUBST(X_INCDIR)
82 AC_SUBST(X_LIBDIR)
83 # end-sanitize-gdbtk
84
85 AC_SUBST(ENABLE_CFLAGS)
86 AC_SUBST(ENABLE_CLIBS)
87 AC_SUBST(ENABLE_OBS)
88
89
90 configdirs="doc testsuite"
91
92 dnl
93 changequote(,)dnl
94
95 # Map host cpu into the config cpu subdirectory name.
96 # The default is $host_cpu.
97
98 case "${host_cpu}" in
99
100 c[12]) gdb_host_cpu=convex ;;
101 hppa*) gdb_host_cpu=pa ;;
102 i[345]86) gdb_host_cpu=i386 ;;
103 m68*) gdb_host_cpu=m68k ;;
104 m88*) gdb_host_cpu=m88k ;;
105 np1) gdb_host_cpu=gould ;;
106 pyramid) gdb_host_cpu=pyr ;;
107 powerpc*) gdb_host_cpu=powerpc ;;
108 *) gdb_host_cpu=$host_cpu ;;
109
110 esac
111
112 # map host info into gdb names.
113
114 case "${host}" in
115
116 a29k-*-*) gdb_host=ultra3 ;;
117
118 alpha-*-osf1*) gdb_host=alpha-osf1 ;;
119 alpha-*-osf2*) gdb_host=alpha-osf2 ;;
120 alpha-*-osf[3456789]*) gdb_host=alpha-osf3 ;;
121
122 arm-*-*) gdb_host=arm ;;
123
124 c[12]-*-*) gdb_host=convex ;;
125
126 hppa*-*-bsd*) gdb_host=hppabsd ;;
127 hppa*-*-hiux*) gdb_host=hppahpux ;;
128 hppa*-*-hpux*) gdb_host=hppahpux ;;
129 hppa*-*-osf*) gdb_host=hppaosf ;;
130
131 i[345]86-ncr-*) gdb_host=ncr3000 ;;
132 i[345]86-sequent-bsd*) gdb_host=symmetry ;; # dynix
133 i[345]86-sequent-sysv4*) gdb_host=ptx4 ;;
134 i[345]86-sequent-sysv*) gdb_host=ptx ;;
135 i[345]86-*-aix*) gdb_host=i386aix ;;
136 i[345]86-*-bsd*) gdb_host=i386bsd ;;
137 i[345]86-*-freebsd*) gdb_host=fbsd ;;
138 i[345]86-*-netbsd*) gdb_host=nbsd ;;
139 i[345]86-*-go32*) gdb_host=go32 ;;
140 i[345]86-*-linux*) gdb_host=linux ;;
141 i[345]86-*-lynxos*) gdb_host=i386lynx ;;
142 i[345]86-*-mach3*) gdb_host=i386m3 ;;
143 i[345]86-*-mach*) gdb_host=i386mach ;;
144 i[345]86-*-osf1mk*) gdb_host=osf1mk ;;
145 i[345]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
146 i[345]86-*-sco*) gdb_host=i386sco ;;
147 i[345]86-*-solaris*) gdb_host=i386sol2 ;;
148 i[345]86-*-sunos*) gdb_host=sun386 ;;
149 i[345]86-*-sysv3.2*) gdb_host=i386v32 ;;
150 i[345]86-*-sysv32*) gdb_host=i386v32 ;;
151 i[345]86-*-sysv4*) gdb_host=i386v4 ;;
152 i[345]86-*-unixware) gdb_host=i386v4 ;;
153 i[345]86-*-sysv*) gdb_host=i386v ;;
154 i[345]86-*-isc*) gdb_host=i386v32 ;;
155 i[345]86-*-os9k) gdb_host=i386os9k ;;
156 i[345]86-*-win32*) gdb_host=win32 ;;
157 m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;;
158 m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;;
159 m68030-sony-*) gdb_host=news1000 ;;
160
161 m68*-altos-*) gdb_host=altos ;;
162 m68*-apollo*-sysv*) gdb_host=apollo68v ;;
163 m68*-apollo*-bsd*) gdb_host=apollo68b ;;
164 m68*-att-*) gdb_host=3b1 ;;
165 m68*-bull*-sysv*) gdb_host=dpx2 ;;
166 m68*-hp-bsd*) gdb_host=hp300bsd ;;
167 m68*-hp-hpux*) gdb_host=hp300hpux ;;
168 m68*-isi-*) gdb_host=isi ;;
169 m68*-*-lynxos*) gdb_host=m68klynx ;;
170 m68*-*-sysv4*) gdb_host=m68kv4 ;;
171 m68*-motorola-*) gdb_host=delta68 ;;
172 m68*-sony-*) gdb_host=news ;;
173 m68*-sun-sunos3*) gdb_host=sun3os3 ;;
174 m68*-sun-sunos4*) gdb_host=sun3os4 ;;
175 m68*-sun-*) gdb_host=sun3os4 ;;
176
177 m88*-harris-cxux*) gdb_host=cxux ;;
178 m88*-motorola-sysv4*) gdb_host=delta88v4 ;;
179 m88*-motorola-sysv*) gdb_host=delta88 ;;
180 m88*-*-mach3*) gdb_host=mach3 ;;
181 m88*-*-*) gdb_host=m88k ;;
182
183 mips-dec-mach3*) gdb_host=mach3 ;;
184 mips-dec-*) gdb_host=decstation ;;
185 mips-little-*) gdb_host=littlemips ;;
186 mips-sgi-irix3*) gdb_host=irix3 ;;
187 mips-sgi-irix4*) gdb_host=irix4 ;;
188 mips-sgi-irix5*) gdb_host=irix5 ;;
189 mips-sony-*) gdb_host=news-mips ;;
190 mips-*-mach3*) gdb_host=mach3 ;;
191 mips-*-sysv4*) gdb_host=mipsv4 ;;
192 mips-*-sysv*) gdb_host=riscos ;;
193 mips-*-riscos*) gdb_host=riscos ;;
194
195 none-*-*) gdb_host=none ;;
196
197 np1-*-*) gdb_host=np1 ;;
198
199 ns32k-*-mach3*) gdb_host=mach3 ;;
200 ns32k-*-netbsd*) gdb_host=nbsd ;;
201 ns32k-umax-*) gdb_host=umax ;;
202 ns32k-utek-sysv*) gdb_host=merlin ;;
203
204 powerpc-*-aix*) gdb_host=aix ;;
205
206 pn-*-*) gdb_host=pn ;;
207
208 pyramid-*-*) gdb_host=pyramid ;;
209
210 romp-*-*) gdb_host=rtbsd ;;
211
212 rs6000-*-lynxos*) gdb_host=rs6000lynx ;;
213 rs6000-*-*) gdb_host=rs6000 ;;
214
215 sparc-*-lynxos*) gdb_host=sparclynx ;;
216 sparc-*-netbsd*) gdb_host=nbsd ;;
217 sparc-*-solaris2*) gdb_host=sun4sol2 ;;
218 sparc-*-sunos4*) gdb_host=sun4os4 ;;
219 sparc-*-sunos5*) gdb_host=sun4sol2 ;;
220 sparc-*-*) gdb_host=sun4os4 ;;
221
222 tahoe-*-*) gdb_host=tahoe ;;
223
224 vax-*-bsd*) gdb_host=vaxbsd ;;
225 vax-*-ultrix2*) gdb_host=vaxult2 ;;
226 vax-*-ultrix*) gdb_host=vaxult ;;
227
228 w65-*-*) gdb_host=w65 ;;
229
230 esac
231
232
233 # Map target cpu into the config cpu subdirectory name.
234 # The default is $target_cpu.
235
236 case "${target_cpu}" in
237
238 alpha) gdb_target_cpu=alpha ;;
239 c[12]) gdb_target_cpu=convex ;;
240 hppa*) gdb_target_cpu=pa ;;
241 i[345]86) gdb_target_cpu=i386 ;;
242 m68*) gdb_target_cpu=m68k ;;
243 m88*) gdb_target_cpu=m88k ;;
244 mips*) gdb_target_cpu=mips ;;
245 np1) gdb_target_cpu=gould ;;
246 powerpc*) gdb_target_cpu=powerpc ;;
247 pn) gdb_target_cpu=gould ;;
248 pyramid) gdb_target_cpu=pyr ;;
249 sparc*) gdb_target_cpu=sparc ;;
250 *) gdb_target_cpu=$target_cpu ;;
251
252 esac
253
254 # map target info into gdb names.
255
256 case "${target}" in
257
258 a29k-*-aout*) gdb_target=a29k ;;
259 a29k-*-coff*) gdb_target=a29k ;;
260 a29k-*-elf*) gdb_target=a29k ;;
261 a29k-*-ebmon*) gdb_target=a29k ;;
262 a29k-*-kern*) gdb_target=a29k-kern ;;
263 a29k-*-none*) gdb_target=a29k ;;
264 a29k-*-sym1*) gdb_target=ultra3 ;;
265 a29k-*-udi*) gdb_target=a29k-udi ;;
266 a29k-*-vxworks*) gdb_target=vx29k ;;
267
268 alpha-*-osf*) gdb_target=alpha-osf1 ;;
269
270 # start-sanitize-arc
271 arc-*-*) gdb_target=arc ;;
272 # end-sanitize-arc
273
274 arm-*-*) gdb_target=arm ;;
275
276 c1-*-*) gdb_target=convex ;;
277 c2-*-*) gdb_target=convex ;;
278
279 h8300-*-*) gdb_target=h8300 ;;
280 h8500-*-*) gdb_target=h8500 ;;
281
282 sh-*-*) gdb_target=sh ;;
283
284 # start-sanitize-r16
285 r16-*-*) gdb_target=r16 ;;
286 # end-sanitize-r16
287
288 hppa*-*-bsd*) gdb_target=hppabsd ;;
289 hppa*-*-pro*) gdb_target=hppapro ;;
290 hppa*-*-hpux*) gdb_target=hppahpux ;;
291 hppa*-*-hiux*) gdb_target=hppahpux ;;
292 hppa*-*-osf*) gdb_target=hppaosf ;;
293
294 i[345]86-sequent-bsd*) gdb_target=symmetry ;;
295 i[345]86-sequent-sysv4*) gdb_target=ptx4 ;;
296 i[345]86-sequent-sysv*) gdb_target=ptx ;;
297 i[345]86-ncr-*) gdb_target=ncr3000 ;;
298 i[345]86-*-aout*) gdb_target=i386aout ;;
299 i[345]86-*-coff*) gdb_target=i386v ;;
300 i[345]86-*-elf*) gdb_target=i386v ;;
301 i[345]86-*-aix*) gdb_target=i386aix ;;
302 i[345]86-*-bsd*) gdb_target=i386bsd ;;
303 i[345]86-*-freebsd*) gdb_target=fbsd ;;
304 i[345]86-*-netbsd*) gdb_target=nbsd ;;
305 i[345]86-*-os9k) gdb_target=i386os9k ;;
306 i[345]86-*-go32*) gdb_target=i386aout ;;
307 i[345]86-*-lynxos*) gdb_target=i386lynx
308 configdirs="${configdirs} gdbserver" ;;
309 i[345]86-*-solaris*) gdb_target=i386sol2 ;;
310 i[345]86-*-sunos*) gdb_target=sun386 ;;
311 i[345]86-*-sysv4*) gdb_target=i386v4 ;;
312 i[345]86-*-sco*) gdb_target=i386v ;;
313 i[345]86-*-sysv*) gdb_target=i386v ;;
314 i[345]86-*-linux*) gdb_target=linux ;;
315 i[345]86-*-isc*) gdb_target=i386v ;;
316 i[345]86-*-mach3*) gdb_target=i386m3 ;;
317 i[345]86-*-mach*) gdb_target=i386mach ;;
318 i[345]86-*-netware*) gdb_target=i386nw
319 configdirs="${configdirs} nlm" ;;
320 i[345]86-*-osf1mk*) gdb_target=i386mk ;;
321 i[345]86-*-win32) gdb_target=win32 ;;
322
323 i960-*-bout*) gdb_target=vxworks960 ;;
324 i960-*-coff*) gdb_target=nindy960 ;;
325 i960-*-elf*) gdb_target=nindy960 ;;
326
327 i960-*-nindy*) gdb_target=nindy960 ;;
328 i960-*-vxworks*) gdb_target=vxworks960 ;;
329
330 m68000-*-sunos3*) gdb_target=sun2os3 ;;
331 m68000-*-sunos4*) gdb_target=sun2os4 ;;
332
333 m68*-apollo*-bsd*) gdb_target=apollo68b ;;
334 m68*-bull-sysv*) gdb_target=dpx2 ;;
335 m68*-hp-bsd*) gdb_target=hp300bsd ;;
336 m68*-hp-hpux*) gdb_target=hp300hpux ;;
337 m68*-altos-*) gdb_target=altos ;;
338 m68*-att-*) gdb_target=3b1 ;;
339 m68*-cisco*-*) gdb_target=cisco ;;
340 m68*-ericsson-*) gdb_target=es1800 ;;
341 m68*-isi-*) gdb_target=isi ;;
342 m68*-motorola-*) gdb_target=delta68 ;;
343 m68*-netx-*) gdb_target=vxworks68 ;;
344 m68*-sony-*) gdb_target=news ;;
345 m68*-tandem-*) gdb_target=st2000 ;;
346 m68*-rom68k-*) gdb_target=monitor ;;
347 m68*-*bug-*) gdb_target=monitor ;;
348 m68*-monitor-*) gdb_target=monitor ;;
349 m68*-est-*) gdb_target=monitor ;;
350 m68*-*-aout*) gdb_target=monitor ;;
351 m68*-*-coff*) gdb_target=monitor ;;
352 m68*-*-elf*) gdb_target=monitor ;;
353 m68*-*-lynxos*) gdb_target=m68klynx
354 configdirs="${configdirs} gdbserver" ;;
355 m68*-*-os68k*) gdb_target=os68k ;;
356 m68*-*-sunos3*) gdb_target=sun3os3 ;;
357 m68*-*-sunos4*) gdb_target=sun3os4 ;;
358 m68*-*-sysv4*) gdb_target=m68kv4 ;;
359 m68*-*-vxworks*) gdb_target=vxworks68 ;;
360
361 m88*-harris-cxux*) gdb_target=cxux ;;
362 m88*-motorola-sysv4*) gdb_target=delta88v4 ;;
363 m88*-*-mach3*) gdb_target=mach3 ;;
364 m88*-motorola-*) gdb_target=delta88 ;;
365 m88*-*-*) gdb_target=m88k ;;
366
367 mips64*-big-*) gdb_target=bigmips64 ;;
368 mips*-big-*) gdb_target=bigmips ;;
369 mips*-dec-mach3*) gdb_target=mach3 ;;
370 mips*-dec-*) gdb_target=decstation ;;
371 mips64*el-*-ecoff*) gdb_target=idtl64 ;;
372 mips64*-idt-ecoff*) gdb_target=idt64 ;;
373 mips64*vr4300*el-*-elf*) gdb_target=vr4300el ;;
374 mips64*vr4300*-*-elf*) gdb_target=vr4300 ;;
375 mips64*el-*-elf*) gdb_target=idtl64 ;;
376 mips64*-*-elf*) gdb_target=idt64 ;;
377 mips*el-*-ecoff*) gdb_target=idtl ;;
378 mips*-*-ecoff*) gdb_target=idt ;;
379 mips*el-*-elf*) gdb_target=idtl ;;
380 mips*-*-elf*) gdb_target=idt ;;
381 mips*-little-*) gdb_target=littlemips ;;
382 mips*-sgi-irix5*) gdb_target=irix5 ;;
383 mips*-sgi-*) gdb_target=irix3 ;;
384 mips*-sony-*) gdb_target=bigmips ;;
385 mips*-*-mach3*) gdb_target=mach3 ;;
386 mips*-*-sysv4*) gdb_target=mipsv4 ;;
387 mips*-*-sysv*) gdb_target=bigmips ;;
388 mips*-*-riscos*) gdb_target=bigmips ;;
389
390 none-*-*) gdb_target=none ;;
391
392 np1-*-*) gdb_target=np1 ;;
393
394 ns32k-*-mach3*) gdb_target=mach3 ;;
395 ns32k-*-netbsd*) gdb_target=nbsd ;;
396 ns32k-utek-sysv*) gdb_target=merlin ;;
397 ns32k-utek-*) gdb_target=umax ;;
398
399 pn-*-*) gdb_target=pn ;;
400 powerpc-*-netware*) gdb_target=ppc-nw
401 configdirs="${configdirs} nlm" ;;
402
403 powerpc-*-aix4*) gdb_target=aix4 ;;
404 powerpc-*-aix*) gdb_target=aix ;;
405 powerpc-*-eabisim*) gdb_target=ppc-sim ;;
406 powerpc-*-eabi*) gdb_target=ppc-eabi ;;
407 powerpcle-*-eabisim*) gdb_target=ppcle-sim ;;
408 powerpcle-*-eabi*) gdb_target=ppcle-eabi ;;
409
410 pyramid-*-*) gdb_target=pyramid ;;
411
412 rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
413 rs6000-*-aix4*) gdb_target=aix4 ;;
414 rs6000-*-*) gdb_target=rs6000 ;;
415
416 sparc-*-aout*) gdb_target=sparc-em ;;
417 sparc-*-coff*) gdb_target=sparc-em ;;
418 sparc-*-elf*) gdb_target=sparc-em ;;
419 sparc-*-lynxos*) gdb_target=sparclynx
420 configdirs="${configdirs} gdbserver" ;;
421 sparc-*-netbsd*) gdb_target=nbsd ;;
422 sparc-*-solaris2*) gdb_target=sun4sol2 ;;
423 sparc-*-sunos4*) gdb_target=sun4os4 ;;
424 sparc-*-sunos5*) gdb_target=sun4sol2 ;;
425 sparc-*-vxworks*) gdb_target=vxsparc ;;
426 sparc-*-*) gdb_target=sun4os4 ;;
427 sparclite*-*-*) gdb_target=sparclite ;;
428 sparc64-*-*) gdb_target=sp64 ;;
429
430 tahoe-*-*) gdb_target=tahoe ;;
431
432 vax-*-*) gdb_target=vax ;;
433
434 w65-*-*) gdb_target=w65 ;;
435
436 z8k-*-coff*) gdb_target=z8k ;;
437
438 esac
439
440 dnl
441 changequote([,])dnl
442
443 frags=
444 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
445 if test ! -f ${host_makefile_frag}; then
446 AC_MSG_ERROR("*** Gdb does not support host ${host}")
447 fi
448 frags="$frags $host_makefile_frag"
449
450 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
451 if test ! -f ${target_makefile_frag}; then
452 AC_MSG_ERROR("*** Gdb does not support target ${target}")
453 fi
454 frags="$frags $target_makefile_frag"
455
456 AC_SUBST_FILE(host_makefile_frag)
457 AC_SUBST_FILE(target_makefile_frag)
458 AC_SUBST(frags)
459
460 changequote(,)dnl
461 hostfile=`sed -n '
462 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
463 ' ${host_makefile_frag}`
464
465 targetfile=`sed -n '
466 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
467 ' ${target_makefile_frag}`
468
469 # these really aren't orthogonal true/false values of the same condition,
470 # but shells are slow enough that I like to reuse the test conditions
471 # whenever possible
472 if test "${target}" = "${host}"; then
473 nativefile=`sed -n '
474 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
475 ' ${host_makefile_frag}`
476 else
477 # GDBserver is only useful in a "native" enviroment
478 configdirs=`echo $configdirs | sed 's/gdbserver//'`
479 fi
480 changequote([,])
481
482 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
483 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
484 # corresponding links. But we have to remove the xm.h files and tm.h
485 # files anyway, e.g. when switching from "configure host" to
486 # "configure none".
487
488 files=
489 links=
490 rm -f xm.h
491 if test "${hostfile}" != ""; then
492 files="${files} config/${gdb_host_cpu}/${hostfile}"
493 links="${links} xm.h"
494 fi
495 rm -f tm.h
496 if test "${targetfile}" != ""; then
497 files="${files} config/${gdb_target_cpu}/${targetfile}"
498 links="${links} tm.h"
499 fi
500 rm -f nm.h
501 if test "${nativefile}" != ""; then
502 files="${files} config/${gdb_host_cpu}/${nativefile}"
503 links="${links} nm.h"
504 else
505 # A cross-only configuration.
506 files="${files} config/nm-empty.h"
507 links="${links} nm.h"
508 fi
509 # start-sanitize-gdbtk
510
511 # Make it possible to use the GUI without doing a full install
512 if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ; then
513 files="${files} gdbtk.tcl"
514 links="${links} gdbtk.tcl"
515 fi
516 # end-sanitize-gdbtk
517
518 AC_LINK_FILES($files, $links)
519
520 AC_CONFIG_SUBDIRS($configdirs)
521 AC_OUTPUT(Makefile,
522 [
523 dnl Autoconf doesn't provide a mechanism for modifying definitions
524 dnl provided by makefile fragments.
525 dnl
526 if test "${nativefile}" = ""; then
527 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
528 < Makefile > Makefile.tem
529 mv -f Makefile.tem Makefile
530 fi
531
532 changequote(,)dnl
533 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
534 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
535 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
536 mv -f Makefile.tmp Makefile
537 changequote([,])dnl
538
539 case ${srcdir} in
540 .)
541 ;;
542 *)
543 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
544 echo "source ${srcdir}/.gdbinit" >> .gdbinit
545 esac
546 ],
547 [
548 gdb_host_cpu=$gdb_host_cpu
549 gdb_target_cpu=$gdb_target_cpu
550 nativefile=$nativefile
551 ])
552
553 exit 0