1159b3361Sopenharmony_ciBasic Installation 2159b3361Sopenharmony_ci================== 3159b3361Sopenharmony_ci 4159b3361Sopenharmony_ci These are generic installation instructions. 5159b3361Sopenharmony_ci 6159b3361Sopenharmony_ci The `configure' shell script attempts to guess correct values for 7159b3361Sopenharmony_civarious system-dependent variables used during compilation. It uses 8159b3361Sopenharmony_cithose values to create a `Makefile' in each directory of the package. 9159b3361Sopenharmony_ciIt may also create one or more `.h' files containing system-dependent 10159b3361Sopenharmony_cidefinitions. Finally, it creates a shell script `config.status' that 11159b3361Sopenharmony_ciyou can run in the future to recreate the current configuration, a file 12159b3361Sopenharmony_ci`config.cache' that saves the results of its tests to speed up 13159b3361Sopenharmony_cireconfiguring, and a file `config.log' containing compiler output 14159b3361Sopenharmony_ci(useful mainly for debugging `configure'). 15159b3361Sopenharmony_ci 16159b3361Sopenharmony_ci If you need to do unusual things to compile the package, please try 17159b3361Sopenharmony_cito figure out how `configure' could check whether to do them, and mail 18159b3361Sopenharmony_cidiffs or instructions to the address given in the `README' so they can 19159b3361Sopenharmony_cibe considered for the next release. If at some point `config.cache' 20159b3361Sopenharmony_cicontains results you don't want to keep, you may remove or edit it. 21159b3361Sopenharmony_ci 22159b3361Sopenharmony_ci The file `configure.in' is used to create `configure' by a program 23159b3361Sopenharmony_cicalled `autoconf'. You only need `configure.in' if you want to change 24159b3361Sopenharmony_ciit or regenerate `configure' using a newer version of `autoconf'. 25159b3361Sopenharmony_ci 26159b3361Sopenharmony_ciThe simplest way to compile this package is: 27159b3361Sopenharmony_ci 28159b3361Sopenharmony_ci 1. `cd' to the directory containing the package's source code and type 29159b3361Sopenharmony_ci `./configure' to configure the package for your system. If you're 30159b3361Sopenharmony_ci using `csh' on an old version of System V, you might need to type 31159b3361Sopenharmony_ci `sh ./configure' instead to prevent `csh' from trying to execute 32159b3361Sopenharmony_ci `configure' itself. 33159b3361Sopenharmony_ci 34159b3361Sopenharmony_ci Running `configure' takes awhile. While running, it prints some 35159b3361Sopenharmony_ci messages telling which features it is checking for. 36159b3361Sopenharmony_ci 37159b3361Sopenharmony_ci 2. Type `make' to compile the package. 38159b3361Sopenharmony_ci 39159b3361Sopenharmony_ci 3. Optionally, type `make check' to run any self-tests that come with 40159b3361Sopenharmony_ci the package. 41159b3361Sopenharmony_ci 42159b3361Sopenharmony_ci 4. Type `make install' to install the programs and any data files and 43159b3361Sopenharmony_ci documentation. 44159b3361Sopenharmony_ci 45159b3361Sopenharmony_ci 5. You can remove the program binaries and object files from the 46159b3361Sopenharmony_ci source code directory by typing `make clean'. To also remove the 47159b3361Sopenharmony_ci files that `configure' created (so you can compile the package for 48159b3361Sopenharmony_ci a different kind of computer), type `make distclean'. There is 49159b3361Sopenharmony_ci also a `make maintainer-clean' target, but that is intended mainly 50159b3361Sopenharmony_ci for the package's developers. If you use it, you may have to get 51159b3361Sopenharmony_ci all sorts of other programs in order to regenerate files that came 52159b3361Sopenharmony_ci with the distribution. 53159b3361Sopenharmony_ci 54159b3361Sopenharmony_ciCompilers and Options 55159b3361Sopenharmony_ci===================== 56159b3361Sopenharmony_ci 57159b3361Sopenharmony_ci Some systems require unusual options for compilation or linking that 58159b3361Sopenharmony_cithe `configure' script does not know about. You can give `configure' 59159b3361Sopenharmony_ciinitial values for variables by setting them in the environment. Using 60159b3361Sopenharmony_cia Bourne-compatible shell, you can do that on the command line like 61159b3361Sopenharmony_cithis: 62159b3361Sopenharmony_ci CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure 63159b3361Sopenharmony_ci 64159b3361Sopenharmony_ciOr on systems that have the `env' program, you can do it like this: 65159b3361Sopenharmony_ci env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure 66159b3361Sopenharmony_ci 67159b3361Sopenharmony_ciCompiling For Multiple Architectures 68159b3361Sopenharmony_ci==================================== 69159b3361Sopenharmony_ci 70159b3361Sopenharmony_ci You can compile the package for more than one kind of computer at the 71159b3361Sopenharmony_cisame time, by placing the object files for each architecture in their 72159b3361Sopenharmony_ciown directory. To do this, you must use a version of `make' that 73159b3361Sopenharmony_cisupports the `VPATH' variable, such as GNU `make'. `cd' to the 74159b3361Sopenharmony_cidirectory where you want the object files and executables to go and run 75159b3361Sopenharmony_cithe `configure' script. `configure' automatically checks for the 76159b3361Sopenharmony_cisource code in the directory that `configure' is in and in `..'. 77159b3361Sopenharmony_ci 78159b3361Sopenharmony_ci If you have to use a `make' that does not supports the `VPATH' 79159b3361Sopenharmony_civariable, you have to compile the package for one architecture at a time 80159b3361Sopenharmony_ciin the source code directory. After you have installed the package for 81159b3361Sopenharmony_cione architecture, use `make distclean' before reconfiguring for another 82159b3361Sopenharmony_ciarchitecture. 83159b3361Sopenharmony_ci 84159b3361Sopenharmony_ciInstallation Names 85159b3361Sopenharmony_ci================== 86159b3361Sopenharmony_ci 87159b3361Sopenharmony_ci By default, `make install' will install the package's files in 88159b3361Sopenharmony_ci`/usr/local/bin', `/usr/local/man', etc. You can specify an 89159b3361Sopenharmony_ciinstallation prefix other than `/usr/local' by giving `configure' the 90159b3361Sopenharmony_cioption `--prefix=PATH'. 91159b3361Sopenharmony_ci 92159b3361Sopenharmony_ci You can specify separate installation prefixes for 93159b3361Sopenharmony_ciarchitecture-specific files and architecture-independent files. If you 94159b3361Sopenharmony_cigive `configure' the option `--exec-prefix=PATH', the package will use 95159b3361Sopenharmony_ciPATH as the prefix for installing programs and libraries. 96159b3361Sopenharmony_ciDocumentation and other data files will still use the regular prefix. 97159b3361Sopenharmony_ci 98159b3361Sopenharmony_ci In addition, if you use an unusual directory layout you can give 99159b3361Sopenharmony_cioptions like `--bindir=PATH' to specify different values for particular 100159b3361Sopenharmony_cikinds of files. Run `configure --help' for a list of the directories 101159b3361Sopenharmony_ciyou can set and what kinds of files go in them. 102159b3361Sopenharmony_ci 103159b3361Sopenharmony_ci If the package supports it, you can cause programs to be installed 104159b3361Sopenharmony_ciwith an extra prefix or suffix on their names by giving `configure' the 105159b3361Sopenharmony_cioption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. 106159b3361Sopenharmony_ci 107159b3361Sopenharmony_ciOptional Features 108159b3361Sopenharmony_ci================= 109159b3361Sopenharmony_ci 110159b3361Sopenharmony_ci Some packages pay attention to `--enable-FEATURE' options to 111159b3361Sopenharmony_ci`configure', where FEATURE indicates an optional part of the package. 112159b3361Sopenharmony_ciThey may also pay attention to `--with-PACKAGE' options, where PACKAGE 113159b3361Sopenharmony_ciis something like `gnu-as' or `x' (for the X Window System). The 114159b3361Sopenharmony_ci`README' should mention any `--enable-' and `--with-' options that the 115159b3361Sopenharmony_cipackage recognizes. 116159b3361Sopenharmony_ci 117159b3361Sopenharmony_ci For packages that use the X Window System, `configure' can usually 118159b3361Sopenharmony_cifind the X include and library files automatically, but if it doesn't, 119159b3361Sopenharmony_ciyou can use the `configure' options `--x-includes=DIR' and 120159b3361Sopenharmony_ci`--x-libraries=DIR' to specify their locations. 121159b3361Sopenharmony_ci 122159b3361Sopenharmony_ciSpecifying the System Type 123159b3361Sopenharmony_ci========================== 124159b3361Sopenharmony_ci 125159b3361Sopenharmony_ci There may be some features `configure' can not figure out 126159b3361Sopenharmony_ciautomatically, but needs to determine by the type of host the package 127159b3361Sopenharmony_ciwill run on. Usually `configure' can figure that out, but if it prints 128159b3361Sopenharmony_cia message saying it can not guess the host type, give it the 129159b3361Sopenharmony_ci`--host=TYPE' option. TYPE can either be a short name for the system 130159b3361Sopenharmony_citype, such as `sun4', or a canonical name with three fields: 131159b3361Sopenharmony_ci CPU-COMPANY-SYSTEM 132159b3361Sopenharmony_ci 133159b3361Sopenharmony_ciSee the file `config.sub' for the possible values of each field. If 134159b3361Sopenharmony_ci`config.sub' isn't included in this package, then this package doesn't 135159b3361Sopenharmony_cineed to know the host type. 136159b3361Sopenharmony_ci 137159b3361Sopenharmony_ci If you are building compiler tools for cross-compiling, you can also 138159b3361Sopenharmony_ciuse the `--target=TYPE' option to select the type of system they will 139159b3361Sopenharmony_ciproduce code for and the `--build=TYPE' option to select the type of 140159b3361Sopenharmony_cisystem on which you are compiling the package. 141159b3361Sopenharmony_ci 142159b3361Sopenharmony_ciSharing Defaults 143159b3361Sopenharmony_ci================ 144159b3361Sopenharmony_ci 145159b3361Sopenharmony_ci If you want to set default values for `configure' scripts to share, 146159b3361Sopenharmony_ciyou can create a site shell script called `config.site' that gives 147159b3361Sopenharmony_cidefault values for variables like `CC', `cache_file', and `prefix'. 148159b3361Sopenharmony_ci`configure' looks for `PREFIX/share/config.site' if it exists, then 149159b3361Sopenharmony_ci`PREFIX/etc/config.site' if it exists. Or, you can set the 150159b3361Sopenharmony_ci`CONFIG_SITE' environment variable to the location of the site script. 151159b3361Sopenharmony_ciA warning: not all `configure' scripts look for a site script. 152159b3361Sopenharmony_ci 153159b3361Sopenharmony_ciOperation Controls 154159b3361Sopenharmony_ci================== 155159b3361Sopenharmony_ci 156159b3361Sopenharmony_ci `configure' recognizes the following options to control how it 157159b3361Sopenharmony_cioperates. 158159b3361Sopenharmony_ci 159159b3361Sopenharmony_ci`--cache-file=FILE' 160159b3361Sopenharmony_ci Use and save the results of the tests in FILE instead of 161159b3361Sopenharmony_ci `./config.cache'. Set FILE to `/dev/null' to disable caching, for 162159b3361Sopenharmony_ci debugging `configure'. 163159b3361Sopenharmony_ci 164159b3361Sopenharmony_ci`--help' 165159b3361Sopenharmony_ci Print a summary of the options to `configure', and exit. 166159b3361Sopenharmony_ci 167159b3361Sopenharmony_ci`--quiet' 168159b3361Sopenharmony_ci`--silent' 169159b3361Sopenharmony_ci`-q' 170159b3361Sopenharmony_ci Do not print messages saying which checks are being made. To 171159b3361Sopenharmony_ci suppress all normal output, redirect it to `/dev/null' (any error 172159b3361Sopenharmony_ci messages will still be shown). 173159b3361Sopenharmony_ci 174159b3361Sopenharmony_ci`--srcdir=DIR' 175159b3361Sopenharmony_ci Look for the package's source code in directory DIR. Usually 176159b3361Sopenharmony_ci `configure' can determine that directory automatically. 177159b3361Sopenharmony_ci 178159b3361Sopenharmony_ci`--version' 179159b3361Sopenharmony_ci Print the version of Autoconf used to generate the `configure' 180159b3361Sopenharmony_ci script, and exit. 181159b3361Sopenharmony_ci 182159b3361Sopenharmony_ci`configure' also accepts some other, not widely useful, options. 183159b3361Sopenharmony_ci 184