summaryrefslogtreecommitdiffstats
path: root/abs/extra/recode/recode-3.6-gettextfix.diff
blob: 3b7eb8ba20e6c7699c433a1669e37220c07cb73b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
http://bugs.gentoo.org/239372

patch by Dmitry Karasik

--- recode-3.6/m4/gettext.m4
+++ recode-3.6/m4/gettext.m4
@@ -109,12 +109,12 @@
     else
       ac_items="$LINGUAS"
       for ac_item in $ac_items; do
-	case "$ALL_LINGUAS" in
-	  *$ac_item*)
+        for supported_item in $ALL_LINGUAS; do
+          if test "$ac_item" = "$supported_item"; then
 	    ac_print="$ac_print $ac_item"
 	    MOFILES="$MOFILES $ac_item.mo"
-	    ;;
-	esac
+          fi
+        done
       done
     fi
     AC_SUBST(MOFILES)