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>
diff --git a/lib/command.c b/lib/command.c
index 8870a42..8317789 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -181,6 +181,7 @@
{
printf ("%s version %s\n", progname, QUAGGA_VERSION);
printf ("%s\n", QUAGGA_COPYRIGHT);
+ printf ("configured with:\n\t%s\n", QUAGGA_CONFIG_ARGS);
}
@@ -2951,6 +2952,8 @@
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;
}