diff configure @ 17772:0d7cc103ed1e

Automaticall convert message to console charset, use utf8 for GTK2 Gui
author reimar
date Wed, 08 Mar 2006 12:45:48 +0000
parents 4c4f5c73c152
children dca06252af6c
line wrap: on
line diff
--- a/configure	Wed Mar 08 12:37:10 2006 +0000
+++ b/configure	Wed Mar 08 12:45:48 2006 +0000
@@ -6958,6 +6958,20 @@
 fi
 # --------------- GUI specific tests end -------------------
 
+if test "$_charset" = "noconv" ; then
+  _charset=""
+elif test -z "$_charset" ; then
+  if test "$_gtk1" = yes ; then
+    _charset=`cat ${_mp_help}.charset`
+  else
+    _charset=utf8
+  fi
+fi
+if test "$_charset" ; then
+  _def_charset="#define MSG_CHARSET \"$_charset\""
+else
+  _def_charset="#undef MSG_CHARSET"
+fi
 
 
 #############################################################################
@@ -7404,6 +7418,9 @@
 /* use GNU internationalization */
 $_def_i18n
 
+/* name of messages charset */
+$_def_charset
+
 /* Runtime CPU detection */
 $_def_runtime_cpudetection