* buildsym.c (patch_subfile_name): Update last_source_file
[external/binutils.git] / gdb / configure.in
index 0b3d9f0..0b324cc 100644 (file)
@@ -1,6 +1,6 @@
 # This file is a shell script fragment that supplies the information
 # necessary to tailor a template configure script into the configure
-# script appropriate for this directory.  For more information, check
+# script approriate for this directory.  For more information, check
 # any existing configure script.
 
 srcname="GDB"
@@ -32,7 +32,8 @@ case "${host}" in
 
 a29k-*-*)              gdb_host=ultra3 ;;
 
-alpha-*-osf*)          gdb_host=alpha-osf1 ;;
+alpha-*-osf1*)         gdb_host=alpha-osf1 ;;
+alpha-*-osf[23456789]*)        gdb_host=alpha-osf2 ;;
 
 arm-*-*)               gdb_host=arm ;;
 
@@ -49,6 +50,7 @@ i[345]86-sequent-sysv4*) gdb_host=ptx4 ;;
 i[345]86-sequent-sysv*)        gdb_host=ptx ;;
 i[345]86-*-aix*)       gdb_host=i386aix ;;
 i[345]86-*-bsd*)       gdb_host=i386bsd ;;
+i[345]86-*-freebsd*)   gdb_host=fbsd ;;
 i[345]86-*-netbsd*)    gdb_host=nbsd ;;
 i[345]86-*-go32*)      gdb_host=go32 ;;
 i[345]86-*-linux*)     gdb_host=linux ;;
@@ -111,6 +113,7 @@ none-*-*)           gdb_host=none ;;
 np1-*-*)               gdb_host=np1 ;;
 
 ns32k-*-mach3*)                gdb_host=mach3 ;;
+ns32k-*-netbsd*)       gdb_host=nbsd ;;
 ns32k-umax-*)          gdb_host=umax ;;
 ns32k-utek-sysv*)      gdb_host=merlin ;;
 
@@ -135,6 +138,8 @@ vax-*-bsd*)         gdb_host=vaxbsd ;;
 vax-*-ultrix2*)                gdb_host=vaxult2 ;;
 vax-*-ultrix*)         gdb_host=vaxult ;;
 
+w65-*-*)               gdb_host=w65 ;;
+
 esac
 
 
@@ -182,10 +187,13 @@ a29k-*-kern*)             gdb_target=a29k-kern ;;
 a29k-*-none*)          gdb_target=a29k ;;
 a29k-*-sym1*)          gdb_target=ultra3 ;;
 a29k-*-udi*)           gdb_target=a29k-udi ;;
+a29k-*-vxworks*)        gdb_target=vx29k ;;
 
 alpha-*-osf*)          gdb_target=alpha-osf1 ;;
-alpha-*-netware*)      gdb_target=alpha-nw
-                       configdirs="${configdirs} nlm" ;;
+
+# start-sanitize-arc
+arc-*-*)               gdb_target=arc ;;
+# end-sanitize-arc
 
 arm-*-*)               gdb_target=arm ;;
 
@@ -197,7 +205,12 @@ h8500-*-*)         gdb_target=h8500hms ;;
 
 sh-*-*)                        gdb_target=sh ;;
 
+# start-sanitize-r16
+r16-*-*)               gdb_target=r16 ;;
+# end-sanitize-r16
+
 hppa*-*-bsd*)          gdb_target=hppabsd ;;
+hppa*-*-pro*)          gdb_target=hppapro ;;
 hppa*-*-hpux*)         gdb_target=hppahpux ;;
 hppa*-*-hiux*)         gdb_target=hppahpux ;;
 hppa*-*-osf*)          gdb_target=hppaosf ;;
@@ -211,6 +224,7 @@ i[345]86-*-coff*)   gdb_target=i386v ;;
 i[345]86-*-elf*)       gdb_target=i386v ;;
 i[345]86-*-aix*)       gdb_target=i386aix ;;
 i[345]86-*-bsd*)       gdb_target=i386bsd ;;
+i[345]86-*-freebsd*)   gdb_target=fbsd ;;
 i[345]86-*-netbsd*)    gdb_target=nbsd ;;
 i[345]86-*-os9k)       gdb_target=i386os9k ;;
 i[345]86-*-go32*)      gdb_target=i386aout ;;
@@ -255,6 +269,7 @@ m68*-tandem-*)              gdb_target=st2000 ;;
 m68*-rom68k-*)          gdb_target=monitor ;;
 m68*-*bug-*)            gdb_target=monitor ;;
 m68*-monitor-*)         gdb_target=monitor ;;
