[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 17/219: configure: fix default location for fish co
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 17/219: configure: fix default location for fish completions |
Date: |
Wed, 22 May 2019 19:15:56 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 55734f3a27c2d495f724ea50d196fc9d9a91966b
Author: Eli Schwartz <address@hidden>
AuthorDate: Tue Apr 2 20:43:29 2019 -0400
configure: fix default location for fish completions
Fish defines a vendor completions directory for completions that are not
installed as part of the fish project itself, and the vendor completions
are preferred if they exist. This prevents trying to overwrite the
builtin curl.fish completion (or creating file conflicts in distro
packaging).
Prefer the pkg-config defined location exported by fish, if it can be
found, and fall back to the correct directory defined by most systems.
Closes #3723
Reviewed-by: Daniel Gustafsson
---
configure.ac | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index d8a4736e5..00fef9489 100755
--- a/configure.ac
+++ b/configure.ac
@@ -3479,7 +3479,12 @@ case "$OPT_FISH_FPATH" in
;;
default|yes)
dnl --with-fish-functions-dir option used without path
- FISH_FUNCTIONS_DIR="$datarootdir/fish/completions"
+ CURL_CHECK_PKGCONFIG(fish)
+ if test "$PKGCONFIG" != "no" ; then
+ FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
+ else
+ FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
+ fi
AC_SUBST(FISH_FUNCTIONS_DIR)
;;
*)
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnurl] 17/219: configure: fix default location for fish completions,
gnunet <=