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

Comparing IO-AIO/configure (file contents):
Revision 1.22 by root, Tue Feb 20 05:23:47 2018 UTC vs.
Revision 1.27 by root, Sat Aug 25 19:25:32 2018 UTC

2018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019ac_compiler_gnu=$ac_cv_c_compiler_gnu 2019ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020 2020
2021 2021
2022 2022
2023ac_config_headers="$ac_config_headers libeio/config.h" 2023ac_config_headers="$ac_config_headers config.h"
2024 2024
2025 2025
2026 2026
2027ac_ext=c 2027ac_ext=c
2028ac_cpp='$CPP $CPPFLAGS' 2028ac_cpp='$CPP $CPPFLAGS'
4198$as_echo "$ac_cv_prctl_set_name" >&6; } 4198$as_echo "$ac_cv_prctl_set_name" >&6; }
4199test $ac_cv_prctl_set_name = yes && 4199test $ac_cv_prctl_set_name = yes &&
4200$as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h 4200$as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h
4201 4201
4202 4202
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5
4204$as_echo_n "checking for posix_close... " >&6; }
4205if ${ac_cv_posix_close+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207else
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209/* end confdefs.h. */
4210
4211#include <unistd.h>
4212int res;
4213int main (void)
4214{
4215 res = posix_close (0, 0); /* we do not need any flags */
4216 return 0;
4217}
4218
4219_ACEOF
4220if ac_fn_c_try_link "$LINENO"; then :
4221 ac_cv_posix_close=yes
4222else
4223 ac_cv_posix_close=no
4224fi
4225rm -f core conftest.err conftest.$ac_objext \
4226 conftest$ac_exeext conftest.$ac_ext
4227fi
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5
4229$as_echo "$ac_cv_posix_close" >&6; }
4230test $ac_cv_posix_close = yes &&
4231$as_echo "#define HAVE_POSIX_CLOSE 1" >>confdefs.h
4232
4233
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5
4235$as_echo_n "checking for renameat2... " >&6; }
4236if ${ac_cv_renameat2+:} false; then :
4237 $as_echo_n "(cached) " >&6
4238else
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240/* end confdefs.h. */
4241
4242#include <unistd.h>
4243#include <sys/syscall.h>
4244#include <linux/fs.h>
4245int res;
4246int main (void)
4247{
4248 res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE);
4249 return 0;
4250}
4251
4252_ACEOF
4253if ac_fn_c_try_link "$LINENO"; then :
4254 ac_cv_renameat2=yes
4255else
4256 ac_cv_renameat2=no
4257fi
4258rm -f core conftest.err conftest.$ac_objext \
4259 conftest$ac_exeext conftest.$ac_ext
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5
4262$as_echo "$ac_cv_renameat2" >&6; }
4263test $ac_cv_renameat2 = yes &&
4264$as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h
4265
4266
4267
4268
4269# for these to work, you need to run autoheader in IO::AIO, not libeio :(
4203 4270
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5
4205$as_echo_n "checking for set/getrlimit... " >&6; } 4272$as_echo_n "checking for set/getrlimit... " >&6; }
4206if ${ac_cv_rlimits+:} false; then : 4273if ${ac_cv_rlimits+:} false; then :
4207 $as_echo_n "(cached) " >&6 4274 $as_echo_n "(cached) " >&6
4318fi 4385fi
4319 4386
4320done 4387done
4321 4388
4322 4389
4390for ac_header in sys/sysmacros.h
4391do :
4392 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4393if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
4394 cat >>confdefs.h <<_ACEOF
4395#define HAVE_SYS_SYSMACROS_H 1
4396_ACEOF
4397
4398fi
4399
4400done
4401
4402
4403for ac_header in sys/mkdev.h
4404do :
4405 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4406if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
4407 cat >>confdefs.h <<_ACEOF
4408#define HAVE_SYS_MKDEV_H 1
4409_ACEOF
4410
4411fi
4412
4413done
4414
4415
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5
4324$as_echo_n "checking for splice, vmsplice and tee... " >&6; } 4417$as_echo_n "checking for splice, vmsplice and tee... " >&6; }
4325if ${ac_cv_linux_splice+:} false; then : 4418if ${ac_cv_linux_splice+:} false; then :
4326 $as_echo_n "(cached) " >&6 4419 $as_echo_n "(cached) " >&6
4327else 4420else
4448$as_echo "$ac_cv_timerfd" >&6; } 4541$as_echo "$ac_cv_timerfd" >&6; }
4449test $ac_cv_timerfd = yes && 4542test $ac_cv_timerfd = yes &&
4450$as_echo "#define HAVE_TIMERFD 1" >>confdefs.h 4543$as_echo "#define HAVE_TIMERFD 1" >>confdefs.h
4451 4544
4452 4545
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5
4454$as_echo_n "checking for renameat2... " >&6; }
4455if ${ac_cv_renameat2+:} false; then :
4456 $as_echo_n "(cached) " >&6
4457else
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h. */
4460
4461#include <unistd.h>
4462#include <sys/syscall.h>
4463#include <linux/fs.h>
4464int res;
4465int main (void)
4466{
4467 res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE);
4468 return 0;
4469}
4470
4471_ACEOF
4472if ac_fn_c_try_link "$LINENO"; then :
4473 ac_cv_renameat2=yes
4474else
4475 ac_cv_renameat2=no
4476fi
4477rm -f core conftest.err conftest.$ac_objext \
4478 conftest$ac_exeext conftest.$ac_ext
4479fi
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5
4481$as_echo "$ac_cv_renameat2" >&6; }
4482test $ac_cv_renameat2 = yes &&
4483$as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h
4484
4485
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5
4487$as_echo_n "checking for copy_file_range... " >&6; } 4547$as_echo_n "checking for copy_file_range... " >&6; }
4488if ${ac_cv_copy_file_range+:} false; then : 4548if ${ac_cv_copy_file_range+:} false; then :
4489 $as_echo_n "(cached) " >&6 4549 $as_echo_n "(cached) " >&6
4490else 4550else
4515$as_echo "$ac_cv_copy_file_range" >&6; } 4575$as_echo "$ac_cv_copy_file_range" >&6; }
4516test $ac_cv_copy_file_range = yes && 4576test $ac_cv_copy_file_range = yes &&
4517$as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h 4577$as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
4518 4578
4519 4579
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5 4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5
4521$as_echo_n "checking for posix_close... " >&6; } 4581$as_echo_n "checking for st_xtimensec... " >&6; }
4522if ${ac_cv_posix_close+:} false; then : 4582if ${ac_cv_xtimensec+:} false; then :
4523 $as_echo_n "(cached) " >&6 4583 $as_echo_n "(cached) " >&6
4524else 4584else
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526/* end confdefs.h. */ 4586/* end confdefs.h. */
4527 4587
4528#include <unistd.h> 4588#include "EXTERN.h"
4529int res; 4589#include "perl.h"
4590#include "XSUB.h"
4591
4530int main (void) 4592int main (void)
4531{ 4593{
4532 res = posix_close (0, 0); /* we do not need any flags */ 4594 return PL_statcache.st_atimensec
4533 return 0; 4595 + PL_statcache.st_mtimensec
4596 + PL_statcache.st_ctimensec;
4534} 4597}
4535 4598
4536_ACEOF 4599_ACEOF
4537if ac_fn_c_try_link "$LINENO"; then : 4600if ac_fn_c_try_compile "$LINENO"; then :
4538 ac_cv_posix_close=yes 4601 ac_cv_xtimensec=yes
4539else 4602else
4540 ac_cv_posix_close=no 4603 ac_cv_xtimensec=no
4541fi 4604fi
4542rm -f core conftest.err conftest.$ac_objext \ 4605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 conftest$ac_exeext conftest.$ac_ext
4544fi 4606fi
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5
4608$as_echo "$ac_cv_xtimensec" >&6; }
4609test $ac_cv_xtimensec = yes &&
4610$as_echo "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h
4611
4612
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5
4614$as_echo_n "checking for st_xtimespec... " >&6; }
4615if ${ac_cv_xtimespec+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617else
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619/* end confdefs.h. */
4620
4621#include "EXTERN.h"
4622#include "perl.h"
4623#include "XSUB.h"
4624
4625int main (void)
4626{
4627 return PL_statcache.st_atim.tv_nsec
4628 + PL_statcache.st_mtim.tv_nsec
4629 + PL_statcache.st_ctim.tv_nsec;
4630}
4631
4632_ACEOF
4633if ac_fn_c_try_compile "$LINENO"; then :
4634 ac_cv_xtimespec=yes
4635else
4636 ac_cv_xtimespec=no
4637fi
4638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639fi
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5
4641$as_echo "$ac_cv_xtimespec" >&6; }
4642test $ac_cv_xtimespec = yes &&
4643$as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h
4644
4645
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
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5 4735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5
4546$as_echo "$ac_cv_posix_close" >&6; } 4736$as_echo "$ac_cv_st_gen" >&6; }
4547test $ac_cv_posix_close = yes && 4737test $ac_cv_st_gen = yes &&
4548$as_echo "#define HAVE_POSIX_CLOSE 1" >>confdefs.h 4738$as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
4549
4550
4551 4739
4552 4740
4553cat >confcache <<\_ACEOF 4741cat >confcache <<\_ACEOF
4554# 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
4555# 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
5220 5408
5221# Handling of arguments. 5409# Handling of arguments.
5222for ac_config_target in $ac_config_targets 5410for ac_config_target in $ac_config_targets
5223do 5411do
5224 case $ac_config_target in 5412 case $ac_config_target in
5225 "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; 5413 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5226 5414
5227 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 5415 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5228 esac 5416 esac
5229done 5417done
5230 5418
5565if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 5753if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5567$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 5755$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5568fi 5756fi
5569 5757
5758

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines