diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-03 14:34:53 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-08-03 14:34:53 +0000 |
commit | 5578723a05d79de57c4918c09f5c9b47c764ace7 (patch) | |
tree | e093f4af6af5374353b39d6f3db17a86ce759d72 | |
parent | 08f5082e136af01d94e301e74a24b04e41193b6f (diff) | |
download | gdbm-5578723a05d79de57c4918c09f5c9b47c764ace7.tar.gz gdbm-5578723a05d79de57c4918c09f5c9b47c764ace7.tar.bz2 |
Define Major,Minor numbers and Patchlevel separately.
(GDBM_VERSION_MAJOR,GDBM_VERSION_MINOR)
(GDBM_VERSION_PATCH): New substitution variables.
-rw-r--r-- | configure.ac | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 3e7f09e..4dac1ce 100644 --- a/configure.ac +++ b/configure.ac @@ -16,3 +16,9 @@ -AC_INIT([gdbm], [1.9.0], [bug-gdbm@gnu.org]) +m4_define([_GDBM_VERSION_MAJOR], 1) +m4_define([_GDBM_VERSION_MINOR], 9) +m4_define([_GDBM_VERSION_PATCH], 0) + +AC_INIT([gdbm], + [_GDBM_VERSION_MAJOR._GDBM_VERSION_MINOR[]m4_ifdef([_GDBM_VERSION_PATCH],._GDBM_VERSION_PATCH)], + [bug-gdbm@gnu.org]) AC_PREREQ(2.59) @@ -24,2 +30,6 @@ AM_INIT_AUTOMAKE([1.8.5 std-options]) +AC_SUBST([GDBM_VERSION_MAJOR], _GDBM_VERSION_MAJOR) +AC_SUBST([GDBM_VERSION_MINOR], _GDBM_VERSION_MINOR) +AC_SUBST([GDBM_VERSION_PATCH], m4_ifdef([_GDBM_VERSION_PATCH],_GDBM_VERSION_PATCH,0)) + AC_ARG_ENABLE([memory-mapped-io], @@ -103,2 +113,3 @@ AC_CONFIG_FILES([Makefile src/Makefile + src/gdbm.h doc/Makefile |