s/paramter/parameter/
[midnight-commander.git] / src / textconf.c
blob526fe0fc343647dcb462967168df4d82fa690f7e
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.
20 #include <config.h>
21 #include <stdio.h>
23 #include "global.h"
25 #ifdef USE_VFS
26 static const char *const vfs_supported[] = {
27 "tarfs",
28 "extfs",
29 "cpiofs",
30 #ifdef USE_NETCODE
31 "ftpfs",
32 "fish",
33 # ifdef WITH_MCFS
34 "mcfs",
35 # endif
36 # ifdef WITH_SMBFS
37 "smbfs",
38 # endif
39 #endif /* USE_NETCODE */
40 #ifdef USE_EXT2FSLIB
41 "undelfs",
42 #endif
43 NULL
45 #endif /* USE_VFS */
48 static const char *const features[] = {
49 #ifdef USE_INTERNAL_EDIT
50 N_("With builtin Editor\n"),
51 #endif
53 #ifdef HAVE_SLANG
55 # ifdef HAVE_SYSTEM_SLANG
56 N_("Using system-installed S-Lang library"),
57 # else
58 N_("Using included S-Lang library"),
59 # endif
61 " ",
63 #ifdef USE_TERMCAP
64 N_("with termcap database"),
65 #else
66 N_("with terminfo database"),
67 #endif
69 #elif defined(USE_NCURSES)
70 N_("Using the ncurses library"),
71 #else
72 #error "Cannot compile mc without S-Lang or ncurses"
73 #endif /* !HAVE_SLANG && !USE_NCURSES */
75 "\n",
77 #ifdef HAVE_SUBSHELL_SUPPORT
78 # ifdef SUBSHELL_OPTIONAL
79 N_("With optional subshell support"),
80 # else
81 N_("With subshell support as default"),
82 # endif
83 "\n",
84 #endif /* !HAVE_SUBSHELL_SUPPORT */
86 #ifdef WITH_BACKGROUND
87 N_("With support for background operations\n"),
88 #endif
90 #ifdef HAVE_LIBGPM
91 N_("With mouse support on xterm and Linux console\n"),
92 #else
93 N_("With mouse support on xterm\n"),
94 #endif
96 #ifdef HAVE_TEXTMODE_X11_SUPPORT
97 N_("With support for X11 events\n"),
98 #endif
100 #ifdef ENABLE_NLS
101 N_("With internationalization support\n"),
102 #endif
104 #ifdef HAVE_CHARSET
105 N_("With multiple codepages support\n"),
106 #endif
108 NULL
111 void
112 version (int verbose)
114 int i;
116 printf (_("GNU Midnight Commander %s\n"), VERSION);
117 if (!verbose)
118 return;
120 #ifdef USE_VFS
121 printf (_("Virtual File System:"));
122 for (i = 0; vfs_supported[i]; i++) {
123 if (i == 0)
124 printf (" ");
125 else
126 printf (", ");
128 printf ("%s", _(vfs_supported[i]));
130 printf ("\n");
131 #endif /* USE_VFS */
133 for (i = 0; features[i]; i++)
134 printf ("%s", _(features[i]));