From 9e11a2255485bea0ddf13575d6de173045f8fc97 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 2 Mar 2017 20:35:37 +0100 Subject: add compile time features to version string --- mpd-notification.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mpd-notification.c b/mpd-notification.c index d352c5f..64081a5 100644 --- a/mpd-notification.c +++ b/mpd-notification.c @@ -281,7 +281,14 @@ int main(int argc, char ** argv) { /* say hello */ if (verbose > 0) - printf("%s: %s v%s (compiled: " __DATE__ ", " __TIME__ ")\n", program, PROGNAME, VERSION); + printf("%s: %s v%s" +#ifdef HAVE_SYSTEMD + " +systemd" +#endif +#ifdef HAVE_LIBAV + " +libav" +#endif + " (compiled: " __DATE__ ", " __TIME__ ")\n", program, PROGNAME, VERSION); if (help > 0) fprintf(stderr, "usage: %s [-h] [-H HOST] [-m MUSIC-DIR] [-o] [-p PORT] [-s PIXELS] [-t TIMEOUT] [-v] [-V]\n", program); -- cgit v1.2.3-70-g09d2