From: Bruno Haible Date: Tue, 25 Sep 2001 14:34:32 +0000 (+0000) Subject: Fix the last patch. 'unset' is unportable. X-Git-Tag: v0.11~468 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb1dbe49cc48888a3d2d43c2eeb578739f2419a7;p=thirdparty%2Fgettext.git Fix the last patch. 'unset' is unportable. --- diff --git a/m4/gettext.m4 b/m4/gettext.m4 index fc7205c2e..251d2d913 100644 --- a/m4/gettext.m4 +++ b/m4/gettext.m4 @@ -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 ])