language check in configure.in was causing command line overflow issue

This commit is contained in:
Norbert Thiebaud
2011-08-27 22:29:03 -05:00
parent b470e596db
commit 76c1ec0caa

View File

@@ -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/"`