language check in configure.in was causing command line overflow issue
This commit is contained in:
11
configure.in
11
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/"`
|
||||
|
Reference in New Issue
Block a user