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.
22 * \brief Source: prints features specific for this build
29 #include <sys/types.h>
31 #include "lib/global.h"
32 #include "src/textconf.h"
34 /*** global variables ****************************************************************************/
36 /*** file scope macro definitions ****************************************************************/
38 /*** file scope type declarations ****************************************************************/
40 /*** file scope variables ************************************************************************/
43 static const char *const vfs_supported
[] = {
44 #ifdef ENABLE_VFS_CPIO
53 #ifdef ENABLE_VFS_EXTFS
56 #ifdef ENABLE_VFS_UNDELFS
62 #ifdef ENABLE_VFS_FISH
67 #endif /* ENABLE_VFS_SMB */
70 #endif /* ENABLE_VFS */
72 static const char *const features
[] = {
73 #ifdef USE_INTERNAL_EDIT
74 N_("With builtin Editor\n"),
79 N_("Using system-installed S-Lang library"),
83 N_("with terminfo database"),
85 #elif defined(USE_NCURSES)
86 N_("Using the ncurses library"),
87 #elif defined(USE_NCURSESW)
88 N_("Using the ncursesw library"),
90 #error "Cannot compile mc without S-Lang or ncurses"
91 #endif /* !HAVE_SLANG && !USE_NCURSES */
95 #ifdef HAVE_SUBSHELL_SUPPORT
96 #ifdef SUBSHELL_OPTIONAL
97 N_("With optional subshell support"),
99 N_("With subshell support as default"),
102 #endif /* !HAVE_SUBSHELL_SUPPORT */
104 #ifdef WITH_BACKGROUND
105 N_("With support for background operations\n"),
109 N_("With mouse support on xterm and Linux console\n"),
111 N_("With mouse support on xterm\n"),
114 #ifdef HAVE_TEXTMODE_X11_SUPPORT
115 N_("With support for X11 events\n"),
119 N_("With internationalization support\n"),
123 N_("With multiple codepages support\n"),
129 /*** file scope functions ************************************************************************/
130 /* --------------------------------------------------------------------------------------------- */
132 /* --------------------------------------------------------------------------------------------- */
133 /*** public functions ****************************************************************************/
134 /* --------------------------------------------------------------------------------------------- */
141 printf (_("GNU Midnight Commander %s\n"), VERSION
);
144 printf (_("Virtual File Systems:"));
145 for (i
= 0; vfs_supported
[i
] != NULL
; i
++)
146 printf ("%s %s", i
== 0 ? "" : ",", _(vfs_supported
[i
]));
149 #endif /* ENABLE_VFS */
151 for (i
= 0; features
[i
] != NULL
; i
++)
152 printf ("%s", _(features
[i
]));
154 (void) printf (_("Data types:"));
155 #define TYPE_INFO(T) \
156 (void)printf(" %s: %d;", #T, (int) (CHAR_BIT * sizeof(T)))
164 (void) printf ("\n");
167 /* --------------------------------------------------------------------------------------------- */