about summary refs log tree commit diff homepage
path: root/autoconf
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2016-09-29 09:55:18 +0200
committerJiri Slaby <jslaby@suse.cz>2016-09-29 12:17:07 +0200
commit906ce869eb68a70b88a459f63dac8147ecc88a0c (patch)
tree137d6bed38eaa854ee3fdd51c4d89d34d2c75ea0 /autoconf
parent43d5145572f4139146cb394e8ede6ea6dcef15b0 (diff)
downloadklee-906ce869eb68a70b88a459f63dac8147ecc88a0c.tar.gz
configure: add option to enable timestamping
It is pain for build systems to see __DATE__ or __TIME__ in sources as
the build is not reproducible. So disable the timestamping by default
and add an option to enable it if somebody is really after it.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 0fb8f8db..b4ab8a1c 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -382,6 +382,19 @@ AC_SUBST(KLEE_BITCODE_C_COMPILER,$klee_llvm_bc_c_compiler)
 AC_SUBST(KLEE_BITCODE_CXX_COMPILER,$klee_llvm_bc_cxx_compiler)
 
 dnl **************************************************************************
+dnl User option to disable timestamping.
+
+AC_ARG_ENABLE([timestamp],AS_HELP_STRING([--enable-timestamp],
+	[Enable timestamping the source code while building. (default=disabled)]))
+
+if test "x${enable_timestamp}" = "xyes" ; then
+  AC_DEFINE(KLEE_ENABLE_TIMESTAMP,[1],[Enable time stamping the sources])
+  AC_MSG_NOTICE([Source timestamping enabled.])
+else
+  AC_MSG_NOTICE([Source timestamping disabled.])
+fi
+
+dnl **************************************************************************
 dnl User option to enable uClibc support.
 
 AC_ARG_WITH(uclibc,