1 dnl Autoconf configure script for GDB, the GNU debugger.
2 dnl Copyright 1995, 1996 Free Software Foundation, Inc.
4 dnl This file is part of GDB.
6 dnl This program is free software; you can redistribute it and/or modify
7 dnl it under the terms of the GNU General Public License as published by
8 dnl the Free Software Foundation; either version 2 of the License, or
9 dnl (at your option) any later version.
11 dnl This program is distributed in the hope that it will be useful,
12 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
13 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 dnl GNU General Public License for more details.
16 dnl You should have received a copy of the GNU General Public License
17 dnl along with this program; if not, write to the Free Software
18 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
20 dnl Process this file with autoconf to produce a configure script.
34 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)
39 AC_CHECK_HEADERS(memory.h string.h strings.h unistd.h termios.h termio.h sgtty.h stddef.h)
44 dnl Handle optional features that can be enabled.
51 [case "${enableval}" in
52 yes) enable_netrom=yes ;;
53 no) enable_netrom=no ;;
54 *) AC_MSG_ERROR(bad value ${enableval} given for netrom option) ;;
57 if test "${enable_netrom}" = "yes"; then
58 ENABLE_OBS="${ENABLE_OBS} remote-nrom.o"
66 [case "${enableval}" in
67 yes) ENABLE_OBS="${ENABLE_OBS} gmagic.o"
68 ENABLE_CFLAGS=-DGENERAL_MAGIC
71 *) AC_MSG_ERROR(bad value ${enableval} given for gm option) ;;
76 AC_ARG_ENABLE(sim-powerpc,
77 [ --enable-sim-powerpc ],
78 [case "${enableval}" in
79 yes) powerpc_sim=yes ;;
81 *) AC_MSG_ERROR(bad value ${enableval} given for sim-powerpc option) ;;
82 esac],[if test x"$GCC" != x""; then powerpc_sim=yes; else powerpc_sim=no; fi])
84 # start-sanitize-gdbtk
89 [case "${enableval}" in
93 AC_MSG_WARN([GDB does not support GDBtk on host ${host}. GDBtk will be disabled.])
101 AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
104 # Default is on for everything but go32
113 if test "${enable_gdbtk}" = "yes"; then
121 # Look for dynamic linking libraries that Tcl might need. This is
122 # only done for Tcl 7.5 and greater. It would be good to look for and
123 # use the "configInfo" file that Tcl generates, but for now that is
125 if test $tclmajor -ge 7 -a $tclminor -ge 5 ; then
126 AC_CHECK_LIB(dl, main, , AC_CHECK_LIB(dld, main))
131 if test "x$no_x" != "xyes"; then
132 if test "x$x_includes" != "x" ;
134 X_CFLAGS="-I$x_includes"
139 if test "x$x_libraries" != "x" ;
141 X_LDFLAGS="-L$x_libraries"
148 # gdb linked statically w/ Solaris iff GCC is used, otherwise dynamic
151 if test "x$GCC" = "xyes";
153 X_LIBS="-Wl,-Bstatic -lX11 -lXext -lX11 -Wl,-Bdynamic -ldl -lw"
155 if test "x$x_libraries" != "x" ;
157 X_LDFLAGS="$X_LDFLAGS -R$x_libraries"
159 X_LIBS="-lX11 -lXext -lX11"
162 # gdb linked statically w/ SunOS or HPUX
164 m68k-hp-hpux*|hppa*-hp-hpux*|sparc-sun-sunos*)
165 if test "x$x_libraries" != "x" ;
167 X_LIBS="$x_libraries/libX11.a"
169 X_LIBS="/usr/lib/libX11.a"
172 # default is to link dynamically
181 AC_MSG_WARN([No X based programs will be built])
184 TCL_LIBS='$(TCL) $(TK) $(X11_LDFLAGS) $(X11_LIBS)'
185 ENABLE_CLIBS="${ENABLE_CLIBS} ${TCL_LIBS} -lm"
186 ENABLE_OBS="${ENABLE_OBS} gdbtk.o"
189 AC_SUBST(ENABLE_GDBTK)
195 AC_SUBST(ENABLE_CFLAGS)
196 AC_SUBST(ENABLE_CLIBS)
199 # target_subdir is used by the testsuite to find the target libraries.
201 if test "${host}" != "${target}"; then
202 target_subdir="${target_alias}/"
204 AC_SUBST(target_subdir)
206 configdirs="doc testsuite"
211 # Map host cpu into the config cpu subdirectory name.
212 # The default is $host_cpu.
214 case "${host_cpu}" in
216 c[12]) gdb_host_cpu=convex ;;
217 hppa*) gdb_host_cpu=pa ;;
218 i[3456]86) gdb_host_cpu=i386 ;;
219 m68*) gdb_host_cpu=m68k ;;
220 m88*) gdb_host_cpu=m88k ;;
221 np1) gdb_host_cpu=gould ;;
222 pyramid) gdb_host_cpu=pyr ;;
223 powerpc*) gdb_host_cpu=powerpc ;;
224 *) gdb_host_cpu=$host_cpu ;;
228 # map host info into gdb names.
232 a29k-*-*) gdb_host=ultra3 ;;
234 alpha-*-osf1*) gdb_host=alpha-osf1 ;;
235 alpha-*-osf2*) gdb_host=alpha-osf2 ;;
236 alpha-*-osf[3456789]*) gdb_host=alpha-osf3 ;;
238 arm-*-*) gdb_host=arm ;;
240 c[12]-*-*) gdb_host=convex ;;
242 hppa*-*-bsd*) gdb_host=hppabsd ;;
243 hppa*-*-hiux*) gdb_host=hppahpux ;;
244 hppa*-*-hpux*) gdb_host=hppahpux ;;
245 hppa*-*-osf*) gdb_host=hppaosf ;;
247 i[3456]86-ncr-*) gdb_host=ncr3000 ;;
248 i[3456]86-sequent-bsd*) gdb_host=symmetry ;; # dynix
249 i[3456]86-sequent-sysv4*) gdb_host=ptx4 ;;
250 i[3456]86-sequent-sysv*) gdb_host=ptx ;;
251 i[3456]86-*-aix*) gdb_host=i386aix ;;
252 i[3456]86-*-bsd*) gdb_host=i386bsd ;;
253 i[3456]86-*-dgux*) gdb_host=i386dgux ;;
254 i[3456]86-*-freebsd*) gdb_host=fbsd ;;
255 i[3456]86-*-netbsd*) gdb_host=nbsd ;;
256 i[3456]86-*-go32*) gdb_host=go32 ;;
257 i[3456]86-*-linux*) gdb_host=linux ;;
258 i[3456]86-*-lynxos*) gdb_host=i386lynx ;;
259 i[3456]86-*-mach3*) gdb_host=i386m3 ;;
260 i[3456]86-*-mach*) gdb_host=i386mach ;;
261 i[3456]86-*-osf1mk*) gdb_host=osf1mk ;;
262 i[3456]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
263 i[3456]86-*-sco*) gdb_host=i386sco ;;
264 i[3456]86-*-solaris*) gdb_host=i386sol2 ;;
265 i[3456]86-*-sunos*) gdb_host=sun386 ;;
266 i[3456]86-*-sysv3.2*) gdb_host=i386v32 ;;
267 i[3456]86-*-sysv32*) gdb_host=i386v32 ;;
268 i[3456]86-*-sysv4*) gdb_host=i386v4 ;;
269 i[3456]86-*-unixware) gdb_host=i386v4 ;;
270 i[3456]86-*-sysv*) gdb_host=i386v ;;
271 i[3456]86-*-isc*) gdb_host=i386v32 ;;
272 i[3456]86-*-os9k) gdb_host=i386os9k ;;
273 i[3456]86-*-win32*) gdb_host=win32 ;;
274 m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;;
275 m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;;
276 m68030-sony-*) gdb_host=news1000 ;;
278 m68*-altos-*) gdb_host=altos ;;
279 m68*-apollo*-sysv*) gdb_host=apollo68v ;;
280 m68*-apollo*-bsd*) gdb_host=apollo68b ;;
281 m68*-att-*) gdb_host=3b1 ;;
282 m68*-bull*-sysv*) gdb_host=dpx2 ;;
283 m68*-hp-bsd*) gdb_host=hp300bsd ;;
284 m68*-hp-hpux*) gdb_host=hp300hpux ;;
285 m68*-isi-*) gdb_host=isi ;;
286 m68*-*-lynxos*) gdb_host=m68klynx ;;
287 m68*-*-sysv4*) gdb_host=m68kv4 ;;
288 m68*-motorola-*) gdb_host=delta68 ;;
289 m68*-sony-*) gdb_host=news ;;
290 m68*-sun-sunos3*) gdb_host=sun3os3 ;;
291 m68*-sun-sunos4*) gdb_host=sun3os4 ;;
292 m68*-sun-*) gdb_host=sun3os4 ;;
294 m88*-harris-cxux*) gdb_host=cxux ;;
295 m88*-motorola-sysv4*) gdb_host=delta88v4 ;;
296 m88*-motorola-sysv*) gdb_host=delta88 ;;
297 m88*-*-mach3*) gdb_host=mach3 ;;
298 m88*-*-*) gdb_host=m88k ;;
300 mips-dec-mach3*) gdb_host=mach3 ;;
301 mips-dec-*) gdb_host=decstation ;;
302 mips-little-*) gdb_host=littlemips ;;
303 mips-sgi-irix3*) gdb_host=irix3 ;;
304 mips-sgi-irix4*) gdb_host=irix4 ;;
305 mips-sgi-irix5*) gdb_host=irix5 ;;
306 mips-sony-*) gdb_host=news-mips ;;
307 mips-*-mach3*) gdb_host=mach3 ;;
308 mips-*-sysv4*) gdb_host=mipsv4 ;;
309 mips-*-sysv*) gdb_host=riscos ;;
310 mips-*-riscos*) gdb_host=riscos ;;
312 none-*-*) gdb_host=none ;;
314 np1-*-*) gdb_host=np1 ;;
316 ns32k-*-mach3*) gdb_host=mach3 ;;
317 ns32k-*-netbsd*) gdb_host=nbsd ;;
318 ns32k-umax-*) gdb_host=umax ;;
319 ns32k-utek-sysv*) gdb_host=merlin ;;
321 powerpc-*-aix*) gdb_host=aix ;;
323 pn-*-*) gdb_host=pn ;;
325 pyramid-*-*) gdb_host=pyramid ;;
327 romp-*-*) gdb_host=rtbsd ;;
329 rs6000-*-lynxos*) gdb_host=rs6000lynx ;;
330 rs6000-*-aix4*) gdb_host=aix4 ;;
331 rs6000-*-*) gdb_host=rs6000 ;;
333 sparc-*-lynxos*) gdb_host=sparclynx ;;
334 sparc-*-netbsd*) gdb_host=nbsd ;;
335 sparc-*-solaris2*) gdb_host=sun4sol2 ;;
336 sparc-*-sunos4*) gdb_host=sun4os4 ;;
337 sparc-*-sunos5*) gdb_host=sun4sol2 ;;
338 sparc-*-*) gdb_host=sun4os4 ;;
340 tahoe-*-*) gdb_host=tahoe ;;
342 vax-*-bsd*) gdb_host=vaxbsd ;;
343 vax-*-ultrix2*) gdb_host=vaxult2 ;;
344 vax-*-ultrix*) gdb_host=vaxult ;;
346 w65-*-*) gdb_host=w65 ;;
351 # Map target cpu into the config cpu subdirectory name.
352 # The default is $target_cpu.
354 case "${target_cpu}" in
356 alpha) gdb_target_cpu=alpha ;;
357 c[12]) gdb_target_cpu=convex ;;
358 hppa*) gdb_target_cpu=pa ;;
359 i[3456]86) gdb_target_cpu=i386 ;;
360 m68*) gdb_target_cpu=m68k ;;
361 m88*) gdb_target_cpu=m88k ;;
362 mips*) gdb_target_cpu=mips ;;
363 np1) gdb_target_cpu=gould ;;
364 powerpc*) gdb_target_cpu=powerpc ;;
365 pn) gdb_target_cpu=gould ;;
366 pyramid) gdb_target_cpu=pyr ;;
367 sparc*) gdb_target_cpu=sparc ;;
368 *) gdb_target_cpu=$target_cpu ;;
372 # map target info into gdb names.
376 a29k-*-aout*) gdb_target=a29k ;;
377 a29k-*-coff*) gdb_target=a29k ;;
378 a29k-*-elf*) gdb_target=a29k ;;
379 a29k-*-ebmon*) gdb_target=a29k ;;
380 a29k-*-kern*) gdb_target=a29k-kern ;;
381 a29k-*-none*) gdb_target=a29k ;;
382 a29k-*-sym1*) gdb_target=ultra3 ;;
383 a29k-*-udi*) gdb_target=a29k-udi ;;
384 a29k-*-vxworks*) gdb_target=vx29k ;;
386 alpha-*-osf*) gdb_target=alpha-osf1 ;;
389 arc-*-*) gdb_target=arc ;;
392 arm-*-*) gdb_target=arm ;;
394 c1-*-*) gdb_target=convex ;;
395 c2-*-*) gdb_target=convex ;;
397 h8300-*-*) gdb_target=h8300 ;;
398 h8500-*-*) gdb_target=h8500 ;;
400 sh-*-*) gdb_target=sh ;;
403 r16-*-*) gdb_target=r16 ;;
406 hppa*-*-bsd*) gdb_target=hppabsd ;;
407 hppa*-*-pro*) gdb_target=hppapro ;;
408 hppa*-*-hpux*) gdb_target=hppahpux ;;
409 hppa*-*-hiux*) gdb_target=hppahpux ;;
410 hppa*-*-osf*) gdb_target=hppaosf ;;
412 i[3456]86-sequent-bsd*) gdb_target=symmetry ;;
413 i[3456]86-sequent-sysv4*) gdb_target=ptx4 ;;
414 i[3456]86-sequent-sysv*) gdb_target=ptx ;;
415 i[3456]86-ncr-*) gdb_target=ncr3000 ;;
416 i[3456]86-*-aout*) gdb_target=i386aout ;;
417 i[3456]86-*-coff*) gdb_target=i386v ;;
418 i[3456]86-*-elf*) gdb_target=i386v ;;
419 i[3456]86-*-aix*) gdb_target=i386aix ;;
420 i[3456]86-*-bsd*) gdb_target=i386bsd ;;
421 i[3456]86-*-freebsd*) gdb_target=fbsd ;;
422 i[3456]86-*-netbsd*) gdb_target=nbsd ;;
423 i[3456]86-*-os9k) gdb_target=i386os9k ;;
424 i[3456]86-*-go32*) gdb_target=i386aout ;;
425 i[3456]86-*-lynxos*) gdb_target=i386lynx
426 configdirs="${configdirs} gdbserver" ;;
427 i[3456]86-*-solaris*) gdb_target=i386sol2 ;;
428 i[3456]86-*-sunos*) gdb_target=sun386 ;;
429 i[3456]86-*-sysv4*) gdb_target=i386v4 ;;
430 i[3456]86-*-sco*) gdb_target=i386v ;;
431 i[3456]86-*-sysv*) gdb_target=i386v ;;
432 i[3456]86-*-linux*) gdb_target=linux ;;
433 i[3456]86-*-isc*) gdb_target=i386v ;;
434 i[3456]86-*-mach3*) gdb_target=i386m3 ;;
435 i[3456]86-*-mach*) gdb_target=i386mach ;;
436 i[3456]86-*-netware*) gdb_target=i386nw
437 configdirs="${configdirs} nlm" ;;
438 i[3456]86-*-osf1mk*) gdb_target=i386mk ;;
439 i[3456]86-*-win32) gdb_target=win32 ;;
441 i960-*-bout*) gdb_target=vxworks960 ;;
442 i960-*-coff*) gdb_target=nindy960 ;;
443 i960-*-elf*) gdb_target=nindy960 ;;
445 i960-*-nindy*) gdb_target=nindy960 ;;
446 i960-*-vxworks*) gdb_target=vxworks960 ;;
448 m68000-*-sunos3*) gdb_target=sun2os3 ;;
449 m68000-*-sunos4*) gdb_target=sun2os4 ;;
451 m68*-apollo*-bsd*) gdb_target=apollo68b ;;
452 m68*-bull-sysv*) gdb_target=dpx2 ;;
453 m68*-hp-bsd*) gdb_target=hp300bsd ;;
454 m68*-hp-hpux*) gdb_target=hp300hpux ;;
455 m68*-altos-*) gdb_target=altos ;;
456 m68*-att-*) gdb_target=3b1 ;;
457 m68*-cisco*-*) gdb_target=cisco ;;
458 m68*-ericsson-*) gdb_target=es1800 ;;
459 m68*-isi-*) gdb_target=isi ;;
460 m68*-motorola-*) gdb_target=delta68 ;;
461 m68*-netx-*) gdb_target=vxworks68 ;;
462 m68*-sony-*) gdb_target=news ;;
463 m68*-tandem-*) gdb_target=st2000 ;;
464 m68*-rom68k-*) gdb_target=monitor ;;
465 m68*-*bug-*) gdb_target=monitor ;;
466 m68*-monitor-*) gdb_target=monitor ;;
467 m68*-est-*) gdb_target=monitor ;;
468 m68*-*-aout*) gdb_target=monitor ;;
469 m68*-*-coff*) gdb_target=monitor ;;
470 m68*-*-elf*) gdb_target=monitor ;;
471 m68*-*-lynxos*) gdb_target=m68klynx
472 configdirs="${configdirs} gdbserver" ;;
473 m68*-*-os68k*) gdb_target=os68k ;;
474 m68*-*-sunos3*) gdb_target=sun3os3 ;;
475 m68*-*-sunos4*) gdb_target=sun3os4 ;;
476 m68*-*-sysv4*) gdb_target=m68kv4 ;;
477 m68*-*-vxworks*) gdb_target=vxworks68 ;;
479 m88*-harris-cxux*) gdb_target=cxux ;;
480 m88*-motorola-sysv4*) gdb_target=delta88v4 ;;
481 m88*-*-mach3*) gdb_target=mach3 ;;
482 m88*-motorola-*) gdb_target=delta88 ;;
483 m88*-*-*) gdb_target=m88k ;;
485 mips64*-big-*) gdb_target=bigmips64 ;;
486 mips*-big-*) gdb_target=bigmips ;;
487 mips*-dec-mach3*) gdb_target=mach3 ;;
488 mips*-dec-*) gdb_target=decstation ;;
489 mips64*el-*-ecoff*) gdb_target=embedl64 ;;
490 mips64*-*-ecoff*) gdb_target=embed64 ;;
491 mips64*vr4300*el-*-elf*) gdb_target=vr4300el ;;
492 mips64*vr4300*-*-elf*) gdb_target=vr4300 ;;
493 mips64*el-*-elf*) gdb_target=embedl64 ;;
494 mips64*-*-elf*) gdb_target=embed64 ;;
495 mips*el-*-ecoff*) gdb_target=embedl ;;
496 mips*-*-ecoff*) gdb_target=embed ;;
498 mips*-*-magic*) gdb_target=embed ;;
500 mips*el-*-elf*) gdb_target=embedl ;;
501 mips*-*-elf*) gdb_target=embed ;;
502 mips*-little-*) gdb_target=littlemips ;;
503 mips*-sgi-irix5*) gdb_target=irix5 ;;
504 mips*-sgi-*) gdb_target=irix3 ;;
505 mips*-sony-*) gdb_target=bigmips ;;
506 mips*-*-mach3*) gdb_target=mach3 ;;
507 mips*-*-sysv4*) gdb_target=mipsv4 ;;
508 mips*-*-sysv*) gdb_target=bigmips ;;
509 mips*-*-riscos*) gdb_target=bigmips ;;
511 none-*-*) gdb_target=none ;;
513 np1-*-*) gdb_target=np1 ;;
515 ns32k-*-mach3*) gdb_target=mach3 ;;
516 ns32k-*-netbsd*) gdb_target=nbsd ;;
517 ns32k-utek-sysv*) gdb_target=merlin ;;
518 ns32k-utek-*) gdb_target=umax ;;
520 pn-*-*) gdb_target=pn ;;
521 powerpc-*-macos*) gdb_target=macos ;;
522 powerpc-*-netware*) gdb_target=ppc-nw
523 configdirs="${configdirs} nlm" ;;
525 powerpc-*-aix4*) gdb_target=aix4 ;;
526 powerpc-*-aix*) gdb_target=aix ;;
527 powerpc-*-eabi*) if test x"$powerpc_sim" = x"yes"; then
532 powerpcle-*-eabi*) if test x"$powerpc_sim" = x"yes"; then
535 gdb_target=ppcle-eabi
538 pyramid-*-*) gdb_target=pyramid ;;
540 rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
541 rs6000-*-aix4*) gdb_target=aix4 ;;
542 rs6000-*-*) gdb_target=rs6000 ;;
544 sparc-*-aout*) gdb_target=sparc-em ;;
545 sparc-*-coff*) gdb_target=sparc-em ;;
546 sparc-*-elf*) gdb_target=sparc-em ;;
547 sparc-*-lynxos*) gdb_target=sparclynx
548 configdirs="${configdirs} gdbserver" ;;
549 sparc-*-netbsd*) gdb_target=nbsd ;;
550 sparc-*-solaris2*) gdb_target=sun4sol2 ;;
551 sparc-*-sunos4*) gdb_target=sun4os4 ;;
552 sparc-*-sunos5*) gdb_target=sun4sol2 ;;
553 sparc-*-vxworks*) gdb_target=vxsparc ;;
554 sparc-*-*) gdb_target=sun4os4 ;;
555 sparclite*-*-*) gdb_target=sparclite ;;
556 sparc64-*-*) gdb_target=sp64 ;;
558 tahoe-*-*) gdb_target=tahoe ;;
560 vax-*-*) gdb_target=vax ;;
562 w65-*-*) gdb_target=w65 ;;
564 z8k-*-coff*) gdb_target=z8k ;;
572 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
573 if test ! -f ${host_makefile_frag}; then
574 AC_MSG_ERROR("*** Gdb does not support host ${host}")
576 frags="$frags $host_makefile_frag"
578 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
579 if test ! -f ${target_makefile_frag}; then
580 AC_MSG_ERROR("*** Gdb does not support target ${target}")
582 frags="$frags $target_makefile_frag"
584 AC_SUBST_FILE(host_makefile_frag)
585 AC_SUBST_FILE(target_makefile_frag)
590 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
591 ' ${host_makefile_frag}`
594 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
595 ' ${target_makefile_frag}`
597 # these really aren't orthogonal true/false values of the same condition,
598 # but shells are slow enough that I like to reuse the test conditions
600 if test "${target}" = "${host}"; then
602 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
603 ' ${host_makefile_frag}`
605 # GDBserver is only useful in a "native" enviroment
606 configdirs=`echo $configdirs | sed 's/gdbserver//'`
610 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
611 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
612 # corresponding links. But we have to remove the xm.h files and tm.h
613 # files anyway, e.g. when switching from "configure host" to
619 if test "${hostfile}" != ""; then
620 files="${files} config/${gdb_host_cpu}/${hostfile}"
621 links="${links} xm.h"
624 if test "${targetfile}" != ""; then
625 files="${files} config/${gdb_target_cpu}/${targetfile}"
626 links="${links} tm.h"
629 if test "${nativefile}" != ""; then
630 files="${files} config/${gdb_host_cpu}/${nativefile}"
631 links="${links} nm.h"
633 # A cross-only configuration.
634 files="${files} config/nm-empty.h"
635 links="${links} nm.h"
637 # start-sanitize-gdbtk
639 # Make it possible to use the GUI without doing a full install
640 if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ; then
641 files="${files} gdbtk.tcl"
642 links="${links} gdbtk.tcl"
646 AC_LINK_FILES($files, $links)
648 AC_CONFIG_SUBDIRS($configdirs)
651 dnl Autoconf doesn't provide a mechanism for modifying definitions
652 dnl provided by makefile fragments.
654 if test "${nativefile}" = ""; then
655 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
656 < Makefile > Makefile.tem
657 mv -f Makefile.tem Makefile
661 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
662 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
663 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
664 mv -f Makefile.tmp Makefile
671 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
672 echo "source ${srcdir}/.gdbinit" >> .gdbinit
676 gdb_host_cpu=$gdb_host_cpu
677 gdb_target_cpu=$gdb_target_cpu
678 nativefile=$nativefile