aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar Jani Nikula <jani@nikula.org>2014-02-02 18:47:57 +0200
committerGravatar David Bremner <david@tethera.net>2014-02-03 16:19:08 -0400
commitaff5af582ecbacb4004ad306c6ef463d61f1ed3a (patch)
tree450fd95f29a1f6df7529f4213b6e0012a71174dc /configure
parent9ac863c549e8022dc06d73e07d79a74ec7f0569f (diff)
configure: only install bash completion if supported
Our bash completion depends on bash-completion 1.90 or later. Only install where available.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 13b60620..66aaedbe 100755
--- a/configure
+++ b/configure
@@ -360,6 +360,14 @@ else
have_valgrind=0
fi
+printf "Checking for bash-completion (>= 1.90)... "
+if pkg-config --atleast-version=1.90 bash-completion; then
+ printf "Yes.\n"
+else
+ printf "No (will not install bash completion).\n"
+ WITH_BASH=0
+fi
+
if [ -z "${EMACSLISPDIR}" ]; then
if pkg-config --exists emacs; then
EMACSLISPDIR=$(pkg-config emacs --variable sitepkglispdir)