summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2012-05-05 11:01:17 +0300
committerDavid Sommerseth <davids@redhat.com>2012-06-13 12:20:01 +0200
commit10b4b65e0318ce305e05cdec4b44b8f6bcd3915f (patch)
treea0493a91c71ee61de4fe126f0ea93d63fcd18a0e
parentfc0c29b31c6f3804a074d8436ee738b0cee8f800 (diff)
downloadopenvpn-10b4b65e0318ce305e05cdec4b44b8f6bcd3915f.tar.gz
openvpn-10b4b65e0318ce305e05cdec4b44b8f6bcd3915f.tar.xz
openvpn-10b4b65e0318ce305e05cdec4b44b8f6bcd3915f.zip
build: add --with-special-build to provide special build string
Special build string is printed when --version is specified. Empty = no special build. This is handy when building a snapshot or if not git repository. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> Acked-by: David Sommerseth <davids@redhat.com> Message-Id: 1336204877-3564-1-git-send-email-alon.barlev@gmail.com URL: http://article.gmane.org/gmane.network.openvpn.devel/6435 Signed-off-by: David Sommerseth <davids@redhat.com>
-rw-r--r--configure.ac6
-rw-r--r--src/openvpn/options.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a9ccb98..9511317 100644
--- a/configure.ac
+++ b/configure.ac
@@ -229,6 +229,12 @@ AC_ARG_ENABLE(
)
AC_ARG_WITH(
+ [special-build],
+ [AS_HELP_STRING([--with-special-build=STRING], [specify special build string])],
+ [test -n "${withval}" && AC_DEFINE_UNQUOTED([CONFIGURE_SPECIAL_BUILD], ["${withval}"], [special build string])]
+)
+
+AC_ARG_WITH(
[mem-check],
[AS_HELP_STRING([--with-mem-check=TYPE], [build with debug memory checking, TYPE=no|dmalloc|valgrind|ssl @<:@default=no@:>@])],
[
diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index 2b96957..1cb6068 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -3464,6 +3464,9 @@ usage_version (void)
#ifdef CONFIGURE_DEFINES
msg (M_INFO|M_NOPREFIX, "Compile time defines: %s", CONFIGURE_DEFINES);
#endif
+#ifdef CONFIGURE_SPECIAL_BUILD
+ msg (M_INFO|M_NOPREFIX, "special build: %s", CONFIGURE_SPECIAL_BUILD);
+#endif
#ifdef CONFIGURE_GIT_REVISION
msg (M_INFO|M_NOPREFIX, "git revision: %s", CONFIGURE_GIT_REVISION);
#endif