mirror of
https://github.com/troglobit/editline.git
synced 2025-12-16 02:54:46 +08:00
More cleanup. Added license blurb to top of all source files.
Remove all old $Id:$ and similar constructs, they don't provide any additional benefit anymore. Add configure options for toggling terminal bell and toying with SIGSTOP using Ctrl-Z. Rename config option for ANSI keys to get a consistent namespace. Also did some work on ANSI-fication of function definitions, lot's of that was still lingering around.
This commit is contained in:
26
configure.ac
26
configure.ac
@@ -55,7 +55,7 @@ AC_ARG_ENABLE([default-complete],
|
||||
AC_MSG_ERROR([bad value ${enableval} for --enable-default-complete])
|
||||
;;
|
||||
esac],[complete=false])
|
||||
AM_CONDITIONAL([COMPLETE], [test x$complete = xtrue])
|
||||
AM_CONDITIONAL([CONFIG_DEFAULT_COMPLETE], [test x$complete = xtrue])
|
||||
|
||||
ac_enable_arrow_keys=no
|
||||
AC_ARG_ENABLE(arrow-keys,
|
||||
@@ -63,8 +63,28 @@ AC_ARG_ENABLE(arrow-keys,
|
||||
[ ac_enable_arrow_keys=$enableval ], [ ac_enable_arrow_keys=no])
|
||||
|
||||
if test "x${ac_enable_arrow_keys}" = xyes ; then
|
||||
AC_DEFINE([ANSI_ARROWS], [],
|
||||
[Define to include ANSI arrow keys support in minix-editline])
|
||||
AC_DEFINE([CONFIG_ANSI_ARROWS], [],
|
||||
[Define to include ANSI arrow keys support.])
|
||||
fi
|
||||
|
||||
ac_enable_sigstop=no
|
||||
AC_ARG_ENABLE(sigstop,
|
||||
[ --enable-sigstop Enable SIGSTOP key.],
|
||||
[ ac_enable_sigstop=$enableval ], [ ac_enable_sigstop=no])
|
||||
|
||||
if test "x${ac_enable_sigstop}" = xyes ; then
|
||||
AC_DEFINE([CONFIG_SIGSTOP], [],
|
||||
[Define to enable SIGSTOP (Ctrl-Z) key.])
|
||||
fi
|
||||
|
||||
ac_enable_terminal_bell=no
|
||||
AC_ARG_ENABLE(terminal-bell,
|
||||
[ --enable-terminal-bell Enable terminal bell on completion.],
|
||||
[ ac_enable_terminal_bell=$enableval ], [ ac_enable_terminal_bell=no])
|
||||
|
||||
if test "x${ac_enable_terminal_bell}" = xyes ; then
|
||||
AC_DEFINE([CONFIG_ANNOYING_NOISE], [],
|
||||
[Define to enable terminal bell on completion.])
|
||||
fi
|
||||
|
||||
AC_OUTPUT(Makefile src/Makefile include/Makefile man/Makefile examples/Makefile)
|
||||
|
||||
Reference in New Issue
Block a user