… | |
… | |
3172 | fi |
3172 | fi |
3173 | |
3173 | |
3174 | done |
3174 | done |
3175 | |
3175 | |
3176 | |
3176 | |
3177 | for ac_header in stdint.h |
3177 | for ac_header in stdint.h sys/syscall.h |
3178 | do : |
3178 | do : |
|
|
3179 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3179 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
3180 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
3180 | if test "x$ac_cv_header_stdint_h" = x""yes; then : |
3181 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
3181 | cat >>confdefs.h <<_ACEOF |
3182 | cat >>confdefs.h <<_ACEOF |
3182 | #define HAVE_STDINT_H 1 |
3183 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3183 | _ACEOF |
3184 | _ACEOF |
3184 | |
3185 | |
3185 | fi |
3186 | fi |
3186 | |
3187 | |
3187 | done |
3188 | done |
… | |
… | |
3511 | |
3512 | |
3512 | #include <fcntl.h> |
3513 | #include <fcntl.h> |
3513 | int main (void) |
3514 | int main (void) |
3514 | { |
3515 | { |
3515 | int fd = 0; |
3516 | int fd = 0; |
3516 | int mode = FALLOC_FL_KEEP_SIZE; |
3517 | int mode = 0; |
3517 | off_t offset = 1; |
3518 | off_t offset = 1; |
3518 | off_t len = 1; |
3519 | off_t len = 1; |
3519 | int res; |
3520 | int res; |
3520 | res = fallocate (fd, mode, offset, len); |
3521 | res = fallocate (fd, mode, offset, len); |
3521 | return 0; |
3522 | return 0; |
… | |
… | |
3532 | fi |
3533 | fi |
3533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fallocate" >&5 |
3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fallocate" >&5 |
3534 | $as_echo "$ac_cv_fallocate" >&6; } |
3535 | $as_echo "$ac_cv_fallocate" >&6; } |
3535 | test $ac_cv_fallocate = yes && |
3536 | test $ac_cv_fallocate = yes && |
3536 | $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h |
3537 | $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h |
|
|
3538 | |
|
|
3539 | |
|
|
3540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5 |
|
|
3541 | $as_echo_n "checking for sys_syncfs... " >&6; } |
|
|
3542 | if test "${ac_cv_sys_syncfs+set}" = set; then : |
|
|
3543 | $as_echo_n "(cached) " >&6 |
|
|
3544 | else |
|
|
3545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3546 | /* end confdefs.h. */ |
|
|
3547 | |
|
|
3548 | #include <unistd.h> |
|
|
3549 | #include <sys/syscall.h> |
|
|
3550 | int main (void) |
|
|
3551 | { |
|
|
3552 | int res = syscall (__NR_syncfs, (int)0); |
|
|
3553 | } |
|
|
3554 | |
|
|
3555 | _ACEOF |
|
|
3556 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
3557 | ac_cv_sys_syncfs=yes |
|
|
3558 | else |
|
|
3559 | ac_cv_sys_syncfs=no |
|
|
3560 | fi |
|
|
3561 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
3562 | conftest$ac_exeext conftest.$ac_ext |
|
|
3563 | fi |
|
|
3564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_syncfs" >&5 |
|
|
3565 | $as_echo "$ac_cv_sys_syncfs" >&6; } |
|
|
3566 | test $ac_cv_sys_syncfs = yes && |
|
|
3567 | $as_echo "#define HAVE_SYS_SYNCFS 1" >>confdefs.h |
3537 | |
3568 | |
3538 | |
3569 | |
3539 | |
3570 | |
3540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
3571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
3541 | $as_echo_n "checking for posix_madvise... " >&6; } |
3572 | $as_echo_n "checking for posix_madvise... " >&6; } |