From 85c40d45afd443b939f2c14151f948d25cb50bc8 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Tue, 20 Jan 2015 11:55:37 +0100 Subject: [PATCH] Debian builds to be deterministically reproducible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And it should thus be possible to set a date for the GETDNS_COMPILATION_COMMENT define. Thanks Ondřej Surý --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index e63ad705..c0b9e329 100755 --- a/configure.ac +++ b/configure.ac @@ -31,7 +31,13 @@ AC_PREREQ([2.56]) AC_INIT([getdns], [0.1.6], [stub-resolver@verisignlabs.com], [], [http://getdnsapi.net]) -CURRENT_DATE=`LC_ALL=C date` + +# Set current date from system if not set +AC_ARG_WITH([current-date], + [AS_HELP_STRING([--with-current-date] + [current date of the compilation, set to fixed date for reproducible builds @<:@default=system@:>@])], + [CURRENT_DATE="$with_current_date"], + [CURRENT_DATE="`date --rfc-3339=seconds`"]) GETDNS_COMPILATION_COMMENT="AC_PACKAGE_STRING configured on $CURRENT_DATE for the January 2015 version of the API" # Library version