aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-05-05 22:19:37 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-05-05 22:19:37 +0300
commit1a5850f8ccb916e3bc3c4504f528b25a0c422c86 (patch)
treed110fbaecf7e5a1217384a159038aecda054e4db /configure.ac
parent05826b51ec41ae091756087bc734931c071e9221 (diff)
downloadvideoteco-fork-1a5850f8ccb916e3bc3c4504f528b25a0c422c86.tar.gz
automatically use the current date when building with Autotools
* It's actually the time of running ./configure that will be used. * On OpenWatcom, it does not seem to be possible to set variables based on external processes, so you will still have to update AUTO_DATE in teco.h when releasing for DOS.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ff6117e..2f4d334 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,5 +77,7 @@ AC_CHECK_MEMBERS([struct termios.c_cflag, struct termios.c_ospeed, struct termio
#endif
])
+AC_DEFINE_UNQUOTED([AUTO_DATE], ["`date '+$Date: %Y/%m/%d %T $'`"], [Configuration time])
+
AC_CONFIG_FILES([Makefile doc/Doxyfile])
AC_OUTPUT