From 3825bc7f25bea1f0b2198402247aceedad327743 Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Fri, 16 Aug 2019 23:34:52 -0700 Subject: build: install zsh completions --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 0afe1e6db..76612ff07 100644 --- a/configure.ac +++ b/configure.ac @@ -119,6 +119,18 @@ if (test -z "${path_dbussessionbusdir}"); then fi AC_SUBST(DBUS_SESSIONBUSDIR, [${path_dbussessionbusdir}]) +AC_ARG_WITH([zsh-completion-dir], AC_HELP_STRING([--with-zsh-completion-dir=DIR], + [path to install zsh completions]), + [path_zshcompletiondir=${withval}], + [path_zshcompletiondir="yes"]) + +if (test "${path_zshcompletiondir}" = "yes"); then + path_zshcompletiondir="$datarootdir/zsh/site-functions" + AC_MSG_RESULT([${path_zshcompletiondir}]) +fi +AC_SUBST(ZSH_COMPLETIONDIR, [${path_zshcompletiondir}]) +AM_CONDITIONAL(ZSH_COMPLETIONS, test "${path_zshcompletiondir}" != "no") + AC_ARG_ENABLE(backtrace, AC_HELP_STRING([--enable-backtrace], [compile backtrace support]), [enable_backtrace=${enableval}]) -- cgit v1.2.1