aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-04-08 20:31:01 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-10-21 21:18:17 +0200
commitd94049b8284cdddd90fc17cc171fbf20fcc12780 (patch)
treee59cda28bcfeb88504d15cb0f80b9454922f4d49 /options.c
parentpkitool lacks expected option "--help" (diff)
downloadopenvpn-d94049b8284cdddd90fc17cc171fbf20fcc12780.tar.xz
Add comile time information/settings from ./configure to --version
This patch will create ./configure.h which will contain two new #define strings. CONFIGURE_DEFINES will contain all USE, ENABLED, DISABLED and DEPRECATED defines from ./config.h. CONFIGURE_CALL will contain the complete ./configure line which was used when configuring the package for building. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> Acked-by: James Yonan <james@openvpn.net>
Diffstat (limited to 'options.c')
-rw-r--r--options.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/options.c b/options.c
index fca808d..1f36089 100644
--- a/options.c
+++ b/options.c
@@ -48,6 +48,7 @@
#include "pool.h"
#include "helper.h"
#include "manage.h"
+#include "configure.h"
#include "memdbg.h"
@@ -2920,6 +2921,8 @@ usage_version (void)
msg (M_INFO|M_NOPREFIX, "%s", title_string);
msg (M_INFO|M_NOPREFIX, "Originally developed by James Yonan");
msg (M_INFO|M_NOPREFIX, "Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>");
+ msg (M_INFO|M_NOPREFIX, "\n%s\n", CONFIGURE_CALL);
+ msg (M_INFO|M_NOPREFIX, "Compile time defines: %s", CONFIGURE_DEFINES);
openvpn_exit (OPENVPN_EXIT_STATUS_USAGE); /* exit point */
}