diff options
-rwxr-xr-x | configure.in | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.in b/configure.in index ded421975527..37f537d3da8a 100755 --- a/configure.in +++ b/configure.in @@ -8877,9 +8877,14 @@ for lang in $WITH_LANG ; do test "$lang" = "ALL" && continue; test "$lang" = "kid" && continue; # need to check for the exact string, so add space before and after the list of all languages - all_langs=" $ALL_LANGS " - test `echo "$all_langs" | sed "s|.* $lang .*|found|"` = "found" && continue; - AC_MSG_ERROR([invalid language: $lang; supported languages are: $ALL_LANGS]) + for vl in $ALL_LANGS ; do + if test "$vl" = "$lang" ; then + break; + fi + done + if test "$vl" != "$lang" ; then + AC_MSG_ERROR([invalid language: $lang; supported languages are: $ALL_LANGS]) + fi done # list with substituted ALL WITH_LANG_LIST=`echo $WITH_LANG | sed "s/ALL/$ALL_LANGS/"` |