rework the initialization to require autoconf-2.59 and automake-1.9

parse the version out of the AC_PACKAGE_VERSION macro, so
we still only need to set it in one place.  This should
solve a number of old-automake related problems people have seen.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13225 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2006-02-11 23:24:01 +00:00
parent 87fd8b71dc
commit 75ef10c0d1
2 changed files with 15 additions and 9 deletions

View File

@ -6,6 +6,12 @@
* src/business/business-reports/owner-report.scm:
set the document title properly AFTER type-str is set.
* configure.in:
rework the initialization to require autoconf-2.59 and automake-1.9
parse the version out of the AC_PACKAGE_VERSION macro, so
we still only need to set it in one place. This should
solve a number of old-automake related problems people have seen.
2006-02-11 David Hampton <hampton@employees.org>
* src/gnome/glade/acctperiod.glade:

View File

@ -19,19 +19,19 @@ dnl Process this file with autoconf to produce a configure script.
# Footer - Autoconf footer stuff
# Autoconf initialization
AC_INIT
AC_PREREQ(2.59)
AC_INIT([gnucash], [1.9.0], [gnucash-devel@gnucash.org])
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_SRCDIR(src/engine/Transaction.h)
AC_PREREQ(2.53)
# Define the version number
GNUCASH_MAJOR_VERSION=1
GNUCASH_MINOR_VERSION=9
GNUCASH_MICRO_VERSION=0
GNUCASH_VERSION_STRING="$GNUCASH_MAJOR_VERSION.$GNUCASH_MINOR_VERSION.$GNUCASH_MICRO_VERSION"
AM_INIT_AUTOMAKE(gnucash, $GNUCASH_VERSION_STRING)
# Initialize automake -- make sure we have at least version 1.9
AM_INIT_AUTOMAKE(1.9)
# Parse out the version number
GNUCASH_VERSION_STRING=AC_PACKAGE_VERSION
GNUCASH_MAJOR_VERSION=`echo $GNUCASH_VERSION_STRING | sed -e 's/^\([^\.]*\)\.\([^.]*\)\.\(.*\)$/\1/'`
GNUCASH_MINOR_VERSION=`echo $GNUCASH_VERSION_STRING | sed -e 's/^\([^\.]*\)\.\([^.]*\)\.\(.*\)$/\2/'`
GNUCASH_MICRO_VERSION=`echo $GNUCASH_VERSION_STRING | sed -e 's/^\([^\.]*\)\.\([^.]*\)\.\(.*\)$/\3/'`
## Do this first, because the other tests depend on it: