-dnl ===========================================================================
-dnl Process this file with GNU Autoconf to produce a configure script. Then
-dnl call ./configure to create Makefiles. After that say make and make install.
-dnl See aclocal.m4 for additional self-made macros.
-dnl ===========================================================================
-
-dnl This file is used as a signal that everything is in place:
-AC_INIT(include/ginac.h)
-dnl A convenient header file for some additional system-dependend output:
-AC_CONFIG_HEADER(config.h)
-
-dnl Set the Version Number at this place only:
-GiNaC_Major_Version=0
-GiNaC_Minor_Version=0
-GiNaC_Micro_Version=40
-dnl This composite variable can be inserted where it appears necessary:
-GiNaC_Version="${GiNaC_Major_Version}.${GiNaC_Minor_Version}.${GiNaC_Micro_Version}"
-dnl This composition is needed for libtool, if a shared lib shall be built:
-LibGiNaC_Ver="${GiNaC_Major_Version}:${GiNaC_Micro_Version}:${GiNaC_Minor_Version}"
-
-dnl ===========================================================================
-dnl Several features need to be added to standard-configure:
-dnl ===========================================================================
-AC_ARG_ENABLE(shared,
- [ --enable-shared build shared libraries [default=no]
- (a static library will still be built as well)],
- shared=${enableval}, shared="no")
-
-dnl ===========================================================================
-dnl Check for the compiler and all the utilities needed for the build:
-dnl ===========================================================================
-dnl Which is the C++ Compiler? (whether to use c++, g++, gcc, CC, cxx, cc++...)
+dnl Process this file with autoconf to produce a configure script.
+
+AC_INIT(ginac/basic.cpp)
+AC_PREREQ(2.13)
+
+dnl GiNaC library version information.
+dnl
+dnl Making releases:
+dnl GINACLIB_MICRO_VERSION += 1;
+dnl GINACLIB_INTERFACE_AGE += 1;
+dnl GINACLIB_BINARY_AGE += 1;
+dnl if any functions have been added, set GINACLIB_INTERFACE_AGE to 0.
+dnl if backwards compatibility has been broken,
+dnl set GINACLIB_BINARY_AGE and GINACLIB_INTERFACE_AGE to 0.
+dnl
+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=0
+GINACLIB_MINOR_VERSION=5
+GINACLIB_MICRO_VERSION=3
+GINACLIB_INTERFACE_AGE=3
+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 GiNaC archive file version information.
+dnl
+dnl If properties have been added, ARCHIVE_VERSION += 1, ARCHIVE_AGE += 1.
+dnl If backwards compatibility has been broken, ARCHIVE_AGE to 0.
+dnl
+dnl The version number in newly created archives will be ARCHIVE_VERSION.
+dnl Archives version (ARCHIVE_VERSION-ARCHIVE_AGE) thru ARCHIVE_VERSION can
+dnl be read by this version of the GiNaC library.
+
+ARCHIVE_VERSION=0
+ARCHIVE_AGE=0
+
+AC_SUBST(ARCHIVE_VERSION)
+AC_SUBST(ARCHIVE_AGE)
+AC_DEFINE_UNQUOTED(ARCHIVE_VERSION, $ARCHIVE_VERSION)
+AC_DEFINE_UNQUOTED(ARCHIVE_AGE, $ARCHIVE_AGE)
+
+dnl libtool versioning
+LT_RELEASE=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION
+LT_CURRENT=`expr $GINACLIB_MICRO_VERSION - $GINACLIB_INTERFACE_AGE`
+LT_REVISION=$GINACLIB_INTERFACE_AGE
+LT_AGE=`expr $GINACLIB_BINARY_AGE - $GINACLIB_INTERFACE_AGE`
+
+AC_SUBST(LT_RELEASE)
+AC_SUBST(LT_CURRENT)
+AC_SUBST(LT_REVISION)
+AC_SUBST(LT_AGE)
+
+dnl This defines PACKAGE and VERSION.
+AM_CONFIG_HEADER(config.h)
+AM_INIT_AUTOMAKE([GiNaC], $GINACLIB_VERSION)
+AM_MAINTAINER_MODE
+
+dnl Check for the compiler and all the utilities needed for the build.