Blame INSTALL

Packit b749da
Installation Instructions
Packit b749da
*************************
Packit b749da
Packit b749da
Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
Packit b749da
Inc.
Packit b749da
Packit b749da
   Copying and distribution of this file, with or without modification,
Packit b749da
are permitted in any medium without royalty provided the copyright
Packit b749da
notice and this notice are preserved.  This file is offered as-is,
Packit b749da
without warranty of any kind.
Packit b749da
Packit b749da
Basic Installation
Packit b749da
==================
Packit b749da
Packit b749da
   Briefly, the shell commands `./configure; make; make install' should
Packit b749da
configure, build, and install this package.  The following
Packit b749da
more-detailed instructions are generic; see the `README' file for
Packit b749da
instructions specific to this package.  Some packages provide this
Packit b749da
`INSTALL' file but do not implement all of the features documented
Packit b749da
below.  The lack of an optional feature in a given package is not
Packit b749da
necessarily a bug.  More recommendations for GNU packages can be found
Packit b749da
in *note Makefile Conventions: (standards)Makefile Conventions.
Packit b749da
Packit b749da
   The `configure' shell script attempts to guess correct values for
Packit b749da
various system-dependent variables used during compilation.  It uses
Packit b749da
those values to create a `Makefile' in each directory of the package.
Packit b749da
It may also create one or more `.h' files containing system-dependent
Packit b749da
definitions.  Finally, it creates a shell script `config.status' that
Packit b749da
you can run in the future to recreate the current configuration, and a
Packit b749da
file `config.log' containing compiler output (useful mainly for
Packit b749da
debugging `configure').
Packit b749da
Packit b749da
   It can also use an optional file (typically called `config.cache'
Packit b749da
and enabled with `--cache-file=config.cache' or simply `-C') that saves
Packit b749da
the results of its tests to speed up reconfiguring.  Caching is
Packit b749da
disabled by default to prevent problems with accidental use of stale
Packit b749da
cache files.
Packit b749da
Packit b749da
   If you need to do unusual things to compile the package, please try
Packit b749da
to figure out how `configure' could check whether to do them, and mail
Packit b749da
diffs or instructions to the address given in the `README' so they can
Packit b749da
be considered for the next release.  If you are using the cache, and at
Packit b749da
some point `config.cache' contains results you don't want to keep, you
Packit b749da
may remove or edit it.
Packit b749da
Packit b749da
   The file `configure.ac' (or `configure.in') is used to create
Packit b749da
`configure' by a program called `autoconf'.  You need `configure.ac' if
Packit b749da
you want to change it or regenerate `configure' using a newer version
Packit b749da
of `autoconf'.
Packit b749da
Packit b749da
   The simplest way to compile this package is:
Packit b749da
Packit b749da
  1. `cd' to the directory containing the package's source code and type
Packit b749da
     `./configure' to configure the package for your system.
Packit b749da
Packit b749da
     Running `configure' might take a while.  While running, it prints
Packit b749da
     some messages telling which features it is checking for.
Packit b749da
Packit b749da
  2. Type `make' to compile the package.
Packit b749da
Packit b749da
  3. Optionally, type `make check' to run any self-tests that come with
Packit b749da
     the package, generally using the just-built uninstalled binaries.
Packit b749da
Packit b749da
  4. Type `make install' to install the programs and any data files and
Packit b749da
     documentation.  When installing into a prefix owned by root, it is
Packit b749da
     recommended that the package be configured and built as a regular
Packit b749da
     user, and only the `make install' phase executed with root
Packit b749da
     privileges.
Packit b749da
Packit b749da
  5. Optionally, type `make installcheck' to repeat any self-tests, but
Packit b749da
     this time using the binaries in their final installed location.
Packit b749da
     This target does not install anything.  Running this target as a
Packit b749da
     regular user, particularly if the prior `make install' required
Packit b749da
     root privileges, verifies that the installation completed
Packit b749da
     correctly.
Packit b749da
Packit b749da
  6. You can remove the program binaries and object files from the
Packit b749da
     source code directory by typing `make clean'.  To also remove the
Packit b749da
     files that `configure' created (so you can compile the package for
Packit b749da
     a different kind of computer), type `make distclean'.  There is
Packit b749da
     also a `make maintainer-clean' target, but that is intended mainly
Packit b749da
     for the package's developers.  If you use it, you may have to get
Packit b749da
     all sorts of other programs in order to regenerate files that came
Packit b749da
     with the distribution.
Packit b749da
Packit b749da
  7. Often, you can also type `make uninstall' to remove the installed
Packit b749da
     files again.  In practice, not all packages have tested that
Packit b749da
     uninstallation works correctly, even though it is required by the
Packit b749da
     GNU Coding Standards.
Packit b749da
Packit b749da
  8. Some packages, particularly those that use Automake, provide `make
Packit b749da
     distcheck', which can by used by developers to test that all other
Packit b749da
     targets like `make install' and `make uninstall' work correctly.
Packit b749da
     This target is generally not run by end users.
Packit b749da
Packit b749da
Compilers and Options
Packit b749da
=====================
Packit b749da
Packit b749da
   Some systems require unusual options for compilation or linking that
Packit b749da
the `configure' script does not know about.  Run `./configure --help'
Packit b749da
for details on some of the pertinent environment variables.
Packit b749da
Packit b749da
   You can give `configure' initial values for configuration parameters
Packit b749da
by setting variables in the command line or in the environment.  Here
Packit b749da
is an example:
Packit b749da
Packit b749da
     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
Packit b749da
Packit b749da
   *Note Defining Variables::, for more details.
Packit b749da
Packit b749da
Compiling For Multiple Architectures
Packit b749da
====================================
Packit b749da
Packit b749da
   You can compile the package for more than one kind of computer at the
Packit b749da
same time, by placing the object files for each architecture in their
Packit b749da
own directory.  To do this, you can use GNU `make'.  `cd' to the
Packit b749da
directory where you want the object files and executables to go and run
Packit b749da
the `configure' script.  `configure' automatically checks for the
Packit b749da
source code in the directory that `configure' is in and in `..'.  This
Packit b749da
is known as a "VPATH" build.
Packit b749da
Packit b749da
   With a non-GNU `make', it is safer to compile the package for one
Packit b749da
architecture at a time in the source code directory.  After you have
Packit b749da
installed the package for one architecture, use `make distclean' before
Packit b749da
reconfiguring for another architecture.
Packit b749da
Packit b749da
   On MacOS X 10.5 and later systems, you can create libraries and
Packit b749da
executables that work on multiple system types--known as "fat" or
Packit b749da
"universal" binaries--by specifying multiple `-arch' options to the
Packit b749da
compiler but only a single `-arch' option to the preprocessor.  Like
Packit b749da
this:
Packit b749da
Packit b749da
     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
Packit b749da
                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
Packit b749da
                 CPP="gcc -E" CXXCPP="g++ -E"
Packit b749da
Packit b749da
   This is not guaranteed to produce working output in all cases, you
Packit b749da
may have to build one architecture at a time and combine the results
Packit b749da
using the `lipo' tool if you have problems.
Packit b749da
Packit b749da
Installation Names
Packit b749da
==================
Packit b749da
Packit b749da
   By default, `make install' installs the package's commands under
Packit b749da
`/usr/local/bin', include files under `/usr/local/include', etc.  You
Packit b749da
can specify an installation prefix other than `/usr/local' by giving
Packit b749da
`configure' the option `--prefix=PREFIX', where PREFIX must be an
Packit b749da
absolute file name.
Packit b749da
Packit b749da
   You can specify separate installation prefixes for
Packit b749da
architecture-specific files and architecture-independent files.  If you
Packit b749da
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
Packit b749da
PREFIX as the prefix for installing programs and libraries.
Packit b749da
Documentation and other data files still use the regular prefix.
Packit b749da
Packit b749da
   In addition, if you use an unusual directory layout you can give
Packit b749da
options like `--bindir=DIR' to specify different values for particular
Packit b749da
kinds of files.  Run `configure --help' for a list of the directories
Packit b749da
you can set and what kinds of files go in them.  In general, the
Packit b749da
default for these options is expressed in terms of `${prefix}', so that
Packit b749da
specifying just `--prefix' will affect all of the other directory
Packit b749da
specifications that were not explicitly provided.
Packit b749da
Packit b749da
   The most portable way to affect installation locations is to pass the
Packit b749da
correct locations to `configure'; however, many packages provide one or
Packit b749da
both of the following shortcuts of passing variable assignments to the
Packit b749da
`make install' command line to change installation locations without
Packit b749da
having to reconfigure or recompile.
Packit b749da
Packit b749da
   The first method involves providing an override variable for each
Packit b749da
affected directory.  For example, `make install
Packit b749da
prefix=/alternate/directory' will choose an alternate location for all
Packit b749da
directory configuration variables that were expressed in terms of
Packit b749da
`${prefix}'.  Any directories that were specified during `configure',
Packit b749da
but not in terms of `${prefix}', must each be overridden at install
Packit b749da
time for the entire installation to be relocated.  The approach of
Packit b749da
makefile variable overrides for each directory variable is required by
Packit b749da
the GNU Coding Standards, and ideally causes no recompilation.
Packit b749da
However, some platforms have known limitations with the semantics of
Packit b749da
shared libraries that end up requiring recompilation when using this
Packit b749da
method, particularly noticeable in packages that use GNU Libtool.
Packit b749da
Packit b749da
   The second method involves providing the `DESTDIR' variable.  For
Packit b749da
example, `make install DESTDIR=/alternate/directory' will prepend
Packit b749da
`/alternate/directory' before all installation names.  The approach of
Packit b749da
`DESTDIR' overrides is not required by the GNU Coding Standards, and
Packit b749da
does not work on platforms that have drive letters.  On the other hand,
Packit b749da
it does better at avoiding recompilation issues, and works well even
Packit b749da
when some directory options were not specified in terms of `${prefix}'
Packit b749da
at `configure' time.
Packit b749da
Packit b749da
Optional Features
Packit b749da
=================
Packit b749da
Packit b749da
   If the package supports it, you can cause programs to be installed
Packit b749da
with an extra prefix or suffix on their names by giving `configure' the
Packit b749da
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Packit b749da
Packit b749da
   Some packages pay attention to `--enable-FEATURE' options to
Packit b749da
`configure', where FEATURE indicates an optional part of the package.
Packit b749da
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
Packit b749da
is something like `gnu-as' or `x' (for the X Window System).  The
Packit b749da
`README' should mention any `--enable-' and `--with-' options that the
Packit b749da
package recognizes.
Packit b749da
Packit b749da
   For packages that use the X Window System, `configure' can usually
Packit b749da
find the X include and library files automatically, but if it doesn't,
Packit b749da
you can use the `configure' options `--x-includes=DIR' and
Packit b749da
`--x-libraries=DIR' to specify their locations.
Packit b749da
Packit b749da
   Some packages offer the ability to configure how verbose the
Packit b749da
execution of `make' will be.  For these packages, running `./configure
Packit b749da
--enable-silent-rules' sets the default to minimal output, which can be
Packit b749da
overridden with `make V=1'; while running `./configure
Packit b749da
--disable-silent-rules' sets the default to verbose, which can be
Packit b749da
overridden with `make V=0'.
Packit b749da
Packit b749da
Particular systems
Packit b749da
==================
Packit b749da
Packit b749da
   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
Packit b749da
CC is not installed, it is recommended to use the following options in
Packit b749da
order to use an ANSI C compiler:
Packit b749da
Packit b749da
     ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
Packit b749da
Packit b749da
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
Packit b749da
Packit b749da
   HP-UX `make' updates targets which have the same time stamps as
Packit b749da
their prerequisites, which makes it generally unusable when shipped
Packit b749da
generated files such as `configure' are involved.  Use GNU `make'
Packit b749da
instead.
Packit b749da
Packit b749da
   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
Packit b749da
parse its `<wchar.h>' header file.  The option `-nodtk' can be used as
Packit b749da
a workaround.  If GNU CC is not installed, it is therefore recommended
Packit b749da
to try
Packit b749da
Packit b749da
     ./configure CC="cc"
Packit b749da
Packit b749da
and if that doesn't work, try
Packit b749da
Packit b749da
     ./configure CC="cc -nodtk"
Packit b749da
Packit b749da
   On Solaris, don't put `/usr/ucb' early in your `PATH'.  This
Packit b749da
directory contains several dysfunctional programs; working variants of
Packit b749da
these programs are available in `/usr/bin'.  So, if you need `/usr/ucb'
Packit b749da
in your `PATH', put it _after_ `/usr/bin'.
Packit b749da
Packit b749da
   On Haiku, software installed for all users goes in `/boot/common',
Packit b749da
not `/usr/local'.  It is recommended to use the following options:
Packit b749da
Packit b749da
     ./configure --prefix=/boot/common
Packit b749da
Packit b749da
Specifying the System Type
Packit b749da
==========================
Packit b749da
Packit b749da
   There may be some features `configure' cannot figure out
Packit b749da
automatically, but needs to determine by the type of machine the package
Packit b749da
will run on.  Usually, assuming the package is built to be run on the
Packit b749da
_same_ architectures, `configure' can figure that out, but if it prints
Packit b749da
a message saying it cannot guess the machine type, give it the
Packit b749da
`--build=TYPE' option.  TYPE can either be a short name for the system
Packit b749da
type, such as `sun4', or a canonical name which has the form:
Packit b749da
Packit b749da
     CPU-COMPANY-SYSTEM
Packit b749da
Packit b749da
where SYSTEM can have one of these forms:
Packit b749da
Packit b749da
     OS
Packit b749da
     KERNEL-OS
Packit b749da
Packit b749da
   See the file `config.sub' for the possible values of each field.  If
Packit b749da
`config.sub' isn't included in this package, then this package doesn't
Packit b749da
need to know the machine type.
Packit b749da
Packit b749da
   If you are _building_ compiler tools for cross-compiling, you should
Packit b749da
use the option `--target=TYPE' to select the type of system they will
Packit b749da
produce code for.
Packit b749da
Packit b749da
   If you want to _use_ a cross compiler, that generates code for a
Packit b749da
platform different from the build platform, you should specify the
Packit b749da
"host" platform (i.e., that on which the generated programs will
Packit b749da
eventually be run) with `--host=TYPE'.
Packit b749da
Packit b749da
Sharing Defaults
Packit b749da
================
Packit b749da
Packit b749da
   If you want to set default values for `configure' scripts to share,
Packit b749da
you can create a site shell script called `config.site' that gives
Packit b749da
default values for variables like `CC', `cache_file', and `prefix'.
Packit b749da
`configure' looks for `PREFIX/share/config.site' if it exists, then
Packit b749da
`PREFIX/etc/config.site' if it exists.  Or, you can set the
Packit b749da
`CONFIG_SITE' environment variable to the location of the site script.
Packit b749da
A warning: not all `configure' scripts look for a site script.
Packit b749da
Packit b749da
Defining Variables
Packit b749da
==================
Packit b749da
Packit b749da
   Variables not defined in a site shell script can be set in the
Packit b749da
environment passed to `configure'.  However, some packages may run
Packit b749da
configure again during the build, and the customized values of these
Packit b749da
variables may be lost.  In order to avoid this problem, you should set
Packit b749da
them in the `configure' command line, using `VAR=value'.  For example:
Packit b749da
Packit b749da
     ./configure CC=/usr/local2/bin/gcc
Packit b749da
Packit b749da
causes the specified `gcc' to be used as the C compiler (unless it is
Packit b749da
overridden in the site shell script).
Packit b749da
Packit b749da
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
Packit b749da
an Autoconf bug.  Until the bug is fixed you can use this workaround:
Packit b749da
Packit b749da
     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
Packit b749da
Packit b749da
`configure' Invocation
Packit b749da
======================
Packit b749da
Packit b749da
   `configure' recognizes the following options to control how it
Packit b749da
operates.
Packit b749da
Packit b749da
`--help'
Packit b749da
`-h'
Packit b749da
     Print a summary of all of the options to `configure', and exit.
Packit b749da
Packit b749da
`--help=short'
Packit b749da
`--help=recursive'
Packit b749da
     Print a summary of the options unique to this package's
Packit b749da
     `configure', and exit.  The `short' variant lists options used
Packit b749da
     only in the top level, while the `recursive' variant lists options
Packit b749da
     also present in any nested packages.
Packit b749da
Packit b749da
`--version'
Packit b749da
`-V'
Packit b749da
     Print the version of Autoconf used to generate the `configure'
Packit b749da
     script, and exit.
Packit b749da
Packit b749da
`--cache-file=FILE'
Packit b749da
     Enable the cache: use and save the results of the tests in FILE,
Packit b749da
     traditionally `config.cache'.  FILE defaults to `/dev/null' to
Packit b749da
     disable caching.
Packit b749da
Packit b749da
`--config-cache'
Packit b749da
`-C'
Packit b749da
     Alias for `--cache-file=config.cache'.
Packit b749da
Packit b749da
`--quiet'
Packit b749da
`--silent'
Packit b749da
`-q'
Packit b749da
     Do not print messages saying which checks are being made.  To
Packit b749da
     suppress all normal output, redirect it to `/dev/null' (any error
Packit b749da
     messages will still be shown).
Packit b749da
Packit b749da
`--srcdir=DIR'
Packit b749da
     Look for the package's source code in directory DIR.  Usually
Packit b749da
     `configure' can determine that directory automatically.
Packit b749da
Packit b749da
`--prefix=DIR'
Packit b749da
     Use DIR as the installation prefix.  *note Installation Names::
Packit b749da
     for more details, including other options available for fine-tuning
Packit b749da
     the installation locations.
Packit b749da
Packit b749da
`--no-create'
Packit b749da
`-n'
Packit b749da
     Run the configure checks, but stop before creating any output
Packit b749da
     files.
Packit b749da
Packit b749da
`configure' also accepts some other, not widely useful, options.  Run
Packit b749da
`configure --help' for more details.
Packit b749da