Statistics
| Branch: | Tag: | Revision:

root / INSTALL @ 1ba97251

History | View | Annotate | Download (9.1 kB)

1 e7083c35 eb
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2007 Free Software
2 5d69a524 jcorgan
Foundation, Inc.
3 5d69a524 jcorgan
4 5d69a524 jcorgan
   This file is free documentation; the Free Software Foundation gives
5 5d69a524 jcorgan
unlimited permission to copy, distribute and modify it.
6 5d69a524 jcorgan
7 5d69a524 jcorgan
Basic Installation
8 5d69a524 jcorgan
==================
9 5d69a524 jcorgan
10 e7083c35 eb
See also the OS specific Build Guide at:
11 e7083c35 eb
  http://gnuradio.org/trac/wiki/BuildGuide
12 e7083c35 eb
13 e7083c35 eb
Please read the README too ;)
14 e7083c35 eb
15 e7083c35 eb
16 5d69a524 jcorgan
   These are generic installation instructions.
17 5d69a524 jcorgan
18 e7083c35 eb
19 5d69a524 jcorgan
   The `configure' shell script attempts to guess correct values for
20 5d69a524 jcorgan
various system-dependent variables used during compilation.  It uses
21 5d69a524 jcorgan
those values to create a `Makefile' in each directory of the package.
22 5d69a524 jcorgan
It may also create one or more `.h' files containing system-dependent
23 5d69a524 jcorgan
definitions.  Finally, it creates a shell script `config.status' that
24 5d69a524 jcorgan
you can run in the future to recreate the current configuration, and a
25 5d69a524 jcorgan
file `config.log' containing compiler output (useful mainly for
26 5d69a524 jcorgan
debugging `configure').
27 5d69a524 jcorgan
28 5d69a524 jcorgan
   It can also use an optional file (typically called `config.cache'
29 5d69a524 jcorgan
and enabled with `--cache-file=config.cache' or simply `-C') that saves
30 5d69a524 jcorgan
the results of its tests to speed up reconfiguring.  (Caching is
31 5d69a524 jcorgan
disabled by default to prevent problems with accidental use of stale
32 5d69a524 jcorgan
cache files.)
33 5d69a524 jcorgan
34 5d69a524 jcorgan
   If you need to do unusual things to compile the package, please try
35 5d69a524 jcorgan
to figure out how `configure' could check whether to do them, and mail
36 5d69a524 jcorgan
diffs or instructions to the address given in the `README' so they can
37 5d69a524 jcorgan
be considered for the next release.  If you are using the cache, and at
38 5d69a524 jcorgan
some point `config.cache' contains results you don't want to keep, you
39 5d69a524 jcorgan
may remove or edit it.
40 5d69a524 jcorgan
41 5d69a524 jcorgan
   The file `configure.ac' (or `configure.in') is used to create
42 5d69a524 jcorgan
`configure' by a program called `autoconf'.  You only need
43 5d69a524 jcorgan
`configure.ac' if you want to change it or regenerate `configure' using
44 5d69a524 jcorgan
a newer version of `autoconf'.
45 5d69a524 jcorgan
46 5d69a524 jcorgan
The simplest way to compile this package is:
47 5d69a524 jcorgan
48 5d69a524 jcorgan
  1. `cd' to the directory containing the package's source code and type
49 5d69a524 jcorgan
     `./configure' to configure the package for your system.  If you're
50 5d69a524 jcorgan
     using `csh' on an old version of System V, you might need to type
51 5d69a524 jcorgan
     `sh ./configure' instead to prevent `csh' from trying to execute
52 5d69a524 jcorgan
     `configure' itself.
53 5d69a524 jcorgan
54 5d69a524 jcorgan
     Running `configure' takes awhile.  While running, it prints some
55 5d69a524 jcorgan
     messages telling which features it is checking for.
