mirror of
https://github.com/troglobit/editline.git
synced 2025-12-16 02:54:46 +08:00
Implement ignore and UTF-8
This commit is contained in:
@@ -61,6 +61,9 @@ AC_ARG_ENABLE(terminal-bell,
|
||||
AC_ARG_ENABLE(termcap,
|
||||
AS_HELP_STRING([--enable-termcap], [Use termcap library to query terminal size.]))
|
||||
|
||||
AC_ARG_ENABLE(locale,
|
||||
AS_HELP_STRING([--enable-locale], [Use standard POSIX functions to handle locales (multibyte width, etc.).]))
|
||||
|
||||
AC_ARG_ENABLE([examples],
|
||||
[AC_HELP_STRING([--enable-examples], [Build examples/ directory])],
|
||||
[], [enable_examples=no])
|
||||
@@ -86,6 +89,10 @@ AS_IF([test "x$enable_sigstop" = "xyes"],
|
||||
AS_IF([test "x$enable_terminal_bell" = "xyes"],
|
||||
AC_DEFINE(CONFIG_TERMINAL_BELL, 1, [Define to enable terminal bell on completion.]))
|
||||
|
||||
AS_IF([test "x$enable_locale" = "xyes"],
|
||||
AC_DEFINE(CONFIG_UNIWIDTH, 1, [Define to enable locale-sensitive width calculation.])
|
||||
AC_CHECK_FUNCS([wcwidth mbrtowc]))
|
||||
|
||||
AM_CONDITIONAL([ENABLE_EXAMPLES], [test "$enable_examples" = yes])
|
||||
|
||||
# Check for a termcap compatible library if enabled
|
||||
|
||||
Reference in New Issue
Block a user