From 640effdebd564a59ba31772316e5d9b9329491f3 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Thu, 6 May 2004 09:11:32 +0000 Subject: [PATCH] Check whether date accepts +format argument (for backup scripts). --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index f6a48f9..a495abf 100644 --- a/configure.ac +++ b/configure.ac @@ -243,6 +243,14 @@ AC_CHECK_TYPE(iconv_t,:, #endif ]) +AC_SUBST(BACKUP_SED_COND) +if date +%Y-%m-%d 2>/dev/null >&2; then + BACKUP_SED_COND='/^#ELSE_DATE_FORMAT_OK/,/^#ENDIF_DATE_FORMAT_OK/d;/^#IF_DATE_FORMAT_OK/d' +else + BACKUP_SED_COND='/^#IF_DATE_FORMAT_OK/,/^#ELSE_DATE_FORMAT_OK/d;/^#ENDIF_DATE_FORMAT_OK/d' +fi + + AC_OUTPUT([Makefile\ doc/Makefile\ lib/Makefile\ -- 2.45.2