… | |
… | |
3962 | $as_echo_n "(cached) " >&6 |
3962 | $as_echo_n "(cached) " >&6 |
3963 | else |
3963 | else |
3964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3965 | /* end confdefs.h. */ |
3965 | /* end confdefs.h. */ |
3966 | |
3966 | |
|
|
3967 | #include <sys/types.h> |
3967 | #include <fcntl.h> |
3968 | #include <fcntl.h> |
3968 | int main (void) |
3969 | int main (void) |
3969 | { |
3970 | { |
3970 | int fd = 0; |
3971 | int fd = 0; |
3971 | size_t count = 2; |
3972 | size_t count = 2; |
… | |
… | |
4076 | $as_echo_n "(cached) " >&6 |
4077 | $as_echo_n "(cached) " >&6 |
4077 | else |
4078 | else |
4078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4079 | /* end confdefs.h. */ |
4080 | /* end confdefs.h. */ |
4080 | |
4081 | |
|
|
4082 | #include <sys/types.h> |
4081 | #include <fcntl.h> |
4083 | #include <fcntl.h> |
4082 | int main (void) |
4084 | int main (void) |
4083 | { |
4085 | { |
4084 | int fd = 0; |
4086 | int fd = 0; |
4085 | off64_t offset = 1; |
4087 | off64_t offset = 1; |
… | |
… | |
4419 | $as_echo_n "(cached) " >&6 |
4421 | $as_echo_n "(cached) " >&6 |
4420 | else |
4422 | else |
4421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4422 | /* end confdefs.h. */ |
4424 | /* end confdefs.h. */ |
4423 | |
4425 | |
|
|
4426 | #include <sys/types.h> |
4424 | #include <fcntl.h> |
4427 | #include <fcntl.h> |
4425 | int main (void) |
4428 | int main (void) |
4426 | { |
4429 | { |
4427 | ssize_t res; |
4430 | ssize_t res; |
4428 | res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE); |
4431 | res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE); |
… | |
… | |
4587 | |
4590 | |
4588 | #include "EXTERN.h" |
4591 | #include "EXTERN.h" |
4589 | #include "perl.h" |
4592 | #include "perl.h" |
4590 | #include "XSUB.h" |
4593 | #include "XSUB.h" |
4591 | |
4594 | |
4592 | int res; |
|
|
4593 | int main (void) |
4595 | int main (void) |
4594 | { |
4596 | { |
4595 | return PL_statcache.st_atimensec |
4597 | return PL_statcache.st_atimensec |
4596 | + PL_statcache.st_mtimensec |
4598 | + PL_statcache.st_mtimensec |
4597 | + PL_statcache.st_ctimensec; |
4599 | + PL_statcache.st_ctimensec; |
4598 | return 0; |
|
|
4599 | } |
4600 | } |
4600 | |
4601 | |
4601 | _ACEOF |
4602 | _ACEOF |
4602 | if ac_fn_c_try_compile "$LINENO"; then : |
4603 | if ac_fn_c_try_compile "$LINENO"; then : |
4603 | ac_cv_xtimensec=yes |
4604 | ac_cv_xtimensec=yes |
… | |
… | |
4622 | |
4623 | |
4623 | #include "EXTERN.h" |
4624 | #include "EXTERN.h" |
4624 | #include "perl.h" |
4625 | #include "perl.h" |
4625 | #include "XSUB.h" |
4626 | #include "XSUB.h" |
4626 | |
4627 | |
4627 | int res; |
|
|
4628 | int main (void) |
4628 | int main (void) |
4629 | { |
4629 | { |
4630 | return PL_statcache.st_atim.tv_nsec |
4630 | return PL_statcache.st_atim.tv_nsec |
4631 | + PL_statcache.st_mtim.tv_nsec |
4631 | + PL_statcache.st_mtim.tv_nsec |
4632 | + PL_statcache.st_ctim.tv_nsec; |
4632 | + PL_statcache.st_ctim.tv_nsec; |
… | |
… | |
4645 | test $ac_cv_xtimespec = yes && |
4645 | test $ac_cv_xtimespec = yes && |
4646 | $as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h |
4646 | $as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h |
4647 | |
4647 | |
4648 | |
4648 | |
4649 | # apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec? |
4649 | # apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec? |
|
|
4650 | |
|
|
4651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimensec" >&5 |
|
|
4652 | $as_echo_n "checking for st_birthtimensec... " >&6; } |
|
|
4653 | if ${ac_cv_birthtimensec+:} false; then : |
|
|
4654 | $as_echo_n "(cached) " >&6 |
|
|
4655 | else |
|
|
4656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4657 | /* end confdefs.h. */ |
|
|
4658 | |
|
|
4659 | #include "EXTERN.h" |
|
|
4660 | #include "perl.h" |
|
|
4661 | #include "XSUB.h" |
|
|
4662 | |
|
|
4663 | int main (void) |
|
|
4664 | { |
|
|
4665 | return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec; |
|
|
4666 | } |
|
|
4667 | |
|
|
4668 | _ACEOF |
|
|
4669 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4670 | ac_cv_birthtimensec=yes |
|
|
4671 | else |
|
|
4672 | ac_cv_birthtimensec=no |
|
|
4673 | fi |
|
|
4674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4675 | fi |
|
|
4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5 |
|
|
4677 | $as_echo "$ac_cv_birthtimensec" >&6; } |
|
|
4678 | test $ac_cv_birthtimensec = yes && |
|
|
4679 | $as_echo "#define HAVE_ST_BIRTHTIMENSEC 1" >>confdefs.h |
|
|
4680 | |
|
|
4681 | |
|
|
4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimespec" >&5 |
|
|
4683 | $as_echo_n "checking for st_birthtimespec... " >&6; } |
|
|
4684 | if ${ac_cv_birthtimespec+:} false; then : |
|
|
4685 | $as_echo_n "(cached) " >&6 |
|
|
4686 | else |
|
|
4687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4688 | /* end confdefs.h. */ |
|
|
4689 | |
|
|
4690 | #include "EXTERN.h" |
|
|
4691 | #include "perl.h" |
|
|
4692 | #include "XSUB.h" |
|
|
4693 | |
|
|
4694 | int main (void) |
|
|
4695 | { |
|
|
4696 | return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec; |
|
|
4697 | } |
|
|
4698 | |
|
|
4699 | _ACEOF |
|
|
4700 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4701 | ac_cv_birthtimespec=yes |
|
|
4702 | else |
|
|
4703 | ac_cv_birthtimespec=no |
|
|
4704 | fi |
|
|
4705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4706 | fi |
|
|
4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5 |
|
|
4708 | $as_echo "$ac_cv_birthtimespec" >&6; } |
|
|
4709 | test $ac_cv_birthtimespec = yes && |
|
|
4710 | $as_echo "#define HAVE_ST_BIRTHTIMESPEC 1" >>confdefs.h |
|
|
4711 | |
|
|
4712 | |
|
|
4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen" >&5 |
|
|
4714 | $as_echo_n "checking for st_gen... " >&6; } |
|
|
4715 | if ${ac_cv_st_gen+:} false; then : |
|
|
4716 | $as_echo_n "(cached) " >&6 |
|
|
4717 | else |
|
|
4718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4719 | /* end confdefs.h. */ |
|
|
4720 | |
|
|
4721 | #include "EXTERN.h" |
|
|
4722 | #include "perl.h" |
|
|
4723 | #include "XSUB.h" |
|
|
4724 | |
|
|
4725 | int main (void) |
|
|
4726 | { |
|
|
4727 | return PL_statcache.st_gen; |
|
|
4728 | } |
|
|
4729 | |
|
|
4730 | _ACEOF |
|
|
4731 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4732 | ac_cv_st_gen=yes |
|
|
4733 | else |
|
|
4734 | ac_cv_st_gen=no |
|
|
4735 | fi |
|
|
4736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4737 | fi |
|
|
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5 |
|
|
4739 | $as_echo "$ac_cv_st_gen" >&6; } |
|
|
4740 | test $ac_cv_st_gen = yes && |
|
|
4741 | $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h |
|
|
4742 | |
4650 | |
4743 | |
4651 | cat >confcache <<\_ACEOF |
4744 | cat >confcache <<\_ACEOF |
4652 | # This file is a shell script that caches the results of configure |
4745 | # This file is a shell script that caches the results of configure |
4653 | # tests run on this system so they can be shared between configure |
4746 | # tests run on this system so they can be shared between configure |
4654 | # scripts and configure runs, see configure's option --config-cache. |
4747 | # scripts and configure runs, see configure's option --config-cache. |