From 9b62a95e4d5182cca70c690fa810aa5d99a22049 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sun, 6 Mar 2011 16:06:36 +0000 Subject: [PATCH] Disable vectored positional IO if no 64bit support In order to support vectored positional I/O, and large files, we need there to be an implementation of preadv64 and pwritev64. If this isn't present, then just disable HAVE_PIOV. (cherry picked from commit 98a0c2f47b8641e3e31ed7d2f7d84c2eb484ef51) Reviewed-on: http://gerrit.openafs.org/4153 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear Change-Id: I4e199c748d7b88ff7076106b19c3dec0e60be39a Reviewed-on: http://gerrit.openafs.org/4160 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- acinclude.m4 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 55f6274aa..51f2f6d2d 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1266,7 +1266,7 @@ AC_CHECK_FUNCS(snprintf strlcat strlcpy flock getrlimit) AC_CHECK_FUNCS(setprogname getprogname sigaction mkstemp vsnprintf strerror strcasestr) AC_CHECK_FUNCS(setvbuf vsyslog getcwd) AC_CHECK_FUNCS(regcomp regexec regerror) -AC_CHECK_FUNCS(fseeko64 ftello64 pread preadv pwrite pwritev) +AC_CHECK_FUNCS(fseeko64 ftello64 pread preadv pwrite pwritev preadv64 pwritev64) case $AFS_SYSNAME in *hp_ux* | *hpux*) @@ -1282,13 +1282,13 @@ case $AFS_SYSNAME in AC_MSG_RESULT(no) fi AC_MSG_CHECKING([for vectored positional I/O]) - if test "$ac_cv_func_preadv" = "yes" && \ - test "$ac_cv_func_pwritev" = "yes"; then - AC_DEFINE(HAVE_PIOV, 1, [define if you have preadv() and pwritev()]) - AC_MSG_RESULT(yes) - else - AC_MSG_RESULT(no) - fi + AS_IF([test "$ac_cv_func_preadv" = "yes" -a \ + "$ac_cv_func_pwritev" = "yes" -a \ + "$ac_cv_func_preadv64" = "yes" -a \ + "$ac_cv_func_pwritev64" = "yes"], + [AC_DEFINE(HAVE_PIOV, 1, [define if you have preadv() and pwritev()]) + AC_MSG_RESULT(yes)], + [AC_MSG_RESULT(no)]) ;; esac -- 2.39.5