diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2014-11-22 19:43:29 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-03 21:53:42 +0200 |
commit | 80db5ac1783458e29effd2eddff2e936302fe923 (patch) | |
tree | df943acba241fa7efe50632733722ff24eab40b6 /lib | |
parent | build: remove --disable-ipv6 (diff) | |
download | frr-80db5ac1783458e29effd2eddff2e936302fe923.tar.xz frr-80db5ac1783458e29effd2eddff2e936302fe923.zip |
build: track config args
Record the ./configure arguments used and make them user-visible.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Acked-by: Paul Jakma <paul@jakma.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/command.c | 3 | ||||
-rw-r--r-- | lib/version.h.in | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c index a71cb5ddd..85506adef 100644 --- a/lib/command.c +++ b/lib/command.c @@ -182,6 +182,7 @@ print_version (const char *progname) { printf ("%s version %s\n", progname, QUAGGA_VERSION); printf ("%s\n", QUAGGA_COPYRIGHT); + printf ("configured with:\n\t%s\n", QUAGGA_CONFIG_ARGS); } @@ -3022,6 +3023,8 @@ DEFUN (show_version, vty_out (vty, "Quagga %s (%s).%s", QUAGGA_VERSION, host.name?host.name:"", VTY_NEWLINE); vty_out (vty, "%s%s%s", QUAGGA_COPYRIGHT, GIT_INFO, VTY_NEWLINE); + vty_out (vty, "configured with:%s %s%s", VTY_NEWLINE, + QUAGGA_CONFIG_ARGS, VTY_NEWLINE); return CMD_SUCCESS; } diff --git a/lib/version.h.in b/lib/version.h.in index 7e9985f00..aef1d090b 100644 --- a/lib/version.h.in +++ b/lib/version.h.in @@ -45,6 +45,8 @@ #define QUAGGA_COPYRIGHT "Copyright 1996-2005 Kunihiro Ishiguro, et al." +#define QUAGGA_CONFIG_ARGS "@CONFIG_ARGS@" + pid_t pid_output (const char *); #ifndef HAVE_DAEMON |