-dnl NOTE: these can't be renamed to GINAC_MAJOR_VERSION etc. because
-dnl autoconf sees "AC_MAJOR_VERSION" and complains about an undefined macro
-dnl (don't we all *love* M4?)...
-
-GINACLIB_MAJOR_VERSION=1
-GINACLIB_MINOR_VERSION=0
-GINACLIB_MICRO_VERSION=3
-GINACLIB_INTERFACE_AGE=1
-GINACLIB_BINARY_AGE=3
-GINACLIB_VERSION=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION.$GINACLIB_MICRO_VERSION
-
-AC_SUBST(GINACLIB_MAJOR_VERSION)
-AC_SUBST(GINACLIB_MINOR_VERSION)
-AC_SUBST(GINACLIB_MICRO_VERSION)
-AC_SUBST(GINACLIB_INTERFACE_AGE)
-AC_SUBST(GINACLIB_BINARY_AGE)
-AC_SUBST(GINACLIB_VERSION)
+dnl Please note: the libtool naming scheme cannot guarantee that on all
+dnl systems, the numbering is consecutive. It only guarantees that it is
+dnl increasing. This doesn't matter, though: there is not incurred cost
+dnl for numbers that are omitted, except for shrinking the available space
+dnl of leftover numbers. Not something we need to worry about yet. ;-)
+m4_define([ginac_lt_current], [0])
+m4_define([ginac_lt_age], [0])
+m4_define([ginac_lt_revision], [0])
+
+AC_INIT([GiNaC], ginac_version, [<ginac-list@ginac.de>])
+AC_PREREQ(2.59)
+AC_CONFIG_SRCDIR(ginac/basic.cpp)
+AC_CONFIG_AUX_DIR([config])
+AC_CONFIG_HEADERS([config/config.h ginac/version.h])
+AC_CONFIG_MACRO_DIR([m4])
+dnl This defines PACKAGE and VERSION.
+AM_INIT_AUTOMAKE([gnu 1.8 dist-bzip2])
+
+dnl Process GiNaC version information
+AC_DEFINE([GINACLIB_MAJOR_VERSION], ginac_major_version, [Major version of GiNaC])
+AC_DEFINE([GINACLIB_MINOR_VERSION], ginac_minor_version, [Minor version of GiNaC])
+AC_DEFINE([GINACLIB_MICRO_VERSION], ginac_micro_version, [Micro version of GiNaC])