From: Karel Zak Date: Fri, 5 Apr 2013 13:54:31 +0000 (+0200) Subject: build-sys: add --disable-bash-completion X-Git-Tag: v2.23-rc2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ece777e9de4abe3256cef3b6e6278056da3efef7;p=thirdparty%2Futil-linux.git build-sys: add --disable-bash-completion Signed-off-by: Karel Zak --- diff --git a/bash-completion/Makemodule.am b/bash-completion/Makemodule.am index 08127ea808..34bdc6cb40 100644 --- a/bash-completion/Makemodule.am +++ b/bash-completion/Makemodule.am @@ -1,3 +1,4 @@ +if BUILD_BASH_COMPLETION dist_bashcompletion_DATA = \ bash-completion/blkid \ bash-completion/cal \ @@ -246,3 +247,6 @@ dist_bashcompletion_DATA += \ bash-completion/ul endif # ...text-utils + + +endif # BUILD_BASH_COMPLETION diff --git a/configure.ac b/configure.ac index cd4e826a96..b456733049 100644 --- a/configure.ac +++ b/configure.ac @@ -1353,6 +1353,13 @@ AC_ARG_WITH([bashcompletiondir], ]) AC_SUBST([bashcompletiondir], [$with_bashcompletiondir]) +AC_ARG_ENABLE([bash-completion], + AS_HELP_STRING([--disable-bash-completion], [do not install bash completion files]), + [], enable_bash_completion=yes +) + +AM_CONDITIONAL(BUILD_BASH_COMPLETION, test "x$enable_bash_completion" = xyes) + AC_ARG_ENABLE([pg-bell], AS_HELP_STRING([--disable-pg-bell], [let pg not ring the bell on invalid keys]),