… | |
… | |
3982 | $as_echo "$ac_cv_fdatasync" >&6; } |
3982 | $as_echo "$ac_cv_fdatasync" >&6; } |
3983 | test $ac_cv_fdatasync = yes && |
3983 | test $ac_cv_fdatasync = yes && |
3984 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
3984 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
3985 | |
3985 | |
3986 | |
3986 | |
3987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pread and pwrite" >&5 |
|
|
3988 | $as_echo_n "checking for pread and pwrite... " >&6; } |
|
|
3989 | if test "${ac_cv_preadwrite+set}" = set; then : |
|
|
3990 | $as_echo_n "(cached) " >&6 |
|
|
3991 | else |
|
|
3992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3993 | /* end confdefs.h. */ |
|
|
3994 | |
|
|
3995 | #include <unistd.h> |
|
|
3996 | int main (void) |
|
|
3997 | { |
|
|
3998 | int fd = 0; |
|
|
3999 | size_t count = 1; |
|
|
4000 | char buf; |
|
|
4001 | off_t offset = 1; |
|
|
4002 | ssize_t res; |
|
|
4003 | res = pread (fd, &buf, count, offset); |
|
|
4004 | res = pwrite (fd, &buf, count, offset); |
|
|
4005 | return 0; |
|
|
4006 | } |
|
|
4007 | |
|
|
4008 | _ACEOF |
|
|
4009 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4010 | ac_cv_preadwrite=yes |
|
|
4011 | else |
|
|
4012 | ac_cv_preadwrite=no |
|
|
4013 | fi |
|
|
4014 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4015 | conftest$ac_exeext conftest.$ac_ext |
|
|
4016 | fi |
|
|
4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_preadwrite" >&5 |
|
|
4018 | $as_echo "$ac_cv_preadwrite" >&6; } |
|
|
4019 | test $ac_cv_preadwrite = yes && |
|
|
4020 | $as_echo "#define HAVE_PREADWRITE 1" >>confdefs.h |
|
|
4021 | |
|
|
4022 | |
|
|
4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5 |
3987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5 |
4024 | $as_echo_n "checking for sendfile... " >&6; } |
3988 | $as_echo_n "checking for sendfile... " >&6; } |
4025 | if test "${ac_cv_sendfile+set}" = set; then : |
3989 | if test "${ac_cv_sendfile+set}" = set; then : |
4026 | $as_echo_n "(cached) " >&6 |
3990 | $as_echo_n "(cached) " >&6 |
4027 | else |
3991 | else |
… | |
… | |
4105 | $as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h |
4069 | $as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h |
4106 | |
4070 | |
4107 | |
4071 | |
4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5 |
4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5 |
4109 | $as_echo_n "checking for fallocate... " >&6; } |
4073 | $as_echo_n "checking for fallocate... " >&6; } |
4110 | if test "${ac_cv_flinux_allocate+set}" = set; then : |
4074 | if test "${ac_cv_linux_fallocate+set}" = set; then : |
4111 | $as_echo_n "(cached) " >&6 |
4075 | $as_echo_n "(cached) " >&6 |
4112 | else |
4076 | else |
4113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4114 | /* end confdefs.h. */ |
4078 | /* end confdefs.h. */ |
4115 | |
4079 | |
… | |
… | |
4132 | ac_cv_linux_fallocate=no |
4096 | ac_cv_linux_fallocate=no |
4133 | fi |
4097 | fi |
4134 | rm -f core conftest.err conftest.$ac_objext \ |
4098 | rm -f core conftest.err conftest.$ac_objext \ |
4135 | conftest$ac_exeext conftest.$ac_ext |
4099 | conftest$ac_exeext conftest.$ac_ext |
4136 | fi |
4100 | fi |
4137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flinux_allocate" >&5 |
4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_fallocate" >&5 |
4138 | $as_echo "$ac_cv_flinux_allocate" >&6; } |
4102 | $as_echo "$ac_cv_linux_fallocate" >&6; } |
4139 | test $ac_cv_linux_fallocate = yes && |
4103 | test $ac_cv_linux_fallocate = yes && |
4140 | $as_echo "#define HAVE_LINUX_FALLOCATE 1" >>confdefs.h |
4104 | $as_echo "#define HAVE_LINUX_FALLOCATE 1" >>confdefs.h |
4141 | |
4105 | |
4142 | |
4106 | |
4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5 |
4107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5 |