From 2cc91bc2918f6ee9c0ab1ae3fd5b0c8386786867 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 2 May 2010 23:33:49 +0200 Subject: [PATCH] Moved definition of BUILD_DATE from configure to src/Makefile. --- configure.ac | 6 +----- src/Makefile.am | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index e1c988f..254580c 100644 --- a/configure.ac +++ b/configure.ac @@ -186,10 +186,6 @@ if test "x$enable_strict_checks" = "xyes"; then fi AC_SUBST([STRICT_CFLAGS]) -build_date="`date --utc '+%F %T'` (UTC)" -AC_DEFINE_UNQUOTED([BUILD_DATE], ["$build_date"], - [Define to the date the package has been built on.]) - AC_CHECK_HEADERS(libgen.h) AC_CONFIG_FILES([Makefile src/Makefile]) @@ -205,7 +201,7 @@ install the package into $prefix. Configuration summary: package version: $PACKAGE_VERSION - build date: $build_date + build date: `date --utc '+%F %T'` (UTC) Please report bugs to $PACKAGE_BUGREPORT. diff --git a/src/Makefile.am b/src/Makefile.am index 5c8a5ce..4787460 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -11,6 +11,7 @@ libfoobar_la_LDFLAGS = -version-info 0:0:0 bin_PROGRAMS = fb fb_SOURCES = fb.c foobar.h +fb_CFLAGS = $(AM_CFLAGS) -DBUILD_DATE="\"$$( date --utc '+%F %T' ) (UTC)\"" fb_LDADD = libfoobar.la ../version: FORCE -- 2.30.2