ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libeio/libeio.m4
(Generate patch)

Comparing libeio/libeio.m4 (file contents):
Revision 1.9 by root, Thu Jan 7 17:18:08 2010 UTC vs.
Revision 1.11 by root, Wed Dec 1 07:30:39 2010 UTC

2 pthread_create, 2 pthread_create,
3 [pthread pthreads pthreadVC2], 3 [pthread pthreads pthreadVC2],
4 , 4 ,
5 [AC_MSG_ERROR(pthread functions not found)] 5 [AC_MSG_ERROR(pthread functions not found)]
6) 6)
7
8AC_CACHE_CHECK(for utimes, ac_cv_utimes, [AC_LINK_IFELSE([[
9#include <sys/types.h>
10#include <sys/time.h>
11#include <utime.h>
12struct timeval tv[2];
13int res;
14int main (void)
15{
16 res = utimes ("/", tv);
17 return 0;
18}
19]],ac_cv_utimes=yes,ac_cv_utimes=no)])
20test $ac_cv_utimes = yes && AC_DEFINE(HAVE_UTIMES, 1, utimes(2) is available)
7 21
8AC_CACHE_CHECK(for futimes, ac_cv_futimes, [AC_LINK_IFELSE([[ 22AC_CACHE_CHECK(for futimes, ac_cv_futimes, [AC_LINK_IFELSE([[
9#include <sys/types.h> 23#include <sys/types.h>
10#include <sys/time.h> 24#include <sys/time.h>
11#include <utime.h> 25#include <utime.h>
12struct timeval tv[2]; 26struct timeval tv[2];
13int res; 27int res;
14int fd; 28int fd;
15int main(void) 29int main (void)
16{ 30{
17 res = futimes (fd, tv); 31 res = futimes (fd, tv);
18 return 0; 32 return 0;
19} 33}
20]],ac_cv_futimes=yes,ac_cv_futimes=no)]) 34]],ac_cv_futimes=yes,ac_cv_futimes=no)])
21test $ac_cv_futimes = yes && AC_DEFINE(HAVE_FUTIMES, 1, futimes(2) is available) 35test $ac_cv_futimes = yes && AC_DEFINE(HAVE_FUTIMES, 1, futimes(2) is available)
22 36
23AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([ 37AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([
24#include <fcntl.h> 38#include <fcntl.h>
25int main(void) 39int main (void)
26{ 40{
27 int fd = 0; 41 int fd = 0;
28 size_t count = 2; 42 size_t count = 2;
29 ssize_t res; 43 ssize_t res;
30 res = readahead (fd, 0, count); 44 res = readahead (fd, 0, count);
33],ac_cv_readahead=yes,ac_cv_readahead=no)]) 47],ac_cv_readahead=yes,ac_cv_readahead=no)])
34test $ac_cv_readahead = yes && AC_DEFINE(HAVE_READAHEAD, 1, readahead(2) is available (linux)) 48test $ac_cv_readahead = yes && AC_DEFINE(HAVE_READAHEAD, 1, readahead(2) is available (linux))
35 49
36AC_CACHE_CHECK(for fdatasync, ac_cv_fdatasync, [AC_LINK_IFELSE([ 50AC_CACHE_CHECK(for fdatasync, ac_cv_fdatasync, [AC_LINK_IFELSE([
37#include <unistd.h> 51#include <unistd.h>
38int main(void) 52int main (void)
39{ 53{
40 int fd = 0; 54 int fd = 0;
41 fdatasync (fd); 55 fdatasync (fd);
42 return 0; 56 return 0;
43} 57}
44],ac_cv_fdatasync=yes,ac_cv_fdatasync=no)]) 58],ac_cv_fdatasync=yes,ac_cv_fdatasync=no)])
45test $ac_cv_fdatasync = yes && AC_DEFINE(HAVE_FDATASYNC, 1, fdatasync(2) is available) 59test $ac_cv_fdatasync = yes && AC_DEFINE(HAVE_FDATASYNC, 1, fdatasync(2) is available)
46 60
47AC_CACHE_CHECK(for pread and pwrite, ac_cv_preadwrite, [AC_LINK_IFELSE([ 61AC_CACHE_CHECK(for pread and pwrite, ac_cv_preadwrite, [AC_LINK_IFELSE([
48#include <unistd.h> 62#include <unistd.h>
49int main(void) 63int main (void)
50{ 64{
51 int fd = 0; 65 int fd = 0;
52 size_t count = 1; 66 size_t count = 1;
53 char buf; 67 char buf;
54 off_t offset = 1; 68 off_t offset = 1;
70#elif __hpux 84#elif __hpux
71# include <sys/socket.h> 85# include <sys/socket.h>
72#else 86#else
73# error unsupported architecture 87# error unsupported architecture
74#endif 88#endif
75int main(void) 89int main (void)
76{ 90{
77 int fd = 0; 91 int fd = 0;
78 off_t offset = 1; 92 off_t offset = 1;
79 size_t count = 2; 93 size_t count = 2;
80 ssize_t res; 94 ssize_t res;
90],ac_cv_sendfile=yes,ac_cv_sendfile=no)]) 104],ac_cv_sendfile=yes,ac_cv_sendfile=no)])
91test $ac_cv_sendfile = yes && AC_DEFINE(HAVE_SENDFILE, 1, sendfile(2) is available and supported) 105test $ac_cv_sendfile = yes && AC_DEFINE(HAVE_SENDFILE, 1, sendfile(2) is available and supported)
92 106
93AC_CACHE_CHECK(for sync_file_range, ac_cv_sync_file_range, [AC_LINK_IFELSE([ 107AC_CACHE_CHECK(for sync_file_range, ac_cv_sync_file_range, [AC_LINK_IFELSE([
94#include <fcntl.h> 108#include <fcntl.h>
95int main(void) 109int main (void)
96{ 110{
97 int fd = 0; 111 int fd = 0;
98 off64_t offset = 1; 112 off64_t offset = 1;
99 off64_t nbytes = 1; 113 off64_t nbytes = 1;
100 unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE|SYNC_FILE_RANGE_WAIT_AFTER; 114 unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE|SYNC_FILE_RANGE_WAIT_AFTER;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines