1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(m17n-docs, 0.9, bugs-m17n-lib@m17n.org)
3 AM_INIT_AUTOMAKE(m17n-docs, 0.9)
10 if test $USE_MAINTAINER_MODE = yes; then
12 # Checks for source program files.
14 [ --with-m17n-lib=DIR directory of m17n-lib source files],
17 if test "x$M17NLIB" = "x"; then
18 if test -d ../m17n-lib; then
20 elif test -d /usr/local/src/m17n-lib; then
21 M17NLIB=/usr/local/src/m17n-lib
30 AC_CHECK_PROG(HAVEDOXYGEN, doxygen, yes, no)
31 AC_CHECK_PROG(RUBY, ruby, yes, no)
32 AC_CHECK_PROG(LATEX, latex, yes, no)
33 AC_CHECK_PROG(PLATEX, platex, yes, no)
36 if test "$HAVEDOXYGEN" = "no"; then
37 echo "Can't find a program \"doxygen\"!"
40 if test "$RUBY" = "no"; then
41 echo "Can't find a program \"ruby\"!"
44 if test "$LATEX" = "no"; then
45 echo "Can't find a program \"latex\"!"
48 if test "$PLATEX" = "no"; then
49 echo "Can't find a program \"platex\"!"
52 if test "$OK" = "no"; then
58 AC_CONFIG_FILES(Makefile)
61 # Print configuration message.
62 echo "-------------------------------------------------------------"
63 echo "Configure to make documentations from the source files under:"
65 echo "-------------------------------------------------------------"