X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=acinclude.m4;h=2fa43b8c9195fe638d85f238ae3e735e6615083c;hp=510338816d4c67735e40d65a6a45a9f87c23cd8f;hb=11b2c6d6fe4dbbf5a54ae1e08e979c35ab6b7fa0;hpb=f378dcf785967374309523a02ea06d6d1a3ff148 diff --git a/acinclude.m4 b/acinclude.m4 index 5103388..2fa43b8 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1449,22 +1449,29 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([#ifdef HAVE_SYS_TYPES_H ], [AC_MSG_RESULT(no)]) -AC_MSG_CHECKING([for positional I/O]) -if test "$ac_cv_func_pread" = "yes" && \ - test "$ac_cv_func_pwrite" = "yes"; then - AC_DEFINE(HAVE_PIO, 1, [define if you have pread() and pwrite()]) - AC_MSG_RESULT(yes) -else - 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 +case $AFS_SYSNAME in +*hp_ux* | *hpux*) + AC_MSG_WARN([Some versions of HP-UX have a buggy positional I/O implementation. Forcing no positional I/O.]) + ;; +*) + AC_MSG_CHECKING([for positional I/O]) + if test "$ac_cv_func_pread" = "yes" && \ + test "$ac_cv_func_pwrite" = "yes"; then + AC_DEFINE(HAVE_PIO, 1, [define if you have pread() and pwrite()]) + AC_MSG_RESULT(yes) + else + 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 + ;; +esac AC_MSG_CHECKING([for POSIX regex library]) if test "$ac_cv_header_regex_h" = "yes" && \