X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=1140cbab51793d13f57902c5a64e16d3709705e4;hb=af67af45ff75edf82525a0a6955e8df10036df9e;hp=9c48b8b6439aaba9b1399f5f056dab77e9f64eeb;hpb=d5b639418e6f1532218a9ec58738290bd8f87322;p=m17n%2Fm17n-docs.git diff --git a/configure.ac b/configure.ac index 9c48b8b..1140cba 100644 --- a/configure.ac +++ b/configure.ac @@ -1,17 +1,19 @@ # Process this file with autoconf to produce a configure script. -AC_INIT(m17n-docs, 0.9, bugs-m17n-lib@m17n.org) -AM_INIT_AUTOMAKE(m17n-docs, 0.9) +AC_INIT(m17n-docs, 1.5.2, bugs-m17n-lib@m17n.org) +AM_INIT_AUTOMAKE([-Wno-portability]) AM_MAINTAINER_MODE # Checks for programs. +AC_PROG_CC AC_PROG_INSTALL +AC_PROG_AWK if test $USE_MAINTAINER_MODE = yes; then # Checks for source program files. AC_ARG_WITH(m17nlib, - [ --with-m17n-lib=DIR directory of m17n-lib source files], + [ --with-m17nlib=DIR directory of m17n-lib source files], M17NLIB="$withval") if test "x$M17NLIB" = "x"; then @@ -24,9 +26,29 @@ if test "x$M17NLIB" = "x"; then fi else : fi - AC_SUBST(M17NLIB) +# Checks for the m17n database files. +AC_ARG_WITH(m17ndb, + [ --with-m17ndb=DIR directory of m17n-db source files], + M17NDB="$withval") + +if test "x$M17NDB" = "x"; then + if test -d ../m17n-db; then + M17NDB=../m17n-db + elif test -d /usr/local/src/m17n-db; then + M17NDB=/usr/local/src/m17n-db + else + M17NDB=. + fi +else : +fi +AC_SUBST(M17NDB) + +PKG_CHECK_MODULES(M17N, m17n-shell) +AC_SUBST(M17N_CFLAGS) +AC_SUBST(M17N_LIBS) + AC_CHECK_PROG(HAVEDOXYGEN, doxygen, yes, no) AC_CHECK_PROG(RUBY, ruby, yes, no) AC_CHECK_PROG(LATEX, latex, yes, no) @@ -55,20 +77,21 @@ fi fi -AC_CONFIG_FILES(Makefile) +AC_CONFIG_FILES([Makefile utils/Makefile]) AC_OUTPUT # Print configuration message. if test $USE_MAINTAINER_MODE = yes; then AC_MSG_NOTICE([Find documentation source in "$M17NLIB"]) + AC_MSG_NOTICE([Find m17n database source in "$M17NDB"]) fi eval dir=${datadir} AC_MSG_NOTICE([-------------------------------------------]) AC_MSG_NOTICE([Install documentations in these directories]) AC_MSG_NOTICE([-------------------------------------------]) -AC_MSG_NOTICE([ m17n-lib.dvi: ${dir}/m17n-lib]) -AC_MSG_NOTICE([ m17n-lib.ps: ${dir}/m17n-lib]) -AC_MSG_NOTICE([ html files: ${dir}/m17n-lib/html]) +AC_MSG_NOTICE([ m17n-lib.dvi: ${dir}/m17n/docs]) +AC_MSG_NOTICE([ m17n-lib.ps: ${dir}/m17n/docs]) +AC_MSG_NOTICE([ html files: ${dir}/m17n/docs/html]) eval dir=${mandir} AC_MSG_NOTICE([ man files: ${dir}])