New files.
[chise/concord.git] / configure.in
diff --git a/configure.in b/configure.in
new file mode 100644 (file)
index 0000000..212b075
--- /dev/null
@@ -0,0 +1,41 @@
+#                                               -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.57)
+AC_INIT(concord, 0.0.0, chise-en@m17n.org)
+AC_CONFIG_SRCDIR(concord.c)
+AC_CONFIG_HEADER(config.h)
+
+AC_CANONICAL_TARGET
+
+# Checks for programs.
+AC_PROG_CC
+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.
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_C_INLINE
+
+# Checks for library functions.
+AC_FUNC_ALLOCA
+AC_FUNC_STRNLEN
+
+AC_CHECK_FUNCS(strnlen)
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT