(AC_INIT): Update to 0.24.
[chise/chise-base.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(chise-base, 0.24, chise-en@m17n.org)
6
7 AC_CANONICAL_TARGET
8
9 # Checks for programs.
10 # AC_PROG_CC
11 # AC_PROG_LIBTOOL
12 #  AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
13 #       /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
14
15 AC_SUBST(ac_configure_args)
16 AC_SUBST(xemacs_site_includes)
17 AC_SUBST(xemacs_site_libraries)
18 AC_SUBST(xemacs_opts)
19 AC_SUBST(cvs_root)
20 AC_SUBST(lemi_cvs_root)
21
22 if test -f CVS/Root; then
23         cvs_root=`cat CVS/Root`
24         lemi_cvs_root=`cat CVS/Root|sed 's/chise/root/'`
25 else
26         cvs_root=':pserver:anonymous@cvs.m17n.org:/cvs/chise'
27         lemi_cvs_root=':pserver:anonymous@cvs.m17n.org:/cvs/root'
28 fi
29
30 # Checks for libraries.
31 if test -d /sw/include; then
32         xemacs_site_includes="/sw/include"
33         xemacs_site_libraries="/sw/lib"
34         xemacs_opts="--with-dialogs=athena --with-widgets=athena --with-athena=3d"
35
36         if test -f /sw/include/db3/db.h; then
37                 xemacs_site_includes="$xemacs_site_includes:/sw/include/db3"
38         elif test -f /sw/include/db4/db.h; then
39                 xemacs_site_includes="$xemacs_site_includes:/sw/include/db4"
40         fi
41         if test -d /sw/include/canna; then
42                 xemacs_opts="$xemacs_opts --with-canna"
43         fi
44 fi
45
46 if test "$xemacs_site_includes" != ""; then
47         xemacs_opts="$xemacs_opts --site-includes=$xemacs_site_includes"
48 fi
49
50 if test "$xemacs_site_libraries" != ""; then
51         xemacs_opts="$xemacs_opts --site-libraries=$xemacs_site_libraries"
52 fi
53
54 # Checks for header files.
55
56 # Checks for typedefs, structures, and compiler characteristics.
57 #AC_C_CONST
58 #AC_C_INLINE
59
60 # Checks for library functions.
61 #AC_FUNC_ALLOCA
62 #AC_FUNC_STRNLEN
63
64 #AC_CHECK_FUNCS(strnlen)
65
66 AC_CONFIG_FILES([Makefile])
67 AC_OUTPUT