Blame docs/INSTALL

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