Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / cf / hpux.m4
1 AC_DEFUN([OPENAFS_HPUX_CHECKS],[
2 case $AFS_SYSNAME in
3 *hp_ux* | *hpux*)
4 AC_MSG_WARN([Some versions of HP-UX have a buggy positional I/O implementation. Forcing no positional I/O.])
5 ;;
6 *)
7 AC_MSG_CHECKING([for positional I/O])
8 if test "$ac_cv_func_pread" = "yes" && \
9 test "$ac_cv_func_pwrite" = "yes"; then
10 AC_DEFINE(HAVE_PIO, 1, [define if you have pread() and pwrite()])
11 AC_MSG_RESULT(yes)
12 else
13 AC_MSG_RESULT(no)
14 fi
15 AC_MSG_CHECKING([for vectored positional I/O])
16 AS_IF([test "$ac_cv_func_preadv" = "yes" -a \
17 "$ac_cv_func_pwritev" = "yes" -a \
18 "$ac_cv_func_preadv64" = "yes" -a \
19 "$ac_cv_func_pwritev64" = "yes"],
20 [AC_DEFINE(HAVE_PIOV, 1, [define if you have preadv() and pwritev()])
21 AC_MSG_RESULT(yes)],
22 [AC_MSG_RESULT(no)])
23 ;;
24 esac
25 ])