Debian Codegraph @

INSTALL

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