INSTALL revision 65912f00
165912f00SmrgInstallation Instructions 265912f00Smrg************************* 365912f00Smrg 465912f00SmrgCopyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, 565912f00Smrg2006, 2007, 2008 Free Software Foundation, Inc. 665912f00Smrg 765912f00Smrg This file is free documentation; the Free Software Foundation gives 865912f00Smrgunlimited permission to copy, distribute and modify it. 965912f00Smrg 1065912f00SmrgBasic Installation 1165912f00Smrg================== 1265912f00Smrg 1365912f00Smrg Briefly, the shell commands `./configure; make; make install' should 1465912f00Smrgconfigure, build, and install this package. The following 1565912f00Smrgmore-detailed instructions are generic; see the `README' file for 1665912f00Smrginstructions specific to this package. 1765912f00Smrg 1865912f00Smrg The `configure' shell script attempts to guess correct values for 1965912f00Smrgvarious system-dependent variables used during compilation. It uses 2065912f00Smrgthose values to create a `Makefile' in each directory of the package. 2165912f00SmrgIt may also create one or more `.h' files containing system-dependent 2265912f00Smrgdefinitions. Finally, it creates a shell script `config.status' that 2365912f00Smrgyou can run in the future to recreate the current configuration, and a 2465912f00Smrgfile `config.log' containing compiler output (useful mainly for 2565912f00Smrgdebugging `configure'). 2665912f00Smrg 2765912f00Smrg It can also use an optional file (typically called `config.cache' 2865912f00Smrgand enabled with `--cache-file=config.cache' or simply `-C') that saves 2965912f00Smrgthe results of its tests to speed up reconfiguring. Caching is 3065912f00Smrgdisabled by default to prevent problems with accidental use of stale 3165912f00Smrgcache files. 3265912f00Smrg 3365912f00Smrg If you need to do unusual things to compile the package, please try 3465912f00Smrgto figure out how `configure' could check whether to do them, and mail 3565912f00Smrgdiffs or instructions to the address given in the `README' so they can 3665912f00Smrgbe considered for the next release. If you are using the cache, and at 3765912f00Smrgsome point `config.cache' contains results you don't want to keep, you 3865912f00Smrgmay remove or edit it. 3965912f00Smrg 4065912f00Smrg The file `configure.ac' (or `configure.in') is used to create 4165912f00Smrg`configure' by a program called `autoconf'. You need `configure.ac' if 4265912f00Smrgyou want to change it or regenerate `configure' using a newer version 4365912f00Smrgof `autoconf'. 4465912f00Smrg 4565912f00SmrgThe simplest way to compile this package is: 4665912f00Smrg 4765912f00Smrg 1. `cd' to the directory containing the package's source code and type 4865912f00Smrg `./configure' to configure the package for your system. 4965912f00Smrg 5065912f00Smrg Running `configure' might take a while. While running, it prints 5165912f00Smrg some messages telling which features it is checking for. 5265912f00Smrg 5365912f00Smrg 2. Type `make' to compile the package. 5465912f00Smrg 5565912f00Smrg 3. Optionally, type `make check' to run any self-tests that come with 5665912f00Smrg the package. 5765912f00Smrg 5865912f00Smrg 4. Type `make install' to install the programs and any data files and 5965912f00Smrg documentation. 6065912f00Smrg 6165912f00Smrg 5. You can remove the program binaries and object files from the 6265912f00Smrg source code directory by typing `make clean'. To also remove the 6365912f00Smrg files that `configure' created (so you can compile the package for 6465912f00Smrg a different kind of computer), type `make distclean'. There is 6565912f00Smrg also a `make maintainer-clean' target, but that is intended mainly 6665912f00Smrg for the package's developers. If you use it, you may have to get 6765912f00Smrg all sorts of other programs in order to regenerate files that came 6865912f00Smrg with the distribution. 6965912f00Smrg 7065912f00Smrg 6. Often, you can also type `make uninstall' to remove the installed 7165912f00Smrg files again. 7265912f00Smrg 7365912f00SmrgCompilers and Options 7465912f00Smrg===================== 7565912f00Smrg 7665912f00Smrg Some systems require unusual options for compilation or linking that 7765912f00Smrgthe `configure' script does not know about. Run `./configure --help' 7865912f00Smrgfor details on some of the pertinent environment variables. 7965912f00Smrg 8065912f00Smrg You can give `configure' initial values for configuration parameters 8165912f00Smrgby setting variables in the command line or in the environment. Here 8265912f00Smrgis an example: 8365912f00Smrg 8465912f00Smrg ./configure CC=c99 CFLAGS=-g LIBS=-lposix 8565912f00Smrg 8665912f00Smrg *Note Defining Variables::, for more details. 8765912f00Smrg 8865912f00SmrgCompiling For Multiple Architectures 8965912f00Smrg==================================== 9065912f00Smrg 9165912f00Smrg You can compile the package for more than one kind of computer at the 9265912f00Smrgsame time, by placing the object files for each architecture in their 9365912f00Smrgown directory. To do this, you can use GNU `make'. `cd' to the 9465912f00Smrgdirectory where you want the object files and executables to go and run 9565912f00Smrgthe `configure' script. `configure' automatically checks for the 9665912f00Smrgsource code in the directory that `configure' is in and in `..'. 9765912f00Smrg 9865912f00Smrg With a non-GNU `make', it is safer to compile the package for one 9965912f00Smrgarchitecture at a time in the source code directory. After you have 10065912f00Smrginstalled the package for one architecture, use `make distclean' before 10165912f00Smrgreconfiguring for another architecture. 10265912f00Smrg 10365912f00Smrg On MacOS X 10.5 and later systems, you can create libraries and 10465912f00Smrgexecutables that work on multiple system types--known as "fat" or 10565912f00Smrg"universal" binaries--by specifying multiple `-arch' options to the 10665912f00Smrgcompiler but only a single `-arch' option to the preprocessor. Like 10765912f00Smrgthis: 10865912f00Smrg 10965912f00Smrg ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ 11065912f00Smrg CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ 11165912f00Smrg CPP="gcc -E" CXXCPP="g++ -E" 11265912f00Smrg 11365912f00Smrg This is not guaranteed to produce working output in all cases, you 11465912f00Smrgmay have to build one architecture at a time and combine the results 11565912f00Smrgusing the `lipo' tool if you have problems. 11665912f00Smrg 11765912f00SmrgInstallation Names 11865912f00Smrg================== 11965912f00Smrg 12065912f00Smrg By default, `make install' installs the package's commands under 12165912f00Smrg`/usr/local/bin', include files under `/usr/local/include', etc. You 12265912f00Smrgcan specify an installation prefix other than `/usr/local' by giving 12365912f00Smrg`configure' the option `--prefix=PREFIX'. 12465912f00Smrg 12565912f00Smrg You can specify separate installation prefixes for 12665912f00Smrgarchitecture-specific files and architecture-independent files. If you 12765912f00Smrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses 12865912f00SmrgPREFIX as the prefix for installing programs and libraries. 12965912f00SmrgDocumentation and other data files still use the regular prefix. 13065912f00Smrg 13165912f00Smrg In addition, if you use an unusual directory layout you can give 13265912f00Smrgoptions like `--bindir=DIR' to specify different values for particular 13365912f00Smrgkinds of files. Run `configure --help' for a list of the directories 13465912f00Smrgyou can set and what kinds of files go in them. 13565912f00Smrg 13665912f00Smrg If the package supports it, you can cause programs to be installed 13765912f00Smrgwith an extra prefix or suffix on their names by giving `configure' the 13865912f00Smrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. 13965912f00Smrg 14065912f00SmrgOptional Features 14165912f00Smrg================= 14265912f00Smrg 14365912f00Smrg Some packages pay attention to `--enable-FEATURE' options to 14465912f00Smrg`configure', where FEATURE indicates an optional part of the package. 14565912f00SmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE 14665912f00Smrgis something like `gnu-as' or `x' (for the X Window System). The 14765912f00Smrg`README' should mention any `--enable-' and `--with-' options that the 14865912f00Smrgpackage recognizes. 14965912f00Smrg 15065912f00Smrg For packages that use the X Window System, `configure' can usually 15165912f00Smrgfind the X include and library files automatically, but if it doesn't, 15265912f00Smrgyou can use the `configure' options `--x-includes=DIR' and 15365912f00Smrg`--x-libraries=DIR' to specify their locations. 15465912f00Smrg 15565912f00SmrgParticular systems 15665912f00Smrg================== 15765912f00Smrg 15865912f00Smrg On HP-UX, the default C compiler is not ANSI C compatible. If GNU 15965912f00SmrgCC is not installed, it is recommended to use the following options in 16065912f00Smrgorder to use an ANSI C compiler: 16165912f00Smrg 16265912f00Smrg ./configure CC="cc -Ae" 16365912f00Smrg 16465912f00Smrgand if that doesn't work, install pre-built binaries of GCC for HP-UX. 16565912f00Smrg 16665912f00Smrg On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot 16765912f00Smrgparse its `<wchar.h>' header file. The option `-nodtk' can be used as 16865912f00Smrga workaround. If GNU CC is not installed, it is therefore recommended 16965912f00Smrgto try 17065912f00Smrg 17165912f00Smrg ./configure CC="cc" 17265912f00Smrg 17365912f00Smrgand if that doesn't work, try 17465912f00Smrg 17565912f00Smrg ./configure CC="cc -nodtk" 17665912f00Smrg 17765912f00SmrgSpecifying the System Type 17865912f00Smrg========================== 17965912f00Smrg 18065912f00Smrg There may be some features `configure' cannot figure out 18165912f00Smrgautomatically, but needs to determine by the type of machine the package 18265912f00Smrgwill run on. Usually, assuming the package is built to be run on the 18365912f00Smrg_same_ architectures, `configure' can figure that out, but if it prints 18465912f00Smrga message saying it cannot guess the machine type, give it the 18565912f00Smrg`--build=TYPE' option. TYPE can either be a short name for the system 18665912f00Smrgtype, such as `sun4', or a canonical name which has the form: 18765912f00Smrg 18865912f00Smrg CPU-COMPANY-SYSTEM 18965912f00Smrg 19065912f00Smrgwhere SYSTEM can have one of these forms: 19165912f00Smrg 19265912f00Smrg OS KERNEL-OS 19365912f00Smrg 19465912f00Smrg See the file `config.sub' for the possible values of each field. If 19565912f00Smrg`config.sub' isn't included in this package, then this package doesn't 19665912f00Smrgneed to know the machine type. 19765912f00Smrg 19865912f00Smrg If you are _building_ compiler tools for cross-compiling, you should 19965912f00Smrguse the option `--target=TYPE' to select the type of system they will 20065912f00Smrgproduce code for. 20165912f00Smrg 20265912f00Smrg If you want to _use_ a cross compiler, that generates code for a 20365912f00Smrgplatform different from the build platform, you should specify the 20465912f00Smrg"host" platform (i.e., that on which the generated programs will 20565912f00Smrgeventually be run) with `--host=TYPE'. 20665912f00Smrg 20765912f00SmrgSharing Defaults 20865912f00Smrg================ 20965912f00Smrg 21065912f00Smrg If you want to set default values for `configure' scripts to share, 21165912f00Smrgyou can create a site shell script called `config.site' that gives 21265912f00Smrgdefault values for variables like `CC', `cache_file', and `prefix'. 21365912f00Smrg`configure' looks for `PREFIX/share/config.site' if it exists, then 21465912f00Smrg`PREFIX/etc/config.site' if it exists. Or, you can set the 21565912f00Smrg`CONFIG_SITE' environment variable to the location of the site script. 21665912f00SmrgA warning: not all `configure' scripts look for a site script. 21765912f00Smrg 21865912f00SmrgDefining Variables 21965912f00Smrg================== 22065912f00Smrg 22165912f00Smrg Variables not defined in a site shell script can be set in the 22265912f00Smrgenvironment passed to `configure'. However, some packages may run 22365912f00Smrgconfigure again during the build, and the customized values of these 22465912f00Smrgvariables may be lost. In order to avoid this problem, you should set 22565912f00Smrgthem in the `configure' command line, using `VAR=value'. For example: 22665912f00Smrg 22765912f00Smrg ./configure CC=/usr/local2/bin/gcc 22865912f00Smrg 22965912f00Smrgcauses the specified `gcc' to be used as the C compiler (unless it is 23065912f00Smrgoverridden in the site shell script). 23165912f00Smrg 23265912f00SmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to 23365912f00Smrgan Autoconf bug. Until the bug is fixed you can use this workaround: 23465912f00Smrg 23565912f00Smrg CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash 23665912f00Smrg 23765912f00Smrg`configure' Invocation 23865912f00Smrg====================== 23965912f00Smrg 24065912f00Smrg `configure' recognizes the following options to control how it 24165912f00Smrgoperates. 24265912f00Smrg 24365912f00Smrg`--help' 24465912f00Smrg`-h' 24565912f00Smrg Print a summary of all of the options to `configure', and exit. 24665912f00Smrg 24765912f00Smrg`--help=short' 24865912f00Smrg`--help=recursive' 24965912f00Smrg Print a summary of the options unique to this package's 25065912f00Smrg `configure', and exit. The `short' variant lists options used 25165912f00Smrg only in the top level, while the `recursive' variant lists options 25265912f00Smrg also present in any nested packages. 25365912f00Smrg 25465912f00Smrg`--version' 25565912f00Smrg`-V' 25665912f00Smrg Print the version of Autoconf used to generate the `configure' 25765912f00Smrg script, and exit. 25865912f00Smrg 25965912f00Smrg`--cache-file=FILE' 26065912f00Smrg Enable the cache: use and save the results of the tests in FILE, 26165912f00Smrg traditionally `config.cache'. FILE defaults to `/dev/null' to 26265912f00Smrg disable caching. 26365912f00Smrg 26465912f00Smrg`--config-cache' 26565912f00Smrg`-C' 26665912f00Smrg Alias for `--cache-file=config.cache'. 26765912f00Smrg 26865912f00Smrg`--quiet' 26965912f00Smrg`--silent' 27065912f00Smrg`-q' 27165912f00Smrg Do not print messages saying which checks are being made. To 27265912f00Smrg suppress all normal output, redirect it to `/dev/null' (any error 27365912f00Smrg messages will still be shown). 27465912f00Smrg 27565912f00Smrg`--srcdir=DIR' 27665912f00Smrg Look for the package's source code in directory DIR. Usually 27765912f00Smrg `configure' can determine that directory automatically. 27865912f00Smrg 27965912f00Smrg`--prefix=DIR' 28065912f00Smrg Use DIR as the installation prefix. *Note Installation Names:: 28165912f00Smrg for more details, including other options available for fine-tuning 28265912f00Smrg the installation locations. 28365912f00Smrg 28465912f00Smrg`--no-create' 28565912f00Smrg`-n' 28665912f00Smrg Run the configure checks, but stop before creating any output 28765912f00Smrg files. 28865912f00Smrg 28965912f00Smrg`configure' also accepts some other, not widely useful, options. Run 29065912f00Smrg`configure --help' for more details. 29165912f00Smrg 292