14f9ac78aSmrgInstallation Instructions
24f9ac78aSmrg*************************
34f9ac78aSmrg
469ef5f27SmrgCopyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
569ef5f27SmrgInc.
64f9ac78aSmrg
769ef5f27Smrg   Copying and distribution of this file, with or without modification,
869ef5f27Smrgare permitted in any medium without royalty provided the copyright
969ef5f27Smrgnotice and this notice are preserved.  This file is offered as-is,
1069ef5f27Smrgwithout warranty of any kind.
114f9ac78aSmrg
124f9ac78aSmrgBasic Installation
134f9ac78aSmrg==================
144f9ac78aSmrg
154f9ac78aSmrg   Briefly, the shell commands `./configure; make; make install' should
164f9ac78aSmrgconfigure, build, and install this package.  The following
174f9ac78aSmrgmore-detailed instructions are generic; see the `README' file for
1869ef5f27Smrginstructions specific to this package.  Some packages provide this
1969ef5f27Smrg`INSTALL' file but do not implement all of the features documented
2069ef5f27Smrgbelow.  The lack of an optional feature in a given package is not
2169ef5f27Smrgnecessarily a bug.  More recommendations for GNU packages can be found
2269ef5f27Smrgin *note Makefile Conventions: (standards)Makefile Conventions.
234f9ac78aSmrg
244f9ac78aSmrg   The `configure' shell script attempts to guess correct values for
254f9ac78aSmrgvarious system-dependent variables used during compilation.  It uses
264f9ac78aSmrgthose values to create a `Makefile' in each directory of the package.
274f9ac78aSmrgIt may also create one or more `.h' files containing system-dependent
284f9ac78aSmrgdefinitions.  Finally, it creates a shell script `config.status' that
294f9ac78aSmrgyou can run in the future to recreate the current configuration, and a
304f9ac78aSmrgfile `config.log' containing compiler output (useful mainly for
314f9ac78aSmrgdebugging `configure').
324f9ac78aSmrg
334f9ac78aSmrg   It can also use an optional file (typically called `config.cache'
344f9ac78aSmrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
354f9ac78aSmrgthe results of its tests to speed up reconfiguring.  Caching is
364f9ac78aSmrgdisabled by default to prevent problems with accidental use of stale
374f9ac78aSmrgcache files.
384f9ac78aSmrg
394f9ac78aSmrg   If you need to do unusual things to compile the package, please try
404f9ac78aSmrgto figure out how `configure' could check whether to do them, and mail
414f9ac78aSmrgdiffs or instructions to the address given in the `README' so they can
424f9ac78aSmrgbe considered for the next release.  If you are using the cache, and at
434f9ac78aSmrgsome point `config.cache' contains results you don't want to keep, you
444f9ac78aSmrgmay remove or edit it.
454f9ac78aSmrg
464f9ac78aSmrg   The file `configure.ac' (or `configure.in') is used to create
474f9ac78aSmrg`configure' by a program called `autoconf'.  You need `configure.ac' if
484f9ac78aSmrgyou want to change it or regenerate `configure' using a newer version
494f9ac78aSmrgof `autoconf'.
504f9ac78aSmrg
5169ef5f27Smrg   The simplest way to compile this package is:
524f9ac78aSmrg
534f9ac78aSmrg  1. `cd' to the directory containing the package's source code and type
544f9ac78aSmrg     `./configure' to configure the package for your system.
554f9ac78aSmrg
564f9ac78aSmrg     Running `configure' might take a while.  While running, it prints
574f9ac78aSmrg     some messages telling which features it is checking for.
584f9ac78aSmrg
594f9ac78aSmrg  2. Type `make' to compile the package.
604f9ac78aSmrg
614f9ac78aSmrg  3. Optionally, type `make check' to run any self-tests that come with
6269ef5f27Smrg     the package, generally using the just-built uninstalled binaries.
634f9ac78aSmrg
644f9ac78aSmrg  4. Type `make install' to install the programs and any data files and
6569ef5f27Smrg     documentation.  When installing into a prefix owned by root, it is
6669ef5f27Smrg     recommended that the package be configured and built as a regular
6769ef5f27Smrg     user, and only the `make install' phase executed with root
6869ef5f27Smrg     privileges.
6969ef5f27Smrg
7069ef5f27Smrg  5. Optionally, type `make installcheck' to repeat any self-tests, but
7169ef5f27Smrg     this time using the binaries in their final installed location.
7269ef5f27Smrg     This target does not install anything.  Running this target as a
7369ef5f27Smrg     regular user, particularly if the prior `make install' required
7469ef5f27Smrg     root privileges, verifies that the installation completed
7569ef5f27Smrg     correctly.
7669ef5f27Smrg
7769ef5f27Smrg  6. You can remove the program binaries and object files from the
784f9ac78aSmrg     source code directory by typing `make clean'.  To also remove the
794f9ac78aSmrg     files that `configure' created (so you can compile the package for
804f9ac78aSmrg     a different kind of computer), type `make distclean'.  There is
814f9ac78aSmrg     also a `make maintainer-clean' target, but that is intended mainly
824f9ac78aSmrg     for the package's developers.  If you use it, you may have to get
834f9ac78aSmrg     all sorts of other programs in order to regenerate files that came
844f9ac78aSmrg     with the distribution.
854f9ac78aSmrg
8669ef5f27Smrg  7. Often, you can also type `make uninstall' to remove the installed
8769ef5f27Smrg     files again.  In practice, not all packages have tested that
8869ef5f27Smrg     uninstallation works correctly, even though it is required by the
8969ef5f27Smrg     GNU Coding Standards.
9069ef5f27Smrg
9169ef5f27Smrg  8. Some packages, particularly those that use Automake, provide `make
9269ef5f27Smrg     distcheck', which can by used by developers to test that all other
9369ef5f27Smrg     targets like `make install' and `make uninstall' work correctly.
9469ef5f27Smrg     This target is generally not run by end users.
954f9ac78aSmrg
964f9ac78aSmrgCompilers and Options
974f9ac78aSmrg=====================
984f9ac78aSmrg
994f9ac78aSmrg   Some systems require unusual options for compilation or linking that
1004f9ac78aSmrgthe `configure' script does not know about.  Run `./configure --help'
1014f9ac78aSmrgfor details on some of the pertinent environment variables.
1024f9ac78aSmrg
1034f9ac78aSmrg   You can give `configure' initial values for configuration parameters
1044f9ac78aSmrgby setting variables in the command line or in the environment.  Here
1054f9ac78aSmrgis an example:
1064f9ac78aSmrg
1074f9ac78aSmrg     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
1084f9ac78aSmrg
1094f9ac78aSmrg   *Note Defining Variables::, for more details.
1104f9ac78aSmrg
1114f9ac78aSmrgCompiling For Multiple Architectures
1124f9ac78aSmrg====================================
1134f9ac78aSmrg
1144f9ac78aSmrg   You can compile the package for more than one kind of computer at the
1154f9ac78aSmrgsame time, by placing the object files for each architecture in their
1164f9ac78aSmrgown directory.  To do this, you can use GNU `make'.  `cd' to the
1174f9ac78aSmrgdirectory where you want the object files and executables to go and run
1184f9ac78aSmrgthe `configure' script.  `configure' automatically checks for the
11969ef5f27Smrgsource code in the directory that `configure' is in and in `..'.  This
12069ef5f27Smrgis known as a "VPATH" build.
1214f9ac78aSmrg
1224f9ac78aSmrg   With a non-GNU `make', it is safer to compile the package for one
1234f9ac78aSmrgarchitecture at a time in the source code directory.  After you have
1244f9ac78aSmrginstalled the package for one architecture, use `make distclean' before
1254f9ac78aSmrgreconfiguring for another architecture.
1264f9ac78aSmrg
1274f9ac78aSmrg   On MacOS X 10.5 and later systems, you can create libraries and
1284f9ac78aSmrgexecutables that work on multiple system types--known as "fat" or
1294f9ac78aSmrg"universal" binaries--by specifying multiple `-arch' options to the
1304f9ac78aSmrgcompiler but only a single `-arch' option to the preprocessor.  Like
1314f9ac78aSmrgthis:
1324f9ac78aSmrg
1334f9ac78aSmrg     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
1344f9ac78aSmrg                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
1354f9ac78aSmrg                 CPP="gcc -E" CXXCPP="g++ -E"
1364f9ac78aSmrg
1374f9ac78aSmrg   This is not guaranteed to produce working output in all cases, you
1384f9ac78aSmrgmay have to build one architecture at a time and combine the results
1394f9ac78aSmrgusing the `lipo' tool if you have problems.
1404f9ac78aSmrg
1414f9ac78aSmrgInstallation Names
1424f9ac78aSmrg==================
1434f9ac78aSmrg
1444f9ac78aSmrg   By default, `make install' installs the package's commands under
1454f9ac78aSmrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
1464f9ac78aSmrgcan specify an installation prefix other than `/usr/local' by giving
14769ef5f27Smrg`configure' the option `--prefix=PREFIX', where PREFIX must be an
14869ef5f27Smrgabsolute file name.
1494f9ac78aSmrg
1504f9ac78aSmrg   You can specify separate installation prefixes for
1514f9ac78aSmrgarchitecture-specific files and architecture-independent files.  If you
1524f9ac78aSmrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
1534f9ac78aSmrgPREFIX as the prefix for installing programs and libraries.
1544f9ac78aSmrgDocumentation and other data files still use the regular prefix.
1554f9ac78aSmrg
1564f9ac78aSmrg   In addition, if you use an unusual directory layout you can give
1574f9ac78aSmrgoptions like `--bindir=DIR' to specify different values for particular
1584f9ac78aSmrgkinds of files.  Run `configure --help' for a list of the directories
15969ef5f27Smrgyou can set and what kinds of files go in them.  In general, the
16069ef5f27Smrgdefault for these options is expressed in terms of `${prefix}', so that
16169ef5f27Smrgspecifying just `--prefix' will affect all of the other directory
16269ef5f27Smrgspecifications that were not explicitly provided.
16369ef5f27Smrg
16469ef5f27Smrg   The most portable way to affect installation locations is to pass the
16569ef5f27Smrgcorrect locations to `configure'; however, many packages provide one or
16669ef5f27Smrgboth of the following shortcuts of passing variable assignments to the
16769ef5f27Smrg`make install' command line to change installation locations without
16869ef5f27Smrghaving to reconfigure or recompile.
16969ef5f27Smrg
17069ef5f27Smrg   The first method involves providing an override variable for each
17169ef5f27Smrgaffected directory.  For example, `make install
17269ef5f27Smrgprefix=/alternate/directory' will choose an alternate location for all
17369ef5f27Smrgdirectory configuration variables that were expressed in terms of
17469ef5f27Smrg`${prefix}'.  Any directories that were specified during `configure',
17569ef5f27Smrgbut not in terms of `${prefix}', must each be overridden at install
17669ef5f27Smrgtime for the entire installation to be relocated.  The approach of
17769ef5f27Smrgmakefile variable overrides for each directory variable is required by
17869ef5f27Smrgthe GNU Coding Standards, and ideally causes no recompilation.
17969ef5f27SmrgHowever, some platforms have known limitations with the semantics of
18069ef5f27Smrgshared libraries that end up requiring recompilation when using this
18169ef5f27Smrgmethod, particularly noticeable in packages that use GNU Libtool.
18269ef5f27Smrg
18369ef5f27Smrg   The second method involves providing the `DESTDIR' variable.  For
18469ef5f27Smrgexample, `make install DESTDIR=/alternate/directory' will prepend
18569ef5f27Smrg`/alternate/directory' before all installation names.  The approach of
18669ef5f27Smrg`DESTDIR' overrides is not required by the GNU Coding Standards, and
18769ef5f27Smrgdoes not work on platforms that have drive letters.  On the other hand,
18869ef5f27Smrgit does better at avoiding recompilation issues, and works well even
18969ef5f27Smrgwhen some directory options were not specified in terms of `${prefix}'
19069ef5f27Smrgat `configure' time.
19169ef5f27Smrg
19269ef5f27SmrgOptional Features
19369ef5f27Smrg=================
1944f9ac78aSmrg
1954f9ac78aSmrg   If the package supports it, you can cause programs to be installed
1964f9ac78aSmrgwith an extra prefix or suffix on their names by giving `configure' the
1974f9ac78aSmrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
1984f9ac78aSmrg
1994f9ac78aSmrg   Some packages pay attention to `--enable-FEATURE' options to
2004f9ac78aSmrg`configure', where FEATURE indicates an optional part of the package.
2014f9ac78aSmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
2024f9ac78aSmrgis something like `gnu-as' or `x' (for the X Window System).  The
2034f9ac78aSmrg`README' should mention any `--enable-' and `--with-' options that the
2044f9ac78aSmrgpackage recognizes.
2054f9ac78aSmrg
2064f9ac78aSmrg   For packages that use the X Window System, `configure' can usually
2074f9ac78aSmrgfind the X include and library files automatically, but if it doesn't,
2084f9ac78aSmrgyou can use the `configure' options `--x-includes=DIR' and
2094f9ac78aSmrg`--x-libraries=DIR' to specify their locations.
2104f9ac78aSmrg
21169ef5f27Smrg   Some packages offer the ability to configure how verbose the
21269ef5f27Smrgexecution of `make' will be.  For these packages, running `./configure
21369ef5f27Smrg--enable-silent-rules' sets the default to minimal output, which can be
21469ef5f27Smrgoverridden with `make V=1'; while running `./configure
21569ef5f27Smrg--disable-silent-rules' sets the default to verbose, which can be
21669ef5f27Smrgoverridden with `make V=0'.
21769ef5f27Smrg
2184f9ac78aSmrgParticular systems
2194f9ac78aSmrg==================
2204f9ac78aSmrg
2214f9ac78aSmrg   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
2224f9ac78aSmrgCC is not installed, it is recommended to use the following options in
2234f9ac78aSmrgorder to use an ANSI C compiler:
2244f9ac78aSmrg
22569ef5f27Smrg     ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
2264f9ac78aSmrg
2274f9ac78aSmrgand if that doesn't work, install pre-built binaries of GCC for HP-UX.
2284f9ac78aSmrg
22969ef5f27Smrg   HP-UX `make' updates targets which have the same time stamps as
23069ef5f27Smrgtheir prerequisites, which makes it generally unusable when shipped
23169ef5f27Smrggenerated files such as `configure' are involved.  Use GNU `make'
23269ef5f27Smrginstead.
23369ef5f27Smrg
2344f9ac78aSmrg   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
2354f9ac78aSmrgparse its `<wchar.h>' header file.  The option `-nodtk' can be used as
2364f9ac78aSmrga workaround.  If GNU CC is not installed, it is therefore recommended
2374f9ac78aSmrgto try
2384f9ac78aSmrg
2394f9ac78aSmrg     ./configure CC="cc"
2404f9ac78aSmrg
2414f9ac78aSmrgand if that doesn't work, try
2424f9ac78aSmrg
2434f9ac78aSmrg     ./configure CC="cc -nodtk"
2444f9ac78aSmrg
24569ef5f27Smrg   On Solaris, don't put `/usr/ucb' early in your `PATH'.  This
24669ef5f27Smrgdirectory contains several dysfunctional programs; working variants of
24769ef5f27Smrgthese programs are available in `/usr/bin'.  So, if you need `/usr/ucb'
24869ef5f27Smrgin your `PATH', put it _after_ `/usr/bin'.
24969ef5f27Smrg
25069ef5f27Smrg   On Haiku, software installed for all users goes in `/boot/common',
25169ef5f27Smrgnot `/usr/local'.  It is recommended to use the following options:
25269ef5f27Smrg
25369ef5f27Smrg     ./configure --prefix=/boot/common
25469ef5f27Smrg
2554f9ac78aSmrgSpecifying the System Type
2564f9ac78aSmrg==========================
2574f9ac78aSmrg
2584f9ac78aSmrg   There may be some features `configure' cannot figure out
2594f9ac78aSmrgautomatically, but needs to determine by the type of machine the package
2604f9ac78aSmrgwill run on.  Usually, assuming the package is built to be run on the
2614f9ac78aSmrg_same_ architectures, `configure' can figure that out, but if it prints
2624f9ac78aSmrga message saying it cannot guess the machine type, give it the
2634f9ac78aSmrg`--build=TYPE' option.  TYPE can either be a short name for the system
2644f9ac78aSmrgtype, such as `sun4', or a canonical name which has the form:
2654f9ac78aSmrg
2664f9ac78aSmrg     CPU-COMPANY-SYSTEM
2674f9ac78aSmrg
2684f9ac78aSmrgwhere SYSTEM can have one of these forms:
2694f9ac78aSmrg
27069ef5f27Smrg     OS
27169ef5f27Smrg     KERNEL-OS
2724f9ac78aSmrg
2734f9ac78aSmrg   See the file `config.sub' for the possible values of each field.  If
2744f9ac78aSmrg`config.sub' isn't included in this package, then this package doesn't
2754f9ac78aSmrgneed to know the machine type.
2764f9ac78aSmrg
2774f9ac78aSmrg   If you are _building_ compiler tools for cross-compiling, you should
2784f9ac78aSmrguse the option `--target=TYPE' to select the type of system they will
2794f9ac78aSmrgproduce code for.
2804f9ac78aSmrg
2814f9ac78aSmrg   If you want to _use_ a cross compiler, that generates code for a
2824f9ac78aSmrgplatform different from the build platform, you should specify the
2834f9ac78aSmrg"host" platform (i.e., that on which the generated programs will
2844f9ac78aSmrgeventually be run) with `--host=TYPE'.
2854f9ac78aSmrg
2864f9ac78aSmrgSharing Defaults
2874f9ac78aSmrg================
2884f9ac78aSmrg
2894f9ac78aSmrg   If you want to set default values for `configure' scripts to share,
2904f9ac78aSmrgyou can create a site shell script called `config.site' that gives
2914f9ac78aSmrgdefault values for variables like `CC', `cache_file', and `prefix'.
2924f9ac78aSmrg`configure' looks for `PREFIX/share/config.site' if it exists, then
2934f9ac78aSmrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
2944f9ac78aSmrg`CONFIG_SITE' environment variable to the location of the site script.
2954f9ac78aSmrgA warning: not all `configure' scripts look for a site script.
2964f9ac78aSmrg
2974f9ac78aSmrgDefining Variables
2984f9ac78aSmrg==================
2994f9ac78aSmrg
3004f9ac78aSmrg   Variables not defined in a site shell script can be set in the
3014f9ac78aSmrgenvironment passed to `configure'.  However, some packages may run
3024f9ac78aSmrgconfigure again during the build, and the customized values of these
3034f9ac78aSmrgvariables may be lost.  In order to avoid this problem, you should set
3044f9ac78aSmrgthem in the `configure' command line, using `VAR=value'.  For example:
3054f9ac78aSmrg
3064f9ac78aSmrg     ./configure CC=/usr/local2/bin/gcc
3074f9ac78aSmrg
3084f9ac78aSmrgcauses the specified `gcc' to be used as the C compiler (unless it is
3094f9ac78aSmrgoverridden in the site shell script).
3104f9ac78aSmrg
3114f9ac78aSmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to
3124f9ac78aSmrgan Autoconf bug.  Until the bug is fixed you can use this workaround:
3134f9ac78aSmrg
3144f9ac78aSmrg     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
3154f9ac78aSmrg
3164f9ac78aSmrg`configure' Invocation
3174f9ac78aSmrg======================
3184f9ac78aSmrg
3194f9ac78aSmrg   `configure' recognizes the following options to control how it
3204f9ac78aSmrgoperates.
3214f9ac78aSmrg
3224f9ac78aSmrg`--help'
3234f9ac78aSmrg`-h'
3244f9ac78aSmrg     Print a summary of all of the options to `configure', and exit.
3254f9ac78aSmrg
3264f9ac78aSmrg`--help=short'
3274f9ac78aSmrg`--help=recursive'
3284f9ac78aSmrg     Print a summary of the options unique to this package's
3294f9ac78aSmrg     `configure', and exit.  The `short' variant lists options used
3304f9ac78aSmrg     only in the top level, while the `recursive' variant lists options
3314f9ac78aSmrg     also present in any nested packages.
3324f9ac78aSmrg
3334f9ac78aSmrg`--version'
3344f9ac78aSmrg`-V'
3354f9ac78aSmrg     Print the version of Autoconf used to generate the `configure'
3364f9ac78aSmrg     script, and exit.
3374f9ac78aSmrg
3384f9ac78aSmrg`--cache-file=FILE'
3394f9ac78aSmrg     Enable the cache: use and save the results of the tests in FILE,
3404f9ac78aSmrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
3414f9ac78aSmrg     disable caching.
3424f9ac78aSmrg
3434f9ac78aSmrg`--config-cache'
3444f9ac78aSmrg`-C'
3454f9ac78aSmrg     Alias for `--cache-file=config.cache'.
3464f9ac78aSmrg
3474f9ac78aSmrg`--quiet'
3484f9ac78aSmrg`--silent'
3494f9ac78aSmrg`-q'
3504f9ac78aSmrg     Do not print messages saying which checks are being made.  To
3514f9ac78aSmrg     suppress all normal output, redirect it to `/dev/null' (any error
3524f9ac78aSmrg     messages will still be shown).
3534f9ac78aSmrg
3544f9ac78aSmrg`--srcdir=DIR'
3554f9ac78aSmrg     Look for the package's source code in directory DIR.  Usually
3564f9ac78aSmrg     `configure' can determine that directory automatically.
3574f9ac78aSmrg
3584f9ac78aSmrg`--prefix=DIR'
35969ef5f27Smrg     Use DIR as the installation prefix.  *note Installation Names::
3604f9ac78aSmrg     for more details, including other options available for fine-tuning
3614f9ac78aSmrg     the installation locations.
3624f9ac78aSmrg
3634f9ac78aSmrg`--no-create'
3644f9ac78aSmrg`-n'
3654f9ac78aSmrg     Run the configure checks, but stop before creating any output
3664f9ac78aSmrg     files.
3674f9ac78aSmrg
3684f9ac78aSmrg`configure' also accepts some other, not widely useful, options.  Run
3694f9ac78aSmrg`configure --help' for more details.
3704f9ac78aSmrg
371