Add --disable-git-version to configure
[lttng-tools.git] / configure.ac
index 21cfab070411d22ea1c4a79e957594c6df1c61a2..bd49df7ba12a20cc13a0a1f2e72b6d8d711ae77b 100644 (file)
@@ -259,6 +259,15 @@ AC_CHECK_LIB([c], [open_memstream],
 ]
 )
 
+AC_ARG_ENABLE([git-version],
+              [AC_HELP_STRING([--disable-git-version],
+                              [Do not use the git version for the build])],
+              [disable_git_version=yes], [disable_git_version=no]
+)
+if test "x${disable_git_version:-no}" = xno; then
+    AC_DEFINE_UNQUOTED([GIT_SOURCE], 1, [Disable git version.])
+fi
+
 # For Python
 # SWIG version needed or newer:
 swig_version=2.0.0
This page took 0.022965 seconds and 4 git commands to generate.