INSTALL revision 9c9ff80c
19c9ff80cSmrgInstallation Instructions
29c9ff80cSmrg*************************
31f0ac6a5Smrg
49c9ff80cSmrgCopyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
59c9ff80cSmrg2006, 2007, 2008 Free Software Foundation, Inc.
61f0ac6a5Smrg
79c9ff80cSmrg   This file is free documentation; the Free Software Foundation gives
89c9ff80cSmrgunlimited permission to copy, distribute and modify it.
99c9ff80cSmrg
109c9ff80cSmrgBasic Installation
119c9ff80cSmrg==================
129c9ff80cSmrg
139c9ff80cSmrg   Briefly, the shell commands `./configure; make; make install' should
149c9ff80cSmrgconfigure, build, and install this package.  The following
159c9ff80cSmrgmore-detailed instructions are generic; see the `README' file for
169c9ff80cSmrginstructions specific to this package.
179c9ff80cSmrg
189c9ff80cSmrg   The `configure' shell script attempts to guess correct values for
199c9ff80cSmrgvarious system-dependent variables used during compilation.  It uses
209c9ff80cSmrgthose values to create a `Makefile' in each directory of the package.
219c9ff80cSmrgIt may also create one or more `.h' files containing system-dependent
229c9ff80cSmrgdefinitions.  Finally, it creates a shell script `config.status' that
239c9ff80cSmrgyou can run in the future to recreate the current configuration, and a
249c9ff80cSmrgfile `config.log' containing compiler output (useful mainly for
259c9ff80cSmrgdebugging `configure').
269c9ff80cSmrg
279c9ff80cSmrg   It can also use an optional file (typically called `config.cache'
289c9ff80cSmrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
299c9ff80cSmrgthe results of its tests to speed up reconfiguring.  Caching is
309c9ff80cSmrgdisabled by default to prevent problems with accidental use of stale
319c9ff80cSmrgcache files.
329c9ff80cSmrg
339c9ff80cSmrg   If you need to do unusual things to compile the package, please try
349c9ff80cSmrgto figure out how `configure' could check whether to do them, and mail
359c9ff80cSmrgdiffs or instructions to the address given in the `README' so they can
369c9ff80cSmrgbe considered for the next release.  If you are using the cache, and at
379c9ff80cSmrgsome point `config.cache' contains results you don't want to keep, you
389c9ff80cSmrgmay remove or edit it.
399c9ff80cSmrg
409c9ff80cSmrg   The file `configure.ac' (or `configure.in') is used to create
419c9ff80cSmrg`configure' by a program called `autoconf'.  You need `configure.ac' if
429c9ff80cSmrgyou want to change it or regenerate `configure' using a newer version
439c9ff80cSmrgof `autoconf'.
449c9ff80cSmrg
459c9ff80cSmrgThe simplest way to compile this package is:
469c9ff80cSmrg
479c9ff80cSmrg  1. `cd' to the directory containing the package's source code and type
489c9ff80cSmrg     `./configure' to configure the package for your system.
499c9ff80cSmrg
509c9ff80cSmrg     Running `configure' might take a while.  While running, it prints
519c9ff80cSmrg     some messages telling which features it is checking for.
529c9ff80cSmrg
539c9ff80cSmrg  2. Type `make' to compile the package.
549c9ff80cSmrg
559c9ff80cSmrg  3. Optionally, type `make check' to run any self-tests that come with
569c9ff80cSmrg     the package.
579c9ff80cSmrg
589c9ff80cSmrg  4. Type `make install' to install the programs and any data files and
599c9ff80cSmrg     documentation.
609c9ff80cSmrg
619c9ff80cSmrg  5. You can remove the program binaries and object files from the
629c9ff80cSmrg     source code directory by typing `make clean'.  To also remove the
639c9ff80cSmrg     files that `configure' created (so you can compile the package for
649c9ff80cSmrg     a different kind of computer), type `make distclean'.  There is
659c9ff80cSmrg     also a `make maintainer-clean' target, but that is intended mainly
669c9ff80cSmrg     for the package's developers.  If you use it, you may have to get
679c9ff80cSmrg     all sorts of other programs in order to regenerate files that came
689c9ff80cSmrg     with the distribution.
699c9ff80cSmrg
709c9ff80cSmrg  6. Often, you can also type `make uninstall' to remove the installed
719c9ff80cSmrg     files again.
729c9ff80cSmrg
739c9ff80cSmrgCompilers and Options
749c9ff80cSmrg=====================
759c9ff80cSmrg
769c9ff80cSmrg   Some systems require unusual options for compilation or linking that
779c9ff80cSmrgthe `configure' script does not know about.  Run `./configure --help'
789c9ff80cSmrgfor details on some of the pertinent environment variables.
799c9ff80cSmrg
809c9ff80cSmrg   You can give `configure' initial values for configuration parameters
819c9ff80cSmrgby setting variables in the command line or in the environment.  Here
829c9ff80cSmrgis an example:
839c9ff80cSmrg
849c9ff80cSmrg     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
859c9ff80cSmrg
869c9ff80cSmrg   *Note Defining Variables::, for more details.
879c9ff80cSmrg
889c9ff80cSmrgCompiling For Multiple Architectures
899c9ff80cSmrg====================================
909c9ff80cSmrg
919c9ff80cSmrg   You can compile the package for more than one kind of computer at the
929c9ff80cSmrgsame time, by placing the object files for each architecture in their
939c9ff80cSmrgown directory.  To do this, you can use GNU `make'.  `cd' to the
949c9ff80cSmrgdirectory where you want the object files and executables to go and run
959c9ff80cSmrgthe `configure' script.  `configure' automatically checks for the
969c9ff80cSmrgsource code in the directory that `configure' is in and in `..'.
979c9ff80cSmrg
989c9ff80cSmrg   With a non-GNU `make', it is safer to compile the package for one
999c9ff80cSmrgarchitecture at a time in the source code directory.  After you have
1009c9ff80cSmrginstalled the package for one architecture, use `make distclean' before
1019c9ff80cSmrgreconfiguring for another architecture.
1029c9ff80cSmrg
1039c9ff80cSmrg   On MacOS X 10.5 and later systems, you can create libraries and
1049c9ff80cSmrgexecutables that work on multiple system types--known as "fat" or
1059c9ff80cSmrg"universal" binaries--by specifying multiple `-arch' options to the
1069c9ff80cSmrgcompiler but only a single `-arch' option to the preprocessor.  Like
1079c9ff80cSmrgthis:
1089c9ff80cSmrg
1099c9ff80cSmrg     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
1109c9ff80cSmrg                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
1119c9ff80cSmrg                 CPP="gcc -E" CXXCPP="g++ -E"
1129c9ff80cSmrg
1139c9ff80cSmrg   This is not guaranteed to produce working output in all cases, you
1149c9ff80cSmrgmay have to build one architecture at a time and combine the results
1159c9ff80cSmrgusing the `lipo' tool if you have problems.
1169c9ff80cSmrg
1179c9ff80cSmrgInstallation Names
1189c9ff80cSmrg==================
1199c9ff80cSmrg
1209c9ff80cSmrg   By default, `make install' installs the package's commands under
1219c9ff80cSmrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
1229c9ff80cSmrgcan specify an installation prefix other than `/usr/local' by giving
1239c9ff80cSmrg`configure' the option `--prefix=PREFIX'.
1249c9ff80cSmrg
1259c9ff80cSmrg   You can specify separate installation prefixes for
1269c9ff80cSmrgarchitecture-specific files and architecture-independent files.  If you
1279c9ff80cSmrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
1289c9ff80cSmrgPREFIX as the prefix for installing programs and libraries.
1299c9ff80cSmrgDocumentation and other data files still use the regular prefix.
1309c9ff80cSmrg
1319c9ff80cSmrg   In addition, if you use an unusual directory layout you can give
1329c9ff80cSmrgoptions like `--bindir=DIR' to specify different values for particular
1339c9ff80cSmrgkinds of files.  Run `configure --help' for a list of the directories
1349c9ff80cSmrgyou can set and what kinds of files go in them.
1359c9ff80cSmrg
1369c9ff80cSmrg   If the package supports it, you can cause programs to be installed
1379c9ff80cSmrgwith an extra prefix or suffix on their names by giving `configure' the
1389c9ff80cSmrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
1399c9ff80cSmrg
1409c9ff80cSmrgOptional Features
1419c9ff80cSmrg=================
1429c9ff80cSmrg
1439c9ff80cSmrg   Some packages pay attention to `--enable-FEATURE' options to
1449c9ff80cSmrg`configure', where FEATURE indicates an optional part of the package.
1459c9ff80cSmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
1469c9ff80cSmrgis something like `gnu-as' or `x' (for the X Window System).  The
1479c9ff80cSmrg`README' should mention any `--enable-' and `--with-' options that the
1489c9ff80cSmrgpackage recognizes.
1499c9ff80cSmrg
1509c9ff80cSmrg   For packages that use the X Window System, `configure' can usually
1519c9ff80cSmrgfind the X include and library files automatically, but if it doesn't,
1529c9ff80cSmrgyou can use the `configure' options `--x-includes=DIR' and
1539c9ff80cSmrg`--x-libraries=DIR' to specify their locations.
1549c9ff80cSmrg
1559c9ff80cSmrgParticular systems
1569c9ff80cSmrg==================
1579c9ff80cSmrg
1589c9ff80cSmrg   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
1599c9ff80cSmrgCC is not installed, it is recommended to use the following options in
1609c9ff80cSmrgorder to use an ANSI C compiler:
1619c9ff80cSmrg
1629c9ff80cSmrg     ./configure CC="cc -Ae"
1639c9ff80cSmrg
1649c9ff80cSmrgand if that doesn't work, install pre-built binaries of GCC for HP-UX.
1659c9ff80cSmrg
1669c9ff80cSmrg   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
1679c9ff80cSmrgparse its `<wchar.h>' header file.  The option `-nodtk' can be used as
1689c9ff80cSmrga workaround.  If GNU CC is not installed, it is therefore recommended
1699c9ff80cSmrgto try
1709c9ff80cSmrg
1719c9ff80cSmrg     ./configure CC="cc"
1729c9ff80cSmrg
1739c9ff80cSmrgand if that doesn't work, try
1749c9ff80cSmrg
1759c9ff80cSmrg     ./configure CC="cc -nodtk"
1769c9ff80cSmrg
1779c9ff80cSmrgSpecifying the System Type
1789c9ff80cSmrg==========================
1799c9ff80cSmrg
1809c9ff80cSmrg   There may be some features `configure' cannot figure out
1819c9ff80cSmrgautomatically, but needs to determine by the type of machine the package
1829c9ff80cSmrgwill run on.  Usually, assuming the package is built to be run on the
1839c9ff80cSmrg_same_ architectures, `configure' can figure that out, but if it prints
1849c9ff80cSmrga message saying it cannot guess the machine type, give it the
1859c9ff80cSmrg`--build=TYPE' option.  TYPE can either be a short name for the system
1869c9ff80cSmrgtype, such as `sun4', or a canonical name which has the form:
1879c9ff80cSmrg
1889c9ff80cSmrg     CPU-COMPANY-SYSTEM
1899c9ff80cSmrg
1909c9ff80cSmrgwhere SYSTEM can have one of these forms:
1919c9ff80cSmrg
1929c9ff80cSmrg     OS KERNEL-OS
1939c9ff80cSmrg
1949c9ff80cSmrg   See the file `config.sub' for the possible values of each field.  If
1959c9ff80cSmrg`config.sub' isn't included in this package, then this package doesn't
1969c9ff80cSmrgneed to know the machine type.
1979c9ff80cSmrg
1989c9ff80cSmrg   If you are _building_ compiler tools for cross-compiling, you should
1999c9ff80cSmrguse the option `--target=TYPE' to select the type of system they will
2009c9ff80cSmrgproduce code for.
2019c9ff80cSmrg
2029c9ff80cSmrg   If you want to _use_ a cross compiler, that generates code for a
2039c9ff80cSmrgplatform different from the build platform, you should specify the
2049c9ff80cSmrg"host" platform (i.e., that on which the generated programs will
2059c9ff80cSmrgeventually be run) with `--host=TYPE'.
2069c9ff80cSmrg
2079c9ff80cSmrgSharing Defaults
2089c9ff80cSmrg================
2099c9ff80cSmrg
2109c9ff80cSmrg   If you want to set default values for `configure' scripts to share,
2119c9ff80cSmrgyou can create a site shell script called `config.site' that gives
2129c9ff80cSmrgdefault values for variables like `CC', `cache_file', and `prefix'.
2139c9ff80cSmrg`configure' looks for `PREFIX/share/config.site' if it exists, then
2149c9ff80cSmrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
2159c9ff80cSmrg`CONFIG_SITE' environment variable to the location of the site script.
2169c9ff80cSmrgA warning: not all `configure' scripts look for a site script.
2179c9ff80cSmrg
2189c9ff80cSmrgDefining Variables
2199c9ff80cSmrg==================
2209c9ff80cSmrg
2219c9ff80cSmrg   Variables not defined in a site shell script can be set in the
2229c9ff80cSmrgenvironment passed to `configure'.  However, some packages may run
2239c9ff80cSmrgconfigure again during the build, and the customized values of these
2249c9ff80cSmrgvariables may be lost.  In order to avoid this problem, you should set
2259c9ff80cSmrgthem in the `configure' command line, using `VAR=value'.  For example:
2269c9ff80cSmrg
2279c9ff80cSmrg     ./configure CC=/usr/local2/bin/gcc
2289c9ff80cSmrg
2299c9ff80cSmrgcauses the specified `gcc' to be used as the C compiler (unless it is
2309c9ff80cSmrgoverridden in the site shell script).
2319c9ff80cSmrg
2329c9ff80cSmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to
2339c9ff80cSmrgan Autoconf bug.  Until the bug is fixed you can use this workaround:
2349c9ff80cSmrg
2359c9ff80cSmrg     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
2369c9ff80cSmrg
2379c9ff80cSmrg`configure' Invocation
2389c9ff80cSmrg======================
2399c9ff80cSmrg
2409c9ff80cSmrg   `configure' recognizes the following options to control how it
2419c9ff80cSmrgoperates.
2429c9ff80cSmrg
2439c9ff80cSmrg`--help'
2449c9ff80cSmrg`-h'
2459c9ff80cSmrg     Print a summary of all of the options to `configure', and exit.
2469c9ff80cSmrg
2479c9ff80cSmrg`--help=short'
2489c9ff80cSmrg`--help=recursive'
2499c9ff80cSmrg     Print a summary of the options unique to this package's
2509c9ff80cSmrg     `configure', and exit.  The `short' variant lists options used
2519c9ff80cSmrg     only in the top level, while the `recursive' variant lists options
2529c9ff80cSmrg     also present in any nested packages.
2539c9ff80cSmrg
2549c9ff80cSmrg`--version'
2559c9ff80cSmrg`-V'
2569c9ff80cSmrg     Print the version of Autoconf used to generate the `configure'
2579c9ff80cSmrg     script, and exit.
2589c9ff80cSmrg
2599c9ff80cSmrg`--cache-file=FILE'
2609c9ff80cSmrg     Enable the cache: use and save the results of the tests in FILE,
2619c9ff80cSmrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
2629c9ff80cSmrg     disable caching.
2639c9ff80cSmrg
2649c9ff80cSmrg`--config-cache'
2659c9ff80cSmrg`-C'
2669c9ff80cSmrg     Alias for `--cache-file=config.cache'.
2679c9ff80cSmrg
2689c9ff80cSmrg`--quiet'
2699c9ff80cSmrg`--silent'
2709c9ff80cSmrg`-q'
2719c9ff80cSmrg     Do not print messages saying which checks are being made.  To
2729c9ff80cSmrg     suppress all normal output, redirect it to `/dev/null' (any error
2739c9ff80cSmrg     messages will still be shown).
2749c9ff80cSmrg
2759c9ff80cSmrg`--srcdir=DIR'
2769c9ff80cSmrg     Look for the package's source code in directory DIR.  Usually
2779c9ff80cSmrg     `configure' can determine that directory automatically.
2789c9ff80cSmrg
2799c9ff80cSmrg`--prefix=DIR'
2809c9ff80cSmrg     Use DIR as the installation prefix.  *Note Installation Names::
2819c9ff80cSmrg     for more details, including other options available for fine-tuning
2829c9ff80cSmrg     the installation locations.
2839c9ff80cSmrg
2849c9ff80cSmrg`--no-create'
2859c9ff80cSmrg`-n'
2869c9ff80cSmrg     Run the configure checks, but stop before creating any output
2879c9ff80cSmrg     files.
2889c9ff80cSmrg
2899c9ff80cSmrg`configure' also accepts some other, not widely useful, options.  Run
2909c9ff80cSmrg`configure --help' for more details.
2911f0ac6a5Smrg
292