gdb/
authorDaniel Jacobowitz <drow@false.org>
Tue, 8 Aug 2006 20:26:23 +0000 (20:26 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 8 Aug 2006 20:26:23 +0000 (20:26 +0000)
* configure.ac: Check for expat.
* acinclude.m4: Include AC_LIB_HAVE_LINKFLAGS dependencies.
* Makefile.in (LIBEXPAT): New.
(CLIBS): Include $(LIBEXPAT).
* README: Mention expat.
* configure, config.in: Regenerated.
gdb/doc/
* gdb.texinfo (Installing GDB): Update menu.  Move text to...
(Running Configure): ...here.
(Requirements): New node.  Mention expat.

gdb/ChangeLog
gdb/Makefile.in
gdb/README
gdb/acinclude.m4
gdb/configure.ac
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo

index 80297e0e6510e9ba5591396c8251292ece159f21..74c8f36e99fc67cfb2dd192d082317ac828125a9 100644 (file)
@@ -1,3 +1,12 @@
+2006-08-08  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * configure.ac: Check for expat.
+       * acinclude.m4: Include AC_LIB_HAVE_LINKFLAGS dependencies.
+       * Makefile.in (LIBEXPAT): New.
+       (CLIBS): Include $(LIBEXPAT).
+       * README: Mention expat.
+       * configure, config.in: Regenerated.
+
 2006-08-08  Joel Sherrill <joel.sherrill@oarcorp.com>
 
        * config/sparc/embed.mt: New file.
index 25713ef9b3ff16fbfa690f067d92b8dac020aad7..21a6abcaca0796442e9673e6e4257e7bb173b7b5 100644 (file)
@@ -128,6 +128,9 @@ READLINE = $(READLINE_DIR)/libreadline.a
 READLINE_SRC = $(srcdir)/$(READLINE_DIR)
 READLINE_CFLAGS = -I$(READLINE_SRC)/..
 
+# Where is expat?  This will be empty if expat was not available.
+LIBEXPAT = @LIBEXPAT@
+
 WARN_CFLAGS = @WARN_CFLAGS@
 WERROR_CFLAGS = @WERROR_CFLAGS@
 GDB_WARN_CFLAGS = $(WARN_CFLAGS)
@@ -376,7 +379,7 @@ INSTALLED_LIBS=-lbfd -lreadline -lopcodes -liberty \
        -lintl -liberty
 CLIBS = $(SIM) $(READLINE) $(OPCODES) $(BFD) $(INTL) $(LIBIBERTY) \
        $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ \
-       $(LIBICONV) \
+       $(LIBICONV) $(LIBEXPAT) \
        $(LIBIBERTY) $(WIN32LIBS)
 CDEPS = $(XM_CDEPS) $(TM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE) \
        $(OPCODES) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS)
index 96469da8c2e00e3dd97a77e2bd93714262e76773..88892ae57b115a96a06e1156bdf45cc180c84ff8 100644 (file)
@@ -89,6 +89,11 @@ C compiler for your system, you may be able to download and install
 the GNU CC compiler.  It is available via anonymous FTP from the
 directory `ftp://ftp.gnu.org/pub/gnu/gcc'.
 
+   GDB uses Expat, an XML parsing library, to implement some target-specific
+features.  Expat will be linked in if it is available at build time, or
+those features will be disabled.  The latest version of Expat should be
+available from `http://expat.sourceforge.net'.
+
    GDB can be used as a cross-debugger, running on a machine of one
 type while debugging a program running on a machine of another type.
 See below.
index 71a6c9f378be0d6df593ef57e592ac05a3279a08..6d51234a24457f1123c81a12800b0047f5dc51ee 100644 (file)
@@ -12,6 +12,11 @@ sinclude(../config/stdint.m4)
 
 sinclude(../config/gettext-sister.m4)
 
+dnl For AC_LIB_HAVE_LINKFLAGS.
+sinclude(../config/lib-ld.m4)
+sinclude(../config/lib-prefix.m4)
+sinclude(../config/lib-link.m4)
+
 dnl CYGNUS LOCAL: This gets the right posix flag for gcc
 AC_DEFUN([CY_AC_TCL_LYNX_POSIX],
 [AC_REQUIRE([AC_PROG_CC])AC_REQUIRE([AC_PROG_CPP])
index 906c9166c1289f8988c700e5232192478ef4c9e2..9b09b94ccb1e936c53ebf3f23e8cac8c0386f4bb 100644 (file)
@@ -315,6 +315,12 @@ if test "$ac_cv_search_tgetent" = no; then
   AC_MSG_ERROR([no termcap library found])
 fi
 
+AC_LIB_HAVE_LINKFLAGS([expat], [], [#include "expat.h"],
+                     [XML_Parser p = XML_ParserCreate (0);])
+if test "$HAVE_LIBEXPAT" != yes; then
+  AC_MSG_WARN([expat is missing or unusable; some features may be disabled.])
+fi
+
 # ------------------------- #
 # Checks for header files.  #
 # ------------------------- #
index 40f443d3c70c7bb2c002364cb80566c1b6ade88e..3ce14cb26df4aacc4f4f90b3708a1550ee66f16f 100644 (file)
@@ -1,3 +1,9 @@
+2006-08-08  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdb.texinfo (Installing GDB): Update menu.  Move text to...
+       (Running Configure): ...here.
+       (Requirements): New node.  Mention expat.
+
 2006-08-08  Vladimir Prus  <vladimir@codesourcery.com>
 
        * gdb.texinfo (Target Commands): Remove 
index 07a300402f54163daafdfc4350482ce8e06203f5..66c8d0f61467f34ad57480ed9aefcf31a3db15c4 100644 (file)
@@ -21891,10 +21891,49 @@ Then give @file{gdb.dvi} to your @sc{dvi} printing program.
 
 @node Installing GDB
 @appendix Installing @value{GDBN}
-@cindex configuring @value{GDBN}
 @cindex installation
-@cindex configuring @value{GDBN}, and source tree subdirectories
 
+@menu
+* Requirements::                Requirements for building @value{GDBN}
+* Running Configure::           Invoking the @value{GDBN} @code{configure} script
+* Separate Objdir::             Compiling @value{GDBN} in another directory
+* Config Names::                Specifying names for hosts and targets
+* Configure Options::           Summary of options for configure
+@end menu
+
+@node Requirements
+@section Requirements for building @value{GDBN}
+@cindex building @value{GDBN}, requirements for
+
+Building @value{GDBN} requires various tools and packages to be available.
+Other packages will be used only if they are found.
+
+@heading Tools/packages necessary for building @value{GDBN}
+@table @asis
+@item ISO C90 compiler
+@value{GDBN} is written in ISO C90.  It should be buildable with any
+working C90 compiler, e.g.@: GCC.
+
+@end table
+
+@heading Tools/packages optional for building @value{GDBN}
+@table @asis
+@item Expat
+@value{GDBN} can use the Expat XML parsing library.  This library may be
+included with your operating system distribution; if it is not, you
+can get the latest version from @url{http://expat.sourceforge.net}.
+The @code{configure} script will search for this library in several
+standard locations; if it is installed in an unusual path, you can
+use the @option{--with-libexpat-prefix} option to specify its location.
+
+Expat is used currently only used to implement some remote-specific
+features.
+
+@end table
+
+@node Running Configure
+@section Invoking the @value{GDBN} @code{configure} script
+@cindex configuring @value{GDBN}
 @value{GDBN} comes with a @code{configure} script that automates the process
 of preparing @value{GDBN} for installation; you can then use @code{make} to
 build the @code{gdb} program.
@@ -22000,12 +22039,6 @@ the @samp{SHELL} environment variable) is publicly readable.  Remember
 that @value{GDBN} uses the shell to start your program---some systems refuse to
 let @value{GDBN} debug child processes whose programs are not readable.
 
-@menu
-* Separate Objdir::             Compiling @value{GDBN} in another directory
-* Config Names::                Specifying names for hosts and targets
-* Configure Options::           Summary of options for configure
-@end menu
-
 @node Separate Objdir
 @section Compiling @value{GDBN} in another directory
 
This page took 0.046629 seconds and 4 git commands to generate.