Updated Russian translation.
[midnight-commander.git] / src / textconf.c
blobb9344aa86350509d858f1ed0169538cafa01ac49
1 /* Print features specific for this build
3 Copyright (C) 2000, 2001, 2002, 2004, 2005, 2007
4 Free Software Foundation, Inc.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 /** \file textconf.c
22 * \brief Source: prints features specific for this build
25 #include <config.h>
27 #include <limits.h>
28 #include <stdio.h>
29 #include <sys/types.h>
31 #include "lib/global.h"
32 #include "src/textconf.h"
34 #ifdef ENABLE_VFS
35 static const char *const vfs_supported[] = {
36 "tarfs",
37 "extfs",
38 "cpiofs",
39 #ifdef USE_NETCODE
40 "ftpfs",
41 "fish",
42 # ifdef ENABLE_VFS_MCFS
43 "mcfs",
44 # endif
45 # ifdef ENABLE_VFS_SMB
46 "smbfs",
47 # endif /* ENABLE_VFS_SMB */
48 #endif /* USE_NETCODE */
49 #ifdef USE_EXT2FSLIB
50 "undelfs",
51 #endif
52 NULL
54 #endif /* ENABLE_VFS */
57 static const char *const features[] = {
58 #ifdef USE_INTERNAL_EDIT
59 N_("With builtin Editor\n"),
60 #endif
62 #ifdef HAVE_SLANG
64 N_("Using system-installed S-Lang library"),
66 " ",
68 N_("with terminfo database"),
70 #elif defined(USE_NCURSES)
71 N_("Using the ncurses library"),
72 #elif defined(USE_NCURSESW)
73 N_("Using the ncursesw library"),
74 #else
75 #error "Cannot compile mc without S-Lang or ncurses"
76 #endif /* !HAVE_SLANG && !USE_NCURSES */
78 "\n",
80 #ifdef HAVE_SUBSHELL_SUPPORT
81 # ifdef SUBSHELL_OPTIONAL
82 N_("With optional subshell support"),
83 # else
84 N_("With subshell support as default"),
85 # endif
86 "\n",
87 #endif /* !HAVE_SUBSHELL_SUPPORT */
89 #ifdef WITH_BACKGROUND
90 N_("With support for background operations\n"),
91 #endif
93 #ifdef HAVE_LIBGPM
94 N_("With mouse support on xterm and Linux console\n"),
95 #else
96 N_("With mouse support on xterm\n"),
97 #endif
99 #ifdef HAVE_TEXTMODE_X11_SUPPORT
100 N_("With support for X11 events\n"),
101 #endif
103 #ifdef ENABLE_NLS
104 N_("With internationalization support\n"),
105 #endif
107 #ifdef HAVE_CHARSET
108 N_("With multiple codepages support\n"),
109 #endif
111 NULL
114 void
115 show_version (void)
117 size_t i;
119 printf (_("GNU Midnight Commander %s\n"), VERSION);
121 #ifdef ENABLE_VFS
122 printf (_("Virtual File Systems:"));
123 for (i = 0; vfs_supported[i] != NULL; i++)
124 printf ("%s %s", i == 0 ? "" : ",", _(vfs_supported[i]));
126 printf ("\n");
127 #endif /* ENABLE_VFS */
129 for (i = 0; features[i] != NULL; i++)
130 printf ("%s", _(features[i]));
132 (void)printf(_("Data types:"));
133 #define TYPE_INFO(T) \
134 (void)printf(" %s: %d;", #T, (int) (CHAR_BIT * sizeof(T)))
135 TYPE_INFO(char);
136 TYPE_INFO(int);
137 TYPE_INFO(long);
138 TYPE_INFO(void *);
139 TYPE_INFO(size_t);
140 TYPE_INFO(off_t);
141 #undef TYPE_INFO
142 (void)printf("\n");