AC_INIT(README)
-AC_PREREQ(2.13)
-AM_INIT_AUTOMAKE(chasen, 2.4.0-preview2)
+AC_PREREQ(2.61)
+AM_INIT_AUTOMAKE(chasen, 2.4.0-preview6)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
AC_PROG_CC
AC_PROG_CXX
AM_PROG_LIBTOOL
+AC_PROG_CPP
+AC_PROG_INSTALL
+AC_PROG_LEX
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+
# Before making a release, the LTVERSION string should be modified.
# The string is of the form C:R:A.
# - If interfaces have been changed or added, but binary compatibility has
# - If binary compatibility has been broken (eg removed or changed interfaces)
# change to C+1:0:0
# - If the interface is the same as the previous version, change to C:R+1:A
-LTVERSION="0:1:0"
+LTVERSION="2:4:0"
AC_SUBST(LTVERSION)
+
dnl Checks for programs.
AC_ISC_POSIX
AC_PROG_INSTALL
dnl Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h limits.h sys/file.h sys/stat.h unistd.h)
-AC_CHECK_HEADERS(sys/param.h sys/types.h netinet/in.h)
-AC_CHECK_HEADERS(io.h windows.h)
+AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h sys/param.h unistd.h])
+AC_CHECK_HEADERS([sys/param.h sys/types.h netinet/in.h])
+AC_CHECK_HEADERS([io.h windows.h])
+
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_TYPE_OFF_T
+AC_TYPE_SIZE_T
+
+# Checks for library functions.
+AC_FUNC_MALLOC
+AC_FUNC_MEMCMP
+AC_FUNC_MMAP
+AC_FUNC_REALLOC
+AC_FUNC_VPRINTF
+AC_CHECK_FUNCS([mblen memset munmap strchr strpbrk strrchr])
AC_MSG_CHECKING([for darts.h])
AC_ARG_WITH(darts,
CFLAGS="${CFLAGS} -Wall"
fi
+
AC_OUTPUT([
Makefile
chasen-config