summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-08 12:45:48 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-08 12:45:48 +0000
commit1519205f24ebe1a45e79e9463aa1c1d2cd8e1f4f (patch)
tree7964b4bf4c1e68591c257996ee30888f0e7fc541 /configure
parent1b8e9839b05a8dadefa1f6613f166c3648c1f641 (diff)
downloadmpv-1519205f24ebe1a45e79e9463aa1c1d2cd8e1f4f.tar.bz2
mpv-1519205f24ebe1a45e79e9463aa1c1d2cd8e1f4f.tar.xz
Automaticall convert message to console charset, use utf8 for GTK2 Gui
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17773 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure b/configure
index a28905c493..80b238335f 100755
--- a/configure
+++ b/configure
@@ -6958,6 +6958,20 @@ else
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 @@ cat > config.h << EOF
/* use GNU internationalization */
$_def_i18n
+/* name of messages charset */
+$_def_charset
+
/* Runtime CPU detection */
$_def_runtime_cpudetection