56 5d69a524 jcorgan
57 5d69a524 jcorgan
  2. Type `make' to compile the package.
58 5d69a524 jcorgan
59 5d69a524 jcorgan
  3. Optionally, type `make check' to run any self-tests that come with
60 5d69a524 jcorgan
     the package.
61 5d69a524 jcorgan
62 5d69a524 jcorgan
  4. Type `make install' to install the programs and any data files and
63 5d69a524 jcorgan
     documentation.
64 5d69a524 jcorgan
65 5d69a524 jcorgan
  5. You can remove the program binaries and object files from the
66 5d69a524 jcorgan
     source code directory by typing `make clean'.  To also remove the
67 5d69a524 jcorgan
     files that `configure' created (so you can compile the package for
68 5d69a524 jcorgan
     a different kind of computer), type `make distclean'.  There is
69 5d69a524 jcorgan
     also a `make maintainer-clean' target, but that is intended mainly
70 5d69a524 jcorgan
     for the package's developers.  If you use it, you may have to get
71 5d69a524 jcorgan
     all sorts of other programs in order to regenerate files that came
72 5d69a524 jcorgan
     with the distribution.
73 5d69a524 jcorgan
74 5d69a524 jcorgan
Compilers and Options
75 5d69a524 jcorgan
=====================
76 5d69a524 jcorgan
77 5d69a524 jcorgan
   Some systems require unusual options for compilation or linking that
78 5d69a524 jcorgan
the `configure' script does not know about.  Run `./configure --help'
79 5d69a524 jcorgan
for details on some of the pertinent environment variables.
80 5d69a524 jcorgan
81 5d69a524 jcorgan
   You can give `configure' initial values for configuration parameters
82 5d69a524 jcorgan
by setting variables in the command line or in the environment.  Here
83 5d69a524 jcorgan
is an example:
84 5d69a524 jcorgan
85 5d69a524 jcorgan
     ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
86 5d69a524 jcorgan
87 5d69a524 jcorgan
   *Note Defining Variables::, for more details.
88 5d69a524 jcorgan
89 5d69a524 jcorgan
Compiling For Multiple Architectures
90 5d69a524 jcorgan
====================================
91 5d69a524 jcorgan
92 5d69a524 jcorgan
   You can compile the package for more than one kind of computer at the
93 5d69a524 jcorgan
same time, by placing the object files for each architecture in their
94 5d69a524 jcorgan
own directory.  To do this, you must use a version of `make' that
95 5d69a524 jcorgan
supports the `VPATH' variable, such as GNU `make'.  `cd' to the
96 5d69a524 jcorgan
directory where you want the object files and executables to go and run
97 5d69a524 jcorgan
the `configure' script.  `configure' automatically checks for the
98 5d69a524 jcorgan
source code in the directory that `configure' is in and in `..'.
99 5d69a524 jcorgan
100 5d69a524 jcorgan
   If you have to use a `make' that does not support the `VPATH'
101 5d69a524 jcorgan
variable, you have to compile the package for one architecture at a
102 5d69a524 jcorgan
time in the source code directory.  After you have installed the
103 5d69a524 jcorgan
package for one architecture, use `make distclean' before reconfiguring
104 5d69a524 jcorgan
for another architecture.
105 5d69a524 jcorgan
106 5d69a524 jcorgan
Installation Names
107 5d69a524 jcorgan
==================
108 5d69a524 jcorgan
109 5d69a524 jcorgan
   By default, `make install' will install the package's files in
110 5d69a524 jcorgan
`/usr/local/bin', `/usr/local/man', etc.  You can specify an
111 5d69a524 jcorgan
installation prefix other than `/usr/local' by giving `configure' the
112 5d69a524 jcorgan
option `--prefix=PATH'.
113 5d69a524 jcorgan
114 5d69a524 jcorgan
   You can specify separate installation prefixes for
115 5d69a524 jcorgan
architecture-specific files and architecture-independent files.  If you
116 5d69a524 jcorgan
give `configure' the option `--exec-prefix=PATH', the package will use
117 5d69a524 jcorgan
PATH as the prefix for installing programs and libraries.
118 5d69a524 jcorgan
Documentation and other data files will still use the regular prefix.
119 5d69a524 jcorgan
120 5d69a524 jcorgan
   In addition, if you use an unusual directory layout you can give
