From 7046ff20f93eca1d850df43fe716922e6d105c1c Mon Sep 17 00:00:00 2001 From: Alon Bar-Lev Date: Sat, 5 May 2012 09:39:42 +0300 Subject: 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 Acked-by: David Sommerseth 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 --- compat.m4 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'compat.m4') diff --git a/compat.m4 b/compat.m4 index d5c01f7..4c13254 100644 --- a/compat.m4 +++ b/compat.m4 @@ -42,6 +42,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], , -- cgit