… | |
… | |
4383 | $as_echo "$ac_cv_pipe2" >&6; } |
4383 | $as_echo "$ac_cv_pipe2" >&6; } |
4384 | test $ac_cv_pipe2 = yes && |
4384 | test $ac_cv_pipe2 = yes && |
4385 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
4385 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
4386 | |
4386 | |
4387 | |
4387 | |
|
|
4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
|
|
4389 | $as_echo_n "checking for eventfd... " >&6; } |
|
|
4390 | if ${ac_cv_eventfd+:} false; then : |
|
|
4391 | $as_echo_n "(cached) " >&6 |
|
|
4392 | else |
|
|
4393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4394 | /* end confdefs.h. */ |
|
|
4395 | |
|
|
4396 | #include <sys/eventfd.h> |
|
|
4397 | int res; |
|
|
4398 | int main (void) |
|
|
4399 | { |
|
|
4400 | res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); |
|
|
4401 | return 0; |
|
|
4402 | } |
|
|
4403 | |
|
|
4404 | _ACEOF |
|
|
4405 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4406 | ac_cv_eventfd=yes |
|
|
4407 | else |
|
|
4408 | ac_cv_eventfd=no |
|
|
4409 | fi |
|
|
4410 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4411 | conftest$ac_exeext conftest.$ac_ext |
|
|
4412 | fi |
|
|
4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5 |
|
|
4414 | $as_echo "$ac_cv_eventfd" >&6; } |
|
|
4415 | test $ac_cv_eventfd = yes && |
|
|
4416 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
|
|
4417 | |
|
|
4418 | |
|
|
4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd" >&5 |
|
|
4420 | $as_echo_n "checking for timerfd... " >&6; } |
|
|
4421 | if ${ac_cv_timerfd+:} false; then : |
|
|
4422 | $as_echo_n "(cached) " >&6 |
|
|
4423 | else |
|
|
4424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4425 | /* end confdefs.h. */ |
|
|
4426 | |
|
|
4427 | #include <sys/timerfd.h> |
|
|
4428 | int res; |
|
|
4429 | int main (void) |
|
|
4430 | { |
|
|
4431 | struct itimerspec its; |
|
|
4432 | res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
|
|
4433 | res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
|
|
4434 | res = timerfd_gettime (res, &its); |
|
|
4435 | return 0; |
|
|
4436 | } |
|
|
4437 | |
|
|
4438 | _ACEOF |
|
|
4439 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4440 | ac_cv_timerfd=yes |
|
|
4441 | else |
|
|
4442 | ac_cv_timerfd=no |
|
|
4443 | fi |
|
|
4444 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4445 | conftest$ac_exeext conftest.$ac_ext |
|
|
4446 | fi |
|
|
4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5 |
|
|
4448 | $as_echo "$ac_cv_timerfd" >&6; } |
|
|
4449 | test $ac_cv_timerfd = yes && |
|
|
4450 | $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h |
|
|
4451 | |
|
|
4452 | |
4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
4389 | $as_echo_n "checking for renameat2... " >&6; } |
4454 | $as_echo_n "checking for renameat2... " >&6; } |
4390 | if ${ac_cv_renameat2+:} false; then : |
4455 | if ${ac_cv_renameat2+:} false; then : |
4391 | $as_echo_n "(cached) " >&6 |
4456 | $as_echo_n "(cached) " >&6 |
4392 | else |
4457 | else |
… | |
… | |
4448 | fi |
4513 | fi |
4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 |
4514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 |
4450 | $as_echo "$ac_cv_copy_file_range" >&6; } |
4515 | $as_echo "$ac_cv_copy_file_range" >&6; } |
4451 | test $ac_cv_copy_file_range = yes && |
4516 | test $ac_cv_copy_file_range = yes && |
4452 | $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
4517 | $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
|
|
4518 | |
|
|
4519 | |
|
|
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5 |
|
|
4521 | $as_echo_n "checking for posix_close... " >&6; } |
|
|
4522 | if ${ac_cv_posix_close+:} false; then : |
|
|
4523 | $as_echo_n "(cached) " >&6 |
|
|
4524 | else |
|
|
4525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4526 | /* end confdefs.h. */ |
|
|
4527 | |
|
|
4528 | #include <unistd.h> |
|
|
4529 | int res; |
|
|
4530 | int main (void) |
|
|
4531 | { |
|
|
4532 | res = posix_close (0, 0); /* we do not need any flags */ |
|
|
4533 | return 0; |
|
|
4534 | } |
|
|
4535 | |
|
|
4536 | _ACEOF |
|
|
4537 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4538 | ac_cv_posix_close=yes |
|
|
4539 | else |
|
|
4540 | ac_cv_posix_close=no |
|
|
4541 | fi |
|
|
4542 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4543 | conftest$ac_exeext conftest.$ac_ext |
|
|
4544 | fi |
|
|
4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5 |
|
|
4546 | $as_echo "$ac_cv_posix_close" >&6; } |
|
|
4547 | test $ac_cv_posix_close = yes && |
|
|
4548 | $as_echo "#define HAVE_POSIX_CLOSE 1" >>confdefs.h |
4453 | |
4549 | |
4454 | |
4550 | |
4455 | |
4551 | |
4456 | |
4552 | |
4457 | cat >confcache <<\_ACEOF |
4553 | cat >confcache <<\_ACEOF |