* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},

config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
  mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
  out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.

* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
This commit is contained in:
J.T. Conklin 1995-05-16 00:18:43 +00:00
parent c812c3087a
commit 5436fc6578
10 changed files with 2661 additions and 151 deletions

View File

@ -68,6 +68,7 @@ README
TODO
a29k-tdep.c
a68v-nat.c
aclocal.m4
alpha-nat.c
alpha-tdep.c
altos-xdep.c
@ -101,6 +102,7 @@ command.h
complaints.c
complaints.h
config
configure
configure.in
convex-tdep.c
convex-xdep.c

View File

@ -1,3 +1,15 @@
Mon May 15 17:11:38 1995 J.T. Conklin <jtc@rtl.cygnus.com>
* config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
Mon May 15 14:46:41 1995 Stan Shebs <shebs@andros.cygnus.com>
* remote.c (remote_kill): Add prototype.

View File

@ -17,10 +17,12 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
prefix = /usr/local
prefix = @prefix@
exec_prefix = @exec_prefix@
program_transform_name =
exec_prefix = $(prefix)
host_alias = @host_alias@
target_alias = @target_alias@
program_transform_name = @program_transform_name@
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
tooldir = $(libdir)/$(target_alias)
@ -42,13 +44,13 @@ docdir = $(datadir)/doc
SHELL = /bin/sh
INSTALL = `cd $(srcdir)/..;pwd`/install.sh -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
AR = ar
AR_FLAGS = qv
RANLIB = ranlib
RANLIB = @RANLIB@
# Flags that describe where you can find the termcap library.
# This can be overridden in the host Makefile fragment file.
@ -59,11 +61,11 @@ TERMCAP = -ltermcap
# -traditional flag. Otherwise the ioctl calls in inflow.c
# will be incorrectly compiled. The "fixincludes" script in the gcc
# distribution will fix your include files up.
#CC=gcc -traditional
CC=@CC@
# Directory containing source files. Don't clean up the spacing,
# this exact string is matched for by the "configure" script.
srcdir = .
# Directory containing source files.
srcdir = @srcdir@
VPATH = @srcdir@
# If you use bison instead of yacc, it needs to include the "-y" argument.
#BISON=bison -y
@ -121,30 +123,25 @@ OPCODES = ../opcodes/libopcodes.a
OP_INCLUDE = $(INCLUDE_DIR)/opcode
OPCODES_CFLAGS = -I$(OP_INCLUDE)
#start-sanitize-gdbtk
# Where is the TCL library? Typically in ../tcl.
TCL_DIR = ../tcl
TCL = -L$(TCL_DIR) -ltcl
TCL_SRC = $(srcdir)/$(TCL_DIR)
TCL_CFLAGS = -I$(TCL_SRC)
TCL = @TCLLIB@
TCL_CFLAGS = @TCLHDIR@
# Where is the TK library? Typically in ../tk.
TK_DIR = ../tk
TK = -L$(TK_DIR) -ltk
TK_SRC = $(srcdir)/$(TK_DIR)
TK_CFLAGS = -I$(TK_SRC)
TK = @TKLIB@
TK_CFLAGS = @TKHDIR@
# A "-I" switch that can be used when compiling to make all of the
# X11 include files accessible (the configure script will try to
# set this value, and will cause it to be an empty string if the
# include files are accessible via /usr/include).
X11_INCLUDES =
X11_CFLAGS = $(X11_INCLUDES)
X11 = @X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@
X11_CFLAGS = @X_CFLAGS@
ENABLE_GDBTK= @ENABLE_GDBTK@
#end-sanitize-gdbtk
ENABLE_CFLAGS= @ENABLE_CFLAGS@
ENABLE_CLIBS= @ENABLE_CLIBS@
ENABLE_OBS= @ENABLE_OBS@
# Linker switch(es) to use to link with the X11 library archive (the
# configure script will try to set this value automatically, but you
# can override it).
X11_LIB_SWITCHES =
X11_LIBS = -lX11
# All the includes used for CFLAGS and for lint.
# -I. for config files.
@ -154,7 +151,8 @@ X11_LIBS = -lX11
# It is also possible that you will need to add -I/usr/include/sys if
# your system doesn't have fcntl.h in /usr/include (which is where it
# should be according to Posix).
GDB_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/config
DEFS = @DEFS@
GDB_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/config $(DEFS)
# M{H,T}_CFLAGS, if defined, have host- and target-dependent CFLAGS
# from the config directory.
@ -229,12 +227,13 @@ SER_HARDWIRE=ser-unix.o
# The `remote' debugging target is supported for most architectures,
# but not all (e.g. 960)
REMOTE_O = remote.o dcache.o remote-utils.o
REMOTE_OBS = remote.o dcache.o remote-utils.o
ANNOTATE_OBS = annotate.o
# Host and target-dependent makefile fragments come in here.
####
@host_makefile_frag@
@target_makefile_frag@
# End of host and target-dependent makefile fragments
FLAGS_TO_PASS = \
@ -349,7 +348,7 @@ SFILES = blockframe.c breakpoint.c buildsym.c c-exp.y c-lang.c \
gdbtypes.c infcmd.c inflow.c infrun.c language.c \
m2-exp.y m2-lang.c m2-typeprint.c m2-valprint.c main.c maint.c \
mem-break.c minsyms.c mipsread.c nlmread.c objfiles.c parse.c \
printcmd.c remote.c source.c stabsread.c stack.c symfile.c symmisc.c \
printcmd.c remote.c remote-nrom.c source.c stabsread.c stack.c symfile.c symmisc.c \
symtab.c target.c thread.c top.c \
typeprint.c utils.c valarith.c valops.c \
valprint.c values.c serial.c ser-unix.c mdebugread.c os9kread.c
@ -445,8 +444,8 @@ TARDIRS = doc gdbserver sparclite
# variables analogous to SER_HARDWIRE which get defaulted in this
# Makefile.in
DEPFILES = $(TDEPFILES) $(XDEPFILES) $(SER_HARDWIRE) $(NATDEPFILES) $(REMOTE_O) \
$(ENABLE_DEPFILES)
DEPFILES = $(TDEPFILES) $(XDEPFILES) $(SER_HARDWIRE) $(NATDEPFILES) $(REMOTE_OBS) \
$(ENABLE_OBS)
SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES)
# Don't include YYFILES (*.tab.c) because we already include *.y in SFILES,
@ -551,6 +550,11 @@ uninstall: force
true ; \
fi ; \
rm -f $(bindir)/$$transformed_name $(man1dir)/$$transformed_name.1
# start-sanitize-gdbtk
if [ x"$(ENABLE_GDBTK)" != x ] ; then \
rm -f $(libdir)/gdbtk.tcl ; \
fi
# end-sanitize-gdbtk
@$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
# We do this by grepping through sources. If that turns out to be too slow,
@ -750,7 +754,7 @@ subdir_do: force
else true ; fi ; \
done
Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag)
Makefile: Makefile.in @host_makefile_frag_path@ @target_makefile_frag_path@
$(SHELL) config.status
force:
@ -1383,6 +1387,9 @@ remote-utils.o: remote-utils.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
remote.o: remote.c $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
$(inferior_h) $(remote_utils_h) symfile.h terminal.h
remote-nrom.o: remote-nrom.c $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
$(inferior_h) $(remote_utils_h) symfile.h terminal.h
rom68k-rom.o: rom68k-rom.c monitor.h $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
$(inferior_h) target.h serial.h terminal.h

