From: handa Date: Mon, 14 Jun 2004 05:23:06 +0000 (+0000) Subject: Check the program m17n-db. X-Git-Tag: withdl~101 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=e7dd2eae6d2d2c7be60c958dea09bab722a73683;p=m17n%2Fm17n-lib.git Check the program m17n-db. --- diff --git a/configure.ac b/configure.ac index de21bc4..883ee70 100644 --- a/configure.ac +++ b/configure.ac @@ -67,6 +67,17 @@ AC_FUNC_STRTOD AC_CHECK_FUNCS(memmove memset nl_langinfo putenv regcomp setlocale) AC_CHECK_FUNCS(strchr strdup gettimeofday) +dnl Checks where the m17n database is installed. + +AC_CHECK_PROG(HAVE_M17N_DB, m17n-db, yes) +if test "x$HAVE_M17N_DB" = "xyes"; then + M17NDIR=`m17n-db` +else + M17NDIR="${datadir}/m17n" +fi +AC_SUBST(M17NDIR) + + dnl Checks if dlopen exists, and if it's in libc or libdl. AC_SEARCH_LIBS(dlopen, dl,