From: Benno Schulenberg Date: Sat, 5 Apr 2014 19:57:17 +0000 (+0000) Subject: Printing the correct set of configuration options. X-Git-Tag: v2.3.3~197 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2d83e8d41f8a22380f0dff4183946291784e615f;p=nano.git Printing the correct set of configuration options. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4733 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 9967b4fa..5fd93c06 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2014-04-05 Benno Schulenberg + * src/nano.c (version): Print the correct configuration options. + 2014-04-05 Mike Frysinger * src/nano.c (do_input): Reload possibly freed function pointer. diff --git a/src/nano.c b/src/nano.c index a40a01a6..482c532c 100644 --- a/src/nano.c +++ b/src/nano.c @@ -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");