update.
[chise/libchise.git] / configure.in
index 5e0adc1..d65f346 100644 (file)
@@ -2,18 +2,27 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.57)
-AC_INIT(libchise, 0.1.1, chise-en@m17n.org)
+AC_INIT(libchise, 0.3.0, chise-en@m17n.org)
 AC_CONFIG_SRCDIR(chise.c)
 AC_CONFIG_HEADER(config.h)
 
+AC_CANONICAL_TARGET
+
 # Checks for programs.
 AC_PROG_CC
-AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
-       /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
+AC_PROG_LIBTOOL
+#  AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
+#      /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
 
 # Checks for libraries.
 if test -f /sw/include/db3/db.h; then
        CFLAGS="-I/sw/include/db3 $CFLAGS"
+       LIBS="-L/sw/lib -ldb-3 $LIBS"
+elif test -f /sw/include/db4/db.h; then
+       CFLAGS="-I/sw/include/db4 $CFLAGS"
+       LIBS="-L/sw/lib -ldb-4 $LIBS"
+else
+       LIBS="-ldb $LIBS"
 fi
 
 # Checks for header files.