From effd36c0534894a9e8e5413704f2546f99da0e8d Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Fri, 29 Nov 2002 00:46:09 +0000 Subject: [PATCH] * configure.in: Determine which help translations user wants to install, based on USE_NLS, LINGUAS and ALL_LINGUAS. * doc/Makefile.am: Set SUBDIR to the list of the requested translations. --- ChangeLog | 5 +++++ configure.in | 20 ++++++++++++++++++++ doc/Makefile.am | 3 ++- 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c5995d7d0..7d326556b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2002-11-28 Pavel Roskin + * configure.in: Determine which help translations user wants to + install, based on USE_NLS, LINGUAS and ALL_LINGUAS. + * doc/Makefile.am: Set SUBDIR to the list of the requested + translations. + * acinclude.m4 (MC_EXTFS_CHECKS): New macro. (MC_WITH_VFS): Call MC_EXTFS_CHECKS. * configure.in: Generate vfs/extfs/uzip. diff --git a/configure.in b/configure.in index ebb6dc31d..836154ca1 100644 --- a/configure.in +++ b/configure.in @@ -83,6 +83,26 @@ if test "x$USE_INCLUDED_LIBINTL" = xyes; then CPPFLAGS="$CPPFLAGS -I\$(top_builddir)/intl -I\$(top_srcdir)/intl" fi +dnl Determine which help translations we want to install. +ALL_DOC_LINGUAS="es hu it pl ru" + +DOC_LINGUAS= +if test "x$USE_NLS" = xyes; then + langs="${LINGUAS-$ALL_LINGUAS}" +else + langs= +fi + +for h_lang in $ALL_DOC_LINGUAS; do + for lang in $langs; do + if test "$lang" = "$h_lang"; then + DOC_LINGUAS="$DOC_LINGUAS $lang" + break + fi + done +done +AC_SUBST(DOC_LINGUAS) + dnl dnl Hack to make extraconf.h visible even if compiling outside srcdir. dnl diff --git a/doc/Makefile.am b/doc/Makefile.am index 0e0ea1f57..a977a5bde 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,4 +1,5 @@ -SUBDIRS = es hu it pl ru +DIST_SUBDIRS = es hu it pl ru +SUBDIRS = $(DOC_LINGUAS) if USE_MCFS man_MANS = mc.1 mcedit.1 mcserv.8