commit 2efd8ce2217cfbb81b9b5532228febfe32800392
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Wed Nov 4 08:16:55 2015 +0100
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Wed Nov 4 08:16:55 2015 +0100
autoconf: Re-direct error messages if pkg-config cannot be found
Else it will print something like
./configure: line 4426: --exists: command not found
which isn't really helpful, either.
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 2f2689c5..20cde8f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -121,7 +121,7 @@ AC_SDL_MAIN_WORKAROUND([
AC_ARG_WITH([bashcompletiondir],
AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completion directory]),
[],
- [AS_IF([$($PKG_CONFIG --exists bash-completion)],
+ [AS_IF([$($PKG_CONFIG --exists bash-completion 2> /dev/null)],
[bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)],
[bashcompletiondir=${datadir}/bash-completion/completions])])