From 8e3a0d790e48e15f5fb7c38fba314548fe21a755 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Wed, 28 Mar 2012 11:08:38 +1100 Subject: [PATCH] Warn if NcursesW (or similar) is not found Add a prominent warning if NcursesW (or some other wide-character version of Curses) is not found at build time. It is not an error because the game might be run under a single-byte encoding (eg, ISO8859-1), even if compiled under a multibyte encoding (eg, UTF-8). --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 94ea717..20e3631 100644 --- a/configure.ac +++ b/configure.ac @@ -59,6 +59,14 @@ AX_WITH_CURSES AS_IF([test "x$ax_cv_curses" != xyes || test "x$ax_cv_curses_color" != xyes], [ AC_MSG_ERROR([requires an X/Open-compatible Curses library with colour]) ]) +AS_IF([test "x$ax_cv_curses_enhanced" != xyes], [ + AC_MSG_WARN([no X/Open-compatible Enhanced Curses library found + +***************** Locales with multibyte character sequences (such as +*** WARNING *** UTF-8) require a wide-character version of Curses, +***************** such as NcursesW, to work correctly. +]) +]) AC_CONFIG_FILES([ Makefile