X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fconfigure.ac;h=bbf3ce77c2830629d07e506cc1c3d6b3f786bd23;hb=80a3a9574aa4642163e5bd8d49a3bdba22e39f01;hp=23e7d203b27d8e74f9b516395d5a63183c12cf98;hpb=d295d07dea5a9c4cfda84f4e9c99f2abcd43baeb;p=citadel.git diff --git a/citadel/configure.ac b/citadel/configure.ac index 23e7d203b..bbf3ce77c 100644 --- a/citadel/configure.ac +++ b/citadel/configure.ac @@ -408,6 +408,30 @@ dnl respective libraries, because some systems (like Irix) have both, and the dnl non-libc versions may be broken. AC_CHECK_FUNCS(crypt gethostbyname connect flock getpwnam_r getpwuid_r getloadavg) +AC_CHECK_FUNCS(strftime_l uselocale gettext) + +if test "$ok_nls" != "no"; then + AC_CHECK_PROG(ok_xgettext, xgettext, yes, no) + ok_nls=$ok_xgettext +fi + +if test "$ok_nls" != "no"; then + AC_CHECK_PROG(ok_msgmerge, msgmerge, yes, no) + ok_nls=$ok_msgmerge +fi + +if test "$ok_nls" != "no"; then + AC_CHECK_PROG(ok_msgfmt, msgfmt, yes, no) + ok_nls=$ok_msgfmt +fi + +if test "$ok_nls" != "no"; then + AC_MSG_RESULT(WebCit will be built with national language support.) + AC_DEFINE(ENABLE_NLS, [], [whether we have NLS support]) + PROG_SUBDIRS="$PROG_SUBDIRS po" +else + AC_MSG_RESULT(WebCit will be built without national language support.) +fi dnl disable backtrace if we don't want it. AC_ARG_WITH(backtrace,