* 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:
parent
c812c3087a
commit
5436fc6578
|
@ -68,6 +68,7 @@ README
|
||||||
TODO
|
TODO
|
||||||
a29k-tdep.c
|
a29k-tdep.c
|
||||||
a68v-nat.c
|
a68v-nat.c
|
||||||
|
aclocal.m4
|
||||||
alpha-nat.c
|
alpha-nat.c
|
||||||
alpha-tdep.c
|
alpha-tdep.c
|
||||||
altos-xdep.c
|
altos-xdep.c
|
||||||
|
@ -101,6 +102,7 @@ command.h
|
||||||
complaints.c
|
complaints.c
|
||||||
complaints.h
|
complaints.h
|
||||||
config
|
config
|
||||||
|
configure
|
||||||
configure.in
|
configure.in
|
||||||
convex-tdep.c
|
convex-tdep.c
|
||||||
convex-xdep.c
|
convex-xdep.c
|
||||||
|
|
|
@ -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>
|
Mon May 15 14:46:41 1995 Stan Shebs <shebs@andros.cygnus.com>
|
||||||
|
|
||||||
* remote.c (remote_kill): Add prototype.
|
* remote.c (remote_kill): Add prototype.
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
prefix = /usr/local
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
program_transform_name =
|
host_alias = @host_alias@
|
||||||
exec_prefix = $(prefix)
|
target_alias = @target_alias@
|
||||||
|
program_transform_name = @program_transform_name@
|
||||||
bindir = $(exec_prefix)/bin
|
bindir = $(exec_prefix)/bin
|
||||||
libdir = $(exec_prefix)/lib
|
libdir = $(exec_prefix)/lib
|
||||||
tooldir = $(libdir)/$(target_alias)
|
tooldir = $(libdir)/$(target_alias)
|
||||||
|
@ -42,13 +44,13 @@ docdir = $(datadir)/doc
|
||||||
|
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
||||||
INSTALL = `cd $(srcdir)/..;pwd`/install.sh -c
|
INSTALL = @INSTALL@
|
||||||
INSTALL_PROGRAM = $(INSTALL)
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
INSTALL_DATA = $(INSTALL)
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
|
||||||
AR = ar
|
AR = ar
|
||||||
AR_FLAGS = qv
|
AR_FLAGS = qv
|
||||||
RANLIB = ranlib
|
RANLIB = @RANLIB@
|
||||||
|
|
||||||
# Flags that describe where you can find the termcap library.
|
# Flags that describe where you can find the termcap library.
|
||||||
# This can be overridden in the host Makefile fragment file.
|
# 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
|
# -traditional flag. Otherwise the ioctl calls in inflow.c
|
||||||
# will be incorrectly compiled. The "fixincludes" script in the gcc
|
# will be incorrectly compiled. The "fixincludes" script in the gcc
|
||||||
# distribution will fix your include files up.
|
# distribution will fix your include files up.
|
||||||
#CC=gcc -traditional
|
CC=@CC@
|
||||||
|
|
||||||
# Directory containing source files. Don't clean up the spacing,
|
# Directory containing source files.
|
||||||
# this exact string is matched for by the "configure" script.
|
srcdir = @srcdir@
|
||||||
srcdir = .
|
VPATH = @srcdir@
|
||||||
|
|
||||||
# If you use bison instead of yacc, it needs to include the "-y" argument.
|
# If you use bison instead of yacc, it needs to include the "-y" argument.
|
||||||
#BISON=bison -y
|
#BISON=bison -y
|
||||||
|
@ -121,30 +123,25 @@ OPCODES = ../opcodes/libopcodes.a
|
||||||
OP_INCLUDE = $(INCLUDE_DIR)/opcode
|
OP_INCLUDE = $(INCLUDE_DIR)/opcode
|
||||||
OPCODES_CFLAGS = -I$(OP_INCLUDE)
|
OPCODES_CFLAGS = -I$(OP_INCLUDE)
|
||||||
|
|
||||||
|
#start-sanitize-gdbtk
|
||||||
# Where is the TCL library? Typically in ../tcl.
|
# Where is the TCL library? Typically in ../tcl.
|
||||||
TCL_DIR = ../tcl
|
TCL = @TCLLIB@
|
||||||
TCL = -L$(TCL_DIR) -ltcl
|
TCL_CFLAGS = @TCLHDIR@
|
||||||
TCL_SRC = $(srcdir)/$(TCL_DIR)
|
|
||||||
TCL_CFLAGS = -I$(TCL_SRC)
|
|
||||||
|
|
||||||
# Where is the TK library? Typically in ../tk.
|
# Where is the TK library? Typically in ../tk.
|
||||||
TK_DIR = ../tk
|
TK = @TKLIB@
|
||||||
TK = -L$(TK_DIR) -ltk
|
TK_CFLAGS = @TKHDIR@
|
||||||
TK_SRC = $(srcdir)/$(TK_DIR)
|
|
||||||
TK_CFLAGS = -I$(TK_SRC)
|
|
||||||
|
|
||||||
# A "-I" switch that can be used when compiling to make all of the
|
X11 = @X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@
|
||||||
# X11 include files accessible (the configure script will try to
|
X11_CFLAGS = @X_CFLAGS@
|
||||||
# set this value, and will cause it to be an empty string if the
|
|
||||||
# include files are accessible via /usr/include).
|
ENABLE_GDBTK= @ENABLE_GDBTK@
|
||||||
X11_INCLUDES =
|
#end-sanitize-gdbtk
|
||||||
X11_CFLAGS = $(X11_INCLUDES)
|
|
||||||
|
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.
|
# All the includes used for CFLAGS and for lint.
|
||||||
# -I. for config files.
|
# -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
|
# 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
|
# your system doesn't have fcntl.h in /usr/include (which is where it
|
||||||
# should be according to Posix).
|
# 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
|
# M{H,T}_CFLAGS, if defined, have host- and target-dependent CFLAGS
|
||||||
# from the config directory.
|
# from the config directory.
|
||||||
|
@ -229,12 +227,13 @@ SER_HARDWIRE=ser-unix.o
|
||||||
|
|
||||||
# The `remote' debugging target is supported for most architectures,
|
# The `remote' debugging target is supported for most architectures,
|
||||||
# but not all (e.g. 960)
|
# 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
|
ANNOTATE_OBS = annotate.o
|
||||||
|
|
||||||
# Host and target-dependent makefile fragments come in here.
|
# Host and target-dependent makefile fragments come in here.
|
||||||
####
|
@host_makefile_frag@
|
||||||
|
@target_makefile_frag@
|
||||||
# End of host and target-dependent makefile fragments
|
# End of host and target-dependent makefile fragments
|
||||||
|
|
||||||
FLAGS_TO_PASS = \
|
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 \
|
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 \
|
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 \
|
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 \
|
symtab.c target.c thread.c top.c \
|
||||||
typeprint.c utils.c valarith.c valops.c \
|
typeprint.c utils.c valarith.c valops.c \
|
||||||
valprint.c values.c serial.c ser-unix.c mdebugread.c os9kread.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
|
# variables analogous to SER_HARDWIRE which get defaulted in this
|
||||||
# Makefile.in
|
# Makefile.in
|
||||||
|
|
||||||
DEPFILES = $(TDEPFILES) $(XDEPFILES) $(SER_HARDWIRE) $(NATDEPFILES) $(REMOTE_O) \
|
DEPFILES = $(TDEPFILES) $(XDEPFILES) $(SER_HARDWIRE) $(NATDEPFILES) $(REMOTE_OBS) \
|
||||||
$(ENABLE_DEPFILES)
|
$(ENABLE_OBS)
|
||||||
|
|
||||||
SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES)
|
SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES)
|
||||||
# Don't include YYFILES (*.tab.c) because we already include *.y in SFILES,
|
# Don't include YYFILES (*.tab.c) because we already include *.y in SFILES,
|
||||||
|
@ -551,6 +550,11 @@ uninstall: force
|
||||||
true ; \
|
true ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
rm -f $(bindir)/$$transformed_name $(man1dir)/$$transformed_name.1
|
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
|
@$(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,
|
# 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 ; \
|
else true ; fi ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag)
|
Makefile: Makefile.in @host_makefile_frag_path@ @target_makefile_frag_path@
|
||||||
$(SHELL) config.status
|
$(SHELL) config.status
|
||||||
|
|
||||||
force:
|
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) \
|
remote.o: remote.c $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
|
||||||
$(inferior_h) $(remote_utils_h) symfile.h terminal.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) \
|
rom68k-rom.o: rom68k-rom.c monitor.h $(bfd_h) $(wait_h) $(defs_h) $(gdbcmd_h) \
|
||||||
$(inferior_h) target.h serial.h terminal.h
|
$(inferior_h) target.h serial.h terminal.h
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
])
|
|
@ -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
|
# old termcap descriptions are incomplete. So ensure that we use the
|
||||||
# new terminfo interface and latest terminal descriptions.
|
# new terminfo interface and latest terminal descriptions.
|
||||||
TERMCAP=-ltermlib
|
TERMCAP=-ltermlib
|
||||||
|
|
||||||
# SVR4 puts the BSD compatible install in /usr/ucb.
|
|
||||||
INSTALL = /usr/ucb/install -c
|
|
||||||
|
|
|
@ -5,6 +5,5 @@ NAT_FILE= nm-irix4.h
|
||||||
NATDEPFILES= fork-child.o procfs.o irix4-nat.o corelow.o
|
NATDEPFILES= fork-child.o procfs.o irix4-nat.o corelow.o
|
||||||
MUNCH_DEFINE=-B
|
MUNCH_DEFINE=-B
|
||||||
XM_CLIBS=-lbsd -lsun
|
XM_CLIBS=-lbsd -lsun
|
||||||
INSTALL = cp
|
|
||||||
# use cc in K&R mode, bump up some static compiler tables.
|
# use cc in K&R mode, bump up some static compiler tables.
|
||||||
CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh1100
|
CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh1100
|
||||||
|
|
|
@ -2,4 +2,3 @@
|
||||||
XM_FILE= xm-mipsv4.h
|
XM_FILE= xm-mipsv4.h
|
||||||
NAT_FILE= nm-sysv4.h
|
NAT_FILE= nm-sysv4.h
|
||||||
NATDEPFILES= fork-child.o procfs.o mipsv4-nat.o corelow.o core-svr4.o solib.o
|
NATDEPFILES= fork-child.o procfs.o mipsv4-nat.o corelow.o core-svr4.o solib.o
|
||||||
INSTALL = cp
|
|
||||||
|
|
|
@ -12,10 +12,6 @@ NATDEPFILES= corelow.o core-sol2.o solib.o procfs.o fork-child.o
|
||||||
# new terminfo interface and latest terminal descriptions.
|
# new terminfo interface and latest terminal descriptions.
|
||||||
TERMCAP=-ltermlib
|
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
|
# If you are compiling with Sun's compiler, add the -xs option to CC
|
||||||
# (e.g. `make CC="cc -xs"').
|
# (e.g. `make CC="cc -xs"').
|
||||||
# Sun's compilers require the -xs option to produce debug information
|
# Sun's compilers require the -xs option to produce debug information
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
231
gdb/configure.in
231
gdb/configure.in
|
@ -1,14 +1,72 @@
|
||||||
# This file is a shell script fragment that supplies the information
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
# necessary to tailor a template configure script into the configure
|
AC_PREREQ(2.3)dnl
|
||||||
# script approriate for this directory. For more information, check
|
AC_INIT(main.c)
|
||||||
# any existing configure script.
|
|
||||||
|
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"
|
configdirs="doc testsuite"
|
||||||
|
|
||||||
# per-host:
|
dnl
|
||||||
|
changequote(,)dnl
|
||||||
|
|
||||||
# Map host cpu into the config cpu subdirectory name.
|
# Map host cpu into the config cpu subdirectory name.
|
||||||
# The default is $host_cpu.
|
# The default is $host_cpu.
|
||||||
|
@ -145,16 +203,6 @@ w65-*-*) gdb_host=w65 ;;
|
||||||
esac
|
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.
|
# Map target cpu into the config cpu subdirectory name.
|
||||||
# The default is $target_cpu.
|
# The default is $target_cpu.
|
||||||
|
|
||||||
|
@ -360,33 +408,48 @@ z8k-*-coff*) gdb_target=z8ksim ;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ ! -f ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt ]; then
|
dnl
|
||||||
echo '***' "Gdb does not support target ${target}" 1>&2
|
changequote([,])dnl
|
||||||
exit 1
|
|
||||||
|
|
||||||
|
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
|
fi
|
||||||
|
|
||||||
if [ -z "${removing}" ] ; then
|
target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
|
||||||
cat ${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh ${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | awk '$1 == "#msg" {
|
if test ! -f ${target_makefile_frag}; then
|
||||||
print substr($0,6)}'
|
AC_MSG_ERROR("*** Gdb does not support target ${target}")
|
||||||
fi
|
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= ...
|
# 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,
|
# 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
|
# but shells are slow enough that I like to reuse the test conditions
|
||||||
# whenever possible
|
# whenever possible
|
||||||
#
|
if test "${target}" = "${host}"; then
|
||||||
if [ "${target}" = "${host}" ] ; then
|
nativefile=`awk '$1 == "NAT_FILE=" { print $2 }' ${host_makefile_frag}`
|
||||||
nativefile=`awk '$1 == "NAT_FILE=" { print $2 }' <${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh`
|
|
||||||
else
|
else
|
||||||
# GDBserver is only useful in a "native" enviroment
|
# GDBserver is only useful in a "native" enviroment
|
||||||
configdirs=`echo $configdirs | sed 's/gdbserver//'`
|
configdirs=`echo $configdirs | sed 's/gdbserver//'`
|
||||||
fi
|
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
|
# 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
|
# (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=
|
files=
|
||||||
links=
|
links=
|
||||||
rm -f xm.h
|
rm -f xm.h
|
||||||
if [ "${hostfile}" != "" ]; then
|
if test "${hostfile}" != ""; then
|
||||||
files="${files} config/${gdb_host_cpu}/${hostfile}"
|
files="${files} config/${gdb_host_cpu}/${hostfile}"
|
||||||
links="${links} xm.h"
|
links="${links} xm.h"
|
||||||
fi
|
fi
|
||||||
rm -f tm.h
|
rm -f tm.h
|
||||||
if [ "${targetfile}" != "" ]; then
|
if test "${targetfile}" != ""; then
|
||||||
files="${files} config/${gdb_target_cpu}/${targetfile}"
|
files="${files} config/${gdb_target_cpu}/${targetfile}"
|
||||||
links="${links} tm.h"
|
links="${links} tm.h"
|
||||||
fi
|
fi
|
||||||
rm -f nm.h
|
rm -f nm.h
|
||||||
if [ "${nativefile}" != "" ]; then
|
if test "${nativefile}" != ""; then
|
||||||
files="${files} config/${gdb_host_cpu}/${nativefile}"
|
files="${files} config/${gdb_host_cpu}/${nativefile}"
|
||||||
links="${links} nm.h"
|
links="${links} nm.h"
|
||||||
else
|
else
|
||||||
# A cross-only configuration.
|
# A cross-only configuration.
|
||||||
files="${files} config/nm-empty.h"
|
files="${files} config/nm-empty.h"
|
||||||
links="${links} nm.h"
|
links="${links} nm.h"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# start-sanitize-gdbtk
|
# start-sanitize-gdbtk
|
||||||
|
|
||||||
# Make it possible to use the GUI without doing a full install
|
# Make it possible to use the GUI without doing a full install
|
||||||
if [ "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ] ; then
|
if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ; then
|
||||||
files="${files} gdbtk.tcl"
|
files="${files} gdbtk.tcl"
|
||||||
links="${links} gdbtk.tcl"
|
links="${links} gdbtk.tcl"
|
||||||
fi
|
fi
|
||||||
# end-sanitize-gdbtk
|
# end-sanitize-gdbtk
|
||||||
|
|
||||||
# post-target:
|
AC_LINK_FILES($files, $links)
|
||||||
|
|
||||||
case ${srcdir} in
|
AC_CONFIG_SUBDIRS($configdirs)
|
||||||
.)
|
AC_OUTPUT(Makefile,
|
||||||
;;
|
[
|
||||||
*)
|
dnl Autoconf doesn't provide a mechanism for modifying definitions
|
||||||
grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
|
dnl provided by makefile fragments.
|
||||||
echo "source ${srcdir}/.gdbinit" >> .gdbinit
|
dnl
|
||||||
esac
|
if test "${nativefile}" = ""; then
|
||||||
|
sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
|
||||||
if [ "${nativefile}" = "" ] ; then
|
|
||||||
sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
|
|
||||||
< Makefile > Makefile.tem
|
< Makefile > Makefile.tem
|
||||||
mv -f Makefile.tem Makefile
|
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
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
changequote(,)dnl
|
||||||
sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
|
sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
|
||||||
/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
|
/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
|
||||||
/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
|
/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
|
||||||
mv -f Makefile.tmp Makefile
|
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
|
||||||
|
])
|
||||||
|
|
Loading…
Reference in New Issue