cSvn-UI for SVN Repositories

cGit-UI – is a web interface for Subversion (SVN) Repositories. cSvn CGI script is writen in C and therefore it's fast enough

15 Commits   0 Branches   1 Tag
     5         kx # po.m4 serial 24 (gettext-0.19)
     5         kx dnl Copyright (C) 1995-2014, 2016 Free Software Foundation, Inc.
     5         kx dnl This file is free software; the Free Software Foundation
     5         kx dnl gives unlimited permission to copy and/or distribute it,
     5         kx dnl with or without modifications, as long as this notice is preserved.
     5         kx dnl
     5         kx dnl This file can be used in projects which are not available under
     5         kx dnl the GNU General Public License or the GNU Library General Public
     5         kx dnl License but which still want to provide support for the GNU gettext
     5         kx dnl functionality.
     5         kx dnl Please note that the actual code of the GNU gettext library is covered
     5         kx dnl by the GNU Library General Public License, and the rest of the GNU
     5         kx dnl gettext package is covered by the GNU General Public License.
     5         kx dnl They are *not* in the public domain.
     5         kx 
     5         kx dnl Authors:
     5         kx dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
     5         kx dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
     5         kx 
     5         kx AC_PREREQ([2.60])
     5         kx 
     5         kx dnl Checks for all prerequisites of the po subdirectory.
     5         kx AC_DEFUN([AM_PO_SUBDIRS],
     5         kx [
     5         kx   AC_REQUIRE([AC_PROG_MAKE_SET])dnl
     5         kx   AC_REQUIRE([AC_PROG_INSTALL])dnl
     5         kx   AC_REQUIRE([AC_PROG_MKDIR_P])dnl
     5         kx   AC_REQUIRE([AC_PROG_SED])dnl
     5         kx   AC_REQUIRE([AM_NLS])dnl
     5         kx 
     5         kx   dnl Release version of the gettext macros. This is used to ensure that
     5         kx   dnl the gettext macros and po/Makefile.in.in are in sync.
     5         kx   AC_SUBST([GETTEXT_MACRO_VERSION], [0.19])
     5         kx 
     5         kx   dnl Perform the following tests also if --disable-nls has been given,
     5         kx   dnl because they are needed for "make dist" to work.
     5         kx 
     5         kx   dnl Search for GNU msgfmt in the PATH.
     5         kx   dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
     5         kx   dnl The second test excludes FreeBSD msgfmt.
     5         kx   AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
     5         kx     [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
     5         kx      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
     5         kx     :)
     5         kx   AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
     5         kx 
     5         kx   dnl Test whether it is GNU msgfmt >= 0.15.
     5         kx changequote(,)dnl
     5         kx   case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
     5         kx     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
     5         kx     *) MSGFMT_015=$MSGFMT ;;
     5         kx   esac
     5         kx changequote([,])dnl
     5         kx   AC_SUBST([MSGFMT_015])
     5         kx changequote(,)dnl
     5         kx   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
     5         kx     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
     5         kx     *) GMSGFMT_015=$GMSGFMT ;;
     5         kx   esac
     5         kx changequote([,])dnl
     5         kx   AC_SUBST([GMSGFMT_015])
     5         kx 
     5         kx   dnl Search for GNU xgettext 0.12 or newer in the PATH.
     5         kx   dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
     5         kx   dnl The second test excludes FreeBSD xgettext.
     5         kx   AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
     5         kx     [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
     5         kx      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
     5         kx     :)
     5         kx   dnl Remove leftover from FreeBSD xgettext call.
     5         kx   rm -f messages.po
     5         kx 
     5         kx   dnl Test whether it is GNU xgettext >= 0.15.
     5         kx changequote(,)dnl
     5         kx   case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
     5         kx     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
     5         kx     *) XGETTEXT_015=$XGETTEXT ;;
     5         kx   esac
     5         kx changequote([,])dnl
     5         kx   AC_SUBST([XGETTEXT_015])
     5         kx 
     5         kx   dnl Search for GNU msgmerge 0.11 or newer in the PATH.
     5         kx   AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
     5         kx     [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
     5         kx 
     5         kx   dnl Installation directories.
     5         kx   dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
     5         kx   dnl have to define it here, so that it can be used in po/Makefile.
     5         kx   test -n "$localedir" || localedir='${datadir}/locale'
     5         kx   AC_SUBST([localedir])
     5         kx 
     5         kx   dnl Support for AM_XGETTEXT_OPTION.
     5         kx   test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
     5         kx   AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
     5         kx 
     5         kx   AC_CONFIG_COMMANDS([po-directories], [[
     5         kx     for ac_file in $CONFIG_FILES; do
     5         kx       # Support "outfile[:infile[:infile...]]"
     5         kx       case "$ac_file" in
     5         kx         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
     5         kx       esac
     5         kx       # PO directories have a Makefile.in generated from Makefile.in.in.
     5         kx       case "$ac_file" in */Makefile.in)
     5         kx         # Adjust a relative srcdir.
     5         kx         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
     5         kx         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
     5         kx         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
     5         kx         # In autoconf-2.13 it is called $ac_given_srcdir.
     5         kx         # In autoconf-2.50 it is called $srcdir.
     5         kx         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
     5         kx         case "$ac_given_srcdir" in
     5         kx           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
     5         kx           /*) top_srcdir="$ac_given_srcdir" ;;
     5         kx           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
     5         kx         esac
     5         kx         # Treat a directory as a PO directory if and only if it has a
     5         kx         # POTFILES.in file. This allows packages to have multiple PO
     5         kx         # directories under different names or in different locations.
     5         kx         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
     5         kx           rm -f "$ac_dir/POTFILES"
     5         kx           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
     5         kx           gt_tab=`printf '\t'`
     5         kx           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
     5         kx           POMAKEFILEDEPS="POTFILES.in"
     5         kx           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
     5         kx           # on $ac_dir but don't depend on user-specified configuration
     5         kx           # parameters.
     5         kx           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
     5         kx             # The LINGUAS file contains the set of available languages.
     5         kx             if test -n "$OBSOLETE_ALL_LINGUAS"; then
     5         kx               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
     5         kx             fi
     5         kx             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
     5         kx             # Hide the ALL_LINGUAS assignment from automake < 1.5.
     5         kx             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
     5         kx             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
     5         kx           else
     5         kx             # The set of available languages was given in configure.in.
     5         kx             # Hide the ALL_LINGUAS assignment from automake < 1.5.
     5         kx             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
     5         kx           fi
     5         kx           # Compute POFILES
     5         kx           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
     5         kx           # Compute UPDATEPOFILES
     5         kx           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
     5         kx           # Compute DUMMYPOFILES
     5         kx           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
     5         kx           # Compute GMOFILES
     5         kx           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
     5         kx           case "$ac_given_srcdir" in
     5         kx             .) srcdirpre= ;;
     5         kx             *) srcdirpre='$(srcdir)/' ;;
     5         kx           esac
     5         kx           POFILES=
     5         kx           UPDATEPOFILES=
     5         kx           DUMMYPOFILES=
     5         kx           GMOFILES=
     5         kx           for lang in $ALL_LINGUAS; do
     5         kx             POFILES="$POFILES $srcdirpre$lang.po"
     5         kx             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
     5         kx             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
     5         kx             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
     5         kx           done
     5         kx           # CATALOGS depends on both $ac_dir and the user's LINGUAS
     5         kx           # environment variable.
     5         kx           INST_LINGUAS=
     5         kx           if test -n "$ALL_LINGUAS"; then
     5         kx             for presentlang in $ALL_LINGUAS; do
     5         kx               useit=no
     5         kx               if test "%UNSET%" != "$LINGUAS"; then
     5         kx                 desiredlanguages="$LINGUAS"
     5         kx               else
     5         kx                 desiredlanguages="$ALL_LINGUAS"
     5         kx               fi
     5         kx               for desiredlang in $desiredlanguages; do
     5         kx                 # Use the presentlang catalog if desiredlang is
     5         kx                 #   a. equal to presentlang, or
     5         kx                 #   b. a variant of presentlang (because in this case,
     5         kx                 #      presentlang can be used as a fallback for messages
     5         kx                 #      which are not translated in the desiredlang catalog).
     5         kx                 case "$desiredlang" in
     5         kx                   "$presentlang"*) useit=yes;;
     5         kx                 esac
     5         kx               done
     5         kx               if test $useit = yes; then
     5         kx                 INST_LINGUAS="$INST_LINGUAS $presentlang"
     5         kx               fi
     5         kx             done
     5         kx           fi
     5         kx           CATALOGS=
     5         kx           if test -n "$INST_LINGUAS"; then
     5         kx             for lang in $INST_LINGUAS; do
     5         kx               CATALOGS="$CATALOGS $lang.gmo"
     5         kx             done
     5         kx           fi
     5         kx           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
     5         kx           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
     5         kx           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
     5         kx             if test -f "$f"; then
     5         kx               case "$f" in
     5         kx                 *.orig | *.bak | *~) ;;
     5         kx                 *) cat "$f" >> "$ac_dir/Makefile" ;;
     5         kx               esac
     5         kx             fi
     5         kx           done
     5         kx         fi
     5         kx         ;;
     5         kx       esac
     5         kx     done]],
     5         kx    [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
     5         kx     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
     5         kx     # from automake < 1.5.
     5         kx     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
     5         kx     # Capture the value of LINGUAS because we need it to compute CATALOGS.
     5         kx     LINGUAS="${LINGUAS-%UNSET%}"
     5         kx    ])
     5         kx ])
     5         kx 
     5         kx dnl Postprocesses a Makefile in a directory containing PO files.
     5         kx AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
     5         kx [
     5         kx   # When this code is run, in config.status, two variables have already been
     5         kx   # set:
     5         kx   # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
     5         kx   # - LINGUAS is the value of the environment variable LINGUAS at configure
     5         kx   #   time.
     5         kx 
     5         kx changequote(,)dnl
     5         kx   # Adjust a relative srcdir.
     5         kx   ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
     5         kx   ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
     5         kx   ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
     5         kx   # In autoconf-2.13 it is called $ac_given_srcdir.
     5         kx   # In autoconf-2.50 it is called $srcdir.
     5         kx   test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
     5         kx   case "$ac_given_srcdir" in
     5         kx     .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
     5         kx     /*) top_srcdir="$ac_given_srcdir" ;;
     5         kx     *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
     5         kx   esac
     5         kx 
     5         kx   # Find a way to echo strings without interpreting backslash.
     5         kx   if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
     5         kx     gt_echo='echo'
     5         kx   else
     5         kx     if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
     5         kx       gt_echo='printf %s\n'
     5         kx     else
     5         kx       echo_func () {
     5         kx         cat <<EOT
     5         kx $*
     5         kx EOT
     5         kx       }
     5         kx       gt_echo='echo_func'
     5         kx     fi
     5         kx   fi
     5         kx 
     5         kx   # A sed script that extracts the value of VARIABLE from a Makefile.
     5         kx   tab=`printf '\t'`
     5         kx   sed_x_variable='
     5         kx # Test if the hold space is empty.
     5         kx x
     5         kx s/P/P/
     5         kx x
     5         kx ta
     5         kx # Yes it was empty. Look if we have the expected variable definition.
     5         kx /^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{
     5         kx   # Seen the first line of the variable definition.
     5         kx   s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=//
     5         kx   ba
     5         kx }
     5         kx bd
     5         kx :a
     5         kx # Here we are processing a line from the variable definition.
     5         kx # Remove comment, more precisely replace it with a space.
     5         kx s/#.*$/ /
     5         kx # See if the line ends in a backslash.
     5         kx tb
     5         kx :b
     5         kx s/\\$//
     5         kx # Print the line, without the trailing backslash.
     5         kx p
     5         kx tc
     5         kx # There was no trailing backslash. The end of the variable definition is
     5         kx # reached. Clear the hold space.
     5         kx s/^.*$//
     5         kx x
     5         kx bd
     5         kx :c
     5         kx # A trailing backslash means that the variable definition continues in the
     5         kx # next line. Put a nonempty string into the hold space to indicate this.
     5         kx s/^.*$/P/
     5         kx x
     5         kx :d
     5         kx '
     5         kx changequote([,])dnl
     5         kx 
     5         kx   # Set POTFILES to the value of the Makefile variable POTFILES.
     5         kx   sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
     5         kx   POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
     5         kx   # Compute POTFILES_DEPS as
     5         kx   #   $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
     5         kx   POTFILES_DEPS=
     5         kx   for file in $POTFILES; do
     5         kx     POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
     5         kx   done
     5         kx   POMAKEFILEDEPS=""
     5         kx 
     5         kx   if test -n "$OBSOLETE_ALL_LINGUAS"; then
     5         kx     test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
     5         kx   fi
     5         kx   if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
     5         kx     # The LINGUAS file contains the set of available languages.
     5         kx     ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
     5         kx     POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
     5         kx   else
     5         kx     # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
     5         kx     sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
     5         kx     ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
     5         kx   fi
     5         kx   # Hide the ALL_LINGUAS assignment from automake < 1.5.
     5         kx   eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
     5         kx   # Compute POFILES
     5         kx   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
     5         kx   # Compute UPDATEPOFILES
     5         kx   # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
     5         kx   # Compute DUMMYPOFILES
     5         kx   # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
     5         kx   # Compute GMOFILES
     5         kx   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
     5         kx   # Compute PROPERTIESFILES
     5         kx   # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
     5         kx   # Compute CLASSFILES
     5         kx   # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
     5         kx   # Compute QMFILES
     5         kx   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
     5         kx   # Compute MSGFILES
     5         kx   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
     5         kx   # Compute RESOURCESDLLFILES
     5         kx   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
     5         kx   case "$ac_given_srcdir" in
     5         kx     .) srcdirpre= ;;
     5         kx     *) srcdirpre='$(srcdir)/' ;;
     5         kx   esac
     5         kx   POFILES=
     5         kx   UPDATEPOFILES=
     5         kx   DUMMYPOFILES=
     5         kx   GMOFILES=
     5         kx   PROPERTIESFILES=
     5         kx   CLASSFILES=
     5         kx   QMFILES=
     5         kx   MSGFILES=
     5         kx   RESOURCESDLLFILES=
     5         kx   for lang in $ALL_LINGUAS; do
     5         kx     POFILES="$POFILES $srcdirpre$lang.po"
     5         kx     UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
     5         kx     DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
     5         kx     GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
     5         kx     PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
     5         kx     CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
     5         kx     QMFILES="$QMFILES $srcdirpre$lang.qm"
     5         kx     frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
     5         kx     MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
     5         kx     frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
     5         kx     RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
     5         kx   done
     5         kx   # CATALOGS depends on both $ac_dir and the user's LINGUAS
     5         kx   # environment variable.
     5         kx   INST_LINGUAS=
     5         kx   if test -n "$ALL_LINGUAS"; then
     5         kx     for presentlang in $ALL_LINGUAS; do
     5         kx       useit=no
     5         kx       if test "%UNSET%" != "$LINGUAS"; then
     5         kx         desiredlanguages="$LINGUAS"
     5         kx       else
     5         kx         desiredlanguages="$ALL_LINGUAS"
     5         kx       fi
     5         kx       for desiredlang in $desiredlanguages; do
     5         kx         # Use the presentlang catalog if desiredlang is
     5         kx         #   a. equal to presentlang, or
     5         kx         #   b. a variant of presentlang (because in this case,
     5         kx         #      presentlang can be used as a fallback for messages
     5         kx         #      which are not translated in the desiredlang catalog).
     5         kx         case "$desiredlang" in
     5         kx           "$presentlang"*) useit=yes;;
     5         kx         esac
     5         kx       done
     5         kx       if test $useit = yes; then
     5         kx         INST_LINGUAS="$INST_LINGUAS $presentlang"
     5         kx       fi
     5         kx     done
     5         kx   fi
     5         kx   CATALOGS=
     5         kx   JAVACATALOGS=
     5         kx   QTCATALOGS=
     5         kx   TCLCATALOGS=
     5         kx   CSHARPCATALOGS=
     5         kx   if test -n "$INST_LINGUAS"; then
     5         kx     for lang in $INST_LINGUAS; do
     5         kx       CATALOGS="$CATALOGS $lang.gmo"
     5         kx       JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
     5         kx       QTCATALOGS="$QTCATALOGS $lang.qm"
     5         kx       frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
     5         kx       TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
     5         kx       frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
     5         kx       CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
     5         kx     done
     5         kx   fi
     5         kx 
     5         kx   sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
     5         kx   tab=`printf '\t'`
     5         kx   if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
     5         kx     # Add dependencies that cannot be formulated as a simple suffix rule.
     5         kx     for lang in $ALL_LINGUAS; do
     5         kx       frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
     5         kx       cat >> "$ac_file.tmp" <<EOF
     5         kx $frobbedlang.msg: $lang.po
     5         kx ${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
     5         kx ${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
     5         kx EOF
     5         kx     done
     5         kx   fi
     5         kx   if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
     5         kx     # Add dependencies that cannot be formulated as a simple suffix rule.
     5         kx     for lang in $ALL_LINGUAS; do
     5         kx       frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
     5         kx       cat >> "$ac_file.tmp" <<EOF
     5         kx $frobbedlang/\$(DOMAIN).resources.dll: $lang.po
     5         kx ${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
     5         kx ${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
     5         kx EOF
     5         kx     done
     5         kx   fi
     5         kx   if test -n "$POMAKEFILEDEPS"; then
     5         kx     cat >> "$ac_file.tmp" <<EOF
     5         kx Makefile: $POMAKEFILEDEPS
     5         kx EOF
     5         kx   fi
     5         kx   mv "$ac_file.tmp" "$ac_file"
     5         kx ])
     5         kx 
     5         kx dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
     5         kx AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
     5         kx [
     5         kx   XGETTEXT_EXTRA_OPTIONS=
     5         kx ])
     5         kx 
     5         kx dnl Registers an option to be passed to xgettext in the po subdirectory.
     5         kx AC_DEFUN([AM_XGETTEXT_OPTION],
     5         kx [
     5         kx   AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
     5         kx   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
     5         kx ])