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

Comparing IO-AIO/configure (file contents):
Revision 1.3 by root, Sun May 11 19:11:05 2008 UTC vs.
Revision 1.6 by root, Wed Oct 22 18:15:36 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
2861{ echo "$as_me:$LINENO: result: $ac_cv_preadwrite" >&5 2860{ echo "$as_me:$LINENO: result: $ac_cv_preadwrite" >&5
2862echo "${ECHO_T}$ac_cv_preadwrite" >&6; } 2861echo "${ECHO_T}$ac_cv_preadwrite" >&6; }
2863test $ac_cv_preadwrite = yes && 2862test $ac_cv_preadwrite = yes &&
2864cat >>confdefs.h <<\_ACEOF 2863cat >>confdefs.h <<\_ACEOF
2865#define HAVE_PREADWRITE 1 2864#define HAVE_PREADWRITE 1
2866_ACEOF
2867
2868
2869{ echo "$as_me:$LINENO: checking for readdir_r" >&5
2870echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; }
2871if test "${ac_cv_readdir_r+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873else
2874 cat >conftest.$ac_ext <<_ACEOF
2875
2876#include <dirent.h>
2877int main(void)
2878{
2879 DIR *dir = 0;
2880 struct dirent ent, *eres;
2881 int res = readdir_r (dir, &ent, &eres);
2882 return 0;
2883}
2884
2885_ACEOF
2886rm -f conftest.$ac_objext conftest$ac_exeext
2887if { (ac_try="$ac_link"
2888case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_link") 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest$ac_exeext &&
2903 $as_test_x conftest$ac_exeext; then
2904 ac_cv_readdir_r=yes
2905else
2906 echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909 ac_cv_readdir_r=no
2910fi
2911
2912rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2913 conftest$ac_exeext conftest.$ac_ext
2914fi
2915{ echo "$as_me:$LINENO: result: $ac_cv_readdir_r" >&5
2916echo "${ECHO_T}$ac_cv_readdir_r" >&6; }
2917test $ac_cv_readdir_r = yes &&
2918cat >>confdefs.h <<\_ACEOF
2919#define HAVE_READDIR_R 1
2920_ACEOF 2865_ACEOF
2921 2866
2922 2867
2923{ echo "$as_me:$LINENO: checking for sendfile" >&5 2868{ echo "$as_me:$LINENO: checking for sendfile" >&5
2924echo $ECHO_N "checking for sendfile... $ECHO_C" >&6; } 2869echo $ECHO_N "checking for sendfile... $ECHO_C" >&6; }
2987{ echo "$as_me:$LINENO: result: $ac_cv_sendfile" >&5 2932{ echo "$as_me:$LINENO: result: $ac_cv_sendfile" >&5
2988echo "${ECHO_T}$ac_cv_sendfile" >&6; } 2933echo "${ECHO_T}$ac_cv_sendfile" >&6; }
2989test $ac_cv_sendfile = yes && 2934test $ac_cv_sendfile = yes &&
2990cat >>confdefs.h <<\_ACEOF 2935cat >>confdefs.h <<\_ACEOF
2991#define HAVE_SENDFILE 1 2936#define HAVE_SENDFILE 1
2937_ACEOF
2938
2939
2940{ echo "$as_me:$LINENO: checking for sync_file_range" >&5
2941echo $ECHO_N "checking for sync_file_range... $ECHO_C" >&6; }
2942if test "${ac_cv_sync_file_range+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945 cat >conftest.$ac_ext <<_ACEOF
2946
2947#include <fcntl.h>
2948int main(void)
2949{
2950 int fd = 0;
2951 off64_t offset = 1;
2952 off64_t nbytes = 1;
2953 unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE|SYNC_FILE_RANGE_WAIT_AFTER;
2954 ssize_t res;
2955 res = sync_file_range (fd, offset, nbytes, flags);
2956 return 0;
2957}
2958
2959_ACEOF
2960rm -f conftest.$ac_objext conftest$ac_exeext
2961if { (ac_try="$ac_link"
2962case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965esac
2966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_link") 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } && {
2974 test -z "$ac_c_werror_flag" ||
2975 test ! -s conftest.err
2976 } && test -s conftest$ac_exeext &&
2977 $as_test_x conftest$ac_exeext; then
2978 ac_cv_sync_file_range=yes
2979else
2980 echo "$as_me: failed program was:" >&5
2981sed 's/^/| /' conftest.$ac_ext >&5
2982
2983 ac_cv_sync_file_range=no
2984fi
2985
2986rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2987 conftest$ac_exeext conftest.$ac_ext
2988fi
2989{ echo "$as_me:$LINENO: result: $ac_cv_sync_file_range" >&5
2990echo "${ECHO_T}$ac_cv_sync_file_range" >&6; }
2991test $ac_cv_sync_file_range = yes &&
2992cat >>confdefs.h <<\_ACEOF
2993#define HAVE_SYNC_FILE_RANGE 1
2992_ACEOF 2994_ACEOF
2993 2995
2994 2996
2995 2997
2996 2998

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines