• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révision7f0bd4202c239b44b22645b9ae31fc0eeade1da3 (tree)
l'heure2018-09-29 22:07:33
AuteurTom Tromey <tom@trom...>
CommiterTom Tromey

Message de Log

Update gdb's configure instructions

gdb's README and configure instructions in the manual are quite out of
date. They mention options that haven't existed for many years, among
other things.

This patch attempts to modernize the instructions somewhat. It is not
exhaustive, just an improvement -- more could be done. Perhaps even a
couple of the nodes should simply be removed and replaced by
references to the Autoconf manual.

The README file seems to have been generated from the Texinfo at some
point in the past. I did not continue this, but instead edited it
separately.

gdb/ChangeLog
2018-09-29 Tom Tromey <tom@tromey.com>

* PROBLEMS: Rewrite.
* README: Update.

gdb/doc/ChangeLog
2018-09-29 Tom Tromey <tom@tromey.com>

* gdb.texinfo (Requirements): Mention C++, GNU make.
(Requirements): Sort the table. Add more libraries.
(Running Configure): Remove obsolete text.
(Separate Objdir): Likewise.
(Configure Options): Likewise.

Change Summary

Modification

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
1+2018-09-29 Tom Tromey <tom@tromey.com>
2+
3+ * PROBLEMS: Rewrite.
4+ * README: Update.
5+
16 2018-09-28 John Baldwin <jhb@FreeBSD.org>
27
38 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
--- a/gdb/PROBLEMS
+++ b/gdb/PROBLEMS
@@ -1,6 +1,5 @@
1+Known problems in GDB can be found by searching GDB's Bugzilla, here:
12
2- Known problems in GDB 7.2.50
3+ https://sourceware.org/bugzilla/query.cgi?product=gdb
34
4- See also: http://www.gnu.org/software/gdb/bugs/
5-
6-None worth mentioning here.
5+For help on searching, click the "Help" link at the top of the page.
--- a/gdb/README
+++ b/gdb/README
@@ -7,11 +7,8 @@ A summary of new features is in the file `gdb/NEWS'.
77 Check the GDB home page at http://www.gnu.org/software/gdb/ for up to
88 date release information, mailing list links and archives, etc.
99
10-The file `gdb/PROBLEMS' contains information on problems identified
11-late in the release cycle. GDB's bug tracking data base at
12-http://www.gnu.org/software/gdb/bugs/ contains a more complete list of
13-bugs.
14-
10+GDB's bug tracking data base can be found at
11+http://www.gnu.org/software/gdb/bugs/
1512
1613 Unpacking and Installation -- quick overview
1714 ==========================
@@ -37,9 +34,8 @@ source directory called `gdb-VERSION'.
3734 You can build GDB right in the source directory:
3835
3936 cd gdb-VERSION
40- ./configure
41- make
42- cp gdb/gdb /usr/local/bin/gdb (or wherever you want)
37+ ./configure --prefix=/usr/local (or wherever you want)
38+ make all install
4339
4440 However, we recommend that an empty directory be used instead.
4541 This way you do not clutter your source tree with binary files
@@ -50,9 +46,8 @@ You can build GDB in any empty build directory:
5046
5147 mkdir build
5248 cd build
53- <full path to your sources>/gdb-VERSION/configure
54- make
55- cp gdb/gdb /usr/local/bin/gdb (or wherever you want)
49+ <full path to your sources>/gdb-VERSION/configure [etc...]
50+ make all install
5651
5752 (Building GDB with DJGPP tools for MS-DOS/MS-Windows is slightly
5853 different; see the file gdb-VERSION/gdb/config/djgpp/README for details.)
@@ -77,25 +72,26 @@ such as:
7772 If you get other compiler errors during this stage, see the `Reporting
7873 Bugs' section below; there are a few known problems.
7974
80- GDB requires an ISO C (ANSI C) compiler. If you do not have an ISO
81-C compiler for your system, you may be able to download and install
75+ GDB's `configure' script has many options to enable or disable
76+different features or dependencies. These options are not generally
77+known to the top-level `configure', so if you want to see a complete
78+list of options, invoke the subdirectory `configure', like:
79+
80+ /berman/migchain/source/gdb-VERSION/gdb/configure --help
81+
82+ (Take note of how this differs from the invocation used to actually
83+configure the build tree.)
84+
85+ GDB requires a C++11 compiler. If you do not have a
86+C++11 compiler for your system, you may be able to download and install
8287 the GNU CC compiler. It is available via anonymous FTP from the
8388 directory `ftp://ftp.gnu.org/pub/gnu/gcc'. GDB also requires an ISO
8489 C standard library. The GDB remote server, GDBserver, builds with some
8590 non-ISO standard libraries - e.g. for Windows CE.
8691
87- GDB uses Expat, an XML parsing library, to implement some target-specific
88-features. Expat will be linked in if it is available at build time, or
89-those features will be disabled. The latest version of Expat should be
90-available from `http://expat.sourceforge.net'.
91-
92- GDB uses GNU MPFR, a library for multiple-precision floating-point
93-computation with correct rounding, to emulate target floating-point
94-arithmetic during expression evaluation when the target uses different
95-floating-point formats than the host. MPFR will be linked in if it is
96-available at build time. If GNU MPFR it is not available, GDB will fall
97-back to using host floating-point arithmetic. The latest version of
98-GNU MPFR should be available from `http://www.mpfr.org'.
92+ GDB can optionally be built against various external libraries.
93+These dependencies are described below in the "`configure options"
94+section of this README.
9995
10096 GDB can be used as a cross-debugger, running on a machine of one
10197 type while debugging a program running on a machine of another type.
@@ -348,20 +344,21 @@ you can use it to test your guesses on abbreviations--for example:
348344
349345 Here is a summary of the `configure' options and arguments that are
350346 most often useful for building GDB. `configure' also has several other
351-options not listed here. *note : (configure.info)What Configure Does,
352-for a full explanation of `configure'.
347+options not listed here. There are many options to gdb's `configure'
348+script, some of which are only useful in special situation.
349+*note : (autoconf.info)Running configure scripts, for a full
350+explanation of `configure'.
353351
354352 configure [--help]
355353 [--prefix=DIR]
356354 [--srcdir=PATH]
357- [--norecursion] [--rm]
358- [--enable-build-warnings]
359355 [--target=TARGET]
360356 [--host=HOST]
361357 [HOST]
362358
363359 You may introduce options with a single `-' rather than `--' if you
364-prefer; but you may abbreviate option names if you use `--'.
360+prefer; but you may abbreviate option names if you use `--'. Some
361+more obscure GDB `configure' options are not listed here.
365362
366363 `--help'
367364 Display a quick summary of how to invoke `configure'.
@@ -392,31 +389,6 @@ prefer; but you may abbreviate option names if you use `--'.
392389 Same as `--host=HOST'. If you omit this, GDB will guess; it's
393390 quite accurate.
394391
395-`--norecursion'
396- Configure only the directory level where `configure' is executed;
397- do not propagate configuration to subdirectories.
398-
399-`--rm'
400- Remove the configuration that the other arguments specify.
401-
402-`--enable-build-warnings'
403- When building the GDB sources, ask the compiler to warn about any
404- code which looks even vaguely suspicious. You should only using
405- this feature if you're compiling with GNU CC. It passes the
406- following flags:
407- -Wimplicit
408- -Wreturn-type
409- -Wcomment
410- -Wtrigraphs
411- -Wformat
412- -Wparentheses
413- -Wpointer-arith
414-
415-`--enable-werror'
416- Treat compiler warnings as werrors. Use this only with GCC. It
417- adds the -Werror flag to the compiler, which will fail the
418- compilation if the compiler outputs any warning messages.
419-
420392 `--target=TARGET'
421393 Configure GDB for cross-debugging programs running on the specified
422394 TARGET. Without this option, GDB is configured to debug programs
@@ -425,6 +397,12 @@ prefer; but you may abbreviate option names if you use `--'.
425397 There is no convenient way to generate a list of all available
426398 targets.
427399
400+`--enable-targets=TARGET,TARGET,...'
401+`--enable-targets=all`
402+ Configure GDB for cross-debugging programs running on the
403+ specified list of targets. The special value `all' configures
404+ GDB for debugging programs running on any target it supports.
405+
428406 `--with-gdb-datadir=PATH'
429407 Set the GDB-specific data directory. GDB will look here for
430408 certain supporting files or scripts. This defaults to the `gdb'
@@ -450,58 +428,86 @@ prefer; but you may abbreviate option names if you use `--'.
450428 Requires a curses library (ncurses and cursesX are also
451429 supported).
452430
453-`--enable-gdbtk'
454- Build GDB with the gdbtk GUI interface. Requires TCL/Tk to be
455- installed.
431+`--with-curses'
432+ Use the curses library instead of the termcap library, for
433+ text-mode terminal operations.
456434
457435 `--with-libunwind-ia64'
458436 Use the libunwind library for unwinding function call stack on ia64
459437 target platforms.
460438 See http://www.nongnu.org/libunwind/index.html for details.
461439
462-`--with-curses'
463- Use the curses library instead of the termcap library, for
464- text-mode terminal operations.
465-
466-`--enable-profiling' Enable profiling of GDB itself. Necessary if you
467- want to use the "maint set profile" command for profiling GDB.
468- Requires the functions `monstartup' and `_mcleanup' to be present
469- in the standard C library used to build GDB, and also requires a
470- compiler that supports the `-pg' option.
471-
472440 `--with-system-readline'
473441 Use the readline library installed on the host, rather than the
474442 library supplied as part of GDB tarball.
475443
444+`--with-system-zlib
445+ Use the zlib library installed on the host, rather than the
446+ library supplied as part of GDB tarball.
447+
476448 `--with-expat'
477- Build GDB with the libexpat library. (Done by default if
478- libexpat is installed and found at configure time.) This library
479- is used to read XML files supplied with GDB. If it is
480- unavailable, some features, such as remote protocol memory maps,
481- target descriptions, and shared library lists, that are based on
482- XML files, will not be available in GDB. If your host does not
483- have libexpat installed, you can get the latest version from
484- http://expat.sourceforge.net.
449+ Build GDB with Expat, a library for XML parsing. (Done by
450+ default if libexpat is installed and found at configure time.)
451+ This library is used to read XML files supplied with GDB. If it
452+ is unavailable, some features, such as remote protocol memory
453+ maps, target descriptions, and shared library lists, that are
454+ based on XML files, will not be available in GDB. If your host
455+ does not have libexpat installed, you can get the latest version
456+ from `http://expat.sourceforge.net'.
457+
458+`--with-libiconv-prefix[=DIR]'
459+ Build GDB with GNU libiconv, a character set encoding conversion
460+ library. This is not done by default, as on GNU systems the
461+ `iconv' that is built in to the C library is sufficient. If your
462+ host does not have a working `iconv', you can get the latest
463+ version of GNU iconv from `https://www.gnu.org/software/libiconv/'.
464+
465+ GDB's build system also supports building GNU libiconv as part of
466+ the overall build. See the GDB manual instructions on how to do
467+ this.
468+
469+`--with-lzma'
470+ Build GDB with LZMA, a compression library. (Done by default if
471+ liblzma is installed and found at configure time.) LZMA is used
472+ by GDB's "mini debuginfo" feature, which is only useful on
473+ platforms using the ELF object file format. If your host does
474+ not have liblzma installed, you can get the latest version from
475+ `https://tukaani.org/xz/'.
485476
486477 `--with-mpfr'
487- Build GDB with the GNU MPFR library. (Done by default if
488- GNU MPFR is installed and found at configure time.) This library
489- is used to emulate target floating-point arithmetic during expression
490- evaluation when the target uses different floating-point formats than
491- the host. If GNU MPFR is not available, GDB will fall back to using
492- host floating-point arithmetic. If your host does not have GNU MPFR
493- installed, you can get the latest version from http://www.mpfr.org.
494-
495-`--with-python[=PATH]'
478+ Build GDB with GNU MPFR, a library for multiple-precision
479+ floating-point computation with correct rounding. (Done by
480+ default if GNU MPFR is installed and found at configure time.)
481+ This library is used to emulate target floating-point arithmetic
482+ during expression evaluation when the target uses different
483+ floating-point formats than the host. If GNU MPFR is not
484+ available, GDB will fall back to using host floating-point
485+ arithmetic. If your host does not have GNU MPFR installed, you
486+ can get the latest version from `http://www.mpfr.org'.
487+
488+`--with-python[=PYTHON]'
496489 Build GDB with Python scripting support. (Done by default if
497490 libpython is present and found at configure time.) Python makes
498491 GDB scripting much more powerful than the restricted CLI
499492 scripting language. If your host does not have Python installed,
500- you can find it on http://www.python.org/download/. The oldest
493+ you can find it on `http://www.python.org/download/'. The oldest
501494 version of Python supported by GDB is 2.4. The optional argument
502- PATH says where to find the Python headers and libraries; the
503- configure script will look in PATH/include for headers and in
504- PATH/lib for the libraries.
495+ PYTHON is used to find the Python headers and libraries. It can
496+ be either the name of a Python executable, or the name of the
497+ directory in which Python is installed.
498+
499+names a Python executable, which will be queried to find
500+ the Python headers and libraries.
501+
502+`--with-guile[=GUILE]'
503+ Build GDB with GNU Guile scripting support. (Done by default if
504+ libguile is present and found at configure time.) If your host
505+ does not have Guile installed, you can find it at
506+ `https://www.gnu.org/software/guile/'. The optional argument
507+ GUILE can be a version number, which will cause `configure' to
508+ try to use that version of Guile; or the file name of a
509+ `pkg-config' executable, which will be queried to find the
510+ information needed to compile and link against Guile.
505511
506512 `--without-included-regex'
507513 Don't use the regex library included with GDB (as part of the
@@ -524,9 +530,19 @@ prefer; but you may abbreviate option names if you use `--'.
524530 after being built, the location of the system-wide init file will
525531 be adjusted accordingly.
526532
533+`--enable-build-warnings'
534+ When building the GDB sources, ask the compiler to warn about any
535+ code which looks even vaguely suspicious. It passes many
536+ different warning flags, depending on the exact version of the
537+ compiler you are using.
538+
539+`--enable-werror'
540+ Treat compiler warnings as werrors. It adds the -Werror flag to
541+ the compiler, which will fail the compilation if the compiler
542+ outputs any warning messages.
543+
527544 `configure' accepts other options, for compatibility with configuring
528-other GNU tools recursively; but these are the only options that affect
529-GDB or its supporting libraries.
545+other GNU tools recursively.
530546
531547
532548 Remote debugging
@@ -541,18 +557,12 @@ with the remote.c stub over a serial line.
541557 allows remote debugging for Unix applications. GDBserver is only
542558 supported for some native configurations, including Sun 3, Sun 4, and
543559 Linux.
544-The file gdb/gdbserver/README includes further notes on GDBserver; in
560+
561+ The file gdb/gdbserver/README includes further notes on GDBserver; in
545562 particular, it explains how to build GDBserver for cross-debugging
546563 (where GDBserver runs on the target machine, which is of a different
547564 architecture than the host machine running GDB).
548565
549- There are a number of remote interfaces for talking to existing ROM
550-monitors and other hardware:
551-
552- remote-mips.c MIPS remote debugging protocol
553- remote-sds.c PowerPC SDS monitor
554- remote-sim.c Generalized simulator protocol
555-
556566
557567 Reporting Bugs in GDB
558568 =====================
@@ -567,11 +577,13 @@ address "bug-gdb@gnu.org".
567577
568578 When submitting a bug, please include the GDB version number, and
569579 how you configured it (e.g., "sun4" or "mach386 host,
570-i586-intel-synopsys target"). Since GDB now supports so many
580+i586-intel-synopsys target"). Since GDB supports so many
571581 different configurations, it is important that you be precise about
572-this. If at all possible, you should include the actual banner
573-that GDB prints when it starts up, or failing that, the actual
574-configure command that you used when configuring GDB.
582+this. The simplest way to do this is to include the output from these
583+commands:
584+
585+ % gdb --version
586+ % gdb --config
575587
576588 For more information on how/whether to report bugs, see the
577589 Reporting Bugs chapter of the GDB manual (gdb/doc/gdb.texinfo).
@@ -583,7 +595,7 @@ Graphical interface to GDB -- X Windows, MS Windows
583595 Several graphical interfaces to GDB are available. You should
584596 check:
585597
586- http://www.gnu.org/software/gdb/links/
598+ https://sourceware.org/gdb/wiki/GDB%20Front%20Ends
587599
588600 for an up-to-date list.
589601
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,11 @@
1+2018-09-29 Tom Tromey <tom@tromey.com>
2+
3+ * gdb.texinfo (Requirements): Mention C++, GNU make.
4+ (Requirements): Sort the table. Add more libraries.
5+ (Running Configure): Remove obsolete text.
6+ (Separate Objdir): Likewise.
7+ (Configure Options): Likewise.
8+
19 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
210
311 * gdb.texinfo (Frames): Rewrite the description of 'frame number'
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -35222,10 +35222,13 @@ Other packages will be used only if they are found.
3522235222
3522335223 @heading Tools/Packages Necessary for Building @value{GDBN}
3522435224 @table @asis
35225-@item ISO C90 compiler
35226-@value{GDBN} is written in ISO C90. It should be buildable with any
35227-working C90 compiler, e.g.@: GCC.
35225+@item C@t{++}11 compiler
35226+@value{GDBN} is written in C@t{++}11. It should be buildable with any
35227+recent C@t{++}11 compiler, e.g.@: GCC.
3522835228
35229+@item GNU make
35230+@value{GDBN}'s build system relies on features only found in the GNU
35231+make program. Other variants of @code{make} will not work.
3522935232 @end table
3523035233
3523135234 @heading Tools/Packages Optional for Building @value{GDBN}
@@ -35258,6 +35261,51 @@ Branch trace (@pxref{Branch Trace Format},
3525835261 @pxref{Branch Trace Configuration Format})
3525935262 @end itemize
3526035263
35264+@item Guile
35265+@value{GDBN} can be scripted using GNU Guile. @xref{Guile}. By
35266+default, @value{GDBN} will be compiled if the Guile libraries are
35267+installed and are found by @file{configure}. You can use the
35268+@code{--with-guile} option to request Guile, and pass either the Guile
35269+version number or the file name of the relevant @code{pkg-config}
35270+program to choose a particular version of Guile.
35271+
35272+@item iconv
35273+@value{GDBN}'s features related to character sets (@pxref{Character
35274+Sets}) require a functioning @code{iconv} implementation. If you are
35275+on a GNU system, then this is provided by the GNU C Library. Some
35276+other systems also provide a working @code{iconv}.
35277+
35278+If @value{GDBN} is using the @code{iconv} program which is installed
35279+in a non-standard place, you will need to tell @value{GDBN} where to
35280+find it. This is done with @option{--with-iconv-bin} which specifies
35281+the directory that contains the @code{iconv} program. This program is
35282+run in order to make a list of the available character sets.
35283+
35284+On systems without @code{iconv}, you can install GNU Libiconv. If
35285+Libiconv is installed in a standard place, @value{GDBN} will
35286+automatically use it if it is needed. If you have previously
35287+installed Libiconv in a non-standard place, you can use the
35288+@option{--with-libiconv-prefix} option to @file{configure}.
35289+
35290+@value{GDBN}'s top-level @file{configure} and @file{Makefile} will
35291+arrange to build Libiconv if a directory named @file{libiconv} appears
35292+in the top-most source directory. If Libiconv is built this way, and
35293+if the operating system does not provide a suitable @code{iconv}
35294+implementation, then the just-built library will automatically be used
35295+by @value{GDBN}. One easy way to set this up is to download GNU
35296+Libiconv, unpack it inside the top-level directory of the @value{GDBN}
35297+source tree, and then rename the directory holding the Libiconv source
35298+code to @samp{libiconv}.
35299+
35300+@item lzma
35301+@value{GDBN} can support debugging sections that are compressed with
35302+the LZMA library. @xref{MiniDebugInfo}. If this library is not
35303+included with your operating system, you can find it in the xz package
35304+at @url{http://tukaani.org/xz/}. If the LZMA library is available in
35305+the usual place, then the @file{configure} script will use it
35306+automatically. If it is installed in an unusual path, you can use the
35307+@option{--with-lzma-prefix} option to specify its location.
35308+
3526135309 @item MPFR
3526235310 @anchor{MPFR}
3526335311 @value{GDBN} can use the GNU MPFR multiple-precision floating-point
@@ -35273,6 +35321,15 @@ expression evaluation when the target uses different floating-point
3527335321 formats than the host. If GNU MPFR it is not available, @value{GDBN}
3527435322 will fall back to using host floating-point arithmetic.
3527535323
35324+@item Python
35325+@value{GDBN} can be scripted using Python language. @xref{Python}.
35326+By default, @value{GDBN} will be compiled if the Python libraries are
35327+installed and are found by @file{configure}. You can use the
35328+@code{--with-python} option to request Python, and pass either the
35329+file name of the relevant @code{python} executable, or the name of the
35330+directory in which Python is installed, to choose a particular
35331+installation of Python.
35332+
3527635333 @item zlib
3527735334 @cindex compressed debug sections
3527835335 @value{GDBN} will use the @samp{zlib} library, if available, to read
@@ -35284,30 +35341,6 @@ information in such binaries.
3528435341 The @samp{zlib} library is likely included with your operating system
3528535342 distribution; if it is not, you can get the latest version from
3528635343 @url{http://zlib.net}.
35287-
35288-@item iconv
35289-@value{GDBN}'s features related to character sets (@pxref{Character
35290-Sets}) require a functioning @code{iconv} implementation. If you are
35291-on a GNU system, then this is provided by the GNU C Library. Some
35292-other systems also provide a working @code{iconv}.
35293-
35294-If @value{GDBN} is using the @code{iconv} program which is installed
35295-in a non-standard place, you will need to tell @value{GDBN} where to find it.
35296-This is done with @option{--with-iconv-bin} which specifies the
35297-directory that contains the @code{iconv} program.
35298-
35299-On systems without @code{iconv}, you can install GNU Libiconv. If you
35300-have previously installed Libiconv, you can use the
35301-@option{--with-libiconv-prefix} option to configure.
35302-
35303-@value{GDBN}'s top-level @file{configure} and @file{Makefile} will
35304-arrange to build Libiconv if a directory named @file{libiconv} appears
35305-in the top-most source directory. If Libiconv is built this way, and
35306-if the operating system does not provide a suitable @code{iconv}
35307-implementation, then the just-built library will automatically be used
35308-by @value{GDBN}. One easy way to set this up is to download GNU
35309-Libiconv, unpack it, and then rename the directory holding the
35310-Libiconv source code to @samp{libiconv}.
3531135344 @end table
3531235345
3531335346 @node Running Configure
@@ -35351,14 +35384,10 @@ source for the library of opcode tables and disassemblers
3535135384
3535235385 @item gdb-@value{GDBVN}/readline
3535335386 source for the @sc{gnu} command-line interface
35354-
35355-@item gdb-@value{GDBVN}/glob
35356-source for the @sc{gnu} filename pattern-matching subroutine
35357-
35358-@item gdb-@value{GDBVN}/mmalloc
35359-source for the @sc{gnu} memory-mapped malloc package
3536035387 @end table
3536135388
35389+There may be other subdirectories as well.
35390+
3536235391 The simplest way to configure and build @value{GDBN} is to run @file{configure}
3536335392 from the @file{gdb-@var{version-number}} source directory, which in
3536435393 this example is the @file{gdb-@value{GDBVN}} directory.
@@ -35372,20 +35401,14 @@ For example:
3537235401
3537335402 @smallexample
3537435403 cd gdb-@value{GDBVN}
35375-./configure @var{host}
35404+./configure
3537635405 make
3537735406 @end smallexample
3537835407
35379-@noindent
35380-where @var{host} is an identifier such as @samp{sun4} or
35381-@samp{decstation}, that identifies the platform where @value{GDBN} will run.
35382-(You can often leave off @var{host}; @file{configure} tries to guess the
35383-correct value by examining your system.)
35384-
35385-Running @samp{configure @var{host}} and then running @code{make} builds the
35386-@file{bfd}, @file{readline}, @file{mmalloc}, and @file{libiberty}
35387-libraries, then @code{gdb} itself. The configured source files, and the
35388-binaries, are left in the corresponding source directories.
35408+Running @samp{configure} and then running @code{make} builds the
35409+included supporting libraries, then @code{gdb} itself. The configured
35410+source files, and the binaries, are left in the corresponding source
35411+directories.
3538935412
3539035413 @need 750
3539135414 @file{configure} is a Bourne-shell (@code{/bin/sh}) script; if your
@@ -35393,16 +35416,9 @@ system does not recognize this automatically when you run a different
3539335416 shell, you may need to run @code{sh} on it explicitly:
3539435417
3539535418 @smallexample
35396-sh configure @var{host}
35419+sh configure
3539735420 @end smallexample
3539835421
35399-If you run @file{configure} from a directory that contains source
35400-directories for multiple libraries or programs, such as the
35401-@file{gdb-@value{GDBVN}} source directory for version @value{GDBVN},
35402-@file{configure}
35403-creates configuration files for every directory level underneath (unless
35404-you tell it not to, with the @samp{--norecursion} option).
35405-
3540635422 You should run the @file{configure} script from the top directory in the
3540735423 source tree, the @file{gdb-@var{version-number}} directory. If you run
3540835424 @file{configure} from one of the subdirectories, you will configure only
@@ -35413,11 +35429,9 @@ configuration of @file{bfd}, @file{readline}, and other sibling
3541335429 directories of the @file{gdb} subdirectory. This leads to build errors
3541435430 about missing include files such as @file{bfd/bfd.h}.
3541535431
35416-You can install @code{@value{GDBP}} anywhere; it has no hardwired paths.
35417-However, you should make sure that the shell on your path (named by
35418-the @samp{SHELL} environment variable) is publicly readable. Remember
35419-that @value{GDBN} uses the shell to start your program---some systems refuse to
35420-let @value{GDBN} debug child processes whose programs are not readable.
35432+You can install @code{@value{GDBN}} anywhere. The best way to do this
35433+is to pass the @code{--prefix} option to @code{configure}, and then
35434+install it with @code{make install}.
3542135435
3542235436 @node Separate Objdir
3542335437 @section Compiling @value{GDBN} in Another Directory
@@ -35446,7 +35460,7 @@ separate directory for a Sun 4 like this:
3544635460 cd gdb-@value{GDBVN}
3544735461 mkdir ../gdb-sun4
3544835462 cd ../gdb-sun4
35449-../gdb-@value{GDBVN}/configure sun4
35463+../gdb-@value{GDBVN}/configure
3545035464 make
3545135465 @end group
3545235466 @end smallexample
@@ -35532,18 +35546,17 @@ directory (@file{gdb-@value{GDBVN}}, for version @value{GDBVN}).
3553235546 @section @file{configure} Options
3553335547
3553435548 Here is a summary of the @file{configure} options and arguments that
35535-are most often useful for building @value{GDBN}. @file{configure} also has
35536-several other options not listed here. @inforef{What Configure
35537-Does,,configure.info}, for a full explanation of @file{configure}.
35549+are most often useful for building @value{GDBN}. @file{configure}
35550+also has several other options not listed here. @inforef{Running
35551+configure scripts,,autoconf.info}, for a full
35552+explanation of @file{configure}.
3553835553
3553935554 @smallexample
3554035555 configure @r{[}--help@r{]}
3554135556 @r{[}--prefix=@var{dir}@r{]}
3554235557 @r{[}--exec-prefix=@var{dir}@r{]}
3554335558 @r{[}--srcdir=@var{dirname}@r{]}
35544- @r{[}--norecursion@r{]} @r{[}--rm@r{]}
3554535559 @r{[}--target=@var{target}@r{]}
35546- @var{host}
3554735560 @end smallexample
3554835561
3554935562 @noindent
@@ -35566,8 +35579,6 @@ Configure the source to install programs under directory
3556635579 @c avoid splitting the warning from the explanation:
3556735580 @need 2000
3556835581 @item --srcdir=@var{dirname}
35569-@strong{Warning: using this option requires @sc{gnu} @code{make}, or another
35570-@code{make} that implements the @code{VPATH} feature.}@*
3557135582 Use this option to make configurations in directories separate from the
3557235583 @value{GDBN} source directories. Among other things, you can use this to
3557335584 build (or maintain) several configurations simultaneously, in separate
@@ -35577,21 +35588,12 @@ directory @var{dirname}. @file{configure} creates directories under
3557735588 the working directory in parallel to the source directories below
3557835589 @var{dirname}.
3557935590
35580-@item --norecursion
35581-Configure only the directory level where @file{configure} is executed; do not
35582-propagate configuration to subdirectories.
35583-
3558435591 @item --target=@var{target}
3558535592 Configure @value{GDBN} for cross-debugging programs running on the specified
3558635593 @var{target}. Without this option, @value{GDBN} is configured to debug
3558735594 programs that run on the same machine (@var{host}) as @value{GDBN} itself.
3558835595
3558935596 There is no convenient way to generate a list of all available targets.
35590-
35591-@item @var{host} @dots{}
35592-Configure @value{GDBN} to run on the specified @var{host}.
35593-
35594-There is no convenient way to generate a list of all available hosts.
3559535597 @end table
3559635598
3559735599 There are many other options available as well, but they are generally