+m68*-est-*)            gdb_target=est ;;
 m68*-*-aout*)          gdb_target=monitor ;;
 m68*-*-coff*)          gdb_target=monitor ;;
 m68*-*-elf*)           gdb_target=monitor ;;
@@ -281,7 +296,7 @@ mips64*-idt-ecoff*) gdb_target=idt64 ;;
 mips64*el-*-elf*)      gdb_target=idtl64 ;;
 mips64*-*-elf*)                gdb_target=idt64 ;;
 mips*el-*-ecoff*)      gdb_target=idtl ;;
-mips*-idt-ecoff*)      gdb_target=idt ;;
+mips*-*-ecoff*)                gdb_target=idt ;;
 mips*el-*-elf*)                gdb_target=idtl ;;
 mips*-*-elf*)          gdb_target=idt ;;
 mips*-little-*)                gdb_target=littlemips ;;
@@ -298,6 +313,7 @@ none-*-*)           gdb_target=none ;;
 np1-*-*)               gdb_target=np1 ;;
 
 ns32k-*-mach3*)                gdb_target=mach3 ;;
+ns32k-*-netbsd*)       gdb_target=nbsd ;;
 ns32k-utek-sysv*)      gdb_target=merlin ;;
 ns32k-utek-*)          gdb_target=umax ;;
 
@@ -305,6 +321,9 @@ pn-*-*)                     gdb_target=pn ;;
 powerpc-*-netware*)    gdb_target=ppc-nw
                        configdirs="${configdirs} nlm" ;;
 
+powerpc-*-eabi*)       gdb_target=ppc-eabi
+                       configdirs="${configdirs}" ;;
+
 pyramid-*-*)           gdb_target=pyramid ;;
 
 rs6000-*-lynxos*)      gdb_target=rs6000lynx ;;
@@ -327,6 +346,8 @@ tahoe-*-*)          gdb_target=tahoe ;;
 
 vax-*-*)               gdb_target=vax ;;
 
+w65-*-*)               gdb_target=w65 ;;
+
 z8k-*-sim*)            gdb_target=z8ksim ;;
 z8k-*-coff*)           gdb_target=z8ksim ;;
 
@@ -361,7 +382,7 @@ host_makefile_frag=config/${gdb_host_cpu}/${gdb_host}.mh
 target_makefile_frag=config/${gdb_target_cpu}/${gdb_target}.mt
 
 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
-# (NAT_FILE) is not set in the ?config/* file, we don't make the
+# (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
 # corresponding links.  But we have to remove the xm.h files and tm.h
 # files anyway, e.g. when switching from "configure host" to
 # "configure none".
@@ -382,18 +403,19 @@ rm -f nm.h
 if [ "${nativefile}" != "" ]; then
        files="${files} config/${gdb_host_cpu}/${nativefile}"
        links="${links} nm.h"
-# temporary scaffolding until all hosts have the host/target/native
-# split in place.
 else
-       files="${files} config/nm-trash.h"
+       # A cross-only configuration.
+       files="${files} config/nm-empty.h"
        links="${links} nm.h"
 fi
 
+# start-sanitize-gdbtk
 # Make it possible to use the GUI without doing a full install
-if [ "${enable_gdbtk}" = "yes" ] ; then
+if [ "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ] ; then
        files="${files} gdbtk.tcl"
        links="${links} gdbtk.tcl"
 fi
+# end-sanitize-gdbtk
 
 # post-target:
 
@@ -411,14 +433,17 @@ if [ "${nativefile}" = "" ] ; then
        mv -f Makefile.tem Makefile
 fi
 
+# start-sanitize-gdbtk
 if [ "${enable_gdbtk}" = "yes" ] ; then
        sed -e '/# End of host and/i\
 \
+ENABLE_GDBTK = 1\
 ENABLE_DEPFILES = gdbtk.o\
-ENABLE_CLIBS = -ltcl -ltk -lX11 -lm
+ENABLE_CLIBS = $(TCL) $(TK) -lX11 -lm
 ' < Makefile > Makefile.tem
        mv -f Makefile.tem Makefile
 fi
+# end-sanitize-gdbtk
 
 sed -e '/^TM_FILE[     ]*=/s,^TM_FILE[         ]*=[    ]*,&config/'"${gdb_target_cpu}"'/,
 /^XM_FILE[     ]*=/s,^XM_FILE[         ]*=[    ]*,&config/'"${gdb_host_cpu}"'/,