mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Don't hardcode path for bash completions
Instead, use pkg-config to find out where the completions should go.
This commit is contained in:
parent
a68421c263
commit
cf5f62ffb6
2 changed files with 4 additions and 1 deletions
|
|
@ -6,6 +6,9 @@ AM_SILENT_RULES([yes])
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_LANG([C])
|
AC_LANG([C])
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
PKG_PROG_PKG_CONFIG
|
||||||
|
PKG_CHECK_VAR(bashcompdir, [bash-completion], [completionsdir], , bashcompdir="${sysconfdir}/bash_completion.d")
|
||||||
|
AC_SUBST(bashcompdir)
|
||||||
AC_CONFIG_FILES([Makefile])
|
AC_CONFIG_FILES([Makefile])
|
||||||
AC_CONFIG_FILES([src/Makefile])
|
AC_CONFIG_FILES([src/Makefile])
|
||||||
AC_CONFIG_FILES([man/Makefile])
|
AC_CONFIG_FILES([man/Makefile])
|
||||||
|
|
|
||||||
|
|
@ -7,5 +7,5 @@ gotty_SOURCES = tty.c \
|
||||||
include/gotty/options.h \
|
include/gotty/options.h \
|
||||||
include/gotty/time.h \
|
include/gotty/time.h \
|
||||||
include/gotty/print.h
|
include/gotty/print.h
|
||||||
bashcompletiondir=$(sysconfdir)/bash_completion.d
|
bashcompletiondir=@bashcompdir@
|
||||||
dist_bashcompletion_DATA=bash-completion/gotty
|
dist_bashcompletion_DATA=bash-completion/gotty
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue