Add AC_PROG_YACC
[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*el-*-elf*) gdb_target=idtl64 ;;
374 mips64*-*-elf*) gdb_target=idt64 ;;
375 mips*el-*-ecoff*) gdb_target=idtl ;;
376 mips*-*-ecoff*) gdb_target=idt ;;
377 mips*el-*-elf*) gdb_target=idtl ;;
378 mips*-*-elf*) gdb_target=idt ;;
379 mips*-little-*) gdb_target=littlemips ;;
380 mips*-sgi-irix5*) gdb_target=irix5 ;;
381 mips*-sgi-*) gdb_target=irix3 ;;
382 mips*-sony-*) gdb_target=bigmips ;;
383 mips*-*-mach3*) gdb_target=mach3 ;;
384 mips*-*-sysv4*) gdb_target=mipsv4 ;;
385 mips*-*-sysv*) gdb_target=bigmips ;;
386 mips*-*-riscos*) gdb_target=bigmips ;;
387
388 none-*-*) gdb_target=none ;;
389
390 np1-*-*) gdb_target=np1 ;;
391
392 ns32k-*-mach3*) gdb_target=mach3 ;;
393 ns32k-*-netbsd*) gdb_target=nbsd ;;
394 ns32k-utek-sysv*) gdb_target=merlin ;;
395 ns32k-utek-*) gdb_target=umax ;;
396
397 pn-*-*) gdb_target=pn ;;
398 powerpc-*-netware*) gdb_target=ppc-nw
399 configdirs="${configdirs} nlm" ;;
400
401 powerpc-*-aix4*) gdb_target=aix4 ;;
402 powerpc-*-aix*) gdb_target=aix ;;
403 powerpc-*-eabisim*) gdb_target=ppc-sim ;;
404 powerpc-*-eabi*) gdb_target=ppc-eabi ;;
405 powerpcle-*-eabisim*) gdb_target=ppcle-sim ;;
406 powerpcle-*-eabi*) gdb_target=ppcle-eabi ;;
407
408 pyramid-*-*) gdb_target=pyramid ;;
409
410 rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
411 rs6000-*-aix4*) gdb_target=aix4 ;;
412 rs6000-*-*) gdb_target=rs6000 ;;
413
414 sparc-*-aout*) gdb_target=sparc-em ;;
415 sparc-*-coff*) gdb_target=sparc-em ;;
416 sparc-*-elf*) gdb_target=sparc-em ;;
417 sparc-*-lynxos*) gdb_target=sparclynx
418 configdirs="${configdirs} gdbserver" ;;
419 sparc-*-netbsd*) gdb_target=nbsd ;;
420 sparc-*-solaris2*) gdb_target=sun4sol2 ;;
421 sparc-*-sunos4*) gdb_target=sun4os4 ;;
422 sparc-*-sunos5*) gdb_target=sun4sol2 ;;
423 sparc-*-vxworks*) gdb_target=vxsparc ;;
424 sparc-*-*) gdb_target=sun4os4 ;;
425 sparclite*-*-*) gdb_target=sparclite ;;
426 sparc64-*-*) gdb_target=sp64 ;;
427
428 tahoe-*-*) gdb_target=tahoe ;;
429
430 vax-*-*) gdb_target=vax ;;
431
432 w65-*-*) gdb_target=w65 ;;
433
434 z8k-*-coff*) gdb_target=z8k ;;
435
436 esac
437
438 dnl
439 changequote([,])dnl
440
441 frags=
442 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
443 if test ! -f ${host_makefile_frag}; then
444 AC_MSG_ERROR("*** Gdb does not support host ${host}")
445 fi
446 frags="$frags $host_makefile_frag"
447
448 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
449 if test ! -f ${target_makefile_frag}; then
450 AC_MSG_ERROR("*** Gdb does not support target ${target}")
451 fi
452 frags="$frags $target_makefile_frag"
453
454 AC_SUBST_FILE(host_makefile_frag)
455 AC_SUBST_FILE(target_makefile_frag)
456 AC_SUBST(frags)
457
458 changequote(,)dnl
459 hostfile=`sed -n '
460 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
461 ' ${host_makefile_frag}`
462
463 targetfile=`sed -n '
464 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
465 ' ${target_makefile_frag}`
466
467 # these really aren't orthogonal true/false values of the same condition,
468 # but shells are slow enough that I like to reuse the test conditions
469 # whenever possible
470 if test "${target}" = "${host}"; then
471 nativefile=`sed -n '
472 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
473 ' ${host_makefile_frag}`
474 else
475 # GDBserver is only useful in a "native" enviroment
476 configdirs=`echo $configdirs | sed 's/gdbserver//'`
477 fi
478 changequote([,])
479
480 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
481 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
482 # corresponding links. But we have to remove the xm.h files and tm.h
483 # files anyway, e.g. when switching from "configure host" to
484 # "configure none".
485
486 files=
487 links=
488 rm -f xm.h
489 if test "${hostfile}" != ""; then
490 files="${files} config/${gdb_host_cpu}/${hostfile}"
491 links="${links} xm.h"
492 fi
493 rm -f tm.h
494 if test "${targetfile}" != ""; then
495 files="${files} config/${gdb_target_cpu}/${targetfile}"
496 links="${links} tm.h"
497 fi
498 rm -f nm.h
499 if test "${nativefile}" != ""; then
500 files="${files} config/${gdb_host_cpu}/${nativefile}"
501 links="${links} nm.h"
502 else
503 # A cross-only configuration.
504 files="${files} config/nm-empty.h"
505 links="${links} nm.h"
506 fi
507 # start-sanitize-gdbtk
508
509 # Make it possible to use the GUI without doing a full install
510 if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ; then
511 files="${files} gdbtk.tcl"
512 links="${links} gdbtk.tcl"
513 fi
514 # end-sanitize-gdbtk
515
516 AC_LINK_FILES($files, $links)
517
518 AC_CONFIG_SUBDIRS($configdirs)
519 AC_OUTPUT(Makefile,
520 [
521 dnl Autoconf doesn't provide a mechanism for modifying definitions
522 dnl provided by makefile fragments.
523 dnl
524 if test "${nativefile}" = ""; then
525 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
526 < Makefile > Makefile.tem
527 mv -f Makefile.tem Makefile
528 fi
529
530 changequote(,)dnl
531 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
532 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
533 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
534 mv -f Makefile.tmp Makefile
535 changequote([,])dnl
536
537 case ${srcdir} in
538 .)
539 ;;
540 *)
541 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
542 echo "source ${srcdir}/.gdbinit" >> .gdbinit
543 esac
544 ],
545 [
546 gdb_host_cpu=$gdb_host_cpu
547 gdb_target_cpu=$gdb_target_cpu
548 nativefile=$nativefile
549 ])
550
551 exit 0