comparison configure.ac @ 18228:b6b6e0dc700e stable

provide version number macros (bug #41045) * configure.ac (OCTAVE_MAJOR_VERSION, OCTAVE_MINOR_VERSION, OCTAVE_PATCH_VERSION): New variables. * common.mk: Substitute them. * version.in.h: Substitute them. * libinterp/Makefile.am (version.h): Don't substitute OCTAVE_API_VERSION_NUMBER.
author John W. Eaton <jwe@octave.org>
date Tue, 07 Jan 2014 11:36:21 -0500
parents b72bcf5f78cc
children 18e50356e5e3 d033b08e9b0e
comparison
equal deleted inserted replaced
18227:64f178d8e1e0 18228:b6b6e0dc700e
19 ### <http://www.gnu.org/licenses/>. 19 ### <http://www.gnu.org/licenses/>.
20 20
21 AC_PREREQ([2.62]) 21 AC_PREREQ([2.62])
22 AC_INIT([GNU Octave], [3.8.0], [http://octave.org/bugs.html], [octave]) 22 AC_INIT([GNU Octave], [3.8.0], [http://octave.org/bugs.html], [octave])
23 23
24 dnl Note that the version number is duplicated here and in AC_INIT
25 dnl because AC_INIT requires it to be static, not computed from
26 dnl shell variables.
27 OCTAVE_MAJOR_VERSION=3
28 OCTAVE_MINOR_VERSION=8
29 OCTAVE_PATCH_VERSION=0
30
24 dnl PACKAGE_VERSION is set by the AC_INIT VERSION arg 31 dnl PACKAGE_VERSION is set by the AC_INIT VERSION arg
25 OCTAVE_VERSION="$PACKAGE_VERSION" 32 OCTAVE_VERSION="$PACKAGE_VERSION"
26 OCTAVE_API_VERSION_NUMBER="49" 33
27 OCTAVE_API_VERSION="api-v$OCTAVE_API_VERSION_NUMBER+" 34 OCTAVE_COPYRIGHT="Copyright (C) 2013 John W. Eaton and others."
35
28 OCTAVE_RELEASE_DATE="2013-12-27" 36 OCTAVE_RELEASE_DATE="2013-12-27"
29 OCTAVE_COPYRIGHT="Copyright (C) 2013 John W. Eaton and others." 37
38 ## The "API version" is used as a way of checking that interfaces in the
39 ## liboctave and libinterp libraries haven't changed in a backwardly
40 ## incompatible way when loading .oct files. A better way to do that is
41 ## with library versioning, but not all systems support that.
42 ## NOTE: This macro will be removed in a future version of Octave. If
43 ## you insist on checking for features using a version number, use the
44 ## OCTAVE_MAJOR_VERSION, OCTAVE_MINOR_VERSION, and
45 ## OCTAVE_PATCH_VERSION macros instead.
46 ## FIXME: Since we also set libtool versions for liboctave and
47 ## libinterp, perhaps we should be computing the "api version" from
48 ## those versions numbers in some way instead of setting it
49 ## independently here.
50 OCTAVE_API_VERSION="api-v49+"
51
52 AC_SUBST(OCTAVE_MAJOR_VERSION)
53 AC_SUBST(OCTAVE_MINOR_VERSION)
54 AC_SUBST(OCTAVE_PATCH_VERSION)
30 AC_SUBST(OCTAVE_VERSION) 55 AC_SUBST(OCTAVE_VERSION)
31 AC_SUBST(OCTAVE_API_VERSION_NUMBER) 56 AC_SUBST(OCTAVE_COPYRIGHT)
57 AC_SUBST(OCTAVE_RELEASE_DATE)
32 AC_SUBST(OCTAVE_API_VERSION) 58 AC_SUBST(OCTAVE_API_VERSION)
33 AC_SUBST(OCTAVE_RELEASE_DATE)
34 AC_SUBST(OCTAVE_COPYRIGHT)
35 59
36 dnl FIXME: We should auto-insert the Mercurial changeset ID into the 60 dnl FIXME: We should auto-insert the Mercurial changeset ID into the
37 dnl AC_REVISION field whenever configure.ac is modified. 61 dnl AC_REVISION field whenever configure.ac is modified.
38 dnl AC_REVISION($Revision: 1.603 $) 62 dnl AC_REVISION($Revision: 1.603 $)
39 AC_CONFIG_SRCDIR([libinterp/octave.cc]) 63 AC_CONFIG_SRCDIR([libinterp/octave.cc])