* configure.in (RUBY_STACK_GROW_DIRECTION): substitute CPU name as

shell variable name.  based on the patch by The Written Word Inc. at
  [ruby-core:40421].  [Bug #5488]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-10-27 05:55:29 +00:00
Родитель bafe837658
Коммит 9598856e86
2 изменённых файлов: 12 добавлений и 4 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Thu Oct 27 14:55:27 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (RUBY_STACK_GROW_DIRECTION): substitute CPU name as
shell variable name. based on the patch by The Written Word Inc. at
[ruby-core:40421]. [Bug #5488]
Thu Oct 27 09:57:56 2011 NARUSE, Yui <naruse@ruby-lang.org>
* include/ruby/ruby.h (SIZE_MAX): define SIZE_MAX if not defined.

Просмотреть файл

@ -1726,7 +1726,8 @@ if test "$ac_cv_func_sysconf" = yes; then
fi
AC_DEFUN(RUBY_STACK_GROW_DIRECTION, [
AC_CACHE_CHECK(stack growing direction on $1, rb_cv_stack_grow_dir_$1, [
AS_VAR_PUSHDEF([stack_grow_dir], [rb_cv_stack_grow_dir_$1])
AC_CACHE_CHECK(stack growing direction on $1, stack_grow_dir, [
AS_CASE(["$1"],
[m68*|x86*|x64|i?86|ia64|ppc*|sparc*|alpha*], [ $2=-1],
[hppa*], [ $2=+1],
@ -1750,8 +1751,9 @@ int main()
}
], $2=-1, $2=+1, $2=0)
])
eval rb_cv_stack_grow_dir_$1=\$$2])
eval $2=\$rb_cv_stack_grow_dir_$1])
eval stack_grow_dir=\$$2])
eval $2=\$stack_grow_dir
AS_VAR_POPDEF([stack_grow_dir])])
if test "${universal_binary-no}" = yes ; then
archflagpat=`eval echo '"'"${ARCH_FLAG}"'"' | sed 's/[[][|.*]]/\\&/g'`
save_CFLAGS="$CFLAGS" new_cflags=`echo "$CFLAGS" | sed "s|$archflagpat"'||'`
@ -1772,7 +1774,7 @@ if test "${universal_binary-no}" = yes ; then
if test x$stack_dir = xno; then
for archs in ${universal_archnames}; do
archs=`echo $archs | sed 's/=.*//'`
eval dir=\$rb_cv_stack_grow_dir_$archs
eval dir=\$[rb_cv_stack_grow_dir_]AS_TR_SH([$archs])
RUBY_DEFINE_IF([defined __${archs}__], STACK_GROW_DIRECTION, $dir)
done
else