AC_INIT(pgbouncer, 1.2.cvs)
AC_CONFIG_SRCDIR(src/janitor.c)
AC_CONFIG_HEADER(include/config.h)
+AC_PREREQ([2.59])
dnl Checks for programs.
AC_PROG_CC
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_C_BIGENDIAN
+AC_SYS_LARGEFILE
AC_TYPE_PID_T
AC_TYPE_SIZE_T
+
+dnl autoconfigure based on autoconf abilities
+m4_ifdef([AC_TYPE_UINT8_T], [
AC_TYPE_UINT8_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
-AC_SYS_LARGEFILE
+])
dnl Checks for library functions.
AC_CHECK_FUNCS(strlcpy strlcat getpeereid getpeerucred)