INSTALL revision 3a72f200
13a72f200SmrgInstallation Instructions
23a72f200Smrg*************************
33a72f200Smrg
43a72f200SmrgCopyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
53a72f200Smrg2006, 2007, 2008 Free Software Foundation, Inc.
63a72f200Smrg
73a72f200Smrg   This file is free documentation; the Free Software Foundation gives
83a72f200Smrgunlimited permission to copy, distribute and modify it.
93a72f200Smrg
103a72f200SmrgBasic Installation
113a72f200Smrg==================
123a72f200Smrg
133a72f200Smrg   Briefly, the shell commands `./configure; make; make install' should
143a72f200Smrgconfigure, build, and install this package.  The following
153a72f200Smrgmore-detailed instructions are generic; see the `README' file for
163a72f200Smrginstructions specific to this package.
173a72f200Smrg
183a72f200Smrg   The `configure' shell script attempts to guess correct values for
193a72f200Smrgvarious system-dependent variables used during compilation.  It uses
203a72f200Smrgthose values to create a `Makefile' in each directory of the package.
213a72f200SmrgIt may also create one or more `.h' files containing system-dependent
223a72f200Smrgdefinitions.  Finally, it creates a shell script `config.status' that
233a72f200Smrgyou can run in the future to recreate the current configuration, and a
243a72f200Smrgfile `config.log' containing compiler output (useful mainly for
253a72f200Smrgdebugging `configure').
263a72f200Smrg
273a72f200Smrg   It can also use an optional file (typically called `config.cache'
283a72f200Smrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
293a72f200Smrgthe results of its tests to speed up reconfiguring.  Caching is
303a72f200Smrgdisabled by default to prevent problems with accidental use of stale
313a72f200Smrgcache files.
323a72f200Smrg
333a72f200Smrg   If you need to do unusual things to compile the package, please try
343a72f200Smrgto figure out how `configure' could check whether to do them, and mail
353a72f200Smrgdiffs or instructions to the address given in the `README' so they can
363a72f200Smrgbe considered for the next release.  If you are using the cache, and at
373a72f200Smrgsome point `config.cache' contains results you don't want to keep, you
383a72f200Smrgmay remove or edit it.
393a72f200Smrg
403a72f200Smrg   The file `configure.ac' (or `configure.in') is used to create
413a72f200Smrg`configure' by a program called `autoconf'.  You need `configure.ac' if
423a72f200Smrgyou want to change it or regenerate `configure' using a newer version
433a72f200Smrgof `autoconf'.
443a72f200Smrg
453a72f200SmrgThe simplest way to compile this package is:
463a72f200Smrg
473a72f200Smrg  1. `cd' to the directory containing the package's source code and type
483a72f200Smrg     `./configure' to configure the package for your system.
493a72f200Smrg
503a72f200Smrg     Running `configure' might take a while.  While running, it prints
513a72f200Smrg     some messages telling which features it is checking for.
523a72f200Smrg
533a72f200Smrg  2. Type `make' to compile the package.
543a72f200Smrg
553a72f200Smrg  3. Optionally, type `make check' to run any self-tests that come with
563a72f200Smrg     the package.
573a72f200Smrg
583a72f200Smrg  4. Type `make install' to install the programs and any data files and
593a72f200Smrg     documentation.
603a72f200Smrg
613a72f200Smrg  5. You can remove the program binaries and object files from the
623a72f200Smrg     source code directory by typing `make clean'.  To also remove the
633a72f200Smrg     files that `configure' created (so you can compile the package for
643a72f200Smrg     a different kind of computer), type `make distclean'.  There is
653a72f200Smrg     also a `make maintainer-clean' target, but that is intended mainly
663a72f200Smrg     for the package's developers.  If you use it, you may have to get
673a72f200Smrg     all sorts of other programs in order to regenerate files that came
683a72f200Smrg     with the distribution.
693a72f200Smrg
703a72f200Smrg  6. Often, you can also type `make uninstall' to remove the installed
713a72f200Smrg     files again.
723a72f200Smrg
733a72f200SmrgCompilers and Options
743a72f200Smrg=====================
753a72f200Smrg
763a72f200Smrg   Some systems require unusual options for compilation or linking that
773a72f200Smrgthe `configure' script does not know about.  Run `./configure --help'
783a72f200Smrgfor details on some of the pertinent environment variables.
793a72f200Smrg
803a72f200Smrg   You can give `configure' initial values for configuration parameters
813a72f200Smrgby setting variables in the command line or in the environment.  Here
823a72f200Smrgis an example:
833a72f200Smrg
843a72f200Smrg     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
853a72f200Smrg
863a72f200Smrg   *Note Defining Variables::, for more details.
873a72f200Smrg
883a72f200SmrgCompiling For Multiple Architectures
893a72f200Smrg====================================
903a72f200Smrg
913a72f200Smrg   You can compile the package for more than one kind of computer at the
923a72f200Smrgsame time, by placing the object files for each architecture in their
933a72f200Smrgown directory.  To do this, you can use GNU `make'.  `cd' to the
943a72f200Smrgdirectory where you want the object files and executables to go and run
953a72f200Smrgthe `configure' script.  `configure' automatically checks for the
963a72f200Smrgsource code in the directory that `configure' is in and in `..'.
973a72f200Smrg
983a72f200Smrg   With a non-GNU `make', it is safer to compile the package for one
993a72f200Smrgarchitecture at a time in the source code directory.  After you have
1003a72f200Smrginstalled the package for one architecture, use `make distclean' before
1013a72f200Smrgreconfiguring for another architecture.
1023a72f200Smrg
1033a72f200Smrg   On MacOS X 10.5 and later systems, you can create libraries and
1043a72f200Smrgexecutables that work on multiple system types--known as "fat" or
1053a72f200Smrg"universal" binaries--by specifying multiple `-arch' options to the
1063a72f200Smrgcompiler but only a single `-arch' option to the preprocessor.  Like
1073a72f200Smrgthis:
1083a72f200Smrg
1093a72f200Smrg     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
1103a72f200Smrg                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
1113a72f200Smrg                 CPP="gcc -E" CXXCPP="g++ -E"
1123a72f200Smrg
1133a72f200Smrg   This is not guaranteed to produce working output in all cases, you
1143a72f200Smrgmay have to build one architecture at a time and combine the results
1153a72f200Smrgusing the `lipo' tool if you have problems.
1163a72f200Smrg
1173a72f200SmrgInstallation Names
1183a72f200Smrg==================
1193a72f200Smrg
1203a72f200Smrg   By default, `make install' installs the package's commands under
1213a72f200Smrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
1223a72f200Smrgcan specify an installation prefix other than `/usr/local' by giving
1233a72f200Smrg`configure' the option `--prefix=PREFIX'.
1243a72f200Smrg
1253a72f200Smrg   You can specify separate installation prefixes for
1263a72f200Smrgarchitecture-specific files and architecture-independent files.  If you
1273a72f200Smrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
1283a72f200SmrgPREFIX as the prefix for installing programs and libraries.
1293a72f200SmrgDocumentation and other data files still use the regular prefix.
1303a72f200Smrg
1313a72f200Smrg   In addition, if you use an unusual directory layout you can give
1323a72f200Smrgoptions like `--bindir=DIR' to specify different values for particular
1333a72f200Smrgkinds of files.  Run `configure --help' for a list of the directories
1343a72f200Smrgyou can set and what kinds of files go in them.
1353a72f200Smrg
1363a72f200Smrg   If the package supports it, you can cause programs to be installed
1373a72f200Smrgwith an extra prefix or suffix on their names by giving `configure' the
1383a72f200Smrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
1393a72f200Smrg
1403a72f200SmrgOptional Features
1413a72f200Smrg=================
1423a72f200Smrg
1433a72f200Smrg   Some packages pay attention to `--enable-FEATURE' options to
1443a72f200Smrg`configure', where FEATURE indicates an optional part of the package.
1453a72f200SmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
1463a72f200Smrgis something like `gnu-as' or `x' (for the X Window System).  The
1473a72f200Smrg`README' should mention any `--enable-' and `--with-' options that the
1483a72f200Smrgpackage recognizes.
1493a72f200Smrg
1503a72f200Smrg   For packages that use the X Window System, `configure' can usually
1513a72f200Smrgfind the X include and library files automatically, but if it doesn't,
1523a72f200Smrgyou can use the `configure' options `--x-includes=DIR' and
1533a72f200Smrg`--x-libraries=DIR' to specify their locations.
1543a72f200Smrg
1553a72f200SmrgParticular systems
1563a72f200Smrg==================
1573a72f200Smrg
1583a72f200Smrg   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
1593a72f200SmrgCC is not installed, it is recommended to use the following options in
1603a72f200Smrgorder to use an ANSI C compiler:
1613a72f200Smrg
1623a72f200Smrg     ./configure CC="cc -Ae"
1633a72f200Smrg
1643a72f200Smrgand if that doesn't work, install pre-built binaries of GCC for HP-UX.
1653a72f200Smrg
1663a72f200Smrg   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
1673a72f200Smrgparse its `<wchar.h>' header file.  The option `-nodtk' can be used as
1683a72f200Smrga workaround.  If GNU CC is not installed, it is therefore recommended
1693a72f200Smrgto try
1703a72f200Smrg
1713a72f200Smrg     ./configure CC="cc"
1723a72f200Smrg
1733a72f200Smrgand if that doesn't work, try
1743a72f200Smrg
1753a72f200Smrg     ./configure CC="cc -nodtk"
1763a72f200Smrg
1773a72f200SmrgSpecifying the System Type
1783a72f200Smrg==========================
1793a72f200Smrg
1803a72f200Smrg   There may be some features `configure' cannot figure out
1813a72f200Smrgautomatically, but needs to determine by the type of machine the package
1823a72f200Smrgwill run on.  Usually, assuming the package is built to be run on the
1833a72f200Smrg_same_ architectures, `configure' can figure that out, but if it prints
1843a72f200Smrga message saying it cannot guess the machine type, give it the
1853a72f200Smrg`--build=TYPE' option.  TYPE can either be a short name for the system
1863a72f200Smrgtype, such as `sun4', or a canonical name which has the form:
1873a72f200Smrg
1883a72f200Smrg     CPU-COMPANY-SYSTEM
1893a72f200Smrg
1903a72f200Smrgwhere SYSTEM can have one of these forms:
1913a72f200Smrg
1923a72f200Smrg     OS KERNEL-OS
1933a72f200Smrg
1943a72f200Smrg   See the file `config.sub' for the possible values of each field.  If
1953a72f200Smrg`config.sub' isn't included in this package, then this package doesn't
1963a72f200Smrgneed to know the machine type.
1973a72f200Smrg
1983a72f200Smrg   If you are _building_ compiler tools for cross-compiling, you should
1993a72f200Smrguse the option `--target=TYPE' to select the type of system they will
2003a72f200Smrgproduce code for.
2013a72f200Smrg
2023a72f200Smrg   If you want to _use_ a cross compiler, that generates code for a
2033a72f200Smrgplatform different from the build platform, you should specify the
2043a72f200Smrg"host" platform (i.e., that on which the generated programs will
2053a72f200Smrgeventually be run) with `--host=TYPE'.
2063a72f200Smrg
2073a72f200SmrgSharing Defaults
2083a72f200Smrg================
2093a72f200Smrg
2103a72f200Smrg   If you want to set default values for `configure' scripts to share,
2113a72f200Smrgyou can create a site shell script called `config.site' that gives
2123a72f200Smrgdefault values for variables like `CC', `cache_file', and `prefix'.
2133a72f200Smrg`configure' looks for `PREFIX/share/config.site' if it exists, then
2143a72f200Smrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
2153a72f200Smrg`CONFIG_SITE' environment variable to the location of the site script.
2163a72f200SmrgA warning: not all `configure' scripts look for a site script.
2173a72f200Smrg
2183a72f200SmrgDefining Variables
2193a72f200Smrg==================
2203a72f200Smrg
2213a72f200Smrg   Variables not defined in a site shell script can be set in the
2223a72f200Smrgenvironment passed to `configure'.  However, some packages may run
2233a72f200Smrgconfigure again during the build, and the customized values of these
2243a72f200Smrgvariables may be lost.  In order to avoid this problem, you should set
2253a72f200Smrgthem in the `configure' command line, using `VAR=value'.  For example:
2263a72f200Smrg
2273a72f200Smrg     ./configure CC=/usr/local2/bin/gcc
2283a72f200Smrg
2293a72f200Smrgcauses the specified `gcc' to be used as the C compiler (unless it is
2303a72f200Smrgoverridden in the site shell script).
2313a72f200Smrg
2323a72f200SmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to
2333a72f200Smrgan Autoconf bug.  Until the bug is fixed you can use this workaround:
2343a72f200Smrg
2353a72f200Smrg     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
2363a72f200Smrg
2373a72f200Smrg`configure' Invocation
2383a72f200Smrg======================
2393a72f200Smrg
2403a72f200Smrg   `configure' recognizes the following options to control how it
2413a72f200Smrgoperates.
2423a72f200Smrg
2433a72f200Smrg`--help'
2443a72f200Smrg`-h'
2453a72f200Smrg     Print a summary of all of the options to `configure', and exit.
2463a72f200Smrg
2473a72f200Smrg`--help=short'
2483a72f200Smrg`--help=recursive'
2493a72f200Smrg     Print a summary of the options unique to this package's
2503a72f200Smrg     `configure', and exit.  The `short' variant lists options used
2513a72f200Smrg     only in the top level, while the `recursive' variant lists options
2523a72f200Smrg     also present in any nested packages.
2533a72f200Smrg
2543a72f200Smrg`--version'
2553a72f200Smrg`-V'
2563a72f200Smrg     Print the version of Autoconf used to generate the `configure'
2573a72f200Smrg     script, and exit.
2583a72f200Smrg
2593a72f200Smrg`--cache-file=FILE'
2603a72f200Smrg     Enable the cache: use and save the results of the tests in FILE,
2613a72f200Smrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
2623a72f200Smrg     disable caching.
2633a72f200Smrg
2643a72f200Smrg`--config-cache'
2653a72f200Smrg`-C'
2663a72f200Smrg     Alias for `--cache-file=config.cache'.
2673a72f200Smrg
2683a72f200Smrg`--quiet'
2693a72f200Smrg`--silent'
2703a72f200Smrg`-q'
2713a72f200Smrg     Do not print messages saying which checks are being made.  To
2723a72f200Smrg     suppress all normal output, redirect it to `/dev/null' (any error
2733a72f200Smrg     messages will still be shown).
2743a72f200Smrg
2753a72f200Smrg`--srcdir=DIR'
2763a72f200Smrg     Look for the package's source code in directory DIR.  Usually
2773a72f200Smrg     `configure' can determine that directory automatically.
2783a72f200Smrg
2793a72f200Smrg`--prefix=DIR'
2803a72f200Smrg     Use DIR as the installation prefix.  *Note Installation Names::
2813a72f200Smrg     for more details, including other options available for fine-tuning
2823a72f200Smrg     the installation locations.
2833a72f200Smrg
2843a72f200Smrg`--no-create'
2853a72f200Smrg`-n'
2863a72f200Smrg     Run the configure checks, but stop before creating any output
2873a72f200Smrg     files.
2883a72f200Smrg
2893a72f200Smrg`configure' also accepts some other, not widely useful, options.  Run
2903a72f200Smrg`configure --help' for more details.
2913a72f200Smrg
292