]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix the last patch. 'unset' is unportable.
authorBruno Haible <bruno@clisp.org>
Tue, 25 Sep 2001 14:34:32 +0000 (14:34 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 25 Sep 2001 14:34:32 +0000 (14:34 +0000)
m4/gettext.m4

index fc7205c2e8ac0703a381c76cceb71912089c9ffa..251d2d9130fcaf5ac91e697455c511853241174c 100644 (file)
@@ -281,7 +281,12 @@ return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", ""
             if test -n "$ALL_LINGUAS"; then
               for presentlang in $ALL_LINGUAS; do
                 useit=no
-                for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
+                if test "%UNSET%" != "$LINGUAS"; then
+                  desiredlanguages="$LINGUAS"
+                else
+                  desiredlanguages="$ALL_LINGUAS"
+                fi
+                for desiredlang in $desiredlanguages; do
                   # Use the presentlang catalog if desiredlang is
                   #   a. equal to presentlang, or
                   #   b. a variant of presentlang (because in this case,
@@ -311,9 +316,8 @@ return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", ""
      [# Capture the value of obsolete $ALL_LINGUAS because we need it to
       # compute GMOFILES, POFILES, CATALOGS. But hide it from automake.
       eval '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%}"
-      test "%UNSET%" != "\$LINGUAS" || unset LINGUAS
      ])