From a125473504ec7ba6577f31ae863067dbc385d5a8 Mon Sep 17 00:00:00 2001
From: Joshua Watt <JPEWhacker@gmail.com>
Date: Mon, 11 Nov 2019 13:59:38 -0600
Subject: [PATCH 1/3] Revert "Ticket #4031: add option to control configure
args."
This reverts commit d009ea7b8b09e0acf33663738a023ee0df5fe4d0.
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
configure.ac | 8 +-------
src/args.c | 6 ------
src/textconf.c | 2 --
3 files changed, 1 insertion(+), 15 deletions(-)
diff --git a/configure.ac b/configure.ac
index 34c67a6ef..6abe53100 100644
a
|
b
|
dnl Clarify do we really need GModule |
546 | 546 | AM_CONDITIONAL([HAVE_GMODULE], [test -n "$g_module_supported" && \ |
547 | 547 | test x"$textmode_x11_support" = x"yes" -o x"$enable_aspell" = x"yes"]) |
548 | 548 | |
549 | | AC_ARG_ENABLE([configure-args], |
550 | | AS_HELP_STRING([--enable-configure-args], [Handle all compiler warnings as errors])) |
551 | | if test "x$enable_configure_args" != xno; then |
552 | | AC_DEFINE([ENABLE_CONFIGURE_ARGS], 1, [Define to enable showing configure arguments in help]) |
553 | | AC_DEFINE_UNQUOTED([MC_CONFIGURE_ARGS], ["$ac_configure_args"], [MC configure arguments]) |
554 | | fi |
555 | | |
| 549 | AC_DEFINE_UNQUOTED([MC_CONFIGURE_ARGS], ["$ac_configure_args"], [MC configure arguments]) |
556 | 550 | |
557 | 551 | AC_CONFIG_FILES( |
558 | 552 | [ |
diff --git a/src/args.c b/src/args.c
index f8dc24020..baef1a1c8 100644
a
|
b
|
static gboolean mc_args__nouse_subshell = FALSE; |
95 | 95 | #endif /* ENABLE_SUBSHELL */ |
96 | 96 | static gboolean mc_args__show_datadirs = FALSE; |
97 | 97 | static gboolean mc_args__show_datadirs_extended = FALSE; |
98 | | #ifdef ENABLE_CONFIGURE_ARGS |
99 | 98 | static gboolean mc_args__show_configure_opts = FALSE; |
100 | | #endif |
101 | 99 | |
102 | 100 | static GOptionGroup *main_group; |
103 | 101 | |
… |
… |
static const GOptionEntry argument_main_table[] = { |
127 | 125 | NULL |
128 | 126 | }, |
129 | 127 | |
130 | | #ifdef ENABLE_CONFIGURE_ARGS |
131 | 128 | /* show configure options */ |
132 | 129 | { |
133 | 130 | "configure-options", '\0', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_NONE, |
… |
… |
static const GOptionEntry argument_main_table[] = { |
135 | 132 | N_("Print configure options"), |
136 | 133 | NULL |
137 | 134 | }, |
138 | | #endif |
139 | 135 | |
140 | 136 | { |
141 | 137 | "printwd", 'P', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_STRING, |
… |
… |
mc_args_show_info (void) |
762 | 758 | return FALSE; |
763 | 759 | } |
764 | 760 | |
765 | | #ifdef ENABLE_CONFIGURE_ARGS |
766 | 761 | if (mc_args__show_configure_opts) |
767 | 762 | { |
768 | 763 | show_configure_options (); |
769 | 764 | return FALSE; |
770 | 765 | } |
771 | | #endif |
772 | 766 | |
773 | 767 | return TRUE; |
774 | 768 | } |
diff --git a/src/textconf.c b/src/textconf.c
index f39b9e028..1e0613e58 100644
a
|
b
|
show_datadirs_extended (void) |
232 | 232 | |
233 | 233 | /* --------------------------------------------------------------------------------------------- */ |
234 | 234 | |
235 | | #ifdef ENABLE_CONFIGURE_ARGS |
236 | 235 | void |
237 | 236 | show_configure_options (void) |
238 | 237 | { |
239 | 238 | (void) printf ("%s\n", MC_CONFIGURE_ARGS); |
240 | 239 | } |
241 | | #endif |
242 | 240 | |
243 | 241 | /* --------------------------------------------------------------------------------------------- */ |