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.32 by root, Fri Sep 6 22:03:09 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;
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277/* end confdefs.h. */ 4279/* end confdefs.h. */
4278 4280
4279#include <sys/time.h> 4281#include <sys/time.h>
4280#include <sys/resource.h> 4282#include <sys/resource.h>
4281int res;
4282int main (void) 4283int main (void)
4283{ 4284{
4284 struct rlimit srl; 4285 struct rlimit srl;
4286 int res;
4285 srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; 4287 srl.rlim_cur = srl.rlim_max = RLIM_INFINITY;
4286 res = getrlimit (RLIMIT_NOFILE, &srl); 4288 res = getrlimit (RLIMIT_NOFILE, &srl);
4287 res = setrlimit (RLIMIT_NOFILE, &srl); 4289 res = setrlimit (RLIMIT_NOFILE, &srl);
4288 return 0; 4290 return 0;
4289} 4291}
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);
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455/* end confdefs.h. */ 4473/* end confdefs.h. */
4456 4474
4457#include <fcntl.h> 4475#include <fcntl.h>
4458#include <unistd.h> 4476#include <unistd.h>
4459int res;
4460int main (void) 4477int main (void)
4461{ 4478{
4479 int res;
4462 res = pipe2 (0, 0); 4480 res = pipe2 (0, 0);
4463 return 0; 4481 return 0;
4464} 4482}
4465 4483
4466_ACEOF 4484_ACEOF
4485else 4503else
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487/* end confdefs.h. */ 4505/* end confdefs.h. */
4488 4506
4489#include <sys/eventfd.h> 4507#include <sys/eventfd.h>
4490int res;
4491int main (void) 4508int main (void)
4492{ 4509{
4510 int res;
4493 res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); 4511 res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK);
4494 return 0; 4512 return 0;
4495} 4513}
4496 4514
4497_ACEOF 4515_ACEOF
4507$as_echo "$ac_cv_eventfd" >&6; } 4525$as_echo "$ac_cv_eventfd" >&6; }
4508test $ac_cv_eventfd = yes && 4526test $ac_cv_eventfd = yes &&
4509$as_echo "#define HAVE_EVENTFD 1" >>confdefs.h 4527$as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
4510 4528
4511 4529
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd" >&5 4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd_*" >&5
4513$as_echo_n "checking for timerfd... " >&6; } 4531$as_echo_n "checking for timerfd_*... " >&6; }
4514if ${ac_cv_timerfd+:} false; then : 4532if ${ac_cv_timerfd+:} false; then :
4515 $as_echo_n "(cached) " >&6 4533 $as_echo_n "(cached) " >&6
4516else 4534else
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h. */ 4536/* end confdefs.h. */
4519 4537
4520#include <sys/timerfd.h> 4538#include <sys/timerfd.h>
4521int res;
4522int main (void) 4539int main (void)
4523{ 4540{
4524 struct itimerspec its; 4541 struct itimerspec its;
4542 int res;
4525 res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); 4543 res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK);
4526 res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); 4544 res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0);
4527 res = timerfd_gettime (res, &its); 4545 res = timerfd_gettime (res, &its);
4528 return 0; 4546 return 0;
4529} 4547}
4541$as_echo "$ac_cv_timerfd" >&6; } 4559$as_echo "$ac_cv_timerfd" >&6; }
4542test $ac_cv_timerfd = yes && 4560test $ac_cv_timerfd = yes &&
4543$as_echo "#define HAVE_TIMERFD 1" >>confdefs.h 4561$as_echo "#define HAVE_TIMERFD 1" >>confdefs.h
4544 4562
4545 4563
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5
4565$as_echo_n "checking for memfd_create... " >&6; }
4566if ${ac_cv_memfd_create+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568else
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570/* end confdefs.h. */
4571
4572#include <sys/mman.h>
4573int main (void)
4574{
4575 int res = memfd_create ("name", MFD_CLOEXEC | MFD_ALLOW_SEALING);
4576 return 0;
4577}
4578
4579_ACEOF
4580if ac_fn_c_try_link "$LINENO"; then :
4581 ac_cv_memfd_create=yes
4582else
4583 ac_cv_memfd_create=no
4584fi
4585rm -f core conftest.err conftest.$ac_objext \
4586 conftest$ac_exeext conftest.$ac_ext
4587fi
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_memfd_create" >&5
4589$as_echo "$ac_cv_memfd_create" >&6; }
4590test $ac_cv_memfd_create = yes &&
4591$as_echo "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
4592
4593
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5
4547$as_echo_n "checking for copy_file_range... " >&6; } 4595$as_echo_n "checking for copy_file_range... " >&6; }
4548if ${ac_cv_copy_file_range+:} false; then : 4596if ${ac_cv_copy_file_range+:} false; then :
4549 $as_echo_n "(cached) " >&6 4597 $as_echo_n "(cached) " >&6
4550else 4598else
4552/* end confdefs.h. */ 4600/* end confdefs.h. */
4553 4601
4554#include <unistd.h> 4602#include <unistd.h>
4555#include <sys/syscall.h> 4603#include <sys/syscall.h>
4556/*#include <linux/copy.h>*/ 4604/*#include <linux/copy.h>*/
4557int res;
4558int main (void) 4605int main (void)
4559{ 4606{
4607 int res;
4560 /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ 4608 /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/
4561 res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); 4609 res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0);
4562 return 0; 4610 return 0;
4563} 4611}
4564 4612
4587 4635
4588#include "EXTERN.h" 4636#include "EXTERN.h"
4589#include "perl.h" 4637#include "perl.h"
4590#include "XSUB.h" 4638#include "XSUB.h"
4591 4639
4592int res;
4593int main (void) 4640int main (void)
4594{ 4641{
4595 return PL_statcache.st_atimensec 4642 return PL_statcache.st_atimensec
4596 + PL_statcache.st_mtimensec 4643 + PL_statcache.st_mtimensec
4597 + PL_statcache.st_ctimensec; 4644 + PL_statcache.st_ctimensec;
4598 return 0;
4599} 4645}
4600 4646
4601_ACEOF 4647_ACEOF
4602if ac_fn_c_try_compile "$LINENO"; then : 4648if ac_fn_c_try_compile "$LINENO"; then :
4603 ac_cv_xtimensec=yes 4649 ac_cv_xtimensec=yes
4622 4668
4623#include "EXTERN.h" 4669#include "EXTERN.h"
4624#include "perl.h" 4670#include "perl.h"
4625#include "XSUB.h" 4671#include "XSUB.h"
4626 4672
4627int res;
4628int main (void) 4673int main (void)
4629{ 4674{
4630 return PL_statcache.st_atim.tv_nsec 4675 return PL_statcache.st_atim.tv_nsec
4631 + PL_statcache.st_mtim.tv_nsec 4676 + PL_statcache.st_mtim.tv_nsec
4632 + PL_statcache.st_ctim.tv_nsec; 4677 + PL_statcache.st_ctim.tv_nsec;
4645test $ac_cv_xtimespec = yes && 4690test $ac_cv_xtimespec = yes &&
4646$as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h 4691$as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h
4647 4692
4648 4693
4649# apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec? 4694# apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec?
4695
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimensec" >&5
4697$as_echo_n "checking for st_birthtimensec... " >&6; }
4698if ${ac_cv_birthtimensec+:} false; then :
4699 $as_echo_n "(cached) " >&6
4700else
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702/* end confdefs.h. */
4703
4704#include "EXTERN.h"
4705#include "perl.h"
4706#include "XSUB.h"
4707
4708int main (void)
4709{
4710 return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec;
4711}
4712
4713_ACEOF
4714if ac_fn_c_try_compile "$LINENO"; then :
4715 ac_cv_birthtimensec=yes
4716else
4717 ac_cv_birthtimensec=no
4718fi
4719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720fi
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5
4722$as_echo "$ac_cv_birthtimensec" >&6; }
4723test $ac_cv_birthtimensec = yes &&
4724$as_echo "#define HAVE_ST_BIRTHTIMENSEC 1" >>confdefs.h
4725
4726
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimespec" >&5
4728$as_echo_n "checking for st_birthtimespec... " >&6; }
4729if ${ac_cv_birthtimespec+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731else
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733/* end confdefs.h. */
4734
4735#include "EXTERN.h"
4736#include "perl.h"
4737#include "XSUB.h"
4738
4739int main (void)
4740{
4741 return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec;
4742}
4743
4744_ACEOF
4745if ac_fn_c_try_compile "$LINENO"; then :
4746 ac_cv_birthtimespec=yes
4747else
4748 ac_cv_birthtimespec=no
4749fi
4750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751fi
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5
4753$as_echo "$ac_cv_birthtimespec" >&6; }
4754test $ac_cv_birthtimespec = yes &&
4755$as_echo "#define HAVE_ST_BIRTHTIMESPEC 1" >>confdefs.h
4756
4757
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen" >&5
4759$as_echo_n "checking for st_gen... " >&6; }
4760if ${ac_cv_st_gen+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762else
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764/* end confdefs.h. */
4765
4766#include "EXTERN.h"
4767#include "perl.h"
4768#include "XSUB.h"
4769
4770int main (void)
4771{
4772 return PL_statcache.st_gen;
4773}
4774
4775_ACEOF
4776if ac_fn_c_try_compile "$LINENO"; then :
4777 ac_cv_st_gen=yes
4778else
4779 ac_cv_st_gen=no
4780fi
4781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782fi
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5
4784$as_echo "$ac_cv_st_gen" >&6; }
4785test $ac_cv_st_gen = yes &&
4786$as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
4787
4788
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for statx" >&5
4790$as_echo_n "checking for statx... " >&6; }
4791if ${ac_cv_statx+:} false; then :
4792 $as_echo_n "(cached) " >&6
4793else
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795/* end confdefs.h. */
4796
4797#include <sys/types.h>
4798#include <sys/stat.h>
4799#include <unistd.h>
4800#include <fcntl.h>
4801int res;
4802int main (void)
4803{
4804 struct statx sx;
4805 int res;
4806 res = statx (AT_FDCWD, ".",
4807 AT_EMPTY_PATH | AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | AT_STATX_SYNC_AS_STAT | AT_STATX_FORCE_SYNC | AT_STATX_DONT_SYNC,
4808 STATX_ALL, &sx);
4809 STATX_TYPE; STATX_MODE; STATX_NLINK; STATX_UID; STATX_GID; STATX_ATIME; STATX_MTIME; STATX_CTIME;
4810 STATX_INO; STATX_SIZE; STATX_BLOCKS; STATX_BASIC_STATS; STATX_BTIME; STATX_ALL;
4811 STATX_ATTR_COMPRESSED; STATX_ATTR_IMMUTABLE; STATX_ATTR_APPEND; STATX_ATTR_NODUMP; STATX_ATTR_ENCRYPTED;
4812 return 0;
4813}
4814
4815_ACEOF
4816if ac_fn_c_try_link "$LINENO"; then :
4817 ac_cv_statx=yes
4818else
4819 ac_cv_statx=no
4820fi
4821rm -f core conftest.err conftest.$ac_objext \
4822 conftest$ac_exeext conftest.$ac_ext
4823fi
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_statx" >&5
4825$as_echo "$ac_cv_statx" >&6; }
4826test $ac_cv_statx = yes &&
4827$as_echo "#define HAVE_STATX 1" >>confdefs.h
4828
4829
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4" >&5
4831$as_echo_n "checking for accept4... " >&6; }
4832if ${ac_cv_accept4+:} false; then :
4833 $as_echo_n "(cached) " >&6
4834else
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836/* end confdefs.h. */
4837
4838#include <sys/types.h>
4839#include <sys/socket.h>
4840int main (void)
4841{
4842 int res;
4843 res = accept4 (1, (struct sockaddr *)0, (socklen_t)0, SOCK_NONBLOCK | SOCK_CLOEXEC);
4844 return 0;
4845}
4846
4847_ACEOF
4848if ac_fn_c_try_link "$LINENO"; then :
4849 ac_cv_accept4=yes
4850else
4851 ac_cv_accept4=no
4852fi
4853rm -f core conftest.err conftest.$ac_objext \
4854 conftest$ac_exeext conftest.$ac_ext
4855fi
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept4" >&5
4857$as_echo "$ac_cv_accept4" >&6; }
4858test $ac_cv_accept4 = yes &&
4859$as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
4860
4650 4861
4651cat >confcache <<\_ACEOF 4862cat >confcache <<\_ACEOF
4652# This file is a shell script that caches the results of configure 4863# 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 4864# tests run on this system so they can be shared between configure
4654# scripts and configure runs, see configure's option --config-cache. 4865# scripts and configure runs, see configure's option --config-cache.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines