Skip to content
Snippets Groups Projects
Commit c6b91172 authored by Sebastian Dröge's avatar Sebastian Dröge :tea: Committed by Thibault Saunier
Browse files

Revert "build: fix make distcheck."

This reverts commit 462727d6.

This "fix" broke the build on Windows, where both prefix and datadir are
absolute paths and as such we would concatenate two absolute paths and fail.
parent de06d828
No related branches found
No related tags found
Loading
......@@ -175,15 +175,9 @@ AC_ARG_WITH([bash-completion-dir],
[with_bash_completion_dir=yes])
if test "x$with_bash_completion_dir" = "xyes"; then
if test "x$prefix" = xNONE; then
PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0],
[BASH_COMPLETION_DIR="`pkg-config --variable=completionsdir bash-completion`"],
[BASH_COMPLETION_DIR="$datadir/bash-completion/completions"])
else
PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0],
[BASH_COMPLETION_DIR="`pkg-config --define-variable=prefix=$prefix --variable=completionsdir bash-completion`"],
[BASH_COMPLETION_DIR="$prefix/$datadir/bash-completion/completions"])
fi
PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0],
[BASH_COMPLETION_DIR="`pkg-config --variable=completionsdir bash-completion`"],
[BASH_COMPLETION_DIR="$datadir/bash-completion/completions"])
else
BASH_COMPLETION_DIR="$with_bash_completion_dir"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment