From e51dcf4b07a4bb8b79769e7dc898a63ef730d16f Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 6 Jan 2000 21:26:56 +0000 Subject: zsh-workers/9256 --- INSTALL | 15 +++++++++------ configure.in | 4 ++-- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/INSTALL b/INSTALL index d2741ffdd..6f6a6108c 100644 --- a/INSTALL +++ b/INSTALL @@ -247,12 +247,15 @@ 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/functions ($prefix itself defaults to /usr/local, as -described below). This directory will also be compiled into the shell as -the default directory for the variable $fpath/$FPATH. You can override it -with --enable-fndir=directory; --disable-fndir or --enable-fndir=no will -turn off both installation of functions and the setting of a default value -for $fpath/$FPATH. +${prefix}/share/zsh/functions/$ZSH_VERSION ($prefix itself defaults to +/usr/local, as described below). This directory will also be compiled into +the shell as the default directory for the variable $fpath/$FPATH. You can +override it with --enable-fndir=directory; --disable-fndir or +--enable-fndir=no will turn off both installation of functions and the +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 +directory such as /usr/local/share/zsh/functions is fine. You can control the functions which get installed by setting FUNCTIONS_INSTALL, either when running configure (e.g. diff --git a/configure.in b/configure.in index 1b9293440..5b9a330d2 100644 --- a/configure.in +++ b/configure.in @@ -214,10 +214,10 @@ undefine([fndir])dnl AC_ARG_ENABLE(fndir, [ --enable-fndir=DIR where functions go (default DATADIR/zsh/functions)], [if test $enableval = yes; then - fndir=${datadir}/${tzsh_name}/functions + fndir=${datadir}/${tzsh_name}/functions/${VERSION} else fndir="$enableval" -fi], [fndir=${datadir}/${tzsh_name}/functions]) +fi], [fndir=${datadir}/${tzsh_name}/functions/${VERSION}]) undefine([function_subdirs]) AC_ARG_ENABLE(function-subdirs, -- cgit 1.4.1