2 AC_INIT([tio], [1.12], [], [tio], [https://tio.github.io])
3 AC_CONFIG_HEADERS([src/include/config.h])
4 AM_INIT_AUTOMAKE([1.11 foreign dist-xz no-dist-gzip -Wall -Werror])
12 AC_ARG_WITH([bash-completion-dir],
13 AS_HELP_STRING([--with-bash-completion-dir[=PATH]],
14 [Install the bash auto-completion script in this directory. @<:@default=yes@:>@]),
16 [with_bash_completion_dir=yes])
18 if test "x$with_bash_completion_dir" = "xyes"; then
19 PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0],
20 [BASH_COMPLETION_DIR="`pkg-config --variable=completionsdir bash-completion`"],
21 [BASH_COMPLETION_DIR="${sysconfdir}/bash_completion.d"])
23 BASH_COMPLETION_DIR="$with_bash_completion_dir"
25 AC_SUBST([BASH_COMPLETION_DIR])
26 AM_CONDITIONAL([ENABLE_BASH_COMPLETION],[test "x$with_bash_completion_dir" != "xno"])
28 AC_CONFIG_FILES([Makefile])
29 AC_CONFIG_FILES([src/Makefile])
30 AC_CONFIG_FILES([man/Makefile])