1b92e825aSmrgInstallation Instructions
2b92e825aSmrg*************************
3b92e825aSmrg
4b92e825aSmrgCopyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
5b92e825aSmrg2006, 2007, 2008 Free Software Foundation, Inc.
6b92e825aSmrg
7b92e825aSmrg   This file is free documentation; the Free Software Foundation gives
8b92e825aSmrgunlimited permission to copy, distribute and modify it.
9b92e825aSmrg
10b92e825aSmrgBasic Installation
11b92e825aSmrg==================
12b92e825aSmrg
13b92e825aSmrg   Briefly, the shell commands `./configure; make; make install' should
14b92e825aSmrgconfigure, build, and install this package.  The following
15b92e825aSmrgmore-detailed instructions are generic; see the `README' file for
16b92e825aSmrginstructions specific to this package.
17b92e825aSmrg
18b92e825aSmrg   The `configure' shell script attempts to guess correct values for
19b92e825aSmrgvarious system-dependent variables used during compilation.  It uses
20b92e825aSmrgthose values to create a `Makefile' in each directory of the package.
21b92e825aSmrgIt may also create one or more `.h' files containing system-dependent
22b92e825aSmrgdefinitions.  Finally, it creates a shell script `config.status' that
23b92e825aSmrgyou can run in the future to recreate the current configuration, and a
24b92e825aSmrgfile `config.log' containing compiler output (useful mainly for
25b92e825aSmrgdebugging `configure').
26b92e825aSmrg
27b92e825aSmrg   It can also use an optional file (typically called `config.cache'
28b92e825aSmrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
29b92e825aSmrgthe results of its tests to speed up reconfiguring.  Caching is
30b92e825aSmrgdisabled by default to prevent problems with accidental use of stale
31b92e825aSmrgcache files.
32b92e825aSmrg
33b92e825aSmrg   If you need to do unusual things to compile the package, please try
34b92e825aSmrgto figure out how `configure' could check whether to do them, and mail
35b92e825aSmrgdiffs or instructions to the address given in the `README' so they can
36b92e825aSmrgbe considered for the next release.  If you are using the cache, and at
37b92e825aSmrgsome point `config.cache' contains results you don't want to keep, you
38b92e825aSmrgmay remove or edit it.
39b92e825aSmrg
40b92e825aSmrg   The file `configure.ac' (or `configure.in') is used to create
41b92e825aSmrg`configure' by a program called `autoconf'.  You need `configure.ac' if
42b92e825aSmrgyou want to change it or regenerate `configure' using a newer version
43b92e825aSmrgof `autoconf'.
44b92e825aSmrg
45b92e825aSmrgThe simplest way to compile this package is:
46b92e825aSmrg
47b92e825aSmrg  1. `cd' to the directory containing the package's source code and type
48b92e825aSmrg     `./configure' to configure the package for your system.
49b92e825aSmrg
50b92e825aSmrg     Running `configure' might take a while.  While running, it prints
51b92e825aSmrg     some messages telling which features it is checking for.
52b92e825aSmrg
53b92e825aSmrg  2. Type `make' to compile the package.
54b92e825aSmrg
55b92e825aSmrg  3. Optionally, type `make check' to run any self-tests that come with
56b92e825aSmrg     the package.
57b92e825aSmrg
58b92e825aSmrg  4. Type `make install' to install the programs and any data files and
59b92e825aSmrg     documentation.
60b92e825aSmrg
61b92e825aSmrg  5. You can remove the program binaries and object files from the
62b92e825aSmrg     source code directory by typing `make clean'.  To also remove the
63b92e825aSmrg     files that `configure' created (so you can compile the package for
64b92e825aSmrg     a different kind of computer), type `make distclean'.  There is
65b92e825aSmrg     also a `make maintainer-clean' target, but that is intended mainly
66b92e825aSmrg     for the package's developers.  If you use it, you may have to get
67b92e825aSmrg     all sorts of other programs in order to regenerate files that came
68b92e825aSmrg     with the distribution.
69b92e825aSmrg
70b92e825aSmrg  6. Often, you can also type `make uninstall' to remove the installed
71b92e825aSmrg     files again.
72b92e825aSmrg
73b92e825aSmrgCompilers and Options
74b92e825aSmrg=====================
75b92e825aSmrg
76b92e825aSmrg   Some systems require unusual options for compilation or linking that
77b92e825aSmrgthe `configure' script does not know about.  Run `./configure --help'
78b92e825aSmrgfor details on some of the pertinent environment variables.
79b92e825aSmrg
80b92e825aSmrg   You can give `configure' initial values for configuration parameters
81b92e825aSmrgby setting variables in the command line or in the environment.  Here
82b92e825aSmrgis an example:
83b92e825aSmrg
84b92e825aSmrg     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
85b92e825aSmrg
86b92e825aSmrg   *Note Defining Variables::, for more details.
87b92e825aSmrg
88b92e825aSmrgCompiling For Multiple Architectures
89b92e825aSmrg====================================
90b92e825aSmrg
91b92e825aSmrg   You can compile the package for more than one kind of computer at the
92b92e825aSmrgsame time, by placing the object files for each architecture in their
93b92e825aSmrgown directory.  To do this, you can use GNU `make'.  `cd' to the
94b92e825aSmrgdirectory where you want the object files and executables to go and run
95b92e825aSmrgthe `configure' script.  `configure' automatically checks for the
96b92e825aSmrgsource code in the directory that `configure' is in and in `..'.
97b92e825aSmrg
98b92e825aSmrg   With a non-GNU `make', it is safer to compile the package for one
99b92e825aSmrgarchitecture at a time in the source code directory.  After you have
100b92e825aSmrginstalled the package for one architecture, use `make distclean' before
101b92e825aSmrgreconfiguring for another architecture.
102b92e825aSmrg
103b92e825aSmrg   On MacOS X 10.5 and later systems, you can create libraries and
104b92e825aSmrgexecutables that work on multiple system types--known as "fat" or
105b92e825aSmrg"universal" binaries--by specifying multiple `-arch' options to the
106b92e825aSmrgcompiler but only a single `-arch' option to the preprocessor.  Like
107b92e825aSmrgthis:
108b92e825aSmrg
109b92e825aSmrg     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
110b92e825aSmrg                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
111b92e825aSmrg                 CPP="gcc -E" CXXCPP="g++ -E"
112b92e825aSmrg
113b92e825aSmrg   This is not guaranteed to produce working output in all cases, you
114b92e825aSmrgmay have to build one architecture at a time and combine the results
115b92e825aSmrgusing the `lipo' tool if you have problems.
116b92e825aSmrg
117b92e825aSmrgInstallation Names
118b92e825aSmrg==================
119b92e825aSmrg
120b92e825aSmrg   By default, `make install' installs the package's commands under
121b92e825aSmrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
122b92e825aSmrgcan specify an installation prefix other than `/usr/local' by giving
123b92e825aSmrg`configure' the option `--prefix=PREFIX'.
124b92e825aSmrg
125b92e825aSmrg   You can specify separate installation prefixes for
126b92e825aSmrgarchitecture-specific files and architecture-independent files.  If you
127b92e825aSmrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
128b92e825aSmrgPREFIX as the prefix for installing programs and libraries.
129b92e825aSmrgDocumentation and other data files still use the regular prefix.
130b92e825aSmrg
131b92e825aSmrg   In addition, if you use an unusual directory layout you can give
132b92e825aSmrgoptions like `--bindir=DIR' to specify different values for particular
133b92e825aSmrgkinds of files.  Run `configure --help' for a list of the directories
134b92e825aSmrgyou can set and what kinds of files go in them.
135b92e825aSmrg
136b92e825aSmrg   If the package supports it, you can cause programs to be installed
137b92e825aSmrgwith an extra prefix or suffix on their names by giving `configure' the
138b92e825aSmrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
139b92e825aSmrg
140b92e825aSmrgOptional Features
141b92e825aSmrg=================
142b92e825aSmrg
143b92e825aSmrg   Some packages pay attention to `--enable-FEATURE' options to
144b92e825aSmrg`configure', where FEATURE indicates an optional part of the package.
145b92e825aSmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
146b92e825aSmrgis something like `gnu-as' or `x' (for the X Window System).  The
147b92e825aSmrg`README' should mention any `--enable-' and `--with-' options that the
148b92e825aSmrgpackage recognizes.
149b92e825aSmrg
150b92e825aSmrg   For packages that use the X Window System, `configure' can usually
151b92e825aSmrgfind the X include and library files automatically, but if it doesn't,
152b92e825aSmrgyou can use the `configure' options `--x-includes=DIR' and
153b92e825aSmrg`--x-libraries=DIR' to specify their locations.
154b92e825aSmrg
155b92e825aSmrgParticular systems
156b92e825aSmrg==================
157b92e825aSmrg
158b92e825aSmrg   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
159b92e825aSmrgCC is not installed, it is recommended to use the following options in
160b92e825aSmrgorder to use an ANSI C compiler:
161b92e825aSmrg
162b92e825aSmrg     ./configure CC="cc -Ae"
163b92e825aSmrg
164b92e825aSmrgand if that doesn't work, install pre-built binaries of GCC for HP-UX.
165b92e825aSmrg
166b92e825aSmrg   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
167b92e825aSmrgparse its `<wchar.h>' header file.  The option `-nodtk' can be used as
168b92e825aSmrga workaround.  If GNU CC is not installed, it is therefore recommended
169b92e825aSmrgto try
170b92e825aSmrg
171b92e825aSmrg     ./configure CC="cc"
172b92e825aSmrg
173b92e825aSmrgand if that doesn't work, try
174b92e825aSmrg
175b92e825aSmrg     ./configure CC="cc -nodtk"
176b92e825aSmrg
177b92e825aSmrgSpecifying the System Type
178b92e825aSmrg==========================
179b92e825aSmrg
180b92e825aSmrg   There may be some features `configure' cannot figure out
181b92e825aSmrgautomatically, but needs to determine by the type of machine the package
182b92e825aSmrgwill run on.  Usually, assuming the package is built to be run on the
183b92e825aSmrg_same_ architectures, `configure' can figure that out, but if it prints
184b92e825aSmrga message saying it cannot guess the machine type, give it the
185b92e825aSmrg`--build=TYPE' option.  TYPE can either be a short name for the system
186b92e825aSmrgtype, such as `sun4', or a canonical name which has the form:
187b92e825aSmrg
188b92e825aSmrg     CPU-COMPANY-SYSTEM
189b92e825aSmrg
190b92e825aSmrgwhere SYSTEM can have one of these forms:
191b92e825aSmrg
192b92e825aSmrg     OS KERNEL-OS
193b92e825aSmrg
194b92e825aSmrg   See the file `config.sub' for the possible values of each field.  If
195b92e825aSmrg`config.sub' isn't included in this package, then this package doesn't
196b92e825aSmrgneed to know the machine type.
197b92e825aSmrg
198b92e825aSmrg   If you are _building_ compiler tools for cross-compiling, you should
199b92e825aSmrguse the option `--target=TYPE' to select the type of system they will
200b92e825aSmrgproduce code for.
201b92e825aSmrg
202b92e825aSmrg   If you want to _use_ a cross compiler, that generates code for a
203b92e825aSmrgplatform different from the build platform, you should specify the
204b92e825aSmrg"host" platform (i.e., that on which the generated programs will
205b92e825aSmrgeventually be run) with `--host=TYPE'.
206b92e825aSmrg
207b92e825aSmrgSharing Defaults
208b92e825aSmrg================
209b92e825aSmrg
210b92e825aSmrg   If you want to set default values for `configure' scripts to share,
211b92e825aSmrgyou can create a site shell script called `config.site' that gives
212b92e825aSmrgdefault values for variables like `CC', `cache_file', and `prefix'.
213b92e825aSmrg`configure' looks for `PREFIX/share/config.site' if it exists, then
214b92e825aSmrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
215b92e825aSmrg`CONFIG_SITE' environment variable to the location of the site script.
216b92e825aSmrgA warning: not all `configure' scripts look for a site script.
217b92e825aSmrg
218b92e825aSmrgDefining Variables
219b92e825aSmrg==================
220b92e825aSmrg
221b92e825aSmrg   Variables not defined in a site shell script can be set in the
222b92e825aSmrgenvironment passed to `configure'.  However, some packages may run
223b92e825aSmrgconfigure again during the build, and the customized values of these
224b92e825aSmrgvariables may be lost.  In order to avoid this problem, you should set
225b92e825aSmrgthem in the `configure' command line, using `VAR=value'.  For example:
226b92e825aSmrg
227b92e825aSmrg     ./configure CC=/usr/local2/bin/gcc
228b92e825aSmrg
229b92e825aSmrgcauses the specified `gcc' to be used as the C compiler (unless it is
230b92e825aSmrgoverridden in the site shell script).
231b92e825aSmrg
232b92e825aSmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to
233b92e825aSmrgan Autoconf bug.  Until the bug is fixed you can use this workaround:
234b92e825aSmrg
235b92e825aSmrg     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
236b92e825aSmrg
237b92e825aSmrg`configure' Invocation
238b92e825aSmrg======================
239b92e825aSmrg
240b92e825aSmrg   `configure' recognizes the following options to control how it
241b92e825aSmrgoperates.
242b92e825aSmrg
243b92e825aSmrg`--help'
244b92e825aSmrg`-h'
245b92e825aSmrg     Print a summary of all of the options to `configure', and exit.
246b92e825aSmrg
247b92e825aSmrg`--help=short'
248b92e825aSmrg`--help=recursive'
249b92e825aSmrg     Print a summary of the options unique to this package's
250b92e825aSmrg     `configure', and exit.  The `short' variant lists options used
251b92e825aSmrg     only in the top level, while the `recursive' variant lists options
252b92e825aSmrg     also present in any nested packages.
253b92e825aSmrg
254b92e825aSmrg`--version'
255b92e825aSmrg`-V'
256b92e825aSmrg     Print the version of Autoconf used to generate the `configure'
257b92e825aSmrg     script, and exit.
258b92e825aSmrg
259b92e825aSmrg`--cache-file=FILE'
260b92e825aSmrg     Enable the cache: use and save the results of the tests in FILE,
261b92e825aSmrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
262b92e825aSmrg     disable caching.
263b92e825aSmrg
264b92e825aSmrg`--config-cache'
265b92e825aSmrg`-C'
266b92e825aSmrg     Alias for `--cache-file=config.cache'.
267b92e825aSmrg
268b92e825aSmrg`--quiet'
269b92e825aSmrg`--silent'
270b92e825aSmrg`-q'
271b92e825aSmrg     Do not print messages saying which checks are being made.  To
272b92e825aSmrg     suppress all normal output, redirect it to `/dev/null' (any error
273b92e825aSmrg     messages will still be shown).
274b92e825aSmrg
275b92e825aSmrg`--srcdir=DIR'
276b92e825aSmrg     Look for the package's source code in directory DIR.  Usually
277b92e825aSmrg     `configure' can determine that directory automatically.
278b92e825aSmrg
279b92e825aSmrg`--prefix=DIR'
280b92e825aSmrg     Use DIR as the installation prefix.  *Note Installation Names::
281b92e825aSmrg     for more details, including other options available for fine-tuning
282b92e825aSmrg     the installation locations.
283b92e825aSmrg
284b92e825aSmrg`--no-create'
285b92e825aSmrg`-n'
286b92e825aSmrg     Run the configure checks, but stop before creating any output
287b92e825aSmrg     files.
288b92e825aSmrg
289b92e825aSmrg`configure' also accepts some other, not widely useful, options.  Run
290b92e825aSmrg`configure --help' for more details.
291b92e825aSmrg
292