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.
26 #include <sys/types.h>
32 static const char *const vfs_supported
[] = {
45 #endif /* USE_NETCODE */
54 static const char *const features
[] = {
55 #ifdef USE_INTERNAL_EDIT
56 N_("With builtin Editor\n"),
61 N_("Using system-installed S-Lang library"),
65 N_("with terminfo database"),
67 #elif defined(USE_NCURSES)
68 N_("Using the ncurses library"),
70 #error "Cannot compile mc without S-Lang or ncurses"
71 #endif /* !HAVE_SLANG && !USE_NCURSES */
75 #ifdef HAVE_SUBSHELL_SUPPORT
76 # ifdef SUBSHELL_OPTIONAL
77 N_("With optional subshell support"),
79 N_("With subshell support as default"),
82 #endif /* !HAVE_SUBSHELL_SUPPORT */
84 #ifdef WITH_BACKGROUND
85 N_("With support for background operations\n"),
89 N_("With mouse support on xterm and Linux console\n"),
91 N_("With mouse support on xterm\n"),
94 #ifdef HAVE_TEXTMODE_X11_SUPPORT
95 N_("With support for X11 events\n"),
99 N_("With internationalization support\n"),
103 N_("With multiple codepages support\n"),
110 show_version (int verbose
)
114 printf (_("GNU Midnight Commander %s\n"), VERSION
);
119 printf (_("Virtual File System:"));
120 for (i
= 0; vfs_supported
[i
]; i
++) {
126 printf ("%s", _(vfs_supported
[i
]));
131 for (i
= 0; features
[i
]; i
++)
132 printf ("%s", _(features
[i
]));
134 (void)printf("Data types:");
135 #define TYPE_INFO(T) \
136 (void)printf(" %s %d", #T, (int) (CHAR_BIT * sizeof(T)))