Blame INSTALL

Packit b27855
Basic Installation
Packit b27855
==================
Packit b27855
Packit b27855
   These are generic installation instructions.
Packit b27855
Packit b27855
   The `configure' shell script attempts to guess correct values for
Packit b27855
various system-dependent variables used during compilation.  It uses
Packit b27855
those values to create a `Makefile' in each directory of the package.
Packit b27855
It may also create one or more `.h' files containing system-dependent
Packit b27855
definitions.  Finally, it creates a shell script `config.status' that
Packit b27855
you can run in the future to recreate the current configuration, a file
Packit b27855
`config.cache' that saves the results of its tests to speed up
Packit b27855
reconfiguring, and a file `config.log' containing compiler output
Packit b27855
(useful mainly for debugging `configure').
Packit b27855
Packit b27855
   If you need to do unusual things to compile the package, please try
Packit b27855
to figure out how `configure' could check whether to do them, and mail
Packit b27855
diffs or instructions to the address given in the `README' so they can
Packit b27855
be considered for the next release.  If at some point `config.cache'
Packit b27855
contains results you don't want to keep, you may remove or edit it.
Packit b27855
Packit b27855
   The file `configure.ac' is used to create `configure' by a program
Packit b27855
called `autoconf'.  You only need `configure.ac' if you want to change
Packit b27855
it or regenerate `configure' using a newer version of `autoconf'.
Packit b27855
Packit b27855
The simplest way to compile this package is:
Packit b27855
Packit b27855
  1. `cd' to the directory containing the package's source code and type
Packit b27855
     `./configure' to configure the package for your system.  If you're
Packit b27855
     using `csh' on an old version of System V, you might need to type
Packit b27855
     `sh ./configure' instead to prevent `csh' from trying to execute
Packit b27855
     `configure' itself.
Packit b27855
Packit b27855
     Running `configure' takes a while.  While running, it prints some
Packit b27855
     messages telling which features it is checking for.
Packit b27855
Packit b27855
  2. Type `make' to compile the package.
Packit b27855
Packit b27855
  3. Optionally, type `make check' to run any self-tests that come with
Packit b27855
     the package.
Packit b27855
Packit b27855
  4. Type `make install' to install the programs and any data files and
Packit b27855
     documentation.
Packit b27855
Packit b27855
  5. You can remove the program binaries and object files from the
Packit b27855
     source code directory by typing `make clean'.  To also remove the
Packit b27855
     files that `configure' created (so you can compile the package for
Packit b27855
     a different kind of computer), type `make distclean'.  There is
Packit b27855
     also a `make maintainer-clean' target, but that is intended mainly
Packit b27855
     for the package's developers.  If you use it, you may have to get
Packit b27855
     all sorts of other programs in order to regenerate files that came
Packit b27855
     with the distribution.
Packit b27855
Packit b27855
Compilers and Options
Packit b27855
=====================
Packit b27855
Packit b27855
   Some systems require unusual options for compilation or linking that
Packit b27855
the `configure' script does not know about.  You can give `configure'
Packit b27855
initial values for variables by setting them in the environment.  Using
Packit b27855
a Bourne-compatible shell, you can do that on the command line like
Packit b27855
this:
Packit b27855
     CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
Packit b27855
Packit b27855
Or on systems that have the `env' program, you can do it like this:
Packit b27855
     env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
Packit b27855
Packit b27855
Compiling For Multiple Architectures
Packit b27855
====================================
Packit b27855
Packit b27855
   You can compile the package for more than one kind of computer at the
Packit b27855
same time, by placing the object files for each architecture in their
Packit b27855
own directory.  To do this, you must use a version of `make' that
Packit b27855
supports the `VPATH' variable, such as GNU `make'.  `cd' to the
Packit b27855
directory where you want the object files and executables to go and run
Packit b27855
the `configure' script.  `configure' automatically checks for the
Packit b27855
source code in the directory that `configure' is in and in `..'.
Packit b27855
Packit b27855
   If you have to use a `make' that does not supports the `VPATH'
Packit b27855
variable, you have to compile the package for one architecture at a time
Packit b27855
in the source code directory.  After you have installed the package for
Packit b27855
one architecture, use `make distclean' before reconfiguring for another
Packit b27855
architecture.
Packit b27855
Packit b27855
   On MacOS X 10.5 and later systems, you can create libraries and
Packit b27855
executables that work on multiple system types--known as "fat" or
Packit b27855
"universal" binaries--by specifying multiple '-arch' options to the
Packit b27855
compiler but only a single '-arch' option to the preprocessor.  Like
Packit b27855
this:
Packit b27855
Packit b27855
     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
Packit b27855
                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
Packit b27855
                 CPP="gcc -E" CXXCPP="g++ -E"
Packit b27855
Packit b27855
   This is not guaranteed to produce working output in all cases.  You
Packit b27855
may have to build one architecture at a time and combine the results
Packit b27855
using the 'lipo' tool if you have problems.
Packit b27855
Packit b27855
Installation Names
Packit b27855
==================
Packit b27855
Packit b27855
   By default, `make install' will install the package's files in
Packit b27855
`/usr/local/bin', `/usr/local/man', etc.  You can specify an
Packit b27855
installation prefix other than `/usr/local' by giving `configure' the
Packit b27855
option `--prefix=PATH'.
Packit b27855
Packit b27855
   You can specify separate installation prefixes for
Packit b27855
architecture-specific files and architecture-independent files.  If you
Packit b27855
give `configure' the option `--exec-prefix=PATH', the package will use
Packit b27855
PATH as the prefix for installing programs and libraries.
Packit b27855
Documentation and other data files will still use the regular prefix.
Packit b27855
Packit b27855
   In addition, if you use an unusual directory layout you can give
Packit b27855
options like `--bindir=PATH' to specify different values for particular
Packit b27855
kinds of files.  Run `configure --help' for a list of the directories
Packit b27855
you can set and what kinds of files go in them.
Packit b27855
Packit b27855
   If the package supports it, you can cause programs to be installed
Packit b27855
with an extra prefix or suffix on their names by giving `configure' the
Packit b27855
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Packit b27855
Packit b27855
Optional Features
Packit b27855
=================
Packit b27855
Packit b27855
   Some packages pay attention to `--enable-FEATURE' options to
Packit b27855
`configure', where FEATURE indicates an optional part of the package.
Packit b27855
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
Packit b27855
is something like `gnu-as' or `x' (for the X Window System).  The
Packit b27855
`README' should mention any `--enable-' and `--with-' options that the
Packit b27855
package recognizes.
Packit b27855
Packit b27855
   For packages that use the X Window System, `configure' can usually
Packit b27855
find the X include and library files automatically, but if it doesn't,
Packit b27855
you can use the `configure' options `--x-includes=DIR' and
Packit b27855
`--x-libraries=DIR' to specify their locations.
Packit b27855
Packit b27855
Particular Systems
Packit b27855
==================
Packit b27855
Packit b27855
   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU CC
Packit b27855
is not installed, it is recommended to use the following options in order
Packit b27855
to use an ANSI C compiler:
Packit b27855
Packit b27855
     ./configure CC="cc -Ae"
Packit b27855
Packit b27855
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
Packit b27855
Packit b27855
   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
Packit b27855
parse its `<wchar.h>' header file.  The option `-nodtk' can be used as
Packit b27855
a workaround.  If GNU CC is not installed, it is therefore recommended
Packit b27855
to try
Packit b27855
Packit b27855
     ./configure CC="cc"
Packit b27855
Packit b27855
and if that doesn't work, try
Packit b27855
Packit b27855
     ./configure CC="cc -nodtk"
Packit b27855
Packit b27855
   On AIX 3, the C include files by default don't define some necessary
Packit b27855
prototype declarations.  If GNU CC is not installed, it is recommended to
Packit b27855
use the following options:
Packit b27855
Packit b27855
     ./configure CC="xlc -D_ALL_SOURCE"
Packit b27855
Packit b27855
   On BeOS, user installed software goes in /boot/home/config, not
Packit b27855
/usr/local.  It is recommended to use the following options:
Packit b27855
Packit b27855
     ./configure --prefix=/boot/home/config
Packit b27855
Packit b27855
Specifying the System Type
Packit b27855
==========================
Packit b27855
Packit b27855
   There may be some features `configure' can not figure out
Packit b27855
automatically, but needs to determine by the type of host the package
Packit b27855
will run on.  Usually `configure' can figure that out, but if it prints
Packit b27855
a message saying it can not guess the host type, give it the
Packit b27855
`--host=TYPE' option.  TYPE can either be a short name for the system
Packit b27855
type, such as `sun4', or a canonical name with three fields:
Packit b27855
     CPU-COMPANY-SYSTEM
Packit b27855
Packit b27855
See the file `config.sub' for the possible values of each field.  If
Packit b27855
`config.sub' isn't included in this package, then this package doesn't
Packit b27855
need to know the host type.
Packit b27855
Packit b27855
   If you are building compiler tools for cross-compiling, you can also
Packit b27855
use the `--target=TYPE' option to select the type of system they will
Packit b27855
produce code for and the `--build=TYPE' option to select the type of
Packit b27855
system on which you are compiling the package.
Packit b27855
Packit b27855
Sharing Defaults
Packit b27855
================
Packit b27855
Packit b27855
   If you want to set default values for `configure' scripts to share,
Packit b27855
you can create a site shell script called `config.site' that gives
Packit b27855
default values for variables like `CC', `cache_file', and `prefix'.
Packit b27855
`configure' looks for `PREFIX/share/config.site' if it exists, then
Packit b27855
`PREFIX/etc/config.site' if it exists.  Or, you can set the
Packit b27855
`CONFIG_SITE' environment variable to the location of the site script.
Packit b27855
A warning: not all `configure' scripts look for a site script.
Packit b27855
Packit b27855
Operation Controls
Packit b27855
==================
Packit b27855
Packit b27855
   `configure' recognizes the following options to control how it
Packit b27855
operates.
Packit b27855
Packit b27855
`--cache-file=FILE'
Packit b27855
     Use and save the results of the tests in FILE instead of
Packit b27855
     `./config.cache'.  Set FILE to `/dev/null' to disable caching, for
Packit b27855
     debugging `configure'.
Packit b27855
Packit b27855
`--help'
Packit b27855
     Print a summary of the options to `configure', and exit.
Packit b27855
Packit b27855
`--quiet'
Packit b27855
`--silent'
Packit b27855
`-q'
Packit b27855
     Do not print messages saying which checks are being made.  To
Packit b27855
     suppress all normal output, redirect it to `/dev/null' (any error
Packit b27855
     messages will still be shown).
Packit b27855
Packit b27855
`--srcdir=DIR'
Packit b27855
     Look for the package's source code in directory DIR.  Usually
Packit b27855
     `configure' can determine that directory automatically.
Packit b27855
Packit b27855
`--version'
Packit b27855
     Print the version of Autoconf used to generate the `configure'
Packit b27855
     script, and exit.
Packit b27855
Packit b27855
`configure' also accepts some other, not widely useful, options.
Packit b27855