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.29 by root, Sun Mar 10 12:16:48 2019 UTC

3962 $as_echo_n "(cached) " >&6 3962 $as_echo_n "(cached) " >&6
3963else 3963else
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>
3968int main (void) 3969int 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
4077else 4078else
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>
4082int main (void) 4084int main (void)
4083{ 4085{
4084 int fd = 0; 4086 int fd = 0;
4085 off64_t offset = 1; 4087 off64_t offset = 1;
4411fi 4413fi
4412 4414
4413done 4415done
4414 4416
4415 4417
4418for ac_header in sys/uio.h
4419do :
4420 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4421if test "x$ac_cv_header_sys_uio_h" = xyes; then :
4422 cat >>confdefs.h <<_ACEOF
4423#define HAVE_SYS_UIO_H 1
4424_ACEOF
4425
4426fi
4427
4428done
4429
4430
4431
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5
4417$as_echo_n "checking for splice, vmsplice and tee... " >&6; } 4433$as_echo_n "checking for splice, vmsplice and tee... " >&6; }
4418if ${ac_cv_linux_splice+:} false; then : 4434if ${ac_cv_linux_splice+:} false; then :
4419 $as_echo_n "(cached) " >&6 4435 $as_echo_n "(cached) " >&6
4420else 4436else
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422/* end confdefs.h. */ 4438/* end confdefs.h. */
4423 4439
4440#include <sys/types.h>
4424#include <fcntl.h> 4441#include <fcntl.h>
4442#include <sys/uio.h>
4425int main (void) 4443int main (void)
4426{ 4444{
4427 ssize_t res; 4445 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); 4446 res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE);
4429 res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK); 4447 res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK);
4587 4605
4588#include "EXTERN.h" 4606#include "EXTERN.h"
4589#include "perl.h" 4607#include "perl.h"
4590#include "XSUB.h" 4608#include "XSUB.h"
4591 4609
4592int res;
4593int main (void) 4610int main (void)
4594{ 4611{
4595 return PL_statcache.st_atimensec 4612 return PL_statcache.st_atimensec
4596 + PL_statcache.st_mtimensec 4613 + PL_statcache.st_mtimensec
4597 + PL_statcache.st_ctimensec; 4614 + PL_statcache.st_ctimensec;
4598 return 0;
4599} 4615}
4600 4616
4601_ACEOF 4617_ACEOF
4602if ac_fn_c_try_compile "$LINENO"; then : 4618if ac_fn_c_try_compile "$LINENO"; then :
4603 ac_cv_xtimensec=yes 4619 ac_cv_xtimensec=yes
4622 4638
4623#include "EXTERN.h" 4639#include "EXTERN.h"
4624#include "perl.h" 4640#include "perl.h"
4625#include "XSUB.h" 4641#include "XSUB.h"
4626 4642
4627int res;
4628int main (void) 4643int main (void)
4629{ 4644{
4630 return PL_statcache.st_atim.tv_nsec 4645 return PL_statcache.st_atim.tv_nsec
4631 + PL_statcache.st_mtim.tv_nsec 4646 + PL_statcache.st_mtim.tv_nsec
4632 + PL_statcache.st_ctim.tv_nsec; 4647 + PL_statcache.st_ctim.tv_nsec;
4645test $ac_cv_xtimespec = yes && 4660test $ac_cv_xtimespec = yes &&
4646$as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h 4661$as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h
4647 4662
4648 4663
4649# apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec? 4664# apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec?
4665
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimensec" >&5
4667$as_echo_n "checking for st_birthtimensec... " >&6; }
4668if ${ac_cv_birthtimensec+:} false; then :
4669 $as_echo_n "(cached) " >&6
4670else
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672/* end confdefs.h. */
4673
4674#include "EXTERN.h"
4675#include "perl.h"
4676#include "XSUB.h"
4677
4678int main (void)
4679{
4680 return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec;
4681}
4682
4683_ACEOF
4684if ac_fn_c_try_compile "$LINENO"; then :
4685 ac_cv_birthtimensec=yes
4686else
4687 ac_cv_birthtimensec=no
4688fi
4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690fi
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5
4692$as_echo "$ac_cv_birthtimensec" >&6; }
4693test $ac_cv_birthtimensec = yes &&
4694$as_echo "#define HAVE_ST_BIRTHTIMENSEC 1" >>confdefs.h
4695
4696
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimespec" >&5
4698$as_echo_n "checking for st_birthtimespec... " >&6; }
4699if ${ac_cv_birthtimespec+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701else
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703/* end confdefs.h. */
4704
4705#include "EXTERN.h"
4706#include "perl.h"
4707#include "XSUB.h"
4708
4709int main (void)
4710{
4711 return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec;
4712}
4713
4714_ACEOF
4715if ac_fn_c_try_compile "$LINENO"; then :
4716 ac_cv_birthtimespec=yes
4717else
4718 ac_cv_birthtimespec=no
4719fi
4720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721fi
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5
4723$as_echo "$ac_cv_birthtimespec" >&6; }
4724test $ac_cv_birthtimespec = yes &&
4725$as_echo "#define HAVE_ST_BIRTHTIMESPEC 1" >>confdefs.h
4726
4727
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen" >&5
4729$as_echo_n "checking for st_gen... " >&6; }
4730if ${ac_cv_st_gen+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732else
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734/* end confdefs.h. */
4735
4736#include "EXTERN.h"
4737#include "perl.h"
4738#include "XSUB.h"
4739
4740int main (void)
4741{
4742 return PL_statcache.st_gen;
4743}
4744
4745_ACEOF
4746if ac_fn_c_try_compile "$LINENO"; then :
4747 ac_cv_st_gen=yes
4748else
4749 ac_cv_st_gen=no
4750fi
4751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752fi
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5
4754$as_echo "$ac_cv_st_gen" >&6; }
4755test $ac_cv_st_gen = yes &&
4756$as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
4757
4650 4758
4651cat >confcache <<\_ACEOF 4759cat >confcache <<\_ACEOF
4652# This file is a shell script that caches the results of configure 4760# 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 4761# tests run on this system so they can be shared between configure
4654# scripts and configure runs, see configure's option --config-cache. 4762# scripts and configure runs, see configure's option --config-cache.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines