mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-13 11:34:10 +00:00
bash-completion: Respect the prefix
Don't try and install the bash helpers outside the defined prefix. https://bugzilla.gnome.org/show_bug.cgi?id=744877
This commit is contained in:
parent
27644a6bd2
commit
038c0a1360
1 changed files with 11 additions and 3 deletions
14
configure.ac
14
configure.ac
|
@ -141,12 +141,20 @@ AC_ARG_WITH([bash-completion-dir],
|
|||
[],
|
||||
[with_bash_completion_dir=yes])
|
||||
|
||||
if test "x$with_bash_completion_dir" = "xyes"; then
|
||||
if test "x$with_bash_completion_dir" = "xyes"
|
||||
then
|
||||
extra_args=
|
||||
|
||||
if test "x$prefix" != "xNONE"
|
||||
then
|
||||
extra_args="--define-variable=prefix=\"$prefix\""
|
||||
fi
|
||||
|
||||
PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0],
|
||||
[BASH_COMPLETION_DIR="`pkg-config --variable=completionsdir bash-completion`"],
|
||||
[BASH_COMPLETION_DIR="`eval pkg-config $extra_args --variable=completionsdir bash-completion`"],
|
||||
[BASH_COMPLETION_DIR="$datadir/bash-completion/completions"])
|
||||
PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0],
|
||||
[BASH_HELPERS_DIR="`pkg-config --variable=helpersdir bash-completion`"],
|
||||
[BASH_HELPERS_DIR="`eval pkg-config $extra_args --variable=helpersdir bash-completion`"],
|
||||
[BASH_HELPERS_DIR="$datadir/bash-completion/helpers"])
|
||||
else
|
||||
BASH_COMPLETION_DIR="$with_bash_completion_dir/completions"
|
||||
|
|
Loading…
Reference in a new issue