1 /* Print features specific for this build
3 Copyright (C) 2001-2002 Free Software Foundation
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 static const char *const vfs_supported
[] = {
39 #endif /* USE_NETCODE */
48 static const char *const features
[] = {
49 #ifdef USE_INTERNAL_EDIT
50 N_("With builtin Editor\n"),
55 # ifdef HAVE_SYSTEM_SLANG
56 N_("Using system-installed S-Lang library"),
58 N_("Using included S-Lang library"),
64 N_("with termcap database"),
66 N_("with terminfo database"),
69 #elif defined(USE_NCURSES)
70 N_("Using the ncurses library"),
72 #error "Cannot compile mc without S-Lang or ncurses"
73 #endif /* !HAVE_SLANG && !USE_NCURSES */
77 #ifdef HAVE_SUBSHELL_SUPPORT
78 # ifdef SUBSHELL_OPTIONAL
79 N_("With optional subshell support"),
81 N_("With subshell support as default"),
84 #endif /* !HAVE_SUBSHELL_SUPPORT */
86 #ifdef WITH_BACKGROUND
87 N_("With support for background operations\n"),
91 N_("With mouse support on xterm and Linux console\n"),
93 N_("With mouse support on xterm\n"),
96 #ifdef HAVE_TEXTMODE_X11_SUPPORT
97 N_("With support for X11 events\n"),
101 N_("With internationalization support\n"),
105 N_("With multiple codepages support\n"),
112 version (int verbose
)
116 printf (_("GNU Midnight Commander %s\n"), VERSION
);
121 printf (_("Virtual File System:"));
122 for (i
= 0; vfs_supported
[i
]; i
++) {
128 printf ("%s", _(vfs_supported
[i
]));
133 for (i
= 0; features
[i
]; i
++)
134 printf ("%s", _(features
[i
]));