* configure.in: remove [read count field in FILE] check.

ruby 1.9 or later doesn't use stdio at all.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2011-11-24 22:54:39 +00:00
Родитель 1e79a33e21
Коммит 746aa6f74b
2 изменённых файлов: 5 добавлений и 19 удалений

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

@ -1,3 +1,8 @@
Fri Nov 25 07:52:46 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: remove [read count field in FILE] check.
ruby 1.9 or later doesn't use stdio at all.
Fri Nov 25 07:46:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> Fri Nov 25 07:46:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* configure.in: add -Wall always. * configure.in: add -Wall always.

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

@ -1633,25 +1633,6 @@ else
AC_DEFINE(RSHIFT(x,y), (((x)<0) ? ~((~(x))>>(int)(y)) : (x)>>(int)(y))) AC_DEFINE(RSHIFT(x,y), (((x)<0) ? ~((~(x))>>(int)(y)) : (x)>>(int)(y)))
fi fi
test "$rb_cv_fcnt" = "not found" && rb_cv_fcnt="not found (OK if using GNU libc)"
AC_CACHE_CHECK([read count field in FILE structures], rb_cv_fcnt,
[rb_cv_fcnt="not found (OK if using GNU libc)"
for fcnt in dnl
_cnt dnl
__cnt dnl
_r dnl
readCount dnl
_rcount dnl for emx0.9c
; do
AC_TRY_COMPILE([#include <stdio.h>
],
[FILE *f = stdin; f->$fcnt = 0;],
[rb_cv_fcnt="$fcnt"; break])
done])
AS_CASE("$rb_cv_fcnt",
["not found"*], [rb_cv_fcnt="not found"],
[AC_DEFINE_UNQUOTED(FILE_COUNT, $rb_cv_fcnt)])
AC_CACHE_CHECK([read buffer ptr field in FILE structures], rb_cv_frptr, AC_CACHE_CHECK([read buffer ptr field in FILE structures], rb_cv_frptr,
[for frptr in dnl [for frptr in dnl
_IO_read_ptr dnl _IO_read_ptr dnl