… | |
… | |
7 | [pthread pthreads pthreadVC2], |
7 | [pthread pthreads pthreadVC2], |
8 | , |
8 | , |
9 | [AC_MSG_ERROR(pthread functions not found)] |
9 | [AC_MSG_ERROR(pthread functions not found)] |
10 | ) |
10 | ) |
11 | |
11 | |
12 | AC_CACHE_CHECK(for utimes, ac_cv_utimes, [AC_LINK_IFELSE([AC_LANG_SOURCE([ |
12 | AC_CACHE_CHECK(for utimes, ac_cv_utimes, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
13 | #include <sys/types.h> |
13 | #include <sys/types.h> |
14 | #include <sys/time.h> |
14 | #include <sys/time.h> |
15 | #include <utime.h> |
15 | #include <utime.h> |
16 | struct timeval tv[2]; |
16 | struct timeval tv[2]; |
17 | int res; |
17 | int res; |
18 | int main (void) |
18 | int main (void) |
19 | { |
19 | { |
20 | res = utimes ("/", tv); |
20 | res = utimes ("/", tv); |
21 | return 0; |
21 | return 0; |
22 | } |
22 | } |
23 | ])],ac_cv_utimes=yes,ac_cv_utimes=no)]) |
23 | ]])],ac_cv_utimes=yes,ac_cv_utimes=no)]) |
24 | test $ac_cv_utimes = yes && AC_DEFINE(HAVE_UTIMES, 1, utimes(2) is available) |
24 | test $ac_cv_utimes = yes && AC_DEFINE(HAVE_UTIMES, 1, utimes(2) is available) |
25 | |
25 | |
26 | AC_CACHE_CHECK(for futimes, ac_cv_futimes, [AC_LINK_IFELSE([AC_LANG_SOURCE([ |
26 | AC_CACHE_CHECK(for futimes, ac_cv_futimes, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
27 | #include <sys/types.h> |
27 | #include <sys/types.h> |
28 | #include <sys/time.h> |
28 | #include <sys/time.h> |
29 | #include <utime.h> |
29 | #include <utime.h> |
30 | struct timeval tv[2]; |
30 | struct timeval tv[2]; |
31 | int res; |
31 | int res; |
… | |
… | |
33 | int main (void) |
33 | int main (void) |
34 | { |
34 | { |
35 | res = futimes (fd, tv); |
35 | res = futimes (fd, tv); |
36 | return 0; |
36 | return 0; |
37 | } |
37 | } |
38 | ])],ac_cv_futimes=yes,ac_cv_futimes=no)]) |
38 | ]])],ac_cv_futimes=yes,ac_cv_futimes=no)]) |
39 | test $ac_cv_futimes = yes && AC_DEFINE(HAVE_FUTIMES, 1, futimes(2) is available) |
39 | test $ac_cv_futimes = yes && AC_DEFINE(HAVE_FUTIMES, 1, futimes(2) is available) |
40 | |
40 | |
41 | AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([AC_LANG_SOURCE([ |
41 | AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([AC_LANG_SOURCE([ |
42 | #include <fcntl.h> |
42 | #include <fcntl.h> |
43 | int main (void) |
43 | int main (void) |