From 206c11665dca72f9d1a3cd0246166e3a0372190a Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 8 Mar 2016 23:55:31 +0100 Subject: [PATCH] version: display configuration directory as well --- src/Makefile.am | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index ddbd1135..19644f3e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,5 @@ AM_CFLAGS = -I $(top_srcdir)/include $(LLDP_CFLAGS) -AM_CPPFLAGS = $(LLDP_CPPFLAGS) +AM_CPPFLAGS = $(LLDP_CPPFLAGS) -DSYSCONFDIR='"$(sysconfdir)"' AM_LDFLAGS = $(LLDP_LDFLAGS) noinst_LTLIBRARIES = libcommon-daemon-lib.la libcommon-daemon-client.la diff --git a/src/version.c b/src/version.c index e3066493..0c3c5be1 100644 --- a/src/version.c +++ b/src/version.c @@ -126,6 +126,8 @@ version_display(FILE *destination, const char *progname, int verbose) fprintf(destination, "Privilege separation: " "disabled\n"); #endif + fprintf(destination, + "Configuration directory: " SYSCONFDIR "\n"); } if (!strcmp(progname, "lldpcli")) { -- 2.39.5