ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libeio/libeio.m4
(Generate patch)

Comparing libeio/libeio.m4 (file contents):
Revision 1.13 by root, Sun Jun 5 19:58:37 2011 UTC vs.
Revision 1.14 by root, Thu Jul 7 22:36:18 2011 UTC

121 return 0; 121 return 0;
122} 122}
123],ac_cv_sync_file_range=yes,ac_cv_sync_file_range=no)]) 123],ac_cv_sync_file_range=yes,ac_cv_sync_file_range=no)])
124test $ac_cv_sync_file_range = yes && AC_DEFINE(HAVE_SYNC_FILE_RANGE, 1, sync_file_range(2) is available) 124test $ac_cv_sync_file_range = yes && AC_DEFINE(HAVE_SYNC_FILE_RANGE, 1, sync_file_range(2) is available)
125 125
126AC_CACHE_CHECK(for fallocate, ac_cv_fallocate, [AC_LINK_IFELSE([
127#include <fcntl.h>
128int main (void)
129{
130 int fd = 0;
131 int mode = FALLOC_FL_KEEP_SIZE;
132 off_t offset = 1;
133 off_t len = 1;
134 int res;
135 res = fallocate (fd, mode, offset, len);
136 return 0;
137}
138],ac_cv_fallocate=yes,ac_cv_fallocate=no)])
139test $ac_cv_fallocate = yes && AC_DEFINE(HAVE_FALLOCATE, 1, fallocate(2) is available)
140
126dnl ############################################################################# 141dnl #############################################################################
127dnl # these checks exist for the benefit of IO::AIO 142dnl # these checks exist for the benefit of IO::AIO
128 143
129dnl at least uclibc defines _POSIX_ADVISORY_INFO without *any* of the required 144dnl at least uclibc defines _POSIX_ADVISORY_INFO without *any* of the required
130dnl functionality actually being present. ugh. 145dnl functionality actually being present. ugh.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines