]> git.puffer.fish Git - mirror/frr.git/commitdiff
build: track config args
authorDavid Lamparter <equinox@opensourcerouting.org>
Sat, 22 Nov 2014 18:43:29 +0000 (10:43 -0800)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 3 Jun 2016 19:53:42 +0000 (15:53 -0400)
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>
configure.ac
lib/command.c
lib/version.h.in

index c0bd17d946cd90b5eda84e2502e8b44ee9f72170..265e8f915e16b05d11f7627194b2cbcdb37aa07e 100755 (executable)
@@ -7,7 +7,9 @@
 ##
 AC_PREREQ(2.60)
 
-AC_INIT(Quagga, 0.99.23.1+cl3u2, [https://bugzilla.quagga.net])
+AC_INIT(Quagga, 0.99.24+cl3u2, [https://bugzilla.quagga.net])
+CONFIG_ARGS="$*"
+AC_SUBST(CONFIG_ARGS)
 AC_CONFIG_SRCDIR(lib/zebra.h)
 AC_CONFIG_MACRO_DIR([m4])
 
index a71cb5ddd29ee11c31ce5dbef468d74a2cfe3cab..85506adefef6c72ea901c75cd58ef8d8054b7625 100644 (file)
@@ -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;
 }
index 7e9985f008ca35a99f2133b1249ee602f94edfc8..aef1d090b63c036f1e7667410c931daabea3e17a 100644 (file)
@@ -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