From e075b2149b5d287b30718b31bee5ba80aba3da94 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 10 Feb 2019 22:06:42 +0100 Subject: scripts/completion.pl: also generate fish completion file This is the renamed script formerly known as zsh.pl Closes #3545 --- configure.ac | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ab5275a8f..bb1a68508 100755 --- a/configure.ac +++ b/configure.ac @@ -3412,6 +3412,31 @@ case "$OPT_ZSH_FPATH" in ;; esac +dnl ********************************************************************** +dnl Check for fish completion path +dnl ********************************************************************** + +OPT_FISH_FPATH=default +AC_ARG_WITH(fish-functions-dir, +AC_HELP_STRING([--with-fish-functions-dir=PATH],[Install fish completions to PATH]) +AC_HELP_STRING([--without-fish-functions-dir],[Do not install fish completions]), + [OPT_FISH_FPATH=$withval]) +case "$OPT_FISH_FPATH" in + no) + dnl --without-fish-functions-dir option used + ;; + default|yes) + dnl --with-fish-functions-dir option used without path + FISH_FUNCTIONS_DIR="$datarootdir/fish/completions" + AC_SUBST(FISH_FUNCTIONS_DIR) + ;; + *) + dnl --with-fish-functions-dir option used with path + FISH_FUNCTIONS_DIR="$withval" + AC_SUBST(FISH_FUNCTIONS_DIR) + ;; +esac + dnl ********************************************************************** dnl Back to "normal" configuring dnl ********************************************************************** -- cgit v1.2.3