121 5d69a524 jcorgan
options like `--bindir=PATH' to specify different values for particular
122 5d69a524 jcorgan
kinds of files.  Run `configure --help' for a list of the directories
123 5d69a524 jcorgan
you can set and what kinds of files go in them.
124 5d69a524 jcorgan
125 5d69a524 jcorgan
   If the package supports it, you can cause programs to be installed
126 5d69a524 jcorgan
with an extra prefix or suffix on their names by giving `configure' the
127 5d69a524 jcorgan
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
128 5d69a524 jcorgan
129 5d69a524 jcorgan
Optional Features
130 5d69a524 jcorgan
=================
131 5d69a524 jcorgan
132 5d69a524 jcorgan
   Some packages pay attention to `--enable-FEATURE' options to
133 5d69a524 jcorgan
`configure', where FEATURE indicates an optional part of the package.
134 5d69a524 jcorgan
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
135 5d69a524 jcorgan
is something like `gnu-as' or `x' (for the X Window System).  The
136 5d69a524 jcorgan
`README' should mention any `--enable-' and `--with-' options that the
137 5d69a524 jcorgan
package recognizes.
138 5d69a524 jcorgan
139 5d69a524 jcorgan
   For packages that use the X Window System, `configure' can usually
140 5d69a524 jcorgan
find the X include and library files automatically, but if it doesn't,
141 5d69a524 jcorgan
you can use the `configure' options `--x-includes=DIR' and
142 5d69a524 jcorgan
`--x-libraries=DIR' to specify their locations.
143 5d69a524 jcorgan
144 5d69a524 jcorgan
Specifying the System Type
145 5d69a524 jcorgan
==========================
146 5d69a524 jcorgan
147 5d69a524 jcorgan
   There may be some features `configure' cannot figure out
148 5d69a524 jcorgan
automatically, but needs to determine by the type of machine the package
149 5d69a524 jcorgan
will run on.  Usually, assuming the package is built to be run on the
150 5d69a524 jcorgan
_same_ architectures, `configure' can figure that out, but if it prints
151 5d69a524 jcorgan
a message saying it cannot guess the machine type, give it the
152 5d69a524 jcorgan
`--build=TYPE' option.  TYPE can either be a short name for the system
153 5d69a524 jcorgan
type, such as `sun4', or a canonical name which has the form:
154 5d69a524 jcorgan
155 5d69a524 jcorgan
     CPU-COMPANY-SYSTEM
156 5d69a524 jcorgan
157 5d69a524 jcorgan
where SYSTEM can have one of these forms:
158 5d69a524 jcorgan
159 5d69a524 jcorgan
     OS KERNEL-OS
160 5d69a524 jcorgan
161 5d69a524 jcorgan
   See the file `config.sub' for the possible values of each field.  If
162 5d69a524 jcorgan
`config.sub' isn't included in this package, then this package doesn't
163 5d69a524 jcorgan
need to know the machine type.
164 5d69a524 jcorgan
165 5d69a524 jcorgan
   If you are _building_ compiler tools for cross-compiling, you should
166 5d69a524 jcorgan
use the `--target=TYPE' option to select the type of system they will
167 5d69a524 jcorgan
produce code for.
168 5d69a524 jcorgan
169 5d69a524 jcorgan
   If you want to _use_ a cross compiler, that generates code for a
170 5d69a524 jcorgan
platform different from the build platform, you should specify the
171 5d69a524 jcorgan
"host" platform (i.e., that on which the generated programs will
172 5d69a524 jcorgan
eventually be run) with `--host=TYPE'.
173 5d69a524 jcorgan
174 5d69a524 jcorgan
Sharing Defaults
175 5d69a524 jcorgan
================
176 5d69a524 jcorgan
177 5d69a524 jcorgan
   If you want to set default values for `configure' scripts to share,
