… | |
… | |
2018 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2018 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2020 | |
2020 | |
2021 | |
2021 | |
2022 | |
2022 | |
2023 | ac_config_headers="$ac_config_headers libeio/config.h" |
2023 | ac_config_headers="$ac_config_headers config.h" |
2024 | |
2024 | |
2025 | |
2025 | |
2026 | |
2026 | |
2027 | ac_ext=c |
2027 | ac_ext=c |
2028 | ac_cpp='$CPP $CPPFLAGS' |
2028 | ac_cpp='$CPP $CPPFLAGS' |
… | |
… | |
4198 | $as_echo "$ac_cv_prctl_set_name" >&6; } |
4198 | $as_echo "$ac_cv_prctl_set_name" >&6; } |
4199 | test $ac_cv_prctl_set_name = yes && |
4199 | test $ac_cv_prctl_set_name = yes && |
4200 | $as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
4200 | $as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
4201 | |
4201 | |
4202 | |
4202 | |
|
|
4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5 |
|
|
4204 | $as_echo_n "checking for posix_close... " >&6; } |
|
|
4205 | if ${ac_cv_posix_close+:} false; then : |
|
|
4206 | $as_echo_n "(cached) " >&6 |
|
|
4207 | else |
|
|
4208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4209 | /* end confdefs.h. */ |
|
|
4210 | |
|
|
4211 | #include <unistd.h> |
|
|
4212 | int res; |
|
|
4213 | int main (void) |
|
|
4214 | { |
|
|
4215 | res = posix_close (0, 0); /* we do not need any flags */ |
|
|
4216 | return 0; |
|
|
4217 | } |
|
|
4218 | |
|
|
4219 | _ACEOF |
|
|
4220 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4221 | ac_cv_posix_close=yes |
|
|
4222 | else |
|
|
4223 | ac_cv_posix_close=no |
|
|
4224 | fi |
|
|
4225 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4226 | conftest$ac_exeext conftest.$ac_ext |
|
|
4227 | fi |
|
|
4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5 |
|
|
4229 | $as_echo "$ac_cv_posix_close" >&6; } |
|
|
4230 | test $ac_cv_posix_close = yes && |
|
|
4231 | $as_echo "#define HAVE_POSIX_CLOSE 1" >>confdefs.h |
|
|
4232 | |
|
|
4233 | |
|
|
4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
|
|
4235 | $as_echo_n "checking for renameat2... " >&6; } |
|
|
4236 | if ${ac_cv_renameat2+:} false; then : |
|
|
4237 | $as_echo_n "(cached) " >&6 |
|
|
4238 | else |
|
|
4239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4240 | /* end confdefs.h. */ |
|
|
4241 | |
|
|
4242 | #include <unistd.h> |
|
|
4243 | #include <sys/syscall.h> |
|
|
4244 | #include <linux/fs.h> |
|
|
4245 | int res; |
|
|
4246 | int main (void) |
|
|
4247 | { |
|
|
4248 | res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); |
|
|
4249 | return 0; |
|
|
4250 | } |
|
|
4251 | |
|
|
4252 | _ACEOF |
|
|
4253 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4254 | ac_cv_renameat2=yes |
|
|
4255 | else |
|
|
4256 | ac_cv_renameat2=no |
|
|
4257 | fi |
|
|
4258 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4259 | conftest$ac_exeext conftest.$ac_ext |
|
|
4260 | fi |
|
|
4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
|
|
4262 | $as_echo "$ac_cv_renameat2" >&6; } |
|
|
4263 | test $ac_cv_renameat2 = yes && |
|
|
4264 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
|
|
4265 | |
|
|
4266 | |
|
|
4267 | |
|
|
4268 | |
|
|
4269 | # for these to work, you need to run autoheader in IO::AIO, not libeio :( |
4203 | |
4270 | |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5 |
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5 |
4205 | $as_echo_n "checking for set/getrlimit... " >&6; } |
4272 | $as_echo_n "checking for set/getrlimit... " >&6; } |
4206 | if ${ac_cv_rlimits+:} false; then : |
4273 | if ${ac_cv_rlimits+:} false; then : |
4207 | $as_echo_n "(cached) " >&6 |
4274 | $as_echo_n "(cached) " >&6 |
… | |
… | |
4318 | fi |
4385 | fi |
4319 | |
4386 | |
4320 | done |
4387 | done |
4321 | |
4388 | |
4322 | |
4389 | |
|
|
4390 | for ac_header in sys/prctl.h sys/sysmacros.h |
|
|
4391 | do : |
|
|
4392 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4393 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
4394 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
4395 | cat >>confdefs.h <<_ACEOF |
|
|
4396 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4397 | _ACEOF |
|
|
4398 | |
|
|
4399 | fi |
|
|
4400 | |
|
|
4401 | done |
|
|
4402 | |
|
|
4403 | |
4323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 |
4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 |
4324 | $as_echo_n "checking for splice, vmsplice and tee... " >&6; } |
4405 | $as_echo_n "checking for splice, vmsplice and tee... " >&6; } |
4325 | if ${ac_cv_linux_splice+:} false; then : |
4406 | if ${ac_cv_linux_splice+:} false; then : |
4326 | $as_echo_n "(cached) " >&6 |
4407 | $as_echo_n "(cached) " >&6 |
4327 | else |
4408 | else |
… | |
… | |
4448 | $as_echo "$ac_cv_timerfd" >&6; } |
4529 | $as_echo "$ac_cv_timerfd" >&6; } |
4449 | test $ac_cv_timerfd = yes && |
4530 | test $ac_cv_timerfd = yes && |
4450 | $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h |
4531 | $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h |
4451 | |
4532 | |
4452 | |
4533 | |
4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
|
|
4454 | $as_echo_n "checking for renameat2... " >&6; } |
|
|
4455 | if ${ac_cv_renameat2+:} false; then : |
|
|
4456 | $as_echo_n "(cached) " >&6 |
|
|
4457 | else |
|
|
4458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4459 | /* end confdefs.h. */ |
|
|
4460 | |
|
|
4461 | #include <unistd.h> |
|
|
4462 | #include <sys/syscall.h> |
|
|
4463 | #include <linux/fs.h> |
|
|
4464 | int res; |
|
|
4465 | int main (void) |
|
|
4466 | { |
|
|
4467 | res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); |
|
|
4468 | return 0; |
|
|
4469 | } |
|
|
4470 | |
|
|
4471 | _ACEOF |
|
|
4472 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4473 | ac_cv_renameat2=yes |
|
|
4474 | else |
|
|
4475 | ac_cv_renameat2=no |
|
|
4476 | fi |
|
|
4477 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4478 | conftest$ac_exeext conftest.$ac_ext |
|
|
4479 | fi |
|
|
4480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
|
|
4481 | $as_echo "$ac_cv_renameat2" >&6; } |
|
|
4482 | test $ac_cv_renameat2 = yes && |
|
|
4483 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
|
|
4484 | |
|
|
4485 | |
|
|
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
4534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
4487 | $as_echo_n "checking for copy_file_range... " >&6; } |
4535 | $as_echo_n "checking for copy_file_range... " >&6; } |
4488 | if ${ac_cv_copy_file_range+:} false; then : |
4536 | if ${ac_cv_copy_file_range+:} false; then : |
4489 | $as_echo_n "(cached) " >&6 |
4537 | $as_echo_n "(cached) " >&6 |
4490 | else |
4538 | else |
… | |
… | |
4515 | $as_echo "$ac_cv_copy_file_range" >&6; } |
4563 | $as_echo "$ac_cv_copy_file_range" >&6; } |
4516 | test $ac_cv_copy_file_range = yes && |
4564 | test $ac_cv_copy_file_range = yes && |
4517 | $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
4565 | $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
4518 | |
4566 | |
4519 | |
4567 | |
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5 |
4568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5 |
4521 | $as_echo_n "checking for posix_close... " >&6; } |
4569 | $as_echo_n "checking for st_xtimensec... " >&6; } |
4522 | if ${ac_cv_posix_close+:} false; then : |
4570 | if ${ac_cv_xtimensec+:} false; then : |
4523 | $as_echo_n "(cached) " >&6 |
4571 | $as_echo_n "(cached) " >&6 |
4524 | else |
4572 | else |
4525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4526 | /* end confdefs.h. */ |
4574 | /* end confdefs.h. */ |
4527 | |
4575 | |
4528 | #include <unistd.h> |
4576 | #include "EXTERN.h" |
|
|
4577 | #include "perl.h" |
|
|
4578 | #include "XSUB.h" |
|
|
4579 | |
4529 | int res; |
4580 | int res; |
4530 | int main (void) |
4581 | int main (void) |
4531 | { |
4582 | { |
4532 | res = posix_close (0, 0); /* we do not need any flags */ |
4583 | return PL_statcache.st_atimensec |
|
|
4584 | + PL_statcache.st_mtimensec |
|
|
4585 | + PL_statcache.st_ctimensec; |
4533 | return 0; |
4586 | return 0; |
4534 | } |
4587 | } |
4535 | |
4588 | |
4536 | _ACEOF |
4589 | _ACEOF |
4537 | if ac_fn_c_try_link "$LINENO"; then : |
4590 | if ac_fn_c_try_compile "$LINENO"; then : |
4538 | ac_cv_posix_close=yes |
4591 | ac_cv_xtimensec=yes |
4539 | else |
4592 | else |
4540 | ac_cv_posix_close=no |
4593 | ac_cv_xtimensec=no |
4541 | fi |
4594 | fi |
4542 | rm -f core conftest.err conftest.$ac_objext \ |
4595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4543 | conftest$ac_exeext conftest.$ac_ext |
|
|
4544 | fi |
4596 | fi |
4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5 |
4597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5 |
4546 | $as_echo "$ac_cv_posix_close" >&6; } |
4598 | $as_echo "$ac_cv_xtimensec" >&6; } |
4547 | test $ac_cv_posix_close = yes && |
4599 | test $ac_cv_xtimensec = yes && |
4548 | $as_echo "#define HAVE_POSIX_CLOSE 1" >>confdefs.h |
4600 | $as_echo "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h |
4549 | |
4601 | |
4550 | |
4602 | |
|
|
4603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5 |
|
|
4604 | $as_echo_n "checking for st_xtimespec... " >&6; } |
|
|
4605 | if ${ac_cv_xtimespec+:} false; then : |
|
|
4606 | $as_echo_n "(cached) " >&6 |
|
|
4607 | else |
|
|
4608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4609 | /* end confdefs.h. */ |
4551 | |
4610 | |
|
|
4611 | #include "EXTERN.h" |
|
|
4612 | #include "perl.h" |
|
|
4613 | #include "XSUB.h" |
|
|
4614 | |
|
|
4615 | int res; |
|
|
4616 | int main (void) |
|
|
4617 | { |
|
|
4618 | return PL_statcache.st_atim.tv_nsec |
|
|
4619 | + PL_statcache.st_mtim.tv_nsec |
|
|
4620 | + PL_statcache.st_ctim.tv_nsec; |
|
|
4621 | } |
|
|
4622 | |
|
|
4623 | _ACEOF |
|
|
4624 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4625 | ac_cv_xtimespec=yes |
|
|
4626 | else |
|
|
4627 | ac_cv_xtimespec=no |
|
|
4628 | fi |
|
|
4629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4630 | fi |
|
|
4631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5 |
|
|
4632 | $as_echo "$ac_cv_xtimespec" >&6; } |
|
|
4633 | test $ac_cv_xtimespec = yes && |
|
|
4634 | $as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h |
|
|
4635 | |
|
|
4636 | |
|
|
4637 | # apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec? |
4552 | |
4638 | |
4553 | cat >confcache <<\_ACEOF |
4639 | cat >confcache <<\_ACEOF |
4554 | # This file is a shell script that caches the results of configure |
4640 | # This file is a shell script that caches the results of configure |
4555 | # tests run on this system so they can be shared between configure |
4641 | # tests run on this system so they can be shared between configure |
4556 | # scripts and configure runs, see configure's option --config-cache. |
4642 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
5220 | |
5306 | |
5221 | # Handling of arguments. |
5307 | # Handling of arguments. |
5222 | for ac_config_target in $ac_config_targets |
5308 | for ac_config_target in $ac_config_targets |
5223 | do |
5309 | do |
5224 | case $ac_config_target in |
5310 | case $ac_config_target in |
5225 | "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; |
5311 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
5226 | |
5312 | |
5227 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
5313 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
5228 | esac |
5314 | esac |
5229 | done |
5315 | done |
5230 | |
5316 | |
… | |
… | |
5565 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
5651 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
5566 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
5567 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
5653 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
5568 | fi |
5654 | fi |
5569 | |
5655 | |
|
|
5656 | |