ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/configure
(Generate patch)

Comparing IO-AIO/configure (file contents):
Revision 1.26 by root, Tue Aug 14 11:50:43 2018 UTC vs.
Revision 1.27 by root, Sat Aug 25 19:25:32 2018 UTC

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
4592int res;
4593int main (void) 4592int 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
4602if ac_fn_c_try_compile "$LINENO"; then : 4600if 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
4627int res;
4628int main (void) 4625int 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;
4645test $ac_cv_xtimespec = yes && 4642test $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; }
4650if ${ac_cv_birthtimensec+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652else
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
4660int main (void)
4661{
4662 return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec;
4663}
4664
4665_ACEOF
4666if ac_fn_c_try_compile "$LINENO"; then :
4667 ac_cv_birthtimensec=yes
4668else
4669 ac_cv_birthtimensec=no
4670fi
4671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672fi
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5
4674$as_echo "$ac_cv_birthtimensec" >&6; }
4675test $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; }
4681if ${ac_cv_birthtimespec+:} false; then :
4682 $as_echo_n "(cached) " >&6
4683else
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
4691int main (void)
4692{
4693 return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec;
4694}
4695
4696_ACEOF
4697if ac_fn_c_try_compile "$LINENO"; then :
4698 ac_cv_birthtimespec=yes
4699else
4700 ac_cv_birthtimespec=no
4701fi
4702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703fi
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5
4705$as_echo "$ac_cv_birthtimespec" >&6; }
4706test $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; }
4712if ${ac_cv_st_gen+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714else
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
4722int main (void)
4723{
4724 return PL_statcache.st_gen;
4725}
4726
4727_ACEOF
4728if ac_fn_c_try_compile "$LINENO"; then :
4729 ac_cv_st_gen=yes
4730else
4731 ac_cv_st_gen=no
4732fi
4733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734fi
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5
4736$as_echo "$ac_cv_st_gen" >&6; }
4737test $ac_cv_st_gen = yes &&
4738$as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
4739
4650 4740
4651cat >confcache <<\_ACEOF 4741cat >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.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines