Update version to 0.4.1.
[chise/libchise.git] / configure.in
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.57)
5 AC_INIT(libchise, 0.4.1, chise-en@m17n.org)
6 AC_CONFIG_SRCDIR(chise.c)
7 AC_CONFIG_HEADER(config.h)
8
9 AC_CANONICAL_TARGET
10
11 # Checks for programs.
12 AC_PROG_CC
13 AC_PROG_LIBTOOL
14 #  AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
15 #       /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
16
17 # Checks for libraries.
18 if test -f /sw/include/db3/db.h; then
19         CFLAGS="-I/sw/include/db3 $CFLAGS"
20 #       LIBS="-L/sw/lib -ldb-3 $LIBS"
21 elif test -f /sw/include/db4/db.h; then
22         CFLAGS="-I/sw/include/db4 $CFLAGS"
23 #       LIBS="-L/sw/lib -ldb-4 $LIBS"
24 #else
25 #       LIBS="-ldb $LIBS"
26 fi
27 #LIBS="-lconcord $LIBS"
28 AC_CHECK_LIB(concord,concord_open_ds,
29         , AC_MSG_ERROR(libconcord is not found.))
30
31 # Checks for header files.
32
33 # Checks for typedefs, structures, and compiler characteristics.
34 AC_C_CONST
35 AC_C_INLINE
36
37 # Checks for library functions.
38 AC_FUNC_ALLOCA
39 AC_FUNC_STRNLEN
40
41 AC_CHECK_FUNCS(strnlen)
42
43 AC_CONFIG_FILES([Makefile])
44 AC_OUTPUT