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

Comparing IO-AIO/configure (file contents):
Revision 1.2 by root, Sun May 11 01:03:33 2008 UTC vs.
Revision 1.5 by root, Fri May 30 04:54:13 2008 UTC

2708 2708
2709#include <fcntl.h> 2709#include <fcntl.h>
2710int main(void) 2710int main(void)
2711{ 2711{
2712 int fd = 0; 2712 int fd = 0;
2713 off64_t offset = 1;
2714 size_t count = 2; 2713 size_t count = 2;
2715 ssize_t res; 2714 ssize_t res;
2716 res = readahead (fd, offset, count); 2715 res = readahead (fd, 0, count);
2717 return 0; 2716 return 0;
2718} 2717}
2719 2718
2720_ACEOF 2719_ACEOF
2721rm -f conftest.$ac_objext conftest$ac_exeext 2720rm -f conftest.$ac_objext conftest$ac_exeext
2752test $ac_cv_readahead = yes && 2751test $ac_cv_readahead = yes &&
2753cat >>confdefs.h <<\_ACEOF 2752cat >>confdefs.h <<\_ACEOF
2754#define HAVE_READAHEAD 1 2753#define HAVE_READAHEAD 1
2755_ACEOF 2754_ACEOF
2756 2755
2757test $ac_cv_readahead = yes &&
2758cat >>confdefs.h <<\_ACEOF
2759#define _GNU_SOURCE 1
2760_ACEOF
2761
2762 2756
2763{ echo "$as_me:$LINENO: checking for fdatasync" >&5 2757{ echo "$as_me:$LINENO: checking for fdatasync" >&5
2764echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } 2758echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
2765if test "${ac_cv_fdatasync+set}" = set; then 2759if test "${ac_cv_fdatasync+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6 2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2866{ echo "$as_me:$LINENO: result: $ac_cv_preadwrite" >&5 2860{ echo "$as_me:$LINENO: result: $ac_cv_preadwrite" >&5
2867echo "${ECHO_T}$ac_cv_preadwrite" >&6; } 2861echo "${ECHO_T}$ac_cv_preadwrite" >&6; }
2868test $ac_cv_preadwrite = yes && 2862test $ac_cv_preadwrite = yes &&
2869cat >>confdefs.h <<\_ACEOF 2863cat >>confdefs.h <<\_ACEOF
2870#define HAVE_PREADWRITE 1 2864#define HAVE_PREADWRITE 1
2871_ACEOF
2872
2873
2874{ echo "$as_me:$LINENO: checking for readdir_r" >&5
2875echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; }
2876if test "${ac_cv_readdir_r+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878else
2879 cat >conftest.$ac_ext <<_ACEOF
2880
2881#include <dirent.h>
2882int main(void)
2883{
2884 DIR *dir = 0;
2885 struct dirent ent, *eres;
2886 int res = readdir_r (dir, &ent, &eres);
2887 return 0;
2888}
2889
2890_ACEOF
2891rm -f conftest.$ac_objext conftest$ac_exeext
2892if { (ac_try="$ac_link"
2893case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_link") 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } && {
2905 test -z "$ac_c_werror_flag" ||
2906 test ! -s conftest.err
2907 } && test -s conftest$ac_exeext &&
2908 $as_test_x conftest$ac_exeext; then
2909 ac_cv_readdir_r=yes
2910else
2911 echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914 ac_cv_readdir_r=no
2915fi
2916
2917rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2918 conftest$ac_exeext conftest.$ac_ext
2919fi
2920{ echo "$as_me:$LINENO: result: $ac_cv_readdir_r" >&5
2921echo "${ECHO_T}$ac_cv_readdir_r" >&6; }
2922test $ac_cv_readdir_r = yes &&
2923cat >>confdefs.h <<\_ACEOF
2924#define HAVE_READDIR_R 1
2925_ACEOF 2865_ACEOF
2926 2866
2927 2867
2928{ echo "$as_me:$LINENO: checking for sendfile" >&5 2868{ echo "$as_me:$LINENO: checking for sendfile" >&5
2929echo $ECHO_N "checking for sendfile... $ECHO_C" >&6; } 2869echo $ECHO_N "checking for sendfile... $ECHO_C" >&6; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines