Implement ignore and UTF-8

This commit is contained in:
Mingye Wang
2021-04-20 09:52:40 +08:00
parent 69c7e86967
commit 8fd71febc6
5 changed files with 98 additions and 19 deletions

View File

@@ -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