INSTALL revision 356f6deb
1356f6debSmrgInstallation Instructions
2356f6debSmrg*************************
3356f6debSmrg
4356f6debSmrgCopyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
5356f6debSmrg2006, 2007, 2008 Free Software Foundation, Inc.
6356f6debSmrg
7356f6debSmrg   This file is free documentation; the Free Software Foundation gives
8356f6debSmrgunlimited permission to copy, distribute and modify it.
9356f6debSmrg
10356f6debSmrgBasic Installation
11356f6debSmrg==================
12356f6debSmrg
13356f6debSmrg   Briefly, the shell commands `./configure; make; make install' should
14356f6debSmrgconfigure, build, and install this package.  The following
15356f6debSmrgmore-detailed instructions are generic; see the `README' file for
16356f6debSmrginstructions specific to this package.
17356f6debSmrg
18356f6debSmrg   The `configure' shell script attempts to guess correct values for
19356f6debSmrgvarious system-dependent variables used during compilation.  It uses
20356f6debSmrgthose values to create a `Makefile' in each directory of the package.
21356f6debSmrgIt may also create one or more `.h' files containing system-dependent
22356f6debSmrgdefinitions.  Finally, it creates a shell script `config.status' that
23356f6debSmrgyou can run in the future to recreate the current configuration, and a
24356f6debSmrgfile `config.log' containing compiler output (useful mainly for
25356f6debSmrgdebugging `configure').
26356f6debSmrg
27356f6debSmrg   It can also use an optional file (typically called `config.cache'
28356f6debSmrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
29356f6debSmrgthe results of its tests to speed up reconfiguring.  Caching is
30356f6debSmrgdisabled by default to prevent problems with accidental use of stale
31356f6debSmrgcache files.
32356f6debSmrg
33356f6debSmrg   If you need to do unusual things to compile the package, please try
34356f6debSmrgto figure out how `configure' could check whether to do them, and mail
35356f6debSmrgdiffs or instructions to the address given in the `README' so they can
36356f6debSmrgbe considered for the next release.  If you are using the cache, and at
37356f6debSmrgsome point `config.cache' contains results you don't want to keep, you
38356f6debSmrgmay remove or edit it.
39356f6debSmrg
40356f6debSmrg   The file `configure.ac' (or `configure.in') is used to create
41356f6debSmrg`configure' by a program called `autoconf'.  You need `configure.ac' if
42356f6debSmrgyou want to change it or regenerate `configure' using a newer version
43356f6debSmrgof `autoconf'.
44356f6debSmrg
45356f6debSmrgThe simplest way to compile this package is:
46356f6debSmrg
47356f6debSmrg  1. `cd' to the directory containing the package's source code and type
48356f6debSmrg     `./configure' to configure the package for your system.
49356f6debSmrg
50356f6debSmrg     Running `configure' might take a while.  While running, it prints
51356f6debSmrg     some messages telling which features it is checking for.
52356f6debSmrg
53356f6debSmrg  2. Type `make' to compile the package.
54356f6debSmrg
55356f6debSmrg  3. Optionally, type `make check' to run any self-tests that come with
56356f6debSmrg     the package.
57356f6debSmrg
58356f6debSmrg  4. Type `make install' to install the programs and any data files and
59356f6debSmrg     documentation.
60356f6debSmrg
61356f6debSmrg  5. You can remove the program binaries and object files from the
62356f6debSmrg     source code directory by typing `make clean'.  To also remove the
63356f6debSmrg     files that `configure' created (so you can compile the package for
64356f6debSmrg     a different kind of computer), type `make distclean'.  There is
65356f6debSmrg     also a `make maintainer-clean' target, but that is intended mainly
66356f6debSmrg     for the package's developers.  If you use it, you may have to get
67356f6debSmrg     all sorts of other programs in order to regenerate files that came
68356f6debSmrg     with the distribution.
69356f6debSmrg
70356f6debSmrg  6. Often, you can also type `make uninstall' to remove the installed
71356f6debSmrg     files again.
72356f6debSmrg
73356f6debSmrgCompilers and Options
74356f6debSmrg=====================
75356f6debSmrg
76356f6debSmrg   Some systems require unusual options for compilation or linking that
77356f6debSmrgthe `configure' script does not know about.  Run `./configure --help'
78356f6debSmrgfor details on some of the pertinent environment variables.
79356f6debSmrg
80356f6debSmrg   You can give `configure' initial values for configuration parameters
81356f6debSmrgby setting variables in the command line or in the environment.  Here
82356f6debSmrgis an example:
83356f6debSmrg
84356f6debSmrg     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
85356f6debSmrg
86356f6debSmrg   *Note Defining Variables::, for more details.
87356f6debSmrg
88356f6debSmrgCompiling For Multiple Architectures
89356f6debSmrg====================================
90356f6debSmrg
91356f6debSmrg   You can compile the package for more than one kind of computer at the
92356f6debSmrgsame time, by placing the object files for each architecture in their
93356f6debSmrgown directory.  To do this, you can use GNU `make'.  `cd' to the
94356f6debSmrgdirectory where you want the object files and executables to go and run
95356f6debSmrgthe `configure' script.  `configure' automatically checks for the
96356f6debSmrgsource code in the directory that `configure' is in and in `..'.
97356f6debSmrg
98356f6debSmrg   With a non-GNU `make', it is safer to compile the package for one
99356f6debSmrgarchitecture at a time in the source code directory.  After you have
100356f6debSmrginstalled the package for one architecture, use `make distclean' before
101356f6debSmrgreconfiguring for another architecture.
102356f6debSmrg
103356f6debSmrg   On MacOS X 10.5 and later systems, you can create libraries and
104356f6debSmrgexecutables that work on multiple system types--known as "fat" or
105356f6debSmrg"universal" binaries--by specifying multiple `-arch' options to the
106356f6debSmrgcompiler but only a single `-arch' option to the preprocessor.  Like
107356f6debSmrgthis:
108356f6debSmrg
109356f6debSmrg     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
110356f6debSmrg                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
111356f6debSmrg                 CPP="gcc -E" CXXCPP="g++ -E"
112356f6debSmrg
113356f6debSmrg   This is not guaranteed to produce working output in all cases, you
114356f6debSmrgmay have to build one architecture at a time and combine the results
115356f6debSmrgusing the `lipo' tool if you have problems.
116356f6debSmrg
117356f6debSmrgInstallation Names
118356f6debSmrg==================
119356f6debSmrg
120356f6debSmrg   By default, `make install' installs the package's commands under
121356f6debSmrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
122356f6debSmrgcan specify an installation prefix other than `/usr/local' by giving
123356f6debSmrg`configure' the option `--prefix=PREFIX'.
124356f6debSmrg
125356f6debSmrg   You can specify separate installation prefixes for
126356f6debSmrgarchitecture-specific files and architecture-independent files.  If you
127356f6debSmrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
128356f6debSmrgPREFIX as the prefix for installing programs and libraries.
129356f6debSmrgDocumentation and other data files still use the regular prefix.
130356f6debSmrg
131356f6debSmrg   In addition, if you use an unusual directory layout you can give
132356f6debSmrgoptions like `--bindir=DIR' to specify different values for particular
133356f6debSmrgkinds of files.  Run `configure --help' for a list of the directories
134356f6debSmrgyou can set and what kinds of files go in them.
135356f6debSmrg
136356f6debSmrg   If the package supports it, you can cause programs to be installed
137356f6debSmrgwith an extra prefix or suffix on their names by giving `configure' the
138356f6debSmrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
139356f6debSmrg
140356f6debSmrgOptional Features
141356f6debSmrg=================
142356f6debSmrg
143356f6debSmrg   Some packages pay attention to `--enable-FEATURE' options to
144356f6debSmrg`configure', where FEATURE indicates an optional part of the package.
145356f6debSmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
146356f6debSmrgis something like `gnu-as' or `x' (for the X Window System).  The
147356f6debSmrg`README' should mention any `--enable-' and `--with-' options that the
148356f6debSmrgpackage recognizes.
149356f6debSmrg
150356f6debSmrg   For packages that use the X Window System, `configure' can usually
151356f6debSmrgfind the X include and library files automatically, but if it doesn't,
152356f6debSmrgyou can use the `configure' options `--x-includes=DIR' and
153356f6debSmrg`--x-libraries=DIR' to specify their locations.
154356f6debSmrg
155356f6debSmrgParticular systems
156356f6debSmrg==================
157356f6debSmrg
158356f6debSmrg   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
159356f6debSmrgCC is not installed, it is recommended to use the following options in
160356f6debSmrgorder to use an ANSI C compiler:
161356f6debSmrg
162356f6debSmrg     ./configure CC="cc -Ae"
163356f6debSmrg
164356f6debSmrgand if that doesn't work, install pre-built binaries of GCC for HP-UX.
165356f6debSmrg
166356f6debSmrg   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
167356f6debSmrgparse its `<wchar.h>' header file.  The option `-nodtk' can be used as
168356f6debSmrga workaround.  If GNU CC is not installed, it is therefore recommended
169356f6debSmrgto try
170356f6debSmrg
171356f6debSmrg     ./configure CC="cc"
172356f6debSmrg
173356f6debSmrgand if that doesn't work, try
174356f6debSmrg
175356f6debSmrg     ./configure CC="cc -nodtk"
176356f6debSmrg
177356f6debSmrgSpecifying the System Type
178356f6debSmrg==========================
179356f6debSmrg
180356f6debSmrg   There may be some features `configure' cannot figure out
181356f6debSmrgautomatically, but needs to determine by the type of machine the package
182356f6debSmrgwill run on.  Usually, assuming the package is built to be run on the
183356f6debSmrg_same_ architectures, `configure' can figure that out, but if it prints
184356f6debSmrga message saying it cannot guess the machine type, give it the
185356f6debSmrg`--build=TYPE' option.  TYPE can either be a short name for the system
186356f6debSmrgtype, such as `sun4', or a canonical name which has the form:
187356f6debSmrg
188356f6debSmrg     CPU-COMPANY-SYSTEM
189356f6debSmrg
190356f6debSmrgwhere SYSTEM can have one of these forms:
191356f6debSmrg
192356f6debSmrg     OS KERNEL-OS
193356f6debSmrg
194356f6debSmrg   See the file `config.sub' for the possible values of each field.  If
195356f6debSmrg`config.sub' isn't included in this package, then this package doesn't
196356f6debSmrgneed to know the machine type.
197356f6debSmrg
198356f6debSmrg   If you are _building_ compiler tools for cross-compiling, you should
199356f6debSmrguse the option `--target=TYPE' to select the type of system they will
200356f6debSmrgproduce code for.
201356f6debSmrg
202356f6debSmrg   If you want to _use_ a cross compiler, that generates code for a
203356f6debSmrgplatform different from the build platform, you should specify the
204356f6debSmrg"host" platform (i.e., that on which the generated programs will
205356f6debSmrgeventually be run) with `--host=TYPE'.
206356f6debSmrg
207356f6debSmrgSharing Defaults
208356f6debSmrg================
209356f6debSmrg
210356f6debSmrg   If you want to set default values for `configure' scripts to share,
211356f6debSmrgyou can create a site shell script called `config.site' that gives
212356f6debSmrgdefault values for variables like `CC', `cache_file', and `prefix'.
213356f6debSmrg`configure' looks for `PREFIX/share/config.site' if it exists, then
214356f6debSmrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
215356f6debSmrg`CONFIG_SITE' environment variable to the location of the site script.
216356f6debSmrgA warning: not all `configure' scripts look for a site script.
217356f6debSmrg
218356f6debSmrgDefining Variables
219356f6debSmrg==================
220356f6debSmrg
221356f6debSmrg   Variables not defined in a site shell script can be set in the
222356f6debSmrgenvironment passed to `configure'.  However, some packages may run
223356f6debSmrgconfigure again during the build, and the customized values of these
224356f6debSmrgvariables may be lost.  In order to avoid this problem, you should set
225356f6debSmrgthem in the `configure' command line, using `VAR=value'.  For example:
226356f6debSmrg
227356f6debSmrg     ./configure CC=/usr/local2/bin/gcc
228356f6debSmrg
229356f6debSmrgcauses the specified `gcc' to be used as the C compiler (unless it is
230356f6debSmrgoverridden in the site shell script).
231356f6debSmrg
232356f6debSmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to
233356f6debSmrgan Autoconf bug.  Until the bug is fixed you can use this workaround:
234356f6debSmrg
235356f6debSmrg     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
236356f6debSmrg
237356f6debSmrg`configure' Invocation
238356f6debSmrg======================
239356f6debSmrg
240356f6debSmrg   `configure' recognizes the following options to control how it
241356f6debSmrgoperates.
242356f6debSmrg
243356f6debSmrg`--help'
244356f6debSmrg`-h'
245356f6debSmrg     Print a summary of all of the options to `configure', and exit.
246356f6debSmrg
247356f6debSmrg`--help=short'
248356f6debSmrg`--help=recursive'
249356f6debSmrg     Print a summary of the options unique to this package's
250356f6debSmrg     `configure', and exit.  The `short' variant lists options used
251356f6debSmrg     only in the top level, while the `recursive' variant lists options
252356f6debSmrg     also present in any nested packages.
253356f6debSmrg
254356f6debSmrg`--version'
255356f6debSmrg`-V'
256356f6debSmrg     Print the version of Autoconf used to generate the `configure'
257356f6debSmrg     script, and exit.
258356f6debSmrg
259356f6debSmrg`--cache-file=FILE'
260356f6debSmrg     Enable the cache: use and save the results of the tests in FILE,
261356f6debSmrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
262356f6debSmrg     disable caching.
263356f6debSmrg
264356f6debSmrg`--config-cache'
265356f6debSmrg`-C'
266356f6debSmrg     Alias for `--cache-file=config.cache'.
267356f6debSmrg
268356f6debSmrg`--quiet'
269356f6debSmrg`--silent'
270356f6debSmrg`-q'
271356f6debSmrg     Do not print messages saying which checks are being made.  To
272356f6debSmrg     suppress all normal output, redirect it to `/dev/null' (any error
273356f6debSmrg     messages will still be shown).
274356f6debSmrg
275356f6debSmrg`--srcdir=DIR'
276356f6debSmrg     Look for the package's source code in directory DIR.  Usually
277356f6debSmrg     `configure' can determine that directory automatically.
278356f6debSmrg
279356f6debSmrg`--prefix=DIR'
280356f6debSmrg     Use DIR as the installation prefix.  *Note Installation Names::
281356f6debSmrg     for more details, including other options available for fine-tuning
282356f6debSmrg     the installation locations.
283356f6debSmrg
284356f6debSmrg`--no-create'
285356f6debSmrg`-n'
286356f6debSmrg     Run the configure checks, but stop before creating any output
287356f6debSmrg     files.
288356f6debSmrg
289356f6debSmrg`configure' also accepts some other, not widely useful, options.  Run
290356f6debSmrg`configure --help' for more details.
291356f6debSmrg
292