dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/postrat.c)

S2R_MAJOR_VERSION=4
S2R_MINOR_VERSION=4
S2R_VERSION=$S2R_MAJOR_VERSION.$S2R_MINOR_VERSION

AC_SUBST(S2R_MAJOR_VERSION)
AC_SUBST(S2R_MINOR_VERSION)
AC_SUBST(S2R_VERSION)

# For automake.
VERSION=$S2R_VERSION
PACKAGE=s2r

dnl Initialize automake stuff
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)

dnl Checks for programs.
AC_PROG_CC
AM_PROG_LIBTOOL
AC_PROG_MAKE_SET

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_CHECK_LIB(m, sqrt)

AM_ALLIANCE

AC_OUTPUT([
Makefile
doc/Makefile
src/Makefile
])
