* configure.in: Add check for iconv() and the necessary code

to support the charset selection patch.
This commit is contained in:
Pavel Roskin 2001-05-31 00:53:06 +00:00
parent daa8e84176
commit 1ddcc8951c
2 changed files with 29 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2001-05-30 Pavel Roskin <proski@gnu.org>
* configure.in: Add check for iconv() and the necessary code
to support the charset selection patch.
* configure.in: Add check for ESCDELAY variable in ncurses.
2001-05-29 Pavel Roskin <proski@gnu.org>

View File

@ -879,6 +879,32 @@ AC_SUBST(SEDCMD)
AC_SUBST(SEDCMD2)
dnl
dnl Basic support for charset conversion.
dnl May be useful e.g. for converting help and hints.
dnl
have_iconv=
AC_CHECK_FUNCS(iconv, [have_iconv=yes])
dnl
dnl User visible support for charset conversion.
dnl
AC_ARG_ENABLE([charset],
[--enable-charset Support for charset selection and conversion])
have_charset=
if test "x$enable_charset" = xyes; then
if test -z "$have_iconv"; then
AC_MSG_WARN([Cannot enable charset support because iconv function is missing])
else
AC_DEFINE(HAVE_CHARSET, 1,
[Define to enable charset selection and conversion])
have_charset=yes
fi
fi
AM_CONDITIONAL(CHARSET, [test -n "$have_charset"])
dnl
dnl This code should be moved to the ac_WITH_SLANG
dnl