Diff for /embedaddon/libiconv/srcm4/po.m4 between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2012/05/29 09:29:44 version 1.1.1.3, 2021/03/17 13:38:46
Line 1 Line 1
# po.m4 serial 17a# po.m4 serial 24a
dnl Copyright (C) 1995-2011 Free Software Foundation, Inc.dnl Copyright (C) 1995-2014, 2016, 2018-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation  dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,  dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.  dnl with or without modifications, as long as this notice is preserved.
 dnl  dnl
dnl This file can can be used in projects which are not available underdnl This file can be used in projects which are not available under
 dnl the GNU General Public License or the GNU Library General Public  dnl the GNU General Public License or the GNU Library General Public
 dnl License but which still want to provide support for the GNU gettext  dnl License but which still want to provide support for the GNU gettext
 dnl functionality.  dnl functionality.
 dnl Please note that the actual code of the GNU gettext library is covered  dnl Please note that the actual code of the GNU gettext library is covered
 dnl by the GNU Library General Public License, and the rest of the GNU  dnl by the GNU Library General Public License, and the rest of the GNU
dnl gettext package package is covered by the GNU General Public License.dnl gettext package is covered by the GNU General Public License.
 dnl They are *not* in the public domain.  dnl They are *not* in the public domain.
   
 dnl Authors:  dnl Authors:
 dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.  dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.  dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
   
AC_PREREQ([2.50])AC_PREREQ([2.60])
   
 dnl Checks for all prerequisites of the po subdirectory.  dnl Checks for all prerequisites of the po subdirectory.
 AC_DEFUN([AM_PO_SUBDIRS],  AC_DEFUN([AM_PO_SUBDIRS],
 [  [
   AC_REQUIRE([AC_PROG_MAKE_SET])dnl    AC_REQUIRE([AC_PROG_MAKE_SET])dnl
   AC_REQUIRE([AC_PROG_INSTALL])dnl    AC_REQUIRE([AC_PROG_INSTALL])dnl
  AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake  AC_REQUIRE([AC_PROG_MKDIR_P])dnl
   AC_REQUIRE([AC_PROG_SED])dnl
   AC_REQUIRE([AM_NLS])dnl    AC_REQUIRE([AM_NLS])dnl
   
   dnl Release version of the gettext macros. This is used to ensure that    dnl Release version of the gettext macros. This is used to ensure that
   dnl the gettext macros and po/Makefile.in.in are in sync.    dnl the gettext macros and po/Makefile.in.in are in sync.
  AC_SUBST([GETTEXT_MACRO_VERSION], [0.18])  AC_SUBST([GETTEXT_MACRO_VERSION], [0.19])
   
   dnl Perform the following tests also if --disable-nls has been given,    dnl Perform the following tests also if --disable-nls has been given,
   dnl because they are needed for "make dist" to work.    dnl because they are needed for "make dist" to work.
Line 82  changequote([,])dnl Line 83  changequote([,])dnl
   AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,    AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
     [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)      [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
   
   dnl Installation directories.  
   dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we  
   dnl have to define it here, so that it can be used in po/Makefile.  
   test -n "$localedir" || localedir='${datadir}/locale'  
   AC_SUBST([localedir])  
   
   dnl Support for AM_XGETTEXT_OPTION.    dnl Support for AM_XGETTEXT_OPTION.
   test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
   AC_SUBST([XGETTEXT_EXTRA_OPTIONS])    AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
Line 102  changequote([,])dnl Line 97  changequote([,])dnl
       case "$ac_file" in */Makefile.in)        case "$ac_file" in */Makefile.in)
         # Adjust a relative srcdir.          # Adjust a relative srcdir.
         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`          ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`          ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
         # In autoconf-2.13 it is called $ac_given_srcdir.          # In autoconf-2.13 it is called $ac_given_srcdir.
         # In autoconf-2.50 it is called $srcdir.          # In autoconf-2.50 it is called $srcdir.
Line 129  changequote([,])dnl Line 124  changequote([,])dnl
             if test -n "$OBSOLETE_ALL_LINGUAS"; then              if test -n "$OBSOLETE_ALL_LINGUAS"; then
               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"                test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
             fi              fi
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`            ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
            # Hide the ALL_LINGUAS assigment from automake < 1.5. 
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 
             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"              POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
           else            else
             # The set of available languages was given in configure.in.              # The set of available languages was given in configure.in.
            # Hide the ALL_LINGUAS assigment from automake < 1.5.            ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 
           fi            fi
           # Compute POFILES            # Compute POFILES
           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)            # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
Line 207  changequote([,])dnl Line 199  changequote([,])dnl
       esac        esac
     done]],      done]],
    [# Capture the value of obsolete ALL_LINGUAS because we need it to compute     [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
    # from automake < 1.5.    OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 
     # Capture the value of LINGUAS because we need it to compute CATALOGS.      # Capture the value of LINGUAS because we need it to compute CATALOGS.
     LINGUAS="${LINGUAS-%UNSET%}"      LINGUAS="${LINGUAS-%UNSET%}"
    ])     ])
Line 227  AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], Line 218  AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
 changequote(,)dnl  changequote(,)dnl
   # Adjust a relative srcdir.    # Adjust a relative srcdir.
   ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`    ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"  ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
   ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`    ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
   # In autoconf-2.13 it is called $ac_given_srcdir.    # In autoconf-2.13 it is called $ac_given_srcdir.
   # In autoconf-2.50 it is called $srcdir.    # In autoconf-2.50 it is called $srcdir.
Line 310  changequote([,])dnl Line 301  changequote([,])dnl
   fi    fi
   if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then    if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
     # The LINGUAS file contains the set of available languages.      # The LINGUAS file contains the set of available languages.
    ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`    ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
     POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"      POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
   else    else
     # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.      # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
     sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`      sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
    ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`    ALL_LINGUAS=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
   fi    fi
   # Hide the ALL_LINGUAS assigment from automake < 1.5.  
   eval 'ALL_LINGUAS''=$ALL_LINGUAS_'  
   # Compute POFILES    # Compute POFILES
   # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)    # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
   # Compute UPDATEPOFILES    # Compute UPDATEPOFILES

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>