From 8302ff700b37d3bf4156f92ae87d988dc1117337 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Fri, 19 May 2017 11:29:07 +0200
Subject: [PATCH] tweaks: remove the no-op x$disable tests

---
 configure.ac | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8e74b46c..76a5c5a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,11 +69,9 @@ if test "x$enable_tiny" = xyes; then
 	enable_browser=no
     fi
 fi
-if test "x$disable_browser" != xyes; then
     if test "x$enable_browser" != xno; then
 	AC_DEFINE(ENABLE_BROWSER, 1, [Define this to enable the built-in file browser.])
     fi
-fi
 
 AC_ARG_ENABLE(color,
 AS_HELP_STRING([--disable-color], [Disable color and syntax highlighting]))
@@ -100,11 +98,9 @@ if test "x$enable_tiny" = xyes; then
 	enable_comment=no
     fi
 fi
-if test "x$disable_comment" != xyes; then
     if test "x$enable_comment" != xno; then
 	AC_DEFINE(ENABLE_COMMENT, 1, [Define this to enable the comment/uncomment function.])
     fi
-fi
 
 AC_ARG_ENABLE(extra,
 AS_HELP_STRING([--disable-extra], [Disable the Easter egg]))
@@ -131,11 +127,9 @@ if test "x$enable_multibuffer" = xno; then
 	enable_help=no
     fi
 fi
-if test "x$disable_help" != xyes; then
     if test "x$enable_help" != xno; then
 	AC_DEFINE(ENABLE_HELP, 1, [Define this to enable the Ctrl+G help texts.])
     fi
-fi
 
 AC_ARG_ENABLE(histories,
 AS_HELP_STRING([--disable-histories], [Disable search and position histories]))
@@ -159,11 +153,9 @@ if test "x$enable_tiny" = xyes; then
 	enable_linenumbers=no
     fi
 fi
-if test "x$disable_linenumbers" != xyes; then
     if test "x$enable_linenumbers" != xno; then
 	AC_DEFINE(ENABLE_LINENUMBERS, 1, [Define this to enable line numbering.])
     fi
-fi
 
 AC_ARG_ENABLE(mouse,
 AS_HELP_STRING([--disable-mouse], [Disable mouse support]))
@@ -172,11 +164,9 @@ if test "x$enable_tiny" = xyes; then
 	enable_mouse=no
     fi
 fi
-if test "x$disable_mouse" != xyes; then
     if test "x$enable_mouse" != xno; then
 	AC_DEFINE(ENABLE_MOUSE, 1, [Define this to enable mouse support.])
     fi
-fi
 
 AC_ARG_ENABLE(multibuffer,
 AS_HELP_STRING([--disable-multibuffer], [Disable multiple file buffers]))
@@ -185,11 +175,9 @@ if test "x$enable_tiny" = xyes; then
 	enable_multibuffer=no
     fi
 fi
-if test "x$disable_multibuffer" != xyes; then
     if test "x$enable_multibuffer" != xno; then
 	AC_DEFINE(ENABLE_MULTIBUFFER, 1, [Define this to enable multiple file buffers.])
     fi
-fi
 
 AC_ARG_ENABLE(nanorc,
 AS_HELP_STRING([--disable-nanorc], [Disable the use of .nanorc files]))
@@ -198,12 +186,10 @@ if test "x$enable_tiny" = xyes; then
 	enable_nanorc=no
     fi
 fi
-if test "x$disable_nanorc" != xyes; then
     if test "x$enable_nanorc" != xno; then
 	AC_DEFINE(ENABLE_NANORC, 1, [Define this to enable the use of .nanorc files.])
 	nanorc_support=yes
     fi
-fi
 
 AC_ARG_ENABLE(operatingdir,
 AS_HELP_STRING([--disable-operatingdir], [Disable the setting of an operating directory]))
@@ -224,11 +210,9 @@ if test "x$enable_tiny" = xyes; then
 	enable_tabcomp=no
     fi
 fi
-if test "x$disable_tabcomp" != xyes; then
     if test "x$enable_tabcomp" != xno; then
 	AC_DEFINE(ENABLE_TABCOMP, 1, [Define this to have tab completion for filenames and search strings.])
     fi
-fi
 
 AC_ARG_ENABLE(wordcomp,
 AS_HELP_STRING([--disable-wordcomp], [Disable the word-completion function]))
@@ -239,11 +223,9 @@ if test "x$enable_tiny" = xyes; then
 	enable_wordcomp=no
     fi
 fi
-if test "x$disable_wordcomp" != xyes; then
     if test "x$enable_wordcomp" != xno; then
 	AC_DEFINE(ENABLE_WORDCOMPLETION, 1, [Define this to enable the word-completion function.])
     fi
-fi
 
 AC_ARG_ENABLE(wrapping,
 AS_HELP_STRING([--disable-wrapping], [Disable all hard-wrapping of text]))
-- 
GitLab