Code

options: Include all build options in version output.
authorSebastian Harl <sh@tokkee.org>
Sun, 7 Dec 2008 19:02:44 +0000 (20:02 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 7 Dec 2008 19:02:44 +0000 (20:02 +0100)
src/options.c

index 3c77fb4d6b3b666d94e75a1e1d6d5ef1e1b23c2b..63674ef5c7465baa3b28d58d520ec83fd542c78d 100644 (file)
@@ -158,9 +158,15 @@ handle_option(int c, const char *arg)
        case 'V': /* --version */
                puts(PACKAGE " version: " VERSION "\n"
                     "build options:"
+#ifdef NCMPC_MINI
+                    " mini"
+#endif
 #ifndef NDEBUG
                     " debug"
 #endif
+#ifdef ENABLE_WIDE
+                    " wide"
+#endif
 #ifdef ENABLE_NLS
                     " nls"
 #endif
@@ -169,18 +175,30 @@ handle_option(int c, const char *arg)
 #else
                     " no-colors"
 #endif
+#ifdef ENABLE_LIRC
+                    " lirc"
+#endif
 #ifdef HAVE_GETMOUSE
                     " getmouse"
 #endif
 #ifdef ENABLE_ARTIST_SCREEN
                     " artist-screen"
 #endif
+#ifdef ENABLE_HELP_SCREEN
+                    " help-screen"
+#endif
 #ifdef ENABLE_SEARCH_SCREEN
                     " search-screen"
 #endif
+#ifdef ENABLE_SONG_SCREEN
+                    " song-screen"
+#endif
 #ifdef ENABLE_KEYDEF_SCREEN
                     " key-screen"
 #endif
+#ifdef ENABLE_LYRICS_SCREEN
+                    " lyrics-screen"
+#endif
 #ifdef ENABLE_OUTPUTS_SCREEN
                     " outputs-screen"
 #endif