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

Comparing IO-AIO/configure.ac (file contents):
Revision 1.11 by root, Sun Mar 10 12:11:46 2019 UTC vs.
Revision 1.14 by root, Wed Apr 3 03:03:53 2019 UTC

12# for these to work, you need to run autoheader in IO::AIO, not libeio :( 12# for these to work, you need to run autoheader in IO::AIO, not libeio :(
13 13
14AC_CACHE_CHECK(for set/getrlimit, ac_cv_rlimits, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ 14AC_CACHE_CHECK(for set/getrlimit, ac_cv_rlimits, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
15#include <sys/time.h> 15#include <sys/time.h>
16#include <sys/resource.h> 16#include <sys/resource.h>
17int res;
18int main (void) 17int main (void)
19{ 18{
20 struct rlimit srl; 19 struct rlimit srl;
20 int res;
21 srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; 21 srl.rlim_cur = srl.rlim_max = RLIM_INFINITY;
22 res = getrlimit (RLIMIT_NOFILE, &srl); 22 res = getrlimit (RLIMIT_NOFILE, &srl);
23 res = setrlimit (RLIMIT_NOFILE, &srl); 23 res = setrlimit (RLIMIT_NOFILE, &srl);
24 return 0; 24 return 0;
25} 25}
65AC_CHECK_HEADERS([sys/sysmacros.h]) 65AC_CHECK_HEADERS([sys/sysmacros.h])
66 66
67dnl solaris major/minor 67dnl solaris major/minor
68AC_CHECK_HEADERS([sys/mkdev.h]) 68AC_CHECK_HEADERS([sys/mkdev.h])
69 69
70dnl readv / preadv, vmsplice
71AC_CHECK_HEADERS([sys/uio.h])
72
73
70AC_CACHE_CHECK([for splice, vmsplice and tee], ac_cv_linux_splice, [AC_LINK_IFELSE([AC_LANG_SOURCE([ 74AC_CACHE_CHECK([for splice, vmsplice and tee], ac_cv_linux_splice, [AC_LINK_IFELSE([AC_LANG_SOURCE([
71#include <sys/types.h> 75#include <sys/types.h>
72#include <fcntl.h> 76#include <fcntl.h>
77#include <sys/uio.h>
73int main (void) 78int main (void)
74{ 79{
75 ssize_t res; 80 ssize_t res;
76 res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE); 81 res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE);
77 res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK); 82 res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK);
82test $ac_cv_linux_splice = yes && AC_DEFINE(HAVE_LINUX_SPLICE, 1, splice/vmsplice/tee(2) are available) 87test $ac_cv_linux_splice = yes && AC_DEFINE(HAVE_LINUX_SPLICE, 1, splice/vmsplice/tee(2) are available)
83 88
84AC_CACHE_CHECK(for pipe2, ac_cv_pipe2, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ 89AC_CACHE_CHECK(for pipe2, ac_cv_pipe2, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
85#include <fcntl.h> 90#include <fcntl.h>
86#include <unistd.h> 91#include <unistd.h>
92int main (void)
93{
87int res; 94 int res;
88int main (void)
89{
90 res = pipe2 (0, 0); 95 res = pipe2 (0, 0);
91 return 0; 96 return 0;
92} 97}
93]])],ac_cv_pipe2=yes,ac_cv_pipe2=no)]) 98]])],ac_cv_pipe2=yes,ac_cv_pipe2=no)])
94test $ac_cv_pipe2 = yes && AC_DEFINE(HAVE_PIPE2, 1, pipe2(2) is available) 99test $ac_cv_pipe2 = yes && AC_DEFINE(HAVE_PIPE2, 1, pipe2(2) is available)
95 100
96AC_CACHE_CHECK(for eventfd, ac_cv_eventfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ 101AC_CACHE_CHECK(for eventfd, ac_cv_eventfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
97#include <sys/eventfd.h> 102#include <sys/eventfd.h>
103int main (void)
104{
98int res; 105 int res;
99int main (void)
100{
101 res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); 106 res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK);
102 return 0; 107 return 0;
103} 108}
104]])],ac_cv_eventfd=yes,ac_cv_eventfd=no)]) 109]])],ac_cv_eventfd=yes,ac_cv_eventfd=no)])
105test $ac_cv_eventfd = yes && AC_DEFINE(HAVE_EVENTFD, 1, eventfd(2) is available) 110test $ac_cv_eventfd = yes && AC_DEFINE(HAVE_EVENTFD, 1, eventfd(2) is available)
106 111
107AC_CACHE_CHECK(for timerfd, ac_cv_timerfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ 112AC_CACHE_CHECK(for timerfd_*, ac_cv_timerfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
108#include <sys/timerfd.h> 113#include <sys/timerfd.h>
109int res;
110int main (void) 114int main (void)
111{ 115{
112 struct itimerspec its; 116 struct itimerspec its;
117 int res;
113 res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); 118 res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK);
114 res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); 119 res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0);
115 res = timerfd_gettime (res, &its); 120 res = timerfd_gettime (res, &its);
116 return 0; 121 return 0;
117} 122}
118]])],ac_cv_timerfd=yes,ac_cv_timerfd=no)]) 123]])],ac_cv_timerfd=yes,ac_cv_timerfd=no)])
119test $ac_cv_timerfd = yes && AC_DEFINE(HAVE_TIMERFD, 1, timerfd_*(2) are available) 124test $ac_cv_timerfd = yes && AC_DEFINE(HAVE_TIMERFD, 1, timerfd_*(2) are available)
125
126AC_CACHE_CHECK(for memfd_create, ac_cv_memfd_create, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
127#include <sys/mman.h>
128int main (void)
129{
130 int res = memfd_create ("name", MFD_CLOEXEC | MFD_ALLOW_SEALING);
131 return 0;
132}
133]])],ac_cv_memfd_create=yes,ac_cv_memfd_create=no)])
134test $ac_cv_memfd_create = yes && AC_DEFINE(HAVE_MEMFD_CREATE, 1, memfd_create(2) is available)
120 135
121AC_CACHE_CHECK(for copy_file_range, ac_cv_copy_file_range, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ 136AC_CACHE_CHECK(for copy_file_range, ac_cv_copy_file_range, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
122#include <unistd.h> 137#include <unistd.h>
123#include <sys/syscall.h> 138#include <sys/syscall.h>
124/*#include <linux/copy.h>*/ 139/*#include <linux/copy.h>*/
140int main (void)
141{
125int res; 142 int res;
126int main (void)
127{
128 /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ 143 /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/
129 res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); 144 res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0);
130 return 0; 145 return 0;
131} 146}
132]])],ac_cv_copy_file_range=yes,ac_cv_copy_file_range=no)]) 147]])],ac_cv_copy_file_range=yes,ac_cv_copy_file_range=no)])
196 return PL_statcache.st_gen; 211 return PL_statcache.st_gen;
197} 212}
198]])],ac_cv_st_gen=yes,ac_cv_st_gen=no)]) 213]])],ac_cv_st_gen=yes,ac_cv_st_gen=no)])
199test $ac_cv_st_gen = yes && AC_DEFINE(HAVE_ST_GEN, 1, stat st_gen member) 214test $ac_cv_st_gen = yes && AC_DEFINE(HAVE_ST_GEN, 1, stat st_gen member)
200 215
216AC_CACHE_CHECK(for statx, ac_cv_statx, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
217#include <sys/types.h>
218#include <sys/stat.h>
219#include <unistd.h>
220#include <fcntl.h>
221int res;
222int main (void)
223{
224 struct statx sx;
225 int res;
226 res = statx (AT_FDCWD, ".",
227 AT_EMPTY_PATH | AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | AT_STATX_SYNC_AS_STAT | AT_STATX_FORCE_SYNC | AT_STATX_DONT_SYNC,
228 STATX_ALL, &sx);
229 STATX_TYPE; STATX_MODE; STATX_NLINK; STATX_UID; STATX_GID; STATX_ATIME; STATX_MTIME; STATX_CTIME;
230 STATX_INO; STATX_SIZE; STATX_BLOCKS; STATX_BASIC_STATS; STATX_BTIME; STATX_ALL;
231 STATX_ATTR_COMPRESSED; STATX_ATTR_IMMUTABLE; STATX_ATTR_APPEND; STATX_ATTR_NODUMP; STATX_ATTR_ENCRYPTED;
232 return 0;
233}
234]])],ac_cv_statx=yes,ac_cv_statx=no)])
235test $ac_cv_statx = yes && AC_DEFINE(HAVE_STATX, 1, statx(2) is available)
236
201AC_OUTPUT 237AC_OUTPUT
202 238

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines