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