aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac9
-rw-r--r--src/sysutils.c4
2 files changed, 6 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index 7ca1108..28b2c35 100644
--- a/configure.ac
+++ b/configure.ac
@@ -240,13 +240,10 @@ changequote([,])dnl
BUILD_FILEVERSION="${BUILD_FILEVERSION}mym4_revision_dec"
AC_SUBST(BUILD_FILEVERSION)
-if test "$have_w32_system" = yes; then
- dnl We know that we have a decent date(1)
- BUILD_TIMESTAMP=`date --iso-8601=minutes`
-else
- BUILD_TIMESTAMP=`date`
-fi
+BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
AC_SUBST(BUILD_TIMESTAMP)
+AC_DEFINE_UNQUOTED(BUILD_TIMESTAMP, "$BUILD_TIMESTAMP",
+ [The time this package was configured for a build])
diff --git a/src/sysutils.c b/src/sysutils.c
index 3a23378..6951ceb 100644
--- a/src/sysutils.c
+++ b/src/sysutils.c
@@ -46,7 +46,9 @@ _assuan_sysutils_blurb (void)
"\n\n"
"This is Libassuan " PACKAGE_VERSION " - The GnuPG IPC Library\n"
"Copyright 2000, 2002, 2003, 2004, 2007, 2008, 2009,\n"
- " 2010, 2011 Free Software Foundation, Inc.\n"
+ " 2010, 2011, 2013 Free Software Foundation, Inc.\n"
+ "\n"
+ "(" BUILD_REVISION " " BUILD_TIMESTAMP ")\n"
"\n\n";
return blurb;
}