diff --git a/configure.ac b/configure.ac index 82769c0..728b5ab 100644 --- a/configure.ac +++ b/configure.ac @@ -56,14 +56,14 @@ PKG_CHECK_MODULES(cucul, cucul >= 0.99.beta9, [AC_MSG_RESULT(no) AC_MSG_ERROR([you need libcucul version 0.99.beta9 or later])]) -AC_CACHE_CHECK([for release date], - [ac_build_date], - [stamp="$(sed -ne 's/# \$Id: .*\(....-..-..\).*/\1/p;q' configure.ac)" - if date +"%e %B %Y" -d "$stamp" >/dev/null 2>&1; then - ac_build_date="$(LANG=C date +"%e %B %Y" -d "$stamp" | sed 's/^ //')" - else - ac_build_date="${stamp##*-} ${${stamp%-*}#*-} ${stamp%%-*}" - fi]) +AC_MSG_CHECKING([for release date]) +stamp="$(sed -ne 's/# \$Id: .*\(....-..-..\).*/\1/p;q' configure.ac)" + if date +"%e %B %Y" -d "$stamp" >/dev/null 2>&1; then + ac_build_date="$(LANG=C date +"%e %B %Y" -d "$stamp" | sed 's/^ //')" + else + ac_build_date="${stamp##*-} ${${stamp%-*}#*-} ${stamp%%-*}" + fi +AC_MSG_RESULT([$ac_build_date]) AC_DEFINE_UNQUOTED(DATE, "$ac_build_date", [Define the version date]) # Optimizations