From 1ddcc8951c9e77bc31611f21e0cba7cd4c167b33 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Thu, 31 May 2001 00:53:06 +0000 Subject: [PATCH] * configure.in: Add check for iconv() and the necessary code to support the charset selection patch. --- ChangeLog | 3 +++ configure.in | 26 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/ChangeLog b/ChangeLog index 990c1fcfc..8c73ce1a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-05-30 Pavel Roskin + * 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 diff --git a/configure.in b/configure.in index 476fcb524..eb0aea0aa 100644 --- a/configure.in +++ b/configure.in @@ -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