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.1 by root, Sun May 11 00:01:03 2008 UTC vs.
Revision 1.2 by root, Wed Dec 1 04:43:13 2010 UTC

5 5
6AC_PROG_CC 6AC_PROG_CC
7 7
8m4_include([libeio/libeio.m4]) 8m4_include([libeio/libeio.m4])
9 9
10dnl at least uclibc defines _POSIX_ADVISORY_INFO without *any* of the required
11dnl functionality actually being present. ugh.
12AC_CACHE_CHECK(for posix_madvise, ac_cv_posix_madvise, [AC_LINK_IFELSE([
13#include <sys/mman.h>
14int main (void)
15{
16 int res = posix_madvise ((void *)0, (size_t)0, POSIX_MADV_NORMAL);
17 int a = POSIX_MADV_SEQUENTIAL;
18 int b = POSIX_MADV_RANDOM;
19 int c = POSIX_MADV_WILLNEED;
20 int d = POSIX_MADV_DONTNEED;
21 return 0;
22}
23],ac_cv_posix_madvise=yes,ac_cv_posix_madvise=no)])
24test $ac_cv_posix_madvise = yes && AC_DEFINE(HAVE_POSIX_MADVISE, 1, posix_madvise(2) is available)
25
26AC_CACHE_CHECK(for posix_fadvise, ac_cv_posix_fadvise, [AC_LINK_IFELSE([
27#define _XOPEN_SOURCE 600
28#include <fcntl.h>
29int main (void)
30{
31 int res = posix_fadvise ((int)0, (off_t)0, (off_t)0, POSIX_FADV_NORMAL);
32 int a = POSIX_FADV_SEQUENTIAL;
33 int b = POSIX_FADV_NOREUSE;
34 int c = POSIX_FADV_RANDOM;
35 int d = POSIX_FADV_WILLNEED;
36 int e = POSIX_FADV_DONTNEED;
37 return 0;
38}
39],ac_cv_posix_fadvise=yes,ac_cv_posix_fadvise=no)])
40test $ac_cv_posix_fadvise = yes && AC_DEFINE(HAVE_POSIX_FADVISE, 1, posix_fadvise(2) is available)
41
10AC_OUTPUT 42AC_OUTPUT

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines