summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-10 20:11:56 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-10 20:11:56 +0000
commitdd464df687faf544e83684d0c0e4da87c05f8bfe (patch)
tree66f95a61bd7cc78619360621787c82f9171a6e31 /autoconf
parentfaa19c32a244efdd3d9d546d938389a42537d949 (diff)
downloadllvm-dd464df687faf544e83684d0c0e4da87c05f8bfe.tar.gz
llvm-dd464df687faf544e83684d0c0e4da87c05f8bfe.tar.bz2
llvm-dd464df687faf544e83684d0c0e4da87c05f8bfe.tar.xz
Add new configure option, --disable-timestamps, intended to turn off anything which would mess up binary/object comparisons. Currently:
- Disables 'Built on ...' in 'foo --version'. - Disables timestamps from being embedded into .dir files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index b192691617..8487d9403c 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -525,6 +525,20 @@ case "$enableval" in
*) AC_MSG_ERROR([Invalid setting for --enable-shared. Use "yes" or "no"]) ;;
esac
+dnl Enable embedding timestamp information into build.
+AC_ARG_ENABLE(timestamps,
+ AS_HELP_STRING([--enable-timestamps],
+ [Enable embedding timestamp information in build (default is YES)]),,
+ enableval=default)
+case "$enableval" in
+ yes) AC_SUBST(ENABLE_TIMESTAMPS,[1]) ;;
+ no) AC_SUBST(ENABLE_TIMESTAMPS,[0]) ;;
+ default) AC_SUBST(ENABLE_TIMESTAMPS,[1]) ;;
+ *) AC_MSG_ERROR([Invalid setting for --enable-timestamps. Use "yes" or "no"]) ;;
+esac
+AC_DEFINE_UNQUOTED([ENABLE_TIMESTAMPS],$ENABLE_TIMESTAMPS,
+ [Define if timestamp information (e.g., __DATE___) is allowed])
+
dnl Allow specific targets to be specified for building (or not)
TARGETS_TO_BUILD=""
AC_ARG_ENABLE([targets],AS_HELP_STRING([--enable-targets],