From: Gary V. Vaughan Date: Fri, 22 Jan 1999 14:09:12 +0000 (+0000) Subject: * configure.in (date): echo the version number during X-Git-Tag: ild-branchpoint X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bd624040c3fda26d875e2af399fa09391386396;p=thirdparty%2Flibtool.git * configure.in (date): echo the version number during configuration, and show $date for cvs versions. --- diff --git a/ChangeLog b/ChangeLog index bc950abe9..beaf78fad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-01-22 Gary V. Vaughan + * configure.in (date): echo the version number during + configuration, and show $date for cvs versions. + * Makefile.am ($(srcdir)/ltconfig): Oops. cvs co keyword expansion ate the sed expression! Changed sed separator to '%' because there are '/' in the date. Added missing '\(' to search diff --git a/configure.in b/configure.in index 54d6e0d8f..ce061c255 100644 --- a/configure.in +++ b/configure.in @@ -1,9 +1,32 @@ dnl Process this file with autoconf to create configure. + AC_INIT(ltmain.in) -AM_INIT_AUTOMAKE(libtool,1.2e) +# This is a sanity check so we can see which version is used in bug reports. +# It is assumed that we only want to see the date extension for cvs libtool +# versions (i.e. "odd" letters) and not actual alpha releases. +version=`egrep '^[AM_INIT_AUTOMAKE]' $srcdir/configure.in | \ + sed 's/^.*,//;s/).*$//'` +date= +changequote(,) +case $version in + *[acegikmoqsuwy]) + date=`sed 's%.*\$''Date: \([0-9 /]*[0-9:]*\) \$.*% (\1)%;t;d' < \ + $srcdir/ChangeLog` + ;; +esac +changequote([,]) +banner="Configuring libtool-$version$date" +dashes=`echo "$banner" | sed 's/./-/g'` + +# Display an obvious version banner +echo $dashes +echo "$banner" +echo $dashes +echo + +AM_INIT_AUTOMAKE(libtool, 1.2e) -pkgdatadir='${datadir}/libtool' AC_SUBST(pkgdatadir) aclocaldir='${datadir}/aclocal' AC_SUBST(aclocaldir)