2000-08-11 19:53:44 +02:00
|
|
|
++++++++++++++
|
|
|
|
INSTALLING ZSH
|
|
|
|
++++++++++++++
|
|
|
|
|
|
|
|
This file is divided into two parts: making and installing the shell, and
|
|
|
|
a description of various additional configuration options. You should
|
|
|
|
have a look at the items in the second part before following the
|
|
|
|
instructions in the first.
|
|
|
|
|
2001-05-30 18:08:16 +02:00
|
|
|
|
2000-08-11 19:53:44 +02:00
|
|
|
=====================
|
|
|
|
MAKING AND INSTALLING
|
|
|
|
=====================
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
Check MACHINES File
|
|
|
|
-------------------
|
|
|
|
|
2004-07-02 17:59:07 +02:00
|
|
|
Check the file MACHINES in the top directory to see the architectures
|
1999-04-15 20:05:35 +02:00
|
|
|
that zsh is known to compile on, as well as any special instructions
|
|
|
|
for your particular architecture. Most architectures will not require any
|
|
|
|
special instructions.
|
|
|
|
|
2000-08-11 19:53:44 +02:00
|
|
|
Pre-configuration
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
If you are using a normal source release, skip this section.
|
|
|
|
|
|
|
|
If the `configure' script does not already exist -- e.g., if you've got
|
|
|
|
a snapshot of the bare sources just checked out from a CVS repository
|
|
|
|
-- some things need to be built before the configuration can proceed.
|
|
|
|
Run the script `./Util/preconfig' to do this.
|
|
|
|
|
1999-04-15 20:05:35 +02:00
|
|
|
Configuring Zsh
|
|
|
|
---------------
|
|
|
|
|
|
|
|
To configure zsh, from the top level directory, do the command:
|
|
|
|
./configure
|
|
|
|
|
|
|
|
Configure accepts several options (explained below). To display
|
|
|
|
currently available options, do the command:
|
|
|
|
./configure --help
|
|
|
|
|
2001-05-30 18:08:16 +02:00
|
|
|
Many of the interesting configuration options can be added after running
|
1999-04-15 20:05:35 +02:00
|
|
|
configure by editing the user configuration section of config.h and the
|
2001-05-30 18:08:16 +02:00
|
|
|
top level Makefile. However, see the end of this file for a list of
|
|
|
|
features configurable on the command line.
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
Dynamic loading
|
|
|
|
---------------
|
|
|
|
|
2001-05-30 12:26:59 +02:00
|
|
|
Zsh has support for dynamically loadable modules. This is now enabled
|
2000-08-11 19:53:44 +02:00
|
|
|
by default; to disable it, run configure with the --disable-dynamic option.
|
|
|
|
Note that dynamic loading does not work on all systems. On these systems
|
|
|
|
this option will have no effect. When dynamic loading is enabled, major
|
|
|
|
parts of zsh (including the Zsh Line Editor) are compiled into modules and
|
|
|
|
not included into the main zsh binary. Zsh autoloads these modules when
|
|
|
|
they are required. This means that you have to execute make
|
|
|
|
install.modules before you try the newly compiled zsh executable, and hence
|
|
|
|
also the install paths must be correct. The installation path for modules
|
|
|
|
is EPREFIX/lib/zsh/<zsh-version-number>, where EPREFIX defaults to PREFIX
|
|
|
|
unless given explicitly, and PREFIX defaults to /usr/local. See the end of
|
|
|
|
this file for options to configure to change these.
|
|
|
|
|
|
|
|
Adding and removing modules
|
|
|
|
---------------------------
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
The zsh distribution contains several modules, in the Src/Builtins,
|
|
|
|
Src/Modules and Src/Zle directories. If you have any additional zsh
|
|
|
|
modules that you wish to compile for this version of zsh, create another
|
|
|
|
subdirectory of the Src directory and put them there. You can create
|
2000-11-26 21:01:01 +01:00
|
|
|
as many extra subdirectories as you need, but currently configure will only
|
|
|
|
search in immediate subdirectories of Src. The subdirectories must be
|
|
|
|
actual directories; symbolic links will not work. You will then need to
|
|
|
|
rerun configure; the easiest way is to run `config.status --recheck' from
|
|
|
|
the top-level build directory which retains the existing configuration as
|
|
|
|
much as possible.
|
|
|
|
|
|
|
|
The key to the module system is the file config.modules, created in the
|
2001-05-30 18:08:16 +02:00
|
|
|
configuration process. In the normal case that dynamic loading is
|
|
|
|
available, all modules relevant to your configuration will be compiled and
|
|
|
|
installed as separate files, so unless you want the modules to be loaded by
|
|
|
|
default you don't need to do anything. For a non-dynamic zsh, the default
|
|
|
|
is to compile the complete, compctl, zle, computil, complist, sched,
|
|
|
|
parameter, zleparameter and rlimits modules into the shell, and you will
|
|
|
|
need to edit config.modules to make any other modules available.
|
|
|
|
|
|
|
|
If you wish to change the configuration, here is how config.modules works.
|
|
|
|
Each module has a line in the file. Be careful to retain the (strict)
|
|
|
|
format for lines in the file:
|
2000-11-26 21:01:01 +01:00
|
|
|
link - `dynamic', if the module is to be dynamically linked -- meaningless
|
|
|
|
if this is not available on your system.
|
|
|
|
`static' if the module is to be linked directly into the executable.
|
|
|
|
`no' if the module is not to be linked at all. In this case it will
|
|
|
|
not even be compiled.
|
|
|
|
load - `yes' if the module is to be visible to the user. This will make
|
|
|
|
builtins, parameters etc. visible to the user without any need
|
|
|
|
to use the zmodload builtin.
|
|
|
|
`no' if an explicit zmodload command is to be required to load the
|
|
|
|
utilities in the module. Note that this applies both to
|
|
|
|
statically and dynamically linked modules.
|
|
|
|
auto - `yes' if the entry is to be regenerated whenever configure is run.
|
|
|
|
`no' if you wish to retain your hand-edited version.
|
2001-05-30 18:08:16 +02:00
|
|
|
Do not edit the entry for the pseudo-module zsh/main (apart from the
|
|
|
|
`functions=' part) as this is the main shell. After you have edited this
|
|
|
|
file, run `make prep' in the Src subdirectory.
|
2000-08-11 19:53:44 +02:00
|
|
|
|
|
|
|
Note that the modules depending on zle or complete (e.g.: complist and
|
|
|
|
deltochar) cannot be loaded dynamically on systems which do not allow symbols
|
|
|
|
in one dynamically loaded library to be visible from another; this is true,
|
|
|
|
for example, of version 4 of SunOS. The most convenient workaround is to
|
2000-11-26 21:01:01 +01:00
|
|
|
compile zle and complete into the base executable by setting their `link'
|
|
|
|
entries in config.modules to `static' as described above.
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
Compiler Options or Using a Different Compiler
|
|
|
|
----------------------------------------------
|
|
|
|
|
|
|
|
By default, configure will use the "gcc" compiler if found. You can use a
|
|
|
|
different compiler, or add unusual options for compiling or linking that
|
|
|
|
the "configure" script does not know about, by either editing the user
|
|
|
|
configuration section of the top level Makefile (after running configure)
|
|
|
|
or giving "configure" initial values for these variables by setting them
|
|
|
|
in the environment. Using a Bourne-compatible shell (such as sh,ksh,zsh),
|
|
|
|
you can do that on the command line like this:
|
2001-05-30 18:08:16 +02:00
|
|
|
CC=c89 ./configure --enable-cflags=-O2 --enable-libs=-lposix
|
|
|
|
This is almost equivalent to
|
1999-04-15 20:05:35 +02:00
|
|
|
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
|
2001-05-30 18:08:16 +02:00
|
|
|
but has the advantage that the CFLAGS and LIBS variables are remembered if
|
|
|
|
the configuration is recreated by means of `config.status --recheck' (this
|
|
|
|
happens automatically if certain configuration files change). You can
|
|
|
|
set the make variables CFLAGS, CPPFLAGS, LDFLAGS and LIBS in this way,
|
|
|
|
however CC must appear as shown. If you are configuring from a csh-derived
|
|
|
|
shell, you may need to use the "env" program:
|
|
|
|
env CC=c89 ./configure --enable-cflags=-O2 --enable-libs=-lposix.
|
|
|
|
|
|
|
|
You can override the variables directly when running `make':
|
|
|
|
make CFLAGS=-g
|
|
|
|
However, these will not be passed down via `config.status --recheck'.
|
2000-08-11 20:27:04 +02:00
|
|
|
|
1999-04-15 20:05:35 +02:00
|
|
|
Check Generated Files
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
Configure will probe your system and create a "config.h" header file.
|
|
|
|
You should check the user configuration section at the beginning of
|
|
|
|
this include file. You should also examine the values (determined by
|
|
|
|
configure) of HOSTTYPE, OSTYPE, MACHTYPE, and VENDOR to make sure they
|
|
|
|
are correct. The value of these #defines's is used only to initialize
|
|
|
|
the corresponding default shell parameters. Since these shell parameters
|
|
|
|
are only for informational purposes, you can change them to whatever
|
|
|
|
you feel is appropriate.
|
|
|
|
|
2001-05-30 18:08:16 +02:00
|
|
|
Also, configure will create a Makefile in the top level directory as well
|
1999-04-15 20:05:35 +02:00
|
|
|
as in the various subdirectories. You should check the user configuration
|
|
|
|
section of the top level Makefile.
|
|
|
|
|
|
|
|
Compiling Zsh
|
|
|
|
-------------
|
|
|
|
|
2001-05-30 18:08:16 +02:00
|
|
|
After configuring, to build zsh, execute the command:
|
1999-04-15 20:05:35 +02:00
|
|
|
make
|
|
|
|
|
2001-05-29 18:01:12 +02:00
|
|
|
It's then a good idea to check that your build is working properly:
|
|
|
|
make check
|
|
|
|
|
|
|
|
If you have trouble with a particular test, you can run it separately:
|
|
|
|
make TESTNUM=C02 check
|
|
|
|
|
|
|
|
The TESTNUM value can be a single test number, as above, or a letter to
|
|
|
|
run an entire category of tests:
|
|
|
|
make TESTNUM=Y check
|
|
|
|
|
|
|
|
See Test/README for a list of test categories.
|
|
|
|
|
1999-04-15 20:05:35 +02:00
|
|
|
Installing Zsh
|
|
|
|
--------------
|
|
|
|
|
2001-05-30 18:08:16 +02:00
|
|
|
If no make/compilation errors occur, then execute the command
|
|
|
|
make install
|
|
|
|
to install all the necessary files except for the info files.
|
1999-04-15 20:05:35 +02:00
|
|
|
|
2001-05-30 18:08:16 +02:00
|
|
|
Alternatively, you can install the various parts in separate stages. To
|
|
|
|
install the zsh binary, execute the command:
|
|
|
|
make install.bin
|
1999-04-15 20:05:35 +02:00
|
|
|
Any previous copy of zsh will be renamed "zsh.old"
|
2003-04-04 15:22:55 +02:00
|
|
|
|
2001-05-30 18:08:16 +02:00
|
|
|
To install the dynamically-loadable modules, execute the command:
|
1999-04-15 20:05:35 +02:00
|
|
|
make install.modules
|
2001-05-30 18:08:16 +02:00
|
|
|
Note that this is required for the shell to operate properly if dynamic
|
|
|
|
loading is enabled.
|
1999-04-15 20:05:35 +02:00
|
|
|
|
2001-05-30 18:08:16 +02:00
|
|
|
To install the zsh man page, execute the command:
|
1999-04-15 20:05:35 +02:00
|
|
|
make install.man
|
|
|
|
|
2001-05-30 18:08:16 +02:00
|
|
|
To install all the shell functions which come with the distribution,
|
|
|
|
execute the command:
|
2000-08-11 19:53:44 +02:00
|
|
|
make install.fns
|
1999-04-15 20:05:35 +02:00
|
|
|
|
2001-05-30 18:08:16 +02:00
|
|
|
To install the zsh info files (this must be done separately), execute the
|
2000-08-11 19:53:44 +02:00
|
|
|
command:
|
|
|
|
make install.info
|
|
|
|
If the programme install-info is available, "make install.info" will
|
|
|
|
insert an entry in the file "dir" in the same directory as the info
|
|
|
|
files. Otherwise you will have to edit the topmost node of the info
|
|
|
|
tree "dir" manually in order to have the zsh info files available to
|
|
|
|
your info reader.
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
Building Zsh On Additional Architectures
|
|
|
|
----------------------------------------
|
|
|
|
|
|
|
|
To build zsh on additional architectures, you can do a "make distclean".
|
|
|
|
This should restore the zsh source distribution back to its original
|
|
|
|
state. You can then configure zsh as above on other architectures in
|
|
|
|
which you wish to build zsh. Or alternatively, you can use a different
|
|
|
|
build directory for each architecture.
|
|
|
|
|
|
|
|
Using A Different Build Directory
|
|
|
|
---------------------------------
|
|
|
|
|
|
|
|
You can compile the zsh in a different directory from the one containing
|
|
|
|
the source code. Doing so allows you to compile it on more than one
|
|
|
|
architecture at the same time. To do this, you must use a version of
|
|
|
|
"make" that supports the "VPATH" variable, such as GNU "make". "cd" to
|
|
|
|
the directory where you want the object files and executables to go and
|
|
|
|
run the "configure" script. "configure" automatically checks for the
|
|
|
|
source code in the directory that "configure" is in. For example,
|
|
|
|
|
|
|
|
cd /usr/local/SunOS/zsh
|
|
|
|
/usr/local/src/zsh-3.0/configure
|
|
|
|
make
|
|
|
|
|
2001-05-30 18:08:16 +02:00
|
|
|
Note that this is mutually exclusive with using the source directories
|
|
|
|
as make can become confused by build files created in the source directories.
|
|
|
|
|
2000-08-11 19:53:44 +02:00
|
|
|
|
|
|
|
=====================
|
|
|
|
CONFIGURATION OPTIONS
|
|
|
|
=====================
|
|
|
|
|
1999-04-15 20:05:35 +02:00
|
|
|
Memory Routines
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Included in this release are alternate malloc and associated functions
|
|
|
|
which reduce memory usage on some systems. To use these, add the option
|
|
|
|
--enable-zsh-mem
|
|
|
|
when invoking "configure".
|
|
|
|
|
2004-07-02 17:59:07 +02:00
|
|
|
You should check MACHINES to see if there are specific recommendations
|
1999-04-15 20:05:35 +02:00
|
|
|
about using the zsh malloc routines on your particular architecture.
|
|
|
|
|
|
|
|
Debugging Routines
|
|
|
|
------------------
|
|
|
|
|
|
|
|
You can turn on various debugging options when invoking "configure".
|
|
|
|
|
|
|
|
To turn on some extra checking in the memory management routines, you
|
|
|
|
can use the following options when invoking "configure".
|
|
|
|
--enable-zsh-mem-warning # turn on warnings of memory allocation errors
|
|
|
|
--enable-zsh-secure-free # turn on memory checking of free()
|
|
|
|
|
|
|
|
If you are using zsh's memory allocation routines (--enable-zsh-mem), you
|
|
|
|
can turn on debugging of this code. This enables the builtin "mem".
|
|
|
|
--enable-zsh-mem-debug # debug zsh's memory allocators
|
|
|
|
|
|
|
|
You can turn on some debugging information of zsh's internal hash tables.
|
|
|
|
This enables the builtin "hashinfo".
|
|
|
|
--enable-zsh-hash-debug # turn on debugging of internal hash tables
|
|
|
|
|
|
|
|
To add some sanity checks and generate debugging information for debuggers
|
|
|
|
you can use the following option. This also disables optimization.
|
|
|
|
--enable-zsh-debug # use it if you want to debug zsh
|
|
|
|
|
|
|
|
Startup/shutdown files
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
Zsh has several startup/shutdown files which are in /etc by default. This
|
|
|
|
can be overriden using one of the options below when invoking "configure".
|
|
|
|
|
|
|
|
--enable-etcdir=directory # default directory for global zsh scripts
|
|
|
|
--enable-zshenv=pathname # the full pathname of the global zshenv script
|
|
|
|
--enable-zshrc=pathname # the full pathname of the global zshrc script
|
|
|
|
--enable-zlogin=pathname # the full pathname of the global zlogin script
|
|
|
|
--enable-zprofile=pathname # the full pathname of the global zprofile script
|
|
|
|
--enable-zlogout=pathname # the full pathname of the global zlogout script
|
|
|
|
|
|
|
|
Any startup/shutdown script can be disabled by giving the
|
2001-05-30 18:08:16 +02:00
|
|
|
--disable-SCRIPTNAME option to "configure". The --disable-etcdir option
|
2001-03-12 18:39:22 +01:00
|
|
|
disables all startup/shutdown files which are not explicitly enabled.
|
1999-04-15 20:05:35 +02:00
|
|
|
|
2000-08-11 19:53:44 +02:00
|
|
|
Shell functions
|
|
|
|
---------------
|
|
|
|
|
|
|
|
By default, the shell functions which are installed with `make install' or
|
|
|
|
`make install.fns' go into the directory ${datadir}/zsh/functions, which
|
|
|
|
unless you have specified --datadir is the same as
|
|
|
|
${prefix}/share/zsh/$ZSH_VERSION/functions ($prefix itself defaults to
|
|
|
|
/usr/local, as described below). This directory will also be compiled into
|
2001-05-30 18:08:16 +02:00
|
|
|
the shell as the default directory for the parameters $fpath and
|
|
|
|
$FPATH. You can override it with --enable-fndir=directory; --disable-fndir
|
|
|
|
or --enable-fndir=no will turn off both installation of functions and the
|
2000-08-11 19:53:44 +02:00
|
|
|
setting of a default value for $fpath/$FPATH. Note the presence of
|
|
|
|
$ZSH_VERSION (e.g. `3.1.7') to avoid clashes between versions of zsh.
|
|
|
|
If you only run one version of zsh at once, installing into a common
|
2000-12-04 13:02:28 +01:00
|
|
|
directory such as /usr/local/share/zsh/functions is fine --- note, however,
|
|
|
|
that uninstallation is more likely to create problems in this case.
|
|
|
|
|
|
|
|
The functions to be installed are controlled by config.modules. These
|
|
|
|
appear at the end of the line after `functions=': note that the rest of the
|
|
|
|
line is taken verbatim as shell command line text, i.e. no quoting is used
|
|
|
|
around the value as a whole and unquoted wildcards will be expanded. To
|
|
|
|
prevent any functions from being installed, either remove the `functions='
|
2001-05-30 18:08:16 +02:00
|
|
|
entry or delete the rest of the line after it.
|
2000-12-04 13:02:28 +01:00
|
|
|
|
|
|
|
Functions not specific to a particular module are listed on the zsh/main
|
|
|
|
line. None of these are crucial to shell operation, so you may choose not
|
|
|
|
to install them. For other modules, the functions will be installed if and
|
|
|
|
only if the module itself is installed. This will usually be what you
|
|
|
|
want; in particular, the zsh/complete and zsh/zftp modules are of much less
|
|
|
|
use without the associated functions. The functions listed with zsh/zle
|
2001-05-30 18:08:16 +02:00
|
|
|
are not used by the editor unless you explicitly load them, however.
|
2000-08-11 19:53:44 +02:00
|
|
|
|
|
|
|
You can also use the configure option --enable-function-subdirs to allow
|
|
|
|
shell functions to be installed into subdirectories of the function
|
2001-04-02 15:04:04 +02:00
|
|
|
directory, i.e. `Base/*' files will be installed into `FNDIR/Base, and so
|
2000-08-11 19:53:44 +02:00
|
|
|
on. This also initialises $fpath/$FPATH appropriately.
|
|
|
|
|
|
|
|
The option --enable-site-fndir controls whether to create and initialise
|
|
|
|
$fpath to include a directory for site-specific functions. By default this
|
|
|
|
is created in the location ${datadir}/zsh/site-functions, i.e. parallel to
|
|
|
|
the version-specific functions directory, and inserted at the start of the
|
|
|
|
$fpath array on shell startup. This directory will not be affected by
|
|
|
|
`make uninstall' or `make uninstall.fns', although the version-specific
|
|
|
|
directory and its contents will be deleted.
|
|
|
|
|
2004-07-30 13:09:16 +02:00
|
|
|
Function depth
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Shell functions may be called recursively. In order to detect infinite
|
|
|
|
recursion the shell has a limit on the depth to which functions may be
|
|
|
|
called: note that this is a single limit for all functions, not a limit
|
|
|
|
for each function called recursively. The default for the limit is 4096.
|
|
|
|
The limit may be altered to the value MAX by passing the option
|
|
|
|
--enable-max-function-depth=MAX to configure. Alternatively, the limit may
|
|
|
|
be disabled with --disable-max-function-depth. However, this is not
|
|
|
|
recommended as it is likely to cause the shell to crash on an infinite
|
|
|
|
recursion.
|
|
|
|
|
2000-08-11 19:53:44 +02:00
|
|
|
Support for large files and integers
|
|
|
|
------------------------------------
|
|
|
|
|
|
|
|
Some 32-bit systems allow special compilation modes to get around the 2GB
|
2001-05-30 18:08:16 +02:00
|
|
|
file size barrier. This is enabled by default; use --disable-lfs to turn
|
|
|
|
it off. Not all systems recognize the test used by zsh (via the getconf
|
|
|
|
command), so flags may need to be set by hand. On HP-UX 10.20, zsh has
|
|
|
|
been successfully compiled with large file support by configuring with
|
2000-08-11 19:53:44 +02:00
|
|
|
CC="cc -Ae" CPPFLAGS="-D_LARGEFILE_SOURCE -D_FILE64" configure \
|
|
|
|
--enable-lfs ...
|
2001-05-30 18:08:16 +02:00
|
|
|
You can also specify --enable-lfs together with a value, which will be
|
|
|
|
interpreted as the name of a 64-bit integer type, for example
|
|
|
|
--enable-lfs="long long" (although this type is checked for anyway).
|
2000-08-11 19:53:44 +02:00
|
|
|
|
|
|
|
Furthermore, use of --enable-lfs will also enable 64-bit arithmetic for
|
|
|
|
shell parameters, and anywhere they are used such as in mathematical
|
|
|
|
formulae. This depends only on the shell finding a suitable 64-bit integer
|
|
|
|
type; it does not require that support for large files is actually
|
2001-05-30 18:08:16 +02:00
|
|
|
enabled. Hence --enable-lfs is useful on many 32-bit systems
|
2000-08-11 19:53:44 +02:00
|
|
|
with a suitable compiler such as gcc.
|
|
|
|
|
|
|
|
Also note that if `configure' finds out that either of the types off_t or
|
|
|
|
ino_t are 64-bit quantities, but that long integers are only 32 bits, all
|
|
|
|
the above will be enabled automatically. This is necessary to ensure
|
|
|
|
correct handling of these types.
|
|
|
|
|
|
|
|
None of this is relevant for 64-bit systems; zsh should compile and run
|
|
|
|
without problems if (sizeof(long) == 8).
|
1999-04-15 20:05:35 +02:00
|
|
|
|
2004-03-04 15:03:47 +01:00
|
|
|
Searching for additional features
|
|
|
|
---------------------------------
|
|
|
|
|
|
|
|
Various additional features are turned off by default to avoid
|
|
|
|
compatibility problems.
|
|
|
|
|
|
|
|
--enable-pcre:
|
2004-03-01 18:58:53 +01:00
|
|
|
|
|
|
|
Zsh has a module which allows the pcre regular expression library to be
|
|
|
|
used via shell builtins. Compiling this library into the shell with
|
|
|
|
dynamic loading (the default where available) produces a dependency on the
|
|
|
|
library libpcre.so. This is a problem on systems where zsh needs to be
|
2004-03-04 15:03:47 +01:00
|
|
|
available at boot before the directory containing libpcre.so (for example
|
|
|
|
/usr/lib or /usr/local/lib) is mounted. For this reason, pcre support will
|
|
|
|
only be searched for if the option --enable-pcre is passed to configure.
|
2004-03-01 18:58:53 +01:00
|
|
|
|
|
|
|
(Future versions of the shell may have a better fix for this problem.)
|
|
|
|
|
2004-03-04 15:03:47 +01:00
|
|
|
--enable-cap:
|
|
|
|
|
|
|
|
This searches for POSIX capabilities; if found, the `cap' library
|
|
|
|
is available and the shell will use these to determine if the
|
|
|
|
shell is running in some privileged mode. This is turned off by
|
|
|
|
default as on some systems non-standard headers (in particular AIX) are
|
|
|
|
required. A direct fix for that problem would be appreciated.
|
|
|
|
|
2004-06-08 17:15:38 +02:00
|
|
|
A test for the function tcsetpgrp is turned on by default. The test
|
|
|
|
needs to run the function to determine if the implementation is
|
|
|
|
usable. However, this can cause problems when configure is run without
|
|
|
|
a controlling terminal (eg. from cron). To avoid this, use
|
|
|
|
--with-tcsetpgrp or --without-tcsetpgrp to tell configure whether the
|
|
|
|
function should be used.
|
2004-06-08 15:34:11 +02:00
|
|
|
|
1999-04-15 20:05:35 +02:00
|
|
|
Options For Configure
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
The `configure' program accepts many options, not all of which are useful
|
|
|
|
or relevant to zsh. To get the complete list of configure options, run
|
|
|
|
"./configure --help". The following list should contain most of the
|
|
|
|
options of interest for configuring zsh.
|
|
|
|
|
|
|
|
Configuration:
|
2001-05-30 18:08:16 +02:00
|
|
|
--cache-file=FILE # cache test results in FILE
|
|
|
|
--help # print a help message
|
|
|
|
--version # print the version of autoconf that create configure
|
|
|
|
--quiet, --silent # do not print `checking...' messages
|
|
|
|
--no-create # do not create output files
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
Directories:
|
2001-05-30 18:08:16 +02:00
|
|
|
--prefix=PREFIX # install host independent files in PREFIX [/usr/local]
|
|
|
|
--exec-prefix=EPREFIX # install host dependent files in EPREFIX [PREFIX]
|
|
|
|
--bindir=DIR # install user executables in DIR [EPREFIX/bin]
|
|
|
|
--infodir=DIR # install info documentation in DIR [PREFIX/info]
|
|
|
|
--mandir=DIR # install man documentation in DIR [PREFIX/man]
|
|
|
|
--srcdir=DIR # find the sources in DIR [configure dir or ..]
|
|
|
|
--datadir=DATADIR # install shared files in DATADIR [PREFIX/share]
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
Features:
|
2001-05-30 18:08:16 +02:00
|
|
|
--enable-FEATURE # enable use of this feature
|
|
|
|
--disable-FEATURE # disable use of this feature
|
|
|
|
|
|
|
|
Here is the list of FEATURES currently supported. Defaults are shown in
|
|
|
|
brackets, though a value shown as `yes' (equivalent to --enable-FEATURE)
|
|
|
|
will be ignored if your OS doesn't support that feature.
|
|
|
|
|
|
|
|
zsh-debug # compile debugging features into zsh [no]
|
|
|
|
zsh-mem # use zsh's memory allocators [no]
|
|
|
|
zsh-mem-debug # debug zsh's memory allocators [no]
|
|
|
|
zsh-mem-warning # turn on warnings of memory allocation errors [no]
|
|
|
|
zsh-secure-free # turn on memory checking of free() [no]
|
|
|
|
zsh-hash-debug # turn on debugging of internal hash tables [no]
|
|
|
|
etcdir=directory # default directory for global zsh scripts [/etc]
|
|
|
|
zshenv=pathname # the path to the global zshenv script [/etc/zshenv]
|
|
|
|
zshrc=pathname # the path to the global zshrc script [/etc/zshrc]
|
|
|
|
zlogin=pathname # the path to the global zlogin script [/etc/zlogin]
|
|
|
|
zprofile=pathname # the path to the global zprofile script [/etc/zprofile]
|
|
|
|
zlogout=pathname # the path to the global zlogout script [/etc/zlogout]
|
|
|
|
fndir=directory # the directory where shell functions will go
|
|
|
|
# [DATADIR/zsh/VERSION/functions]
|
|
|
|
site-fndir=directory # the directory where site-specific functions can go
|
|
|
|
# [DATADIR/zsh/site-functions]
|
|
|
|
function-subdirs # if functions will be installed into subdirectories [no]
|
|
|
|
dynamic # allow dynamically loaded binary modules [yes]
|
|
|
|
lfs # allow configure check for large files [yes]
|
|
|
|
locale # allow use of locale library [yes]
|
|
|
|
|