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.30 by root, Mon Mar 18 23:52: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
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}
4552/* end confdefs.h. */ 4570/* end confdefs.h. */
4553 4571
4554#include <unistd.h> 4572#include <unistd.h>
4555#include <sys/syscall.h> 4573#include <sys/syscall.h>
4556/*#include <linux/copy.h>*/ 4574/*#include <linux/copy.h>*/
4557int res;
4558int main (void) 4575int main (void)
4559{ 4576{
4577 int res;
4560 /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ 4578 /*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); 4579 res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0);
4562 return 0; 4580 return 0;
4563} 4581}
4564 4582
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
4758
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for statx" >&5
4760$as_echo_n "checking for statx... " >&6; }
4761if ${ac_cv_statx+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763else
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765/* end confdefs.h. */
4766
4767#include <sys/types.h>
4768#include <sys/stat.h>
4769#include <unistd.h>
4770#include <fcntl.h>
4771int res;
4772int main (void)
4773{
4774 struct statx sx;
4775 int res;
4776 res = statx (AT_FDCWD, ".",
4777 AT_EMPTY_PATH | AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | AT_STATX_SYNC_AS_STAT | AT_STATX_FORCE_SYNC | AT_STATX_DONT_SYNC,
4778 STATX_ALL, &sx);
4779 STATX_TYPE; STATX_MODE; STATX_NLINK; STATX_UID; STATX_GID; STATX_ATIME; STATX_MTIME; STATX_CTIME;
4780 STATX_INO; STATX_SIZE; STATX_BLOCKS; STATX_BASIC_STATS; STATX_BTIME; STATX_ALL;
4781 STATX_ATTR_COMPRESSED; STATX_ATTR_IMMUTABLE; STATX_ATTR_APPEND; STATX_ATTR_NODUMP; STATX_ATTR_ENCRYPTED;
4782 return 0;
4783}
4784
4785_ACEOF
4786if ac_fn_c_try_link "$LINENO"; then :
4787 ac_cv_statx=yes
4788else
4789 ac_cv_statx=no
4790fi
4791rm -f core conftest.err conftest.$ac_objext \
4792 conftest$ac_exeext conftest.$ac_ext
4793fi
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_statx" >&5
4795$as_echo "$ac_cv_statx" >&6; }
4796test $ac_cv_statx = yes &&
4797$as_echo "#define HAVE_STATX 1" >>confdefs.h
4798
4650 4799
4651cat >confcache <<\_ACEOF 4800cat >confcache <<\_ACEOF
4652# This file is a shell script that caches the results of configure 4801# 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 4802# tests run on this system so they can be shared between configure
4654# scripts and configure runs, see configure's option --config-cache. 4803# scripts and configure runs, see configure's option --config-cache.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines