summaryrefslogtreecommitdiffstats
path: root/compat.m4
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2012-05-05 09:39:42 +0300
committerDavid Sommerseth <davids@redhat.com>2012-06-01 15:34:49 +0200
commit7046ff20f93eca1d850df43fe716922e6d105c1c (patch)
tree4c90548f690560bdacfa8f5a1fcd600b98cf3be2 /compat.m4
parentf641637a73663dc44d9ef2c3fe82ea557d3cda02 (diff)
downloadopenvpn-7046ff20f93eca1d850df43fe716922e6d105c1c.tar.gz
openvpn-7046ff20f93eca1d850df43fe716922e6d105c1c.tar.xz
openvpn-7046ff20f93eca1d850df43fe716922e6d105c1c.zip
build: add git revision to --version output if build from git repository
If source is located at git repository, acquire branch and revision of head to be printed at --version output. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> Acked-by: David Sommerseth <davids@redhat.com> Message-Id: 1336199983-9916-1-git-send-email-alon.barlev@gmail.com URL: http://article.gmane.org/gmane.network.openvpn.devel/6431 Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'compat.m4')
-rw-r--r--compat.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/compat.m4 b/compat.m4
index d5c01f7..4c13254 100644
--- a/compat.m4
+++ b/compat.m4
@@ -43,6 +43,11 @@ ifdef(
[AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], [GNU_SOURCE])]
)
ifdef(
+ [AC_PROG_SED],
+ ,
+ [AC_DEFUN([AC_PROG_SED], [AC_CHECK_PROGS([SED], [sed])])]
+)
+ifdef(
[AC_TYPE_INT8_T],
,
[