147
gdb/aclocal.m4 vendored Normal file
View File

@ -0,0 +1,147 @@
AC_DEFUN(CYGNUS_PATH_TK, [
#
# Ok, lets find the tk source trees so we can use the headers
# If the directory (presumably symlink) named "tk" exists, use that one
# in preference to any others. Same logic is used when choosing library
# and again with Tcl.
#
AC_CHECKING(for Tk source directory)
TKHDIR=""
for i in `ls -d ${srcdir}/../tk* 2>/dev/null` ${srcdir}/../tk ; do
if test -f $i/tk.h ; then
TKHDIR="-I$i"
fi
done
# if we can't find it, see if one is installed
if test x"$TKHDIR" = x ; then
installed=0
if test -f $prefix/include/tk.h; then
installed=1 TKHDIR="-I$prefix/include"
else
AC_HEADER_CHECK(tk.h, installed=1)
fi
if test $installed -eq 0 ; then
TKHDIR="# no Tk directory found"
AC_MSG_WARN(Can't find Tk directory)
fi
fi
if test x"$TKHDIR" != x ; then
AC_MSG_RESULT(Setting TKHDIR to be $i)
fi
#
# Ok, lets find the tk library
# First, look for one uninstalled.
#
TKLIB=""
AC_CHECKING(for Tk library)
for i in `ls -d ../tk* 2>/dev/null` ../tk ; do
if test -f "$i/Makefile" ; then
TKLIB=$i/libtk.a
fi
done
# If not found, look for installed version
if test x"$TKLIB" = x ; then
dnl This doesn't work because of unresolved symbols.
dnl AC_HAVE_LIBRARY(libtk.a, installed=1, installed=0)
if test -f $prefix/lib/libtk.a; then
installed=1
else
installed=0
fi
if test $installed -eq 1 ; then
TKLIB="-ltk"
fi
fi
# If still not found, assume Tk simply hasn't been built yet
if test x"$TKLIB" = x ; then
for i in `ls -d ../tk* 2>/dev/null` ../tk ; do
if test -f "$i/tk.h" ; then
TKLIB=$i/libtk.a
fi
done
fi
if test x"$TKLIB" = x ; then
TKLIB="# no Tk library found"
AC_MSG_WARN(Can't find Tk library)
else
AC_MSG_RESULT(setting TKLIB to be $TKLIB)
no_tk=
fi
AC_SUBST(TKHDIR)
AC_SUBST(TKLIB)
])
AC_DEFUN(CYGNUS_PATH_TCL, [
#
# Ok, lets find the tcl source trees so we can use the headers
#
# Warning: transition of version 9 to 10 will break this algorithm
# because 10 sorts before 9.
#
AC_CHECKING(for Tcl source directory)
TCLHDIR=""
for i in `ls -d ${srcdir}/../tcl* 2>/dev/null` ${srcdir}/../tcl ; do
if test -f $i/tclInt.h ; then
TCLHDIR="-I$i"
fi
done
# if we can't find it, see if one is installed
if test x"$TCLHDIR" = x ; then
installed=0
if test -f $prefix/include/tclInt.h; then
installed=1 TCLHDIR="-I$prefix/include"
else
AC_HEADER_CHECK(tclInt.h, installed=1)
fi
if test $installed -eq 0 ; then
TCLHDIR="# no Tcl directory found"
AC_MSG_WARN(Can't find Tcl directory)
fi
else
AC_MSG_RESULT(setting TCLHDIR to be $i)
fi
#
# Ok, lets find the tcl library
# First, look for the latest uninstalled
#
TCLLIB=""
AC_CHECKING(for Tcl library)
for i in `ls -d ../tcl* 2>/dev/null` ../tcl ; do
if test -f "$i/Makefile" ; then
TCLLIB=$i/libtcl.a
fi
done
# If not found, look for installed version
if test x"$TCLLIB" = x ; then
dnl Don't use this, since we can't use it for libtk.a.
dnl AC_HAVE_LIBRARY(libtcl.a, installed=1, installed=0)
if test -f $prefix/lib/libtcl.a; then installed=1; else installed=0; fi
if test $installed -eq 1 ; then
TCLLIB="-ltcl"
fi
fi
# If still not found, assume Tcl simply hasn't been built yet
if test x"$TCLLIB" = x ; then
for i in `ls -d ../tcl* 2>/dev/null` ../tcl ; do
if test -f "$i/tcl.h" ; then
TCLLIB=$i/libtcl.a
fi
done
fi
if test x"$TCLLIB" = x ; then
TCLLIB="# no Tcl library found"
AC_MSG_WARN(Can't find Tcl library)
else
AC_MSG_RESULT(setting TCLLIB to be $TCLLIB)
fi
AC_SUBST(TCLHDIR)
AC_SUBST(TCLLIB)
])

View File

@ -10,6 +10,3 @@ NATDEPFILES= corelow.o core-svr4.o solib.o procfs.o fork-child.o
# old termcap descriptions are incomplete. So ensure that we use the
# new terminfo interface and latest terminal descriptions.
TERMCAP=-ltermlib
# SVR4 puts the BSD compatible install in /usr/ucb.
INSTALL = /usr/ucb/install -c

View File

@ -5,6 +5,5 @@ NAT_FILE= nm-irix4.h
NATDEPFILES= fork-child.o procfs.o irix4-nat.o corelow.o
MUNCH_DEFINE=-B
XM_CLIBS=-lbsd -lsun
INSTALL = cp
# use cc in K&R mode, bump up some static compiler tables.
CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh1100

View File

@ -2,4 +2,3 @@
XM_FILE= xm-mipsv4.h
NAT_FILE= nm-sysv4.h
NATDEPFILES= fork-child.o procfs.o mipsv4-nat.o corelow.o core-svr4.o solib.o
INSTALL = cp

View File

@ -12,10 +12,6 @@ NATDEPFILES= corelow.o core-sol2.o solib.o procfs.o fork-child.o
# new terminfo interface and latest terminal descriptions.
TERMCAP=-ltermlib
# Solaris-2 makes `install' optional in the Berkeley compatability pkg.
# cp will do fine.
INSTALL = cp
# If you are compiling with Sun's compiler, add the -xs option to CC
# (e.g. `make CC="cc -xs"').
# Sun's compilers require the -xs option to produce debug information

2318
gdb/configure vendored Executable file

File diff suppressed because it is too large Load Diff

View File

@ -1,14 +1,72 @@
# This file is a shell script fragment that supplies the information
# necessary to tailor a template configure script into the configure
# script approriate for this directory. For more information, check
# any existing configure script.
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.3)dnl
AC_INIT(main.c)
CC=${CC-cc}
AC_PROG_CC
AC_AIX
AC_MINIX
AC_ISC_POSIX
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)
AC_CANONICAL_SYSTEM
AC_ARG_PROGRAM
dnl Handle optional features that can be enabled.
ENABLE_CFLAGS=
ENABLE_CLIBS=
ENABLE_OBS=
AC_ARG_ENABLE(netrom,
[ --enable-netrom ],
[case "${enableval}" in
yes) enable_netrom=yes ;;
no) enable_netrom=no ;;
*) AC_MSG_ERROR(bad value ${enableval} given for netrom option) ;;
esac])
if test "${enable_netrom}" = "yes"; then
ENABLE_OBS="${ENABLE_OBS} remote-nrom.o"
fi
# start-sanitize-gdbtk
ENABLE_GDBTK=
AC_ARG_ENABLE(gdbtk,
[ --enable-gdbtk ],
[case "${enableval}" in
yes) enable_gdbtk=yes ;;
no) enable_gdbtk=no ;;
*) AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
esac])
if test "${enable_gdbtk}" = "yes"; then
AC_PATH_X
AC_PATH_XTRA
CYGNUS_PATH_TK
CYGNUS_PATH_TCL
ENABLE_GDBTK=1
ENABLE_CLIBS="${ENABLE_CLIBS} $(TCL) $(TK) $(X11) -lm"
ENABLE_OBS="${ENABLE_OBS} gdbtk.o"
fi
AC_SUBST(ENABLE_GDBTK)
# end-sanitize-gdbtk
AC_SUBST(ENABLE_CFLAGS)
AC_SUBST(ENABLE_CLIBS)
AC_SUBST(ENABLE_OBS)
srcname="GDB"
srctrigger=main.c
configdirs="doc testsuite"
# per-host:
dnl
changequote(,)dnl
# Map host cpu into the config cpu subdirectory name.
# The default is $host_cpu.
@ -145,16 +203,6 @@ w65-*-*) gdb_host=w65 ;;
esac
if [ ! -f ${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh ]; then
echo '***' "Gdb does not support host ${host}" 1>&2
exit 1
fi
# We really shouldn't depend on there being a space after XM_FILE= ...
hostfile=`awk '$1 == "XM_FILE=" { print $2 }' <${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh`
# per-target:
# Map target cpu into the config cpu subdirectory name.
# The default is $target_cpu.
@ -172,7 +220,7 @@ powerpc*) gdb_target_cpu=powerpc ;;
pn) gdb_target_cpu=gould ;;
pyramid) gdb_target_cpu=pyr ;;
sparclite*) gdb_target_cpu=sparc
configdirs="${configdirs} sparclite" ;;
configdirs="${configdirs} sparclite" ;;
sparc*) gdb_target_cpu=sparc ;;
*) gdb_target_cpu=$target_cpu ;;
@ -232,7 +280,7 @@ i[345]86-*-netbsd*) gdb_target=nbsd ;;
i[345]86-*-os9k) gdb_target=i386os9k ;;
i[345]86-*-go32*) gdb_target=i386aout ;;
i[345]86-*-lynxos*) gdb_target=i386lynx
configdirs="${configdirs} gdbserver" ;;
configdirs="${configdirs} gdbserver" ;;
i[345]86-*-solaris*) gdb_target=i386sol2 ;;
i[345]86-*-sunos*) gdb_target=sun386 ;;
i[345]86-*-sysv4*) gdb_target=i386v4 ;;
@ -243,7 +291,7 @@ i[345]86-*-isc*) gdb_target=i386v ;;
i[345]86-*-mach3*) gdb_target=i386m3 ;;
i[345]86-*-mach*) gdb_target=i386mach ;;
i[345]86-*-netware*) gdb_target=i386nw
configdirs="${configdirs} nlm" ;;
configdirs="${configdirs} nlm" ;;
i[345]86-*-osf1mk*) gdb_target=i386mk ;;
i960-*-bout*) gdb_target=vxworks960 ;;
@ -277,7 +325,7 @@ m68*-*-aout*) gdb_target=monitor ;;
m68*-*-coff*) gdb_target=monitor ;;
m68*-*-elf*) gdb_target=monitor ;;
m68*-*-lynxos*) gdb_target=m68klynx
configdirs="${configdirs} gdbserver" ;;
configdirs="${configdirs} gdbserver" ;;
m68*-*-os68k*) gdb_target=os68k ;;
m68*-*-sunos3*) gdb_target=sun3os3 ;;
m68*-*-sunos4*) gdb_target=sun3os4 ;;
@ -339,7 +387,7 @@ sparc-*-aout*) gdb_target=sparc-em ;;
sparc-*-coff*) gdb_target=sparc-em ;;
sparc-*-elf*) gdb_target=sparc-em ;;
sparc-*-lynxos*) gdb_target=sparclynx
configdirs="${configdirs} gdbserver" ;;
configdirs="${configdirs} gdbserver" ;;
sparc-*-netbsd*) gdb_target=nbsd ;;
sparc-*-solaris2*) gdb_target=sun4sol2 ;;
sparc-*-sunos4*) gdb_target=sun4os4 ;;
@ -360,33 +408,48 @@ z8k-*-coff*) gdb_target=z8ksim ;;
esac
if [ ! -f ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt ]; then
echo '***' "Gdb does not support target ${target}" 1>&2
exit 1
dnl
changequote([,])dnl
host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
if test ! -f ${host_makefile_frag}; then
AC_MSG_ERROR("*** Gdb does not support host ${host}")
fi
if [ -z "${removing}" ] ; then
cat ${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | awk '$1 == "#msg" {
print substr($0,6)}'
target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
if test ! -f ${target_makefile_frag}; then
AC_MSG_ERROR("*** Gdb does not support target ${target}")
fi
dnl We have to assign the same value to other variables because autoconf
dnl doesn't provide a mechanism to substitute a replacement keyword with
dnl arbitrary data or pathnames.
dnl
host_makefile_frag_path=$host_makefile_frag
target_makefile_frag_path=$target_makefile_frag
AC_SUBST(host_makefile_frag_path)
AC_SUBST(target_makefile_frag_path)
AC_SUBST_FILE(host_makefile_frag)
AC_SUBST_FILE(target_makefile_frag)
# We really shouldn't depend on there being a space after XM_FILE= ...
hostfile=`awk '$1 == "XM_FILE=" { print $2 }' ${host_makefile_frag}`
# We really shouldn't depend on there being a space after TM_FILE= ...
targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt`
targetfile=`awk '$1 == "TM_FILE=" { print $2 }' ${target_makefile_frag}`
# these really aren't orthogonal true/false values of the same condition,
# but shells are slow enough that I like to reuse the test conditions
# whenever possible
#
if [ "${target}" = "${host}" ] ; then
nativefile=`awk '$1 == "NAT_FILE=" { print $2 }' <${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh`
if test "${target}" = "${host}"; then
nativefile=`awk '$1 == "NAT_FILE=" { print $2 }' ${host_makefile_frag}`
else
# GDBserver is only useful in a "native" enviroment
configdirs=`echo $configdirs | sed 's/gdbserver//'`
# GDBserver is only useful in a "native" enviroment
configdirs=`echo $configdirs | sed 's/gdbserver//'`
fi
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 config/*/*.m[ht] files, we don't make the
@ -397,89 +460,59 @@ target_makefile_frag=config/${gdb_target_cpu}/${gdb_target}.mt
files=
links=
rm -f xm.h
if [ "${hostfile}" != "" ]; then
files="${files} config/${gdb_host_cpu}/${hostfile}"
links="${links} xm.h"
if test "${hostfile}" != ""; then
files="${files} config/${gdb_host_cpu}/${hostfile}"
links="${links} xm.h"
fi
rm -f tm.h
if [ "${targetfile}" != "" ]; then
files="${files} config/${gdb_target_cpu}/${targetfile}"
links="${links} tm.h"
if test "${targetfile}" != ""; then
files="${files} config/${gdb_target_cpu}/${targetfile}"
links="${links} tm.h"
fi
rm -f nm.h
if [ "${nativefile}" != "" ]; then
files="${files} config/${gdb_host_cpu}/${nativefile}"
links="${links} nm.h"
if test "${nativefile}" != ""; then
files="${files} config/${gdb_host_cpu}/${nativefile}"
links="${links} nm.h"
else
# A cross-only configuration.
files="${files} config/nm-empty.h"
links="${links} nm.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" -a ! -f gdbtk.tcl ] ; then
files="${files} gdbtk.tcl"
links="${links} gdbtk.tcl"
if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ; then
files="${files} gdbtk.tcl"
links="${links} gdbtk.tcl"
fi
# end-sanitize-gdbtk
# post-target:
AC_LINK_FILES($files, $links)
case ${srcdir} in
.)
;;
*)
grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
echo "source ${srcdir}/.gdbinit" >> .gdbinit
esac
if [ "${nativefile}" = "" ] ; then
sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
< Makefile > Makefile.tem
mv -f Makefile.tem Makefile
fi
# start-sanitize-gdbtk
if [ "${enable_gdbtk}" = "yes" ] ; then
if [ x"${other_options}" != x"" ]; then
for opt in $other_options; do
case "$opt" in
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
X11_INCLUDES=`echo "$opt" | sed 's/[-_a-zA-Z0-9]*=//'`
sed -e "s;^\\(X11_INCLUDES[ ]*=\\).*\$;\\1 -I${X11_INCLUDES};" \
< Makefile > Makefile.tem
mv -f Makefile.tem Makefile;;
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
X11_LIB_SWITCHES=`echo "$opt" | sed 's/[-_a-zA-Z0-9]*=//'`
sed -e "s;^\\(X11_LIB_SWITCHES[ ]*=\\).*\$;\\1 -L${X11_LIB_SWITCHES};" \
< Makefile > Makefile.tem
mv -f Makefile.tem Makefile;;
esac
done
fi
sed -e '/# End of host and/i\
\
ENABLE_GDBTK = 1\
ENABLE_DEPFILES = gdbtk.o\
ENABLE_CLIBS = $(TCL) $(TK) $(X11_LIB_SWITCHES) $(X11_LIBS) -lm
' < Makefile > Makefile.tem
mv -f Makefile.tem Makefile
fi
# end-sanitize-gdbtk
if [ "${enable_netrom}" = "yes" ] ; then
sed -e '/# End of host and/i\
\
NETROM_OBS = remote-nrom.o\
' < Makefile > Makefile.tem
mv -f Makefile.tem Makefile
AC_CONFIG_SUBDIRS($configdirs)
AC_OUTPUT(Makefile,
[
dnl Autoconf doesn't provide a mechanism for modifying definitions
dnl provided by makefile fragments.
dnl
if test "${nativefile}" = ""; then
sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
< Makefile > Makefile.tem
mv -f Makefile.tem Makefile
fi
changequote(,)dnl
sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
mv -f Makefile.tmp Makefile
changequote([,])dnl
case ${srcdir} in
.)
;;
*)
grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
echo "source ${srcdir}/.gdbinit" >> .gdbinit
esac
])