diff options
author | Bruno Haible <bruno@clisp.org> | 2001-09-25 14:34:32 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2001-09-25 14:34:32 +0000 |
commit | eb1dbe49cc48888a3d2d43c2eeb578739f2419a7 (patch) | |
tree | 9640a4dbb60f2513e4cc3f976e3168803a9e82a8 /m4/gettext.m4 | |
parent | 48eb586b3eda40431e7147b29597a5b377f894e0 (diff) | |
download | external_gettext-eb1dbe49cc48888a3d2d43c2eeb578739f2419a7.zip external_gettext-eb1dbe49cc48888a3d2d43c2eeb578739f2419a7.tar.gz external_gettext-eb1dbe49cc48888a3d2d43c2eeb578739f2419a7.tar.bz2 |
Fix the last patch. 'unset' is unportable.
Diffstat (limited to 'm4/gettext.m4')
-rw-r--r-- | m4/gettext.m4 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/m4/gettext.m4 b/m4/gettext.m4 index fc7205c..251d2d9 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 ]) |