diff options
author | Werner Koch <[email protected]> | 2015-08-25 19:08:27 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-08-25 19:08:27 +0000 |
commit | 9d07f6930aaa40dce92104e8c99241713d92eed2 (patch) | |
tree | 8ab80ba8f3554b4afb03687d15b7dd0cd93a30be | |
parent | gpg: Emit ERROR status for key signing failures. (diff) | |
download | gnupg-9d07f6930aaa40dce92104e8c99241713d92eed2.tar.gz gnupg-9d07f6930aaa40dce92104e8c99241713d92eed2.zip |
Add configure option --enable-build-timestamp.
* configure.ac (BUILD_TIMESTAMP): Set to "<none>" by default.
--
This is based on
libgpg-error commit d620005fd1a655d591fccb44639e22ea445e4554
but changed to be disabled by default. Check there for some
background.
Signed-off-by: Werner Koch <[email protected]>
-rw-r--r-- | configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 1d0ae6597..680d0b7a0 100644 --- a/configure.ac +++ b/configure.ac @@ -1636,7 +1636,16 @@ BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,` AC_SUBST(BUILD_VERSION) AC_SUBST(BUILD_FILEVERSION) -BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date` +AC_ARG_ENABLE([build-timestamp], + AC_HELP_STRING([--enable-build-timestamp], + [set an explicit build timestamp for reproducibility. + (default is the current time in ISO-8601 format)]), + [if test "$enableval" = "yes"; then + BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date` + else + BUILD_TIMESTAMP="$enableval" + fi], + [BUILD_TIMESTAMP="<none>"]) AC_SUBST(BUILD_TIMESTAMP) AC_DEFINE_UNQUOTED(BUILD_TIMESTAMP, "$BUILD_TIMESTAMP", [The time this package was configured for a build]) |