| 1 | tolTcl - GNU tolTcl library |
|---|
| 2 | ========================================= |
|---|
| 3 | |
|---|
| 4 | Installation Instructions |
|---|
| 5 | ========================= |
|---|
| 6 | |
|---|
| 7 | This file describes how to compile and install the tolTcl library for UNIX. |
|---|
| 8 | [See the file ./msvc/README for details on how to build under Windows.] |
|---|
| 9 | |
|---|
| 10 | 1. tolTcl follows the standard GNU installation procedure. |
|---|
| 11 | To compile tolTcl you will need an ANSI C/C++ compiler. After unpacking |
|---|
| 12 | the distribution, go into the "tolTcl-x.y" directory. The Makefiles |
|---|
| 13 | can be prepared using the configure command. You can customize your |
|---|
| 14 | configure script using previously bootstrap shell script. |
|---|
| 15 | |
|---|
| 16 | TolTcl requires next packages: gnu Tol, Tcl, BLT, and GSL includes. |
|---|
| 17 | configure script search this packages when is invoked without |
|---|
| 18 | any parameter. |
|---|
| 19 | If these packages are installed under unusual directories you can |
|---|
| 20 | tell where they are invoking configure with next options: |
|---|
| 21 | |
|---|
| 22 | -Includes of GNU Scientific Library |
|---|
| 23 | |
|---|
| 24 | Tell configure where to find the includes of gnu/GSL Scientific |
|---|
| 25 | Library with this option: |
|---|
| 26 | |
|---|
| 27 | --with-gslincls=/usr/local/include |
|---|
| 28 | |
|---|
| 29 | -GNU TOL (Time Oriented Language) |
|---|
| 30 | |
|---|
| 31 | Tell configure where to find TOL Library and include files. |
|---|
| 32 | --with-tol=/usr/local (search headers in 'include' dir |
|---|
| 33 | libraries in 'lib' dir from |
|---|
| 34 | specified path) |
|---|
| 35 | or |
|---|
| 36 | --with-tolincls=/usr/local/include |
|---|
| 37 | --with-tollibs=/usr/local/lib |
|---|
| 38 | |
|---|
| 39 | -Tcl |
|---|
| 40 | |
|---|
| 41 | Tell configure where to find Tcl config file package: tclConfig.sh |
|---|
| 42 | --with-tcl=/usr/lib |
|---|
| 43 | Tell configure where to find Tcl Library and include files. |
|---|
| 44 | --with-tclincls=/usr/local/include |
|---|
| 45 | --with-tcllibs=/usr/local/lib |
|---|
| 46 | |
|---|
| 47 | -BLT Toolkit |
|---|
| 48 | Tell configure where to find BLT Library and include files. |
|---|
| 49 | --with-bltincls=/usr/local/include |
|---|
| 50 | --with-bltlibs=/usr/local/lib |
|---|
| 51 | |
|---|
| 52 | Tell configure to compile with Tcl Stubs: --enable-stubs=yes |
|---|
| 53 | To compile with debuging information: --enable-debug=yes |
|---|
| 54 | |
|---|
| 55 | --------------------------------- |
|---|
| 56 | |
|---|
| 57 | Switches: |
|---|
| 58 | |
|---|
| 59 | --prefix=path Specifies the path where libraries, scripts, |
|---|
| 60 | and manual pages are installed. The default |
|---|
| 61 | is "/usr/local". |
|---|
| 62 | |
|---|
| 63 | |
|---|
| 64 | Both static and shared versions of the libraries will be compiled by |
|---|
| 65 | default. Compilation of shared libraries can be turned off by |
|---|
| 66 | specifying the `--disable-shared' option to `configure', e.g. |
|---|
| 67 | |
|---|
| 68 | ./configure --disable-shared |
|---|
| 69 | |
|---|
| 70 | If you encounter problems building the library try using the above |
|---|
| 71 | option, because some platforms do not support shared libraries. |
|---|
| 72 | |
|---|
| 73 | For notes about problems with specific platforms and compilers see the |
|---|
| 74 | next section of this file (below). |
|---|
| 75 | |
|---|
| 76 | |
|---|
| 77 | 2. You can then build the library by typing, |
|---|
| 78 | |
|---|
| 79 | make |
|---|
| 80 | |
|---|
| 81 | |
|---|
| 82 | 3. The library can be installed using the command, |
|---|
| 83 | |
|---|
| 84 | make install |
|---|
| 85 | |
|---|
| 86 | The default install directory prefix is /usr/local. Consult the |
|---|
| 87 | "Further Information" section below for instructions on installing the |
|---|
| 88 | library in another location or changing other default compilation |
|---|
| 89 | options. |
|---|
| 90 | |
|---|
| 91 | ------------------------------ |
|---|
| 92 | |
|---|
| 93 | Platform Specific Compilation Notes |
|---|
| 94 | =================================== |
|---|
| 95 | |
|---|
| 96 | This section documents any known issues with installing tolTcl on |
|---|
| 97 | specific platforms. |
|---|
| 98 | |
|---|
| 99 | Hints for any platform |
|---|
| 100 | ====================== |
|---|
| 101 | |
|---|
| 102 | 1) With gcc-2.95/2.96 the tests fail in the eigen/ directory. |
|---|
| 103 | This is due to a compiler optimization bug which causes errors in the |
|---|
| 104 | manipulation of complex numbers. Do not use the library if you |
|---|
| 105 | encounter this problem. |
|---|
| 106 | |
|---|
| 107 | This is fixed in more recent versions of gcc. |
|---|
| 108 | Compiling without optimisation will work around the bug. |
|---|
| 109 | |
|---|
| 110 | |
|---|
| 111 | Hints for Microsoft Windows |
|---|
| 112 | =========================== |
|---|
| 113 | |
|---|
| 114 | A separate version of the library is available for Microsoft Visual |
|---|
| 115 | C++. For more information see under the directory "msvc". |
|---|
| 116 | |
|---|
| 117 | |
|---|
| 118 | ------------------------------ |
|---|
| 119 | |
|---|
| 120 | Further information on the standard GNU installation procedure |
|---|
| 121 | ============================================================== |
|---|
| 122 | |
|---|
| 123 | The sections below describe the general features of the standard GNU |
|---|
| 124 | installation procedure. |
|---|
| 125 | |
|---|
| 126 | Basic Installation |
|---|
| 127 | ================== |
|---|
| 128 | |
|---|
| 129 | These are generic installation instructions. |
|---|
| 130 | |
|---|
| 131 | The `configure' shell script attempts to guess correct values for |
|---|
| 132 | various system-dependent variables used during compilation. It uses |
|---|
| 133 | those values to create a `Makefile' in each directory of the package. |
|---|
| 134 | It may also create one or more `.h' files containing system-dependent |
|---|
| 135 | definitions. Finally, it creates a shell script `config.status' that |
|---|
| 136 | you can run in the future to recreate the current configuration, a file |
|---|
| 137 | `config.cache' that saves the results of its tests to speed up |
|---|
| 138 | reconfiguring, and a file `config.log' containing compiler output |
|---|
| 139 | (useful mainly for debugging `configure'). |
|---|
| 140 | |
|---|
| 141 | If you need to do unusual things to compile the package, please try |
|---|
| 142 | to figure out how `configure' could check whether to do them, and mail |
|---|
| 143 | diffs or instructions to the address given in the `README' so they can |
|---|
| 144 | be considered for the next release. If at some point `config.cache' |
|---|
| 145 | contains results you don't want to keep, you may remove or edit it. |
|---|
| 146 | |
|---|
| 147 | The file `configure.in' is used to create `configure' by a program |
|---|
| 148 | called `autoconf'. You only need `configure.in' if you want to change |
|---|
| 149 | it or regenerate `configure' using a newer version of `autoconf'. |
|---|
| 150 | |
|---|
| 151 | The simplest way to compile this package is: |
|---|
| 152 | |
|---|
| 153 | 1. `cd' to the directory containing the package's source code and type |
|---|
| 154 | `./configure' to configure the package for your system. If you're |
|---|
| 155 | using `csh' on an old version of System V, you might need to type |
|---|
| 156 | `sh ./configure' instead to prevent `csh' from trying to execute |
|---|
| 157 | `configure' itself. |
|---|
| 158 | |
|---|
| 159 | Running `configure' takes a while. While running, it prints some |
|---|
| 160 | messages telling which features it is checking for. |
|---|
| 161 | |
|---|
| 162 | 2. Type `make' to compile the package. |
|---|
| 163 | |
|---|
| 164 | 3. Optionally, type `make check' to run any self-tests that come with |
|---|
| 165 | the package. |
|---|
| 166 | |
|---|
| 167 | 4. Type `make install' to install the programs and any data files and |
|---|
| 168 | documentation. |
|---|
| 169 | |
|---|
| 170 | 5. You can remove the program binaries and object files from the |
|---|
| 171 | source code directory by typing `make clean'. To also remove the |
|---|
| 172 | files that `configure' created (so you can compile the package for |
|---|
| 173 | a different kind of computer), type `make distclean'. There is |
|---|
| 174 | also a `make maintainer-clean' target, but that is intended mainly |
|---|
| 175 | for the package's developers. If you use it, you may have to get |
|---|
| 176 | all sorts of other programs in order to regenerate files that came |
|---|
| 177 | with the distribution. |
|---|
| 178 | |
|---|
| 179 | Compilers and Options |
|---|
| 180 | ===================== |
|---|
| 181 | |
|---|
| 182 | Some systems require unusual options for compilation or linking that |
|---|
| 183 | the `configure' script does not know about. You can give `configure' |
|---|
| 184 | initial values for variables by setting them in the environment. Using |
|---|
| 185 | a Bourne-compatible shell, you can do that on the command line like |
|---|
| 186 | this: |
|---|
| 187 | CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure |
|---|
| 188 | |
|---|
| 189 | Or on systems that have the `env' program, you can do it like this: |
|---|
| 190 | env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure |
|---|
| 191 | |
|---|
| 192 | Compiling For Multiple Architectures |
|---|
| 193 | ==================================== |
|---|
| 194 | |
|---|
| 195 | You can compile the package for more than one kind of computer at the |
|---|
| 196 | same time, by placing the object files for each architecture in their |
|---|
| 197 | own directory. To do this, you must use a version of `make' that |
|---|
| 198 | supports the `VPATH' variable, such as GNU `make'. `cd' to the |
|---|
| 199 | directory where you want the object files and executables to go and run |
|---|
| 200 | the `configure' script. `configure' automatically checks for the |
|---|
| 201 | source code in the directory that `configure' is in and in `..'. |
|---|
| 202 | |
|---|
| 203 | If you have to use a `make' that does not supports the `VPATH' |
|---|
| 204 | variable, you have to compile the package for one architecture at a time |
|---|
| 205 | in the source code directory. After you have installed the package for |
|---|
| 206 | one architecture, use `make distclean' before reconfiguring for another |
|---|
| 207 | architecture. |
|---|
| 208 | |
|---|
| 209 | Installation Names |
|---|
| 210 | ================== |
|---|
| 211 | |
|---|
| 212 | By default, `make install' will install the package's files in |
|---|
| 213 | `/usr/local/bin', `/usr/local/man', etc. You can specify an |
|---|
| 214 | installation prefix other than `/usr/local' by giving `configure' the |
|---|
| 215 | option `--prefix=PATH'. |
|---|
| 216 | |
|---|
| 217 | You can specify separate installation prefixes for |
|---|
| 218 | architecture-specific files and architecture-independent files. If you |
|---|
| 219 | give `configure' the option `--exec-prefix=PATH', the package will use |
|---|
| 220 | PATH as the prefix for installing programs and libraries. |
|---|
| 221 | Documentation and other data files will still use the regular prefix. |
|---|
| 222 | |
|---|
| 223 | If the package supports it, you can cause programs to be installed |
|---|
| 224 | with an extra prefix or suffix on their names by giving `configure' the |
|---|
| 225 | option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. |
|---|
| 226 | |
|---|
| 227 | Optional Features |
|---|
| 228 | ================= |
|---|
| 229 | |
|---|
| 230 | Some packages pay attention to `--enable-FEATURE' options to |
|---|
| 231 | `configure', where FEATURE indicates an optional part of the package. |
|---|
| 232 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE |
|---|
| 233 | is something like `gnu-as' or `x' (for the X Window System). The |
|---|
| 234 | `README' should mention any `--enable-' and `--with-' options that the |
|---|
| 235 | package recognizes. |
|---|
| 236 | |
|---|
| 237 | For packages that use the X Window System, `configure' can usually |
|---|
| 238 | find the X include and library files automatically, but if it doesn't, |
|---|
| 239 | you can use the `configure' options `--x-includes=DIR' and |
|---|
| 240 | `--x-libraries=DIR' to specify their locations. |
|---|
| 241 | |
|---|
| 242 | Specifying the System Type |
|---|
| 243 | ========================== |
|---|
| 244 | |
|---|
| 245 | There may be some features `configure' can not figure out |
|---|
| 246 | automatically, but needs to determine by the type of host the package |
|---|
| 247 | will run on. Usually `configure' can figure that out, but if it prints |
|---|
| 248 | a message saying it can not guess the host type, give it the |
|---|
| 249 | `--host=TYPE' option. TYPE can either be a short name for the system |
|---|
| 250 | type, such as `sun4', or a canonical name with three fields: |
|---|
| 251 | CPU-COMPANY-SYSTEM |
|---|
| 252 | |
|---|
| 253 | See the file `config.sub' for the possible values of each field. If |
|---|
| 254 | `config.sub' isn't included in this package, then this package doesn't |
|---|
| 255 | need to know the host type. |
|---|
| 256 | |
|---|
| 257 | If you are building compiler tools for cross-compiling, you can also |
|---|
| 258 | use the `--target=TYPE' option to select the type of system they will |
|---|
| 259 | produce code for and the `--build=TYPE' option to select the type of |
|---|
| 260 | system on which you are compiling the package. |
|---|
| 261 | |
|---|
| 262 | Sharing Defaults |
|---|
| 263 | ================ |
|---|
| 264 | |
|---|
| 265 | If you want to set default values for `configure' scripts to share, |
|---|
| 266 | you can create a site shell script called `config.site' that gives |
|---|
| 267 | default values for variables like `CC', `cache_file', and `prefix'. |
|---|
| 268 | `configure' looks for `PREFIX/share/config.site' if it exists, then |
|---|
| 269 | `PREFIX/etc/config.site' if it exists. Or, you can set the |
|---|
| 270 | `CONFIG_SITE' environment variable to the location of the site script. |
|---|
| 271 | A warning: not all `configure' scripts look for a site script. |
|---|
| 272 | |
|---|
| 273 | Operation Controls |
|---|
| 274 | ================== |
|---|
| 275 | |
|---|
| 276 | `configure' recognizes the following options to control how it |
|---|
| 277 | operates. |
|---|
| 278 | |
|---|
| 279 | `--cache-file=FILE' |
|---|
| 280 | Use and save the results of the tests in FILE instead of |
|---|
| 281 | `./config.cache'. Set FILE to `/dev/null' to disable caching, for |
|---|
| 282 | debugging `configure'. |
|---|
| 283 | |
|---|
| 284 | `--help' |
|---|
| 285 | Print a summary of the options to `configure', and exit. |
|---|
| 286 | |
|---|
| 287 | `--quiet' |
|---|
| 288 | `--silent' |
|---|
| 289 | `-q' |
|---|
| 290 | Do not print messages saying which checks are being made. |
|---|
| 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 | `--version' |
|---|
| 297 | Print the version of Autoconf used to generate the `configure' |
|---|
| 298 | script, and exit. |
|---|
| 299 | |
|---|
| 300 | `configure' also accepts some other, not widely useful, options. |
|---|
| 301 | |
|---|