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

Comparing IO-AIO/configure (file contents):
Revision 1.20 by root, Fri Sep 22 05:20:39 2017 UTC vs.
Revision 1.26 by root, Tue Aug 14 11:50:43 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
4383$as_echo "$ac_cv_pipe2" >&6; } 4476$as_echo "$ac_cv_pipe2" >&6; }
4384test $ac_cv_pipe2 = yes && 4477test $ac_cv_pipe2 = yes &&
4385$as_echo "#define HAVE_PIPE2 1" >>confdefs.h 4478$as_echo "#define HAVE_PIPE2 1" >>confdefs.h
4386 4479
4387 4480
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5
4389$as_echo_n "checking for renameat2... " >&6; } 4482$as_echo_n "checking for eventfd... " >&6; }
4390if ${ac_cv_renameat2+:} false; then : 4483if ${ac_cv_eventfd+:} false; then :
4391 $as_echo_n "(cached) " >&6 4484 $as_echo_n "(cached) " >&6
4392else 4485else
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394/* end confdefs.h. */ 4487/* end confdefs.h. */
4395 4488
4396#include <unistd.h> 4489#include <sys/eventfd.h>
4397#include <sys/syscall.h>
4398#include <linux/fs.h>
4399int res; 4490int res;
4400int main (void) 4491int main (void)
4401{ 4492{
4402 res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); 4493 res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK);
4403 return 0; 4494 return 0;
4404} 4495}
4405 4496
4406_ACEOF 4497_ACEOF
4407if ac_fn_c_try_link "$LINENO"; then : 4498if ac_fn_c_try_link "$LINENO"; then :
4408 ac_cv_renameat2=yes 4499 ac_cv_eventfd=yes
4409else 4500else
4410 ac_cv_renameat2=no 4501 ac_cv_eventfd=no
4411fi 4502fi
4412rm -f core conftest.err conftest.$ac_objext \ 4503rm -f core conftest.err conftest.$ac_objext \
4413 conftest$ac_exeext conftest.$ac_ext 4504 conftest$ac_exeext conftest.$ac_ext
4414fi 4505fi
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 4506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5
4416$as_echo "$ac_cv_renameat2" >&6; } 4507$as_echo "$ac_cv_eventfd" >&6; }
4417test $ac_cv_renameat2 = yes && 4508test $ac_cv_eventfd = yes &&
4418$as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h 4509$as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
4510
4511
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd" >&5
4513$as_echo_n "checking for timerfd... " >&6; }
4514if ${ac_cv_timerfd+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516else
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h. */
4519
4520#include <sys/timerfd.h>
4521int res;
4522int main (void)
4523{
4524 struct itimerspec its;
4525 res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK);
4526 res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0);
4527 res = timerfd_gettime (res, &its);
4528 return 0;
4529}
4530
4531_ACEOF
4532if ac_fn_c_try_link "$LINENO"; then :
4533 ac_cv_timerfd=yes
4534else
4535 ac_cv_timerfd=no
4536fi
4537rm -f core conftest.err conftest.$ac_objext \
4538 conftest$ac_exeext conftest.$ac_ext
4539fi
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5
4541$as_echo "$ac_cv_timerfd" >&6; }
4542test $ac_cv_timerfd = yes &&
4543$as_echo "#define HAVE_TIMERFD 1" >>confdefs.h
4419 4544
4420 4545
4421{ $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
4422$as_echo_n "checking for copy_file_range... " >&6; } 4547$as_echo_n "checking for copy_file_range... " >&6; }
4423if ${ac_cv_copy_file_range+:} false; then : 4548if ${ac_cv_copy_file_range+:} false; then :
4450$as_echo "$ac_cv_copy_file_range" >&6; } 4575$as_echo "$ac_cv_copy_file_range" >&6; }
4451test $ac_cv_copy_file_range = yes && 4576test $ac_cv_copy_file_range = yes &&
4452$as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h 4577$as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
4453 4578
4454 4579
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5
4581$as_echo_n "checking for st_xtimensec... " >&6; }
4582if ${ac_cv_xtimensec+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584else
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586/* end confdefs.h. */
4455 4587
4588#include "EXTERN.h"
4589#include "perl.h"
4590#include "XSUB.h"
4591
4592int res;
4593int main (void)
4594{
4595 return PL_statcache.st_atimensec
4596 + PL_statcache.st_mtimensec
4597 + PL_statcache.st_ctimensec;
4598 return 0;
4599}
4600
4601_ACEOF
4602if ac_fn_c_try_compile "$LINENO"; then :
4603 ac_cv_xtimensec=yes
4604else
4605 ac_cv_xtimensec=no
4606fi
4607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5
4610$as_echo "$ac_cv_xtimensec" >&6; }
4611test $ac_cv_xtimensec = yes &&
4612$as_echo "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h
4613
4614
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5
4616$as_echo_n "checking for st_xtimespec... " >&6; }
4617if ${ac_cv_xtimespec+:} false; then :
4618 $as_echo_n "(cached) " >&6
4619else
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621/* end confdefs.h. */
4622
4623#include "EXTERN.h"
4624#include "perl.h"
4625#include "XSUB.h"
4626
4627int res;
4628int main (void)
4629{
4630 return PL_statcache.st_atim.tv_nsec
4631 + PL_statcache.st_mtim.tv_nsec
4632 + PL_statcache.st_ctim.tv_nsec;
4633}
4634
4635_ACEOF
4636if ac_fn_c_try_compile "$LINENO"; then :
4637 ac_cv_xtimespec=yes
4638else
4639 ac_cv_xtimespec=no
4640fi
4641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642fi
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5
4644$as_echo "$ac_cv_xtimespec" >&6; }
4645test $ac_cv_xtimespec = yes &&
4646$as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h
4647
4648
4649# apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec?
4456 4650
4457cat >confcache <<\_ACEOF 4651cat >confcache <<\_ACEOF
4458# This file is a shell script that caches the results of configure 4652# This file is a shell script that caches the results of configure
4459# tests run on this system so they can be shared between configure 4653# tests run on this system so they can be shared between configure
4460# scripts and configure runs, see configure's option --config-cache. 4654# scripts and configure runs, see configure's option --config-cache.
5124 5318
5125# Handling of arguments. 5319# Handling of arguments.
5126for ac_config_target in $ac_config_targets 5320for ac_config_target in $ac_config_targets
5127do 5321do
5128 case $ac_config_target in 5322 case $ac_config_target in
5129 "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; 5323 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5130 5324
5131 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 5325 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5132 esac 5326 esac
5133done 5327done
5134 5328
5469if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 5663if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5471$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 5665$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5472fi 5666fi
5473 5667
5668

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines