Changeset 1192 for toilet


Ignore:
Timestamp:
Oct 8, 2006, 2:04:04 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Retrieve the configure.ac timestamp at configure time and store it in a C macro for better FIGlet emulation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • toilet/trunk/configure.ac

    r1158 r1192  
    5353  AC_MSG_ERROR([you need libcucul version 0.99.beta6 or later])])
    5454
     55AC_CACHE_CHECK([for build date],
     56  [ac_build_date],
     57  [stamp="$(sed -ne 's/# \$Id: .*\(....-..-..\).*/\1/p;q' configure.ac)"
     58   if date +"%e %B %Y" -d "$stamp" >/dev/null 2>&1; then
     59     ac_build_date="$(LANG=C date +"%e %B %Y" -d "$stamp" | sed 's/^ //')"
     60   else
     61     ac_build_date="${stamp##*-} ${${stamp%-*}#*-} ${stamp%%-*}"
     62   fi])
     63AC_DEFINE_UNQUOTED(DATE, "$ac_build_date", [Define the version date])
     64
    5565# Optimizations
    5666CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
Note: See TracChangeset for help on using the changeset viewer.