]> git.wh0rd.org Git - nano.git/commitdiff
Printing the correct set of configuration options.
authorBenno Schulenberg <bensberg@justemail.net>
Sat, 5 Apr 2014 19:57:17 +0000 (19:57 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Sat, 5 Apr 2014 19:57:17 +0000 (19:57 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4733 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/nano.c

index 9967b4fa6e5a0993858e242ce97b0a8460ec63db..5fd93c065b5b5326440350c932849c033461813a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2014-04-05  Benno Schulenberg  <bensberg@justemail.net>
+       * src/nano.c (version): Print the correct configuration options.
+
 2014-04-05  Mike Frysinger  <vapier@gentoo.org>
        * src/nano.c (do_input): Reload possibly freed function pointer.
 
index a40a01a6fced77bde1664e50f09f073543b2cb01..482c532c7f98d77763204c596c70761ced47aea8 100644 (file)
@@ -968,9 +968,48 @@ void version(void)
        _(" Email: nano@nano-editor.org Web: http://www.nano-editor.org/"));
     printf(_("\n Compiled options:"));
 
+#ifdef NANO_TINY
+    printf(" --enable-tiny");
+#ifndef DISABLE_BROWSER
+    printf(" --enable-browser");
+#endif
+#ifndef DISABLE_COLOR
+    printf(" --enable-color");
+#endif
+#ifndef DISABLE_EXTRA
+    printf(" --enable-extra");
+#endif
+#ifndef DISABLE_HELP
+    printf(" --enable-help");
+#endif
+#ifndef DISABLE_JUSTIFY
+    printf(" --enable-justify");
+#endif
+#ifndef DISABLE_MOUSE
+    printf(" --enable-mouse");
+#endif
+#ifndef DISABLE_MULTIBUFFER
+    printf(" --enable-multibuffer");
+#endif
+#ifndef DISABLE_OPERATINGDIR
+    printf(" --enable-operatingdir");
+#endif
+#ifndef DISABLE_SPELLER
+    printf(" --enable-speller");
+#endif
+#ifndef DISABLE_TABCOMP
+    printf(" --enable-tabcomp");
+#endif
+#ifndef DISABLE_WRAPPING
+    printf(" --enable-wrapping");
+#endif
+#else /* !NANO_TINY */
 #ifdef DISABLE_BROWSER
     printf(" --disable-browser");
 #endif
+#ifdef DISABLE_COLOR
+    printf(" --disable-color");
+#endif
 #ifdef DISABLE_EXTRA
     printf(" --disable-extra");
 #endif
@@ -986,9 +1025,6 @@ void version(void)
 #ifdef DISABLE_MULTIBUFFER
     printf(" --disable-multibuffer");
 #endif
-#ifndef ENABLE_NLS
-    printf(" --disable-nls");
-#endif
 #ifdef DISABLE_OPERATINGDIR
     printf(" --disable-operatingdir");
 #endif
@@ -1001,23 +1037,24 @@ void version(void)
 #ifdef DISABLE_WRAPPING
     printf(" --disable-wrapping");
 #endif
+#endif /* !NANO_TINY */
+
 #ifdef DISABLE_ROOTWRAPPING
     printf(" --disable-wrapping-as-root");
 #endif
-#ifndef DISABLE_COLOR
-    printf(" --enable-color");
-#endif
 #ifdef DEBUG
     printf(" --enable-debug");
 #endif
 #ifdef ENABLE_NANORC
     printf(" --enable-nanorc");
 #endif
-#ifdef NANO_TINY
-    printf(" --enable-tiny");
+#ifndef ENABLE_NLS
+    printf(" --disable-nls");
 #endif
 #ifdef ENABLE_UTF8
     printf(" --enable-utf8");
+#else
+    printf(" --disable-utf8");
 #endif
 #ifdef USE_SLANG
     printf(" --with-slang");