diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-24 22:58:00 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-24 22:58:00 +0000 |
commit | 450c2094be9ef5ddf0f5f91f1744e03dac93af31 (patch) | |
tree | aba667b16d87337dd7b2a756d1bf63e090d9be75 | |
parent | 746aa6f74b55b1783242b4f074200105dd7d90bc (diff) | |
download | ruby-450c2094be9ef5ddf0f5f91f1744e03dac93af31.tar.gz |
* configure.in: remove [read buffer ptr field in FILE structures] check.
ruby 1.9 or later doesn't use stdio at all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 37 |
2 files changed, 5 insertions, 37 deletions
@@ -1,3 +1,8 @@ +Fri Nov 25 07:56:49 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * configure.in: remove [read buffer ptr field in FILE structures] check. + ruby 1.9 or later doesn't use stdio at all. + Fri Nov 25 07:52:46 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> * configure.in: remove [read count field in FILE] check. diff --git a/configure.in b/configure.in index 6050e9a057..24aa84d149 100644 --- a/configure.in +++ b/configure.in @@ -1633,43 +1633,6 @@ else AC_DEFINE(RSHIFT(x,y), (((x)<0) ? ~((~(x))>>(int)(y)) : (x)>>(int)(y))) fi -AC_CACHE_CHECK([read buffer ptr field in FILE structures], rb_cv_frptr, -[for frptr in dnl - _IO_read_ptr dnl - _ptr dnl - __ptr dnl - bufpos dnl - _p dnl - __bufpos dnl -; do - AC_TRY_COMPILE([#include <stdio.h> -], - [FILE *f = stdin; char buf[256]; f->$frptr = buf;], - rb_cv_frptr="$frptr"; break, - rb_cv_frptr="not found") -done]) -if test "$rb_cv_frptr" != "not found"; then - AC_DEFINE_UNQUOTED(FILE_READPTR, $rb_cv_frptr) - - if test "$rb_cv_fcnt" = "not found"; then - AC_CACHE_CHECK([read buffer end field in FILE structures], rb_cv_frend, - [for frend in dnl - _IO_read_end dnl - bufread dnl - __bufread dnl - ; do - AC_TRY_COMPILE([#include <stdio.h> - ], - [FILE *f = stdin; char buf[256]; f->$frend = buf;], - rb_cv_frend="$frend"; break, - rb_cv_frend="not found") - done]) - if test "$rb_cv_frend" != "not found"; then - AC_DEFINE_UNQUOTED(FILE_READEND, $rb_cv_frend) - fi - fi -fi - RUBY_CHECK_SIZEOF([struct stat.st_ino], [long "long long"], [], [@%:@include <sys/stat.h>]) AC_CACHE_CHECK([whether struct dirent.d_name is too small], rb_cv_sizeof_struct_dirent_too_small, |