(tree_move): fix coding style.
[midnight-commander.git] / m4.include / mc-i18n.m4
blob8f1474139f7b5b5932ea43bc66469766712ec41e
1 dnl @synopsis mc_I18N
2 dnl
3 dnl Check if environment is ready for get translations of docs from transifex
4 dnl
5 dnl @author Slava Zanko <slavazanko@gmail.com>
6 dnl @version 2011-02-10
7 dnl @license GPL
8 dnl @copyright Free Software Foundation, Inc.
10 AC_DEFUN([mc_I18N],[
11     dnl User visible support for charset conversion.
12     AC_ARG_ENABLE([charset],
13         AS_HELP_STRING([--enable-charset], [Support for charset selection and conversion @<:@yes@:>@]))
14     have_charset=
15     charset_msg="no"
16     if test "x$enable_charset" != "xno"; then
17         AC_DEFINE(HAVE_CHARSET, 1, [Define to enable charset selection and conversion])
18         have_charset=yes
19         charset_msg="yes"
21         dnl Solaris has different name of Windows 1251 encoding
22         case $host_os in
23             solaris*)
24                 CP1251="ANSI-1251"
25                 ;;
26             *)
27                 CP1251="CP1251"
28                 ;;
29         esac
31         AC_SUBST(CP1251)
32     fi