From 6002728a7cf7e92a8015beba8b03222c74ae88fc Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 29 Oct 2002 21:46:20 +0000 Subject: [PATCH] * acinclude.m4 (MC_WITH_SLANG): Reject S-Lang with UTF-8 support, unless external S-Lang was explicitly requested. --- ChangeLog | 5 +++++ acinclude.m4 | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index e4e69eefc..ce93effa6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-10-29 Pavel Roskin + + * acinclude.m4 (MC_WITH_SLANG): Reject S-Lang with UTF-8 + support, unless external S-Lang was explicitly requested. + 2002-10-24 Pavel Roskin * lib/mc.ext.in: Don't use links to view html - the "-dump" diff --git a/acinclude.m4 b/acinclude.m4 index 449d4023f..86146b12b 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -657,6 +657,13 @@ AC_DEFUN([MC_WITH_SLANG], [ AC_CHECK_LIB([slang], [SLang_init_tty], [MCLIBS="$MCLIBS -lslang"], [with_screen=mcslang]) + dnl Unless external S-Lang was requested, reject S-Lang with UTF-8 hacks + m4_if([$1], strict, , + [AC_CHECK_LIB([slang], [SLsmg_write_nwchars], + [AC_MSG_WARN([Rejecting S-Lang with UTF-8 support, \ +it doesn't work well]) + with_screen=mcslang])]) + dnl Check the header if test x$with_screen = xslang; then slang_h_found=