# 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"
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 ;;
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 ;;
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 ;;
vax-*-ultrix2*) gdb_host=vaxult2 ;;
vax-*-ultrix*) gdb_host=vaxult ;;
+w65-*-*) gdb_host=w65 ;;
+
esac
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 ;;
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 ;;
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 ;;
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 ;;
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 ;;
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 ;;
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 ;;
vax-*-*) gdb_target=vax ;;
+w65-*-*) gdb_target=w65 ;;
+
z8k-*-sim*) gdb_target=z8ksim ;;
z8k-*-coff*) gdb_target=z8ksim ;;
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".
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:
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}"'/,