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
29 # Checks for the m17n database files.
31 [ --with-m17n-db=DIR directory of m17n-db source files],
34 if test "x$M17NDB" = "x"; then
35 if test -d ../m17n-db; then
37 elif test -d /usr/local/src/m17n-db; then
38 M17NDB=/usr/local/src/m17n-db
46 AC_CHECK_PROG(HAVEDOXYGEN, doxygen, yes, no)
47 AC_CHECK_PROG(RUBY, ruby, yes, no)
48 AC_CHECK_PROG(LATEX, latex, yes, no)
49 AC_CHECK_PROG(PLATEX, platex, yes, no)
52 if test "$HAVEDOXYGEN" = "no"; then
53 echo "Can't find a program \"doxygen\"!"
56 if test "$RUBY" = "no"; then
57 echo "Can't find a program \"ruby\"!"
60 if test "$LATEX" = "no"; then
61 echo "Can't find a program \"latex\"!"
64 if test "$PLATEX" = "no"; then
65 echo "Can't find a program \"platex\"!"
68 if test "$OK" = "no"; then
74 AC_CONFIG_FILES(Makefile)
77 # Print configuration message.
78 if test $USE_MAINTAINER_MODE = yes; then
79 AC_MSG_NOTICE([Find documentation source in "$M17NLIB"])
80 AC_MSG_NOTICE([Find m17n database source in "$M17NDB"])
84 AC_MSG_NOTICE([-------------------------------------------])
85 AC_MSG_NOTICE([Install documentations in these directories])
86 AC_MSG_NOTICE([-------------------------------------------])
87 AC_MSG_NOTICE([ m17n-lib.dvi: ${dir}/m17n-lib])
88 AC_MSG_NOTICE([ m17n-lib.ps: ${dir}/m17n-lib])
89 AC_MSG_NOTICE([ html files: ${dir}/m17n-lib/html])
91 AC_MSG_NOTICE([ man files: ${dir}])