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.14 by root, Wed Apr 3 03:03:53 2019 UTC vs.
Revision 1.17 by root, Tue Jul 27 07:58:38 2021 UTC

68AC_CHECK_HEADERS([sys/mkdev.h]) 68AC_CHECK_HEADERS([sys/mkdev.h])
69 69
70dnl readv / preadv, vmsplice 70dnl readv / preadv, vmsplice
71AC_CHECK_HEADERS([sys/uio.h]) 71AC_CHECK_HEADERS([sys/uio.h])
72 72
73AC_CACHE_CHECK([for siginfo_t], ac_cv_siginfo_t, [AC_LINK_IFELSE([AC_LANG_SOURCE([
74#include <signal.h>
75int main (void)
76{
77 siginfo_t si;
78 si.si_code;
79 si.si_pid;
80 si.si_uid;
81 si.si_value.sival_int;
82 si.si_value.sival_ptr;
83 return 0;
84}
85])],ac_cv_siginfo_t=yes,ac_cv_siginfo_t=no)])
86test $ac_cv_siginfo_t = yes && AC_DEFINE(HAVE_SIGINFO_T, 1, have siginfo_t in signal.h)
87
88AC_CACHE_CHECK([for unix-style syscall interface], ac_cv_syscall, [AC_LINK_IFELSE([AC_LANG_SOURCE([
89#include <unistd.h>
90#include <sys/syscall.h>
91int main (void)
92{
93 long res = syscall (SYS_exit, 0);
94 return 0;
95}
96])],ac_cv_syscall=yes,ac_cv_syscall=no)])
97test $ac_cv_syscall = yes && AC_DEFINE(HAVE_SYSCALL, 1, unix syscall interface)
73 98
74AC_CACHE_CHECK([for splice, vmsplice and tee], ac_cv_linux_splice, [AC_LINK_IFELSE([AC_LANG_SOURCE([ 99AC_CACHE_CHECK([for splice, vmsplice and tee], ac_cv_linux_splice, [AC_LINK_IFELSE([AC_LANG_SOURCE([
75#include <sys/types.h> 100#include <sys/types.h>
76#include <fcntl.h> 101#include <fcntl.h>
77#include <sys/uio.h> 102#include <sys/uio.h>
232 return 0; 257 return 0;
233} 258}
234]])],ac_cv_statx=yes,ac_cv_statx=no)]) 259]])],ac_cv_statx=yes,ac_cv_statx=no)])
235test $ac_cv_statx = yes && AC_DEFINE(HAVE_STATX, 1, statx(2) is available) 260test $ac_cv_statx = yes && AC_DEFINE(HAVE_STATX, 1, statx(2) is available)
236 261
262AC_CACHE_CHECK(for accept4, ac_cv_accept4, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
263#include <sys/types.h>
264#include <sys/socket.h>
265int main (void)
266{
267 int res;
268 res = accept4 (1, (struct sockaddr *)0, (socklen_t)0, SOCK_NONBLOCK | SOCK_CLOEXEC);
269 return 0;
270}
271]])],ac_cv_accept4=yes,ac_cv_accept4=no)])
272test $ac_cv_accept4 = yes && AC_DEFINE(HAVE_ACCEPT4, 1, accept4(2) is available)
273
237AC_OUTPUT 274AC_OUTPUT
238 275

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines