INSTALL revision 4f9ac78a
14f9ac78aSmrgInstallation Instructions
24f9ac78aSmrg*************************
34f9ac78aSmrg
44f9ac78aSmrgCopyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
54f9ac78aSmrg2006, 2007, 2008 Free Software Foundation, Inc.
64f9ac78aSmrg
74f9ac78aSmrg   This file is free documentation; the Free Software Foundation gives
84f9ac78aSmrgunlimited permission to copy, distribute and modify it.
94f9ac78aSmrg
104f9ac78aSmrgBasic Installation
114f9ac78aSmrg==================
124f9ac78aSmrg
134f9ac78aSmrg   Briefly, the shell commands `./configure; make; make install' should
144f9ac78aSmrgconfigure, build, and install this package.  The following
154f9ac78aSmrgmore-detailed instructions are generic; see the `README' file for
164f9ac78aSmrginstructions specific to this package.
174f9ac78aSmrg
184f9ac78aSmrg   The `configure' shell script attempts to guess correct values for
194f9ac78aSmrgvarious system-dependent variables used during compilation.  It uses
204f9ac78aSmrgthose values to create a `Makefile' in each directory of the package.
214f9ac78aSmrgIt may also create one or more `.h' files containing system-dependent
224f9ac78aSmrgdefinitions.  Finally, it creates a shell script `config.status' that
234f9ac78aSmrgyou can run in the future to recreate the current configuration, and a
244f9ac78aSmrgfile `config.log' containing compiler output (useful mainly for
254f9ac78aSmrgdebugging `configure').
264f9ac78aSmrg
274f9ac78aSmrg   It can also use an optional file (typically called `config.cache'
284f9ac78aSmrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
294f9ac78aSmrgthe results of its tests to speed up reconfiguring.  Caching is
304f9ac78aSmrgdisabled by default to prevent problems with accidental use of stale
314f9ac78aSmrgcache files.
324f9ac78aSmrg
334f9ac78aSmrg   If you need to do unusual things to compile the package, please try
344f9ac78aSmrgto figure out how `configure' could check whether to do them, and mail
354f9ac78aSmrgdiffs or instructions to the address given in the `README' so they can
364f9ac78aSmrgbe considered for the next release.  If you are using the cache, and at
374f9ac78aSmrgsome point `config.cache' contains results you don't want to keep, you
384f9ac78aSmrgmay remove or edit it.
394f9ac78aSmrg
404f9ac78aSmrg   The file `configure.ac' (or `configure.in') is used to create
414f9ac78aSmrg`configure' by a program called `autoconf'.  You need `configure.ac' if
424f9ac78aSmrgyou want to change it or regenerate `configure' using a newer version
434f9ac78aSmrgof `autoconf'.
444f9ac78aSmrg
454f9ac78aSmrgThe simplest way to compile this package is:
464f9ac78aSmrg
474f9ac78aSmrg  1. `cd' to the directory containing the package's source code and type
484f9ac78aSmrg     `./configure' to configure the package for your system.
494f9ac78aSmrg
504f9ac78aSmrg     Running `configure' might take a while.  While running, it prints
514f9ac78aSmrg     some messages telling which features it is checking for.
524f9ac78aSmrg
534f9ac78aSmrg  2. Type `make' to compile the package.
544f9ac78aSmrg
554f9ac78aSmrg  3. Optionally, type `make check' to run any self-tests that come with
564f9ac78aSmrg     the package.
574f9ac78aSmrg
584f9ac78aSmrg  4. Type `make install' to install the programs and any data files and
594f9ac78aSmrg     documentation.
604f9ac78aSmrg
614f9ac78aSmrg  5. You can remove the program binaries and object files from the
624f9ac78aSmrg     source code directory by typing `make clean'.  To also remove the
634f9ac78aSmrg     files that `configure' created (so you can compile the package for
644f9ac78aSmrg     a different kind of computer), type `make distclean'.  There is
654f9ac78aSmrg     also a `make maintainer-clean' target, but that is intended mainly
664f9ac78aSmrg     for the package's developers.  If you use it, you may have to get
674f9ac78aSmrg     all sorts of other programs in order to regenerate files that came
684f9ac78aSmrg     with the distribution.
694f9ac78aSmrg
704f9ac78aSmrg  6. Often, you can also type `make uninstall' to remove the installed
714f9ac78aSmrg     files again.
724f9ac78aSmrg
734f9ac78aSmrgCompilers and Options
744f9ac78aSmrg=====================
754f9ac78aSmrg
764f9ac78aSmrg   Some systems require unusual options for compilation or linking that
774f9ac78aSmrgthe `configure' script does not know about.  Run `./configure --help'
784f9ac78aSmrgfor details on some of the pertinent environment variables.
794f9ac78aSmrg
804f9ac78aSmrg   You can give `configure' initial values for configuration parameters
814f9ac78aSmrgby setting variables in the command line or in the environment.  Here
824f9ac78aSmrgis an example:
834f9ac78aSmrg
844f9ac78aSmrg     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
854f9ac78aSmrg
864f9ac78aSmrg   *Note Defining Variables::, for more details.
874f9ac78aSmrg
884f9ac78aSmrgCompiling For Multiple Architectures
894f9ac78aSmrg====================================
904f9ac78aSmrg
914f9ac78aSmrg   You can compile the package for more than one kind of computer at the
924f9ac78aSmrgsame time, by placing the object files for each architecture in their
934f9ac78aSmrgown directory.  To do this, you can use GNU `make'.  `cd' to the
944f9ac78aSmrgdirectory where you want the object files and executables to go and run
954f9ac78aSmrgthe `configure' script.  `configure' automatically checks for the
964f9ac78aSmrgsource code in the directory that `configure' is in and in `..'.
974f9ac78aSmrg
984f9ac78aSmrg   With a non-GNU `make', it is safer to compile the package for one
994f9ac78aSmrgarchitecture at a time in the source code directory.  After you have
1004f9ac78aSmrginstalled the package for one architecture, use `make distclean' before
1014f9ac78aSmrgreconfiguring for another architecture.
1024f9ac78aSmrg
1034f9ac78aSmrg   On MacOS X 10.5 and later systems, you can create libraries and
1044f9ac78aSmrgexecutables that work on multiple system types--known as "fat" or
1054f9ac78aSmrg"universal" binaries--by specifying multiple `-arch' options to the
1064f9ac78aSmrgcompiler but only a single `-arch' option to the preprocessor.  Like
1074f9ac78aSmrgthis:
1084f9ac78aSmrg
1094f9ac78aSmrg     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
1104f9ac78aSmrg                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
1114f9ac78aSmrg                 CPP="gcc -E" CXXCPP="g++ -E"
1124f9ac78aSmrg
1134f9ac78aSmrg   This is not guaranteed to produce working output in all cases, you
1144f9ac78aSmrgmay have to build one architecture at a time and combine the results
1154f9ac78aSmrgusing the `lipo' tool if you have problems.
1164f9ac78aSmrg
1174f9ac78aSmrgInstallation Names
1184f9ac78aSmrg==================
1194f9ac78aSmrg
1204f9ac78aSmrg   By default, `make install' installs the package's commands under
1214f9ac78aSmrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
1224f9ac78aSmrgcan specify an installation prefix other than `/usr/local' by giving
1234f9ac78aSmrg`configure' the option `--prefix=PREFIX'.
1244f9ac78aSmrg
1254f9ac78aSmrg   You can specify separate installation prefixes for
1264f9ac78aSmrgarchitecture-specific files and architecture-independent files.  If you
1274f9ac78aSmrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
1284f9ac78aSmrgPREFIX as the prefix for installing programs and libraries.
1294f9ac78aSmrgDocumentation and other data files still use the regular prefix.
1304f9ac78aSmrg
1314f9ac78aSmrg   In addition, if you use an unusual directory layout you can give
1324f9ac78aSmrgoptions like `--bindir=DIR' to specify different values for particular
1334f9ac78aSmrgkinds of files.  Run `configure --help' for a list of the directories
1344f9ac78aSmrgyou can set and what kinds of files go in them.
1354f9ac78aSmrg
1364f9ac78aSmrg   If the package supports it, you can cause programs to be installed
1374f9ac78aSmrgwith an extra prefix or suffix on their names by giving `configure' the
1384f9ac78aSmrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
1394f9ac78aSmrg
1404f9ac78aSmrgOptional Features
1414f9ac78aSmrg=================
1424f9ac78aSmrg
1434f9ac78aSmrg   Some packages pay attention to `--enable-FEATURE' options to
1444f9ac78aSmrg`configure', where FEATURE indicates an optional part of the package.
1454f9ac78aSmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
1464f9ac78aSmrgis something like `gnu-as' or `x' (for the X Window System).  The
1474f9ac78aSmrg`README' should mention any `--enable-' and `--with-' options that the
1484f9ac78aSmrgpackage recognizes.
1494f9ac78aSmrg
1504f9ac78aSmrg   For packages that use the X Window System, `configure' can usually
1514f9ac78aSmrgfind the X include and library files automatically, but if it doesn't,
1524f9ac78aSmrgyou can use the `configure' options `--x-includes=DIR' and
1534f9ac78aSmrg`--x-libraries=DIR' to specify their locations.
1544f9ac78aSmrg
1554f9ac78aSmrgParticular systems
1564f9ac78aSmrg==================
1574f9ac78aSmrg
1584f9ac78aSmrg   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
1594f9ac78aSmrgCC is not installed, it is recommended to use the following options in
1604f9ac78aSmrgorder to use an ANSI C compiler:
1614f9ac78aSmrg
1624f9ac78aSmrg     ./configure CC="cc -Ae"
1634f9ac78aSmrg
1644f9ac78aSmrgand if that doesn't work, install pre-built binaries of GCC for HP-UX.
1654f9ac78aSmrg
1664f9ac78aSmrg   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
1674f9ac78aSmrgparse its `<wchar.h>' header file.  The option `-nodtk' can be used as
1684f9ac78aSmrga workaround.  If GNU CC is not installed, it is therefore recommended
1694f9ac78aSmrgto try
1704f9ac78aSmrg
1714f9ac78aSmrg     ./configure CC="cc"
1724f9ac78aSmrg
1734f9ac78aSmrgand if that doesn't work, try
1744f9ac78aSmrg
1754f9ac78aSmrg     ./configure CC="cc -nodtk"
1764f9ac78aSmrg
1774f9ac78aSmrgSpecifying the System Type
1784f9ac78aSmrg==========================
1794f9ac78aSmrg
1804f9ac78aSmrg   There may be some features `configure' cannot figure out
1814f9ac78aSmrgautomatically, but needs to determine by the type of machine the package
1824f9ac78aSmrgwill run on.  Usually, assuming the package is built to be run on the
1834f9ac78aSmrg_same_ architectures, `configure' can figure that out, but if it prints
1844f9ac78aSmrga message saying it cannot guess the machine type, give it the
1854f9ac78aSmrg`--build=TYPE' option.  TYPE can either be a short name for the system
1864f9ac78aSmrgtype, such as `sun4', or a canonical name which has the form:
1874f9ac78aSmrg
1884f9ac78aSmrg     CPU-COMPANY-SYSTEM
1894f9ac78aSmrg
1904f9ac78aSmrgwhere SYSTEM can have one of these forms:
1914f9ac78aSmrg
1924f9ac78aSmrg     OS KERNEL-OS
1934f9ac78aSmrg
1944f9ac78aSmrg   See the file `config.sub' for the possible values of each field.  If
1954f9ac78aSmrg`config.sub' isn't included in this package, then this package doesn't
1964f9ac78aSmrgneed to know the machine type.
1974f9ac78aSmrg
1984f9ac78aSmrg   If you are _building_ compiler tools for cross-compiling, you should
1994f9ac78aSmrguse the option `--target=TYPE' to select the type of system they will
2004f9ac78aSmrgproduce code for.
2014f9ac78aSmrg
2024f9ac78aSmrg   If you want to _use_ a cross compiler, that generates code for a
2034f9ac78aSmrgplatform different from the build platform, you should specify the
2044f9ac78aSmrg"host" platform (i.e., that on which the generated programs will
2054f9ac78aSmrgeventually be run) with `--host=TYPE'.
2064f9ac78aSmrg
2074f9ac78aSmrgSharing Defaults
2084f9ac78aSmrg================
2094f9ac78aSmrg
2104f9ac78aSmrg   If you want to set default values for `configure' scripts to share,
2114f9ac78aSmrgyou can create a site shell script called `config.site' that gives
2124f9ac78aSmrgdefault values for variables like `CC', `cache_file', and `prefix'.
2134f9ac78aSmrg`configure' looks for `PREFIX/share/config.site' if it exists, then
2144f9ac78aSmrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
2154f9ac78aSmrg`CONFIG_SITE' environment variable to the location of the site script.
2164f9ac78aSmrgA warning: not all `configure' scripts look for a site script.
2174f9ac78aSmrg
2184f9ac78aSmrgDefining Variables
2194f9ac78aSmrg==================
2204f9ac78aSmrg
2214f9ac78aSmrg   Variables not defined in a site shell script can be set in the
2224f9ac78aSmrgenvironment passed to `configure'.  However, some packages may run
2234f9ac78aSmrgconfigure again during the build, and the customized values of these
2244f9ac78aSmrgvariables may be lost.  In order to avoid this problem, you should set
2254f9ac78aSmrgthem in the `configure' command line, using `VAR=value'.  For example:
2264f9ac78aSmrg
2274f9ac78aSmrg     ./configure CC=/usr/local2/bin/gcc
2284f9ac78aSmrg
2294f9ac78aSmrgcauses the specified `gcc' to be used as the C compiler (unless it is
2304f9ac78aSmrgoverridden in the site shell script).
2314f9ac78aSmrg
2324f9ac78aSmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to
2334f9ac78aSmrgan Autoconf bug.  Until the bug is fixed you can use this workaround:
2344f9ac78aSmrg
2354f9ac78aSmrg     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
2364f9ac78aSmrg
2374f9ac78aSmrg`configure' Invocation
2384f9ac78aSmrg======================
2394f9ac78aSmrg
2404f9ac78aSmrg   `configure' recognizes the following options to control how it
2414f9ac78aSmrgoperates.
2424f9ac78aSmrg
2434f9ac78aSmrg`--help'
2444f9ac78aSmrg`-h'
2454f9ac78aSmrg     Print a summary of all of the options to `configure', and exit.
2464f9ac78aSmrg
2474f9ac78aSmrg`--help=short'
2484f9ac78aSmrg`--help=recursive'
2494f9ac78aSmrg     Print a summary of the options unique to this package's
2504f9ac78aSmrg     `configure', and exit.  The `short' variant lists options used
2514f9ac78aSmrg     only in the top level, while the `recursive' variant lists options
2524f9ac78aSmrg     also present in any nested packages.
2534f9ac78aSmrg
2544f9ac78aSmrg`--version'
2554f9ac78aSmrg`-V'
2564f9ac78aSmrg     Print the version of Autoconf used to generate the `configure'
2574f9ac78aSmrg     script, and exit.
2584f9ac78aSmrg
2594f9ac78aSmrg`--cache-file=FILE'
2604f9ac78aSmrg     Enable the cache: use and save the results of the tests in FILE,
2614f9ac78aSmrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
2624f9ac78aSmrg     disable caching.
2634f9ac78aSmrg
2644f9ac78aSmrg`--config-cache'
2654f9ac78aSmrg`-C'
2664f9ac78aSmrg     Alias for `--cache-file=config.cache'.
2674f9ac78aSmrg
2684f9ac78aSmrg`--quiet'
2694f9ac78aSmrg`--silent'
2704f9ac78aSmrg`-q'
2714f9ac78aSmrg     Do not print messages saying which checks are being made.  To
2724f9ac78aSmrg     suppress all normal output, redirect it to `/dev/null' (any error
2734f9ac78aSmrg     messages will still be shown).
2744f9ac78aSmrg
2754f9ac78aSmrg`--srcdir=DIR'
2764f9ac78aSmrg     Look for the package's source code in directory DIR.  Usually
2774f9ac78aSmrg     `configure' can determine that directory automatically.
2784f9ac78aSmrg
2794f9ac78aSmrg`--prefix=DIR'
2804f9ac78aSmrg     Use DIR as the installation prefix.  *Note Installation Names::
2814f9ac78aSmrg     for more details, including other options available for fine-tuning
2824f9ac78aSmrg     the installation locations.
2834f9ac78aSmrg
2844f9ac78aSmrg`--no-create'
2854f9ac78aSmrg`-n'
2864f9ac78aSmrg     Run the configure checks, but stop before creating any output
2874f9ac78aSmrg     files.
2884f9ac78aSmrg
2894f9ac78aSmrg`configure' also accepts some other, not widely useful, options.  Run
2904f9ac78aSmrg`configure --help' for more details.
2914f9ac78aSmrg
292