[struct timespec s;
s = current_kernel_time();])
AC_CHECK_LINUX_FUNC([d_alloc_anon],
- [#include <linux/dcache.h>],
+ [#include <linux/fs.h>],
[d_alloc_anon(NULL);])
AC_CHECK_LINUX_FUNC([do_sync_read],
[#include <linux/fs.h>],
LINUX_INIT_WORK_HAS_DATA
LINUX_REGISTER_SYSCTL_TABLE_NOFLAG
LINUX_HAVE_DCACHE_LOCK
+ LINUX_D_COUNT_IS_INT
dnl If we are guaranteed that keyrings will work - that is
dnl a) The kernel has keyrings enabled
ncurses.h \
netdb.h \
netinet/in.h \
+ pwd.h \
regex.h \
security/pam_modules.h \
signal.h \
sys/statfs.h \
sys/statvfs.h \
sys/socket.h \
+ sys/sysctl.h \
sys/time.h \
sys/types.h \
+ sys/uio.h \
sys/un.h \
sys/vfs.h \
syslog.h \
mkstemp \
pread \
preadv \
+ preadv64 \
pwrite \
pwritev \
+ pwritev64 \
regcomp \
regerror \
regexec \
sigaction \
strcasestr \
strerror \
+ sysconf \
+ sysctl \
timegm \
])
AC_CHECK_FUNCS([ \
chown \
fchown \
- getdtablesize \
gethostname \
gettimeofday \
localtime_r \
erealloc \
err \
errx \
+ getdtablesize \
getopt \
getprogname \
mkstemp \
],
[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])
+ 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
AC_MSG_CHECKING([for POSIX regex library])
if test "$ac_cv_header_regex_h" = "yes" && \
dnl Eventually, this will look for the system one, or for OpenSSL
LIB_hcrypto="-lafshcrypto"
+LDFLAGS_hcrypto="-L\$(TOP_LIBDIR)"
AC_SUBST(LIB_hcrypto)
+AC_SUBST(LDFLAGS_hcrypto)
])
AC_DEFUN([SUMMARY], [