178 5d69a524 jcorgan
you can create a site shell script called `config.site' that gives
179 5d69a524 jcorgan
default values for variables like `CC', `cache_file', and `prefix'.
180 5d69a524 jcorgan
`configure' looks for `PREFIX/share/config.site' if it exists, then
181 5d69a524 jcorgan
`PREFIX/etc/config.site' if it exists.  Or, you can set the
182 5d69a524 jcorgan
`CONFIG_SITE' environment variable to the location of the site script.
183 5d69a524 jcorgan
A warning: not all `configure' scripts look for a site script.
184 5d69a524 jcorgan
185 5d69a524 jcorgan
Defining Variables
186 5d69a524 jcorgan
==================
187 5d69a524 jcorgan
188 5d69a524 jcorgan
   Variables not defined in a site shell script can be set in the
189 5d69a524 jcorgan
environment passed to `configure'.  However, some packages may run
190 5d69a524 jcorgan
configure again during the build, and the customized values of these
191 5d69a524 jcorgan
variables may be lost.  In order to avoid this problem, you should set
192 5d69a524 jcorgan
them in the `configure' command line, using `VAR=value'.  For example:
193 5d69a524 jcorgan
194 5d69a524 jcorgan
     ./configure CC=/usr/local2/bin/gcc
195 5d69a524 jcorgan
196 5d69a524 jcorgan
will cause the specified gcc to be used as the C compiler (unless it is
197 5d69a524 jcorgan
overridden in the site shell script).
198 5d69a524 jcorgan
199 5d69a524 jcorgan
`configure' Invocation
200 5d69a524 jcorgan
======================
201 5d69a524 jcorgan
202 5d69a524 jcorgan
   `configure' recognizes the following options to control how it
203 5d69a524 jcorgan
operates.
204 5d69a524 jcorgan
205 5d69a524 jcorgan
`--help'
206 5d69a524 jcorgan
`-h'
207 5d69a524 jcorgan
     Print a summary of the options to `configure', and exit.
208 5d69a524 jcorgan
209 5d69a524 jcorgan
`--version'
210 5d69a524 jcorgan
`-V'
211 5d69a524 jcorgan
     Print the version of Autoconf used to generate the `configure'
212 5d69a524 jcorgan
     script, and exit.
213 5d69a524 jcorgan
214 5d69a524 jcorgan
`--cache-file=FILE'
215 5d69a524 jcorgan
     Enable the cache: use and save the results of the tests in FILE,
216 5d69a524 jcorgan
     traditionally `config.cache'.  FILE defaults to `/dev/null' to
217 5d69a524 jcorgan
     disable caching.
218 5d69a524 jcorgan
219 5d69a524 jcorgan
`--config-cache'
220 5d69a524 jcorgan
`-C'
221 5d69a524 jcorgan
     Alias for `--cache-file=config.cache'.
222 5d69a524 jcorgan
223 5d69a524 jcorgan
`--quiet'
224 5d69a524 jcorgan
`--silent'
225 5d69a524 jcorgan
`-q'
226 5d69a524 jcorgan
     Do not print messages saying which checks are being made.  To
227 5d69a524 jcorgan
     suppress all normal output, redirect it to `/dev/null' (any error
228 5d69a524 jcorgan
     messages will still be shown).
229 5d69a524 jcorgan
230 5d69a524 jcorgan
`--srcdir=DIR'
231 5d69a524 jcorgan
     Look for the package's source code in directory DIR.  Usually
232 5d69a524 jcorgan
     `configure' can determine that directory automatically.
233 5d69a524 jcorgan
234 5d69a524 jcorgan
`configure' also accepts some other, not widely useful, options.  Run
235 5d69a524 jcorgan
`configure --help' for more details.