enabled)])],
[],
[enable_pthreaded_ubik="yes"])
+AC_ARG_ENABLE([ubik-read-while-write],
+ [AS_HELP_STRING([--enable-ubik-read-while-write],
+ [enable vlserver read from db cache during write locks (EXPERIMENTAL)])],
+ [],
+ [enable_ubik_read_while_write="no"])
dnl Kernel module build options.
AC_ARG_WITH([linux-kernel-headers],
*-solaris*)
MKAFS_OSTYPE=SOLARIS
AC_MSG_RESULT(sun4)
- AC_PATH_PROG(SOLARISCC, [cc], ,
- [/opt/SUNWspro/bin:/opt/SunStudioExpress/bin:/opt/solarisstudio12.3/bin:/opt/solstudio12.2/bin:/opt/sunstudio12.1/bin])
- if test "x$SOLARISCC" = "x" ; then
- AC_MSG_FAILURE(Could not find the solaris cc program. Please define the environment variable SOLARISCC to specify the path.)
- fi
+ SOLARIS_PATH_CC
+ SOLARIS_CC_TAKES_XVECTOR_NONE
+ AC_SUBST(SOLARIS_CC_KOPTS)
SOLARIS_UFSVFS_HAS_DQRWLOCK
SOLARIS_FS_HAS_FS_ROLLED
SOLARIS_SOLOOKUP_TAKES_SOCKPARAMS
AFS_SYSNAME="x86_darwin_150"
OSXSDK="macosx10.11"
;;
+ x86_64-apple-darwin16.*)
+ AFS_SYSNAME="x86_darwin_160"
+ OSXSDK="macosx10.12"
+ ;;
+ i?86-apple-darwin16.*)
+ AFS_SYSNAME="x86_darwin_160"
+ OSXSDK="macosx10.12"
+ ;;
sparc-sun-solaris2.8)
AFS_SYSNAME="sun4x_58"
;;
[#include <linux/fs.h>],
[void],
[struct inode *inode, void *link_data])
+ AC_CHECK_LINUX_OPERATION([inode_operations], [rename], [takes_flags],
+ [#include <linux/fs.h>],
+ [int],
+ [struct inode *oinode, struct dentry *odentry,
+ struct inode *ninode, struct dentry *ndentry,
+ unsigned int flags])
dnl Check for header files
AC_CHECK_LINUX_HEADER([config.h])
- AC_CHECK_LINUX_HEADER([completion.h])
AC_CHECK_LINUX_HEADER([exportfs.h])
AC_CHECK_LINUX_HEADER([freezer.h])
AC_CHECK_LINUX_HEADER([key-type.h])
AC_CHECK_LINUX_STRUCT([ctl_table], [ctl_name], [sysctl.h])
AC_CHECK_LINUX_STRUCT([dentry], [d_u.d_alias], [dcache.h])
AC_CHECK_LINUX_STRUCT([dentry_operations], [d_automount], [dcache.h])
+ AC_CHECK_LINUX_STRUCT([group_info], [gid], [cred.h])
AC_CHECK_LINUX_STRUCT([inode], [i_alloc_sem], [fs.h])
AC_CHECK_LINUX_STRUCT([inode], [i_blkbits], [fs.h])
AC_CHECK_LINUX_STRUCT([inode], [i_blksize], [fs.h])
AC_CHECK_LINUX_STRUCT([file_operations], [sendfile], [fs.h])
AC_CHECK_LINUX_STRUCT([file_system_type], [mount], [fs.h])
AC_CHECK_LINUX_STRUCT([inode_operations], [truncate], [fs.h])
+ AC_CHECK_LINUX_STRUCT([inode_operations], [get_link], [fs.h])
AC_CHECK_LINUX_STRUCT([key], [payload.value], [key.h])
AC_CHECK_LINUX_STRUCT([key_type], [instantiate_prep], [key-type.h])
AC_CHECK_LINUX_STRUCT([key_type], [match_preparse], [key-type.h])
AC_CHECK_LINUX_FUNC([do_sync_read],
[#include <linux/fs.h>],
[do_sync_read(NULL, NULL, 0, NULL);])
+ AC_CHECK_LINUX_FUNC([file_dentry],
+ [#include <linux/fs.h>],
+ [struct file *f; file_dentry(f);])
AC_CHECK_LINUX_FUNC([find_task_by_pid],
[#include <linux/sched.h>],
[pid_t p; find_task_by_pid(p);])
AC_CHECK_LINUX_FUNC([page_follow_link],
[#include <linux/fs.h>],
[page_follow_link(0,0);])
+ AC_CHECK_LINUX_FUNC([page_get_link],
+ [#include <linux/fs.h>],
+ [page_get_link(0,0,0);])
AC_CHECK_LINUX_FUNC([page_offset],
[#include <linux/pagemap.h>],
[page_offset(NULL);])
AC_CHECK_LINUX_FUNC([set_nlink],
[#include <linux/fs.h>],
[set_nlink(NULL, 1);])
+ AC_CHECK_LINUX_FUNC([setattr_prepare],
+ [#include <linux/fs.h>],
+ [setattr_prepare(NULL, NULL);])
AC_CHECK_LINUX_FUNC([sock_create_kern],
[#include <linux/net.h>],
[sock_create_kern(0, 0, 0, NULL);])
[#include <linux/kernel.h>
#include <linux/kthread.h>],
[kthread_run(NULL, NULL, "test");])
+ AC_CHECK_LINUX_FUNC([inode_nohighmem],
+ [#include <linux/fs.h>],
+ [inode_nohighmem(NULL);])
+ AC_CHECK_LINUX_FUNC([inode_lock],
+ [#include <linux/fs.h>],
+ [inode_lock(NULL);])
dnl Consequences - things which get set as a result of the
dnl above tests
if test -f "$LINUX_KERNEL_PATH/include/linux/mm_inline.h"; then
AC_DEFINE(HAVE_MM_INLINE_H, 1, [define if you have mm_inline.h header file])
fi
- if test "x$ac_cv_linux_kernel_page_follow_link" = "xyes" -o "x$ac_cv_linux_func_i_put_link_takes_cookie" = "xyes"; then
+ if test "x$ac_cv_linux_func_page_get_link" = "xyes" -o "x$ac_cv_linux_func_i_put_link_takes_cookie" = "xyes"; then
AC_DEFINE(USABLE_KERNEL_PAGE_SYMLINK_CACHE, 1, [define if your kernel has a usable symlink cache API])
else
AC_MSG_WARN([your kernel does not have a usable symlink cache API])
fi
+ if test "x$ac_cv_linux_func_page_get_link" != "xyes" -a "x$ac_cv_linux_struct_inode_operations_has_get_link" = "xyes"; then
+ AC_MSG_ERROR([Your kernel does not use follow_link - not supported without symlink cache API])
+ exit 1
+ fi
:
fi
if test "x$enable_linux_d_splice_alias_extra_iput" = xyes; then
fi
AC_SUBST(USE_UNIX_SOCKETS)
+if test "$enable_ubik_read_while_write" = "yes"; then
+ AC_DEFINE(UBIK_READ_WHILE_WRITE, 1, [define if you want to enable ubik read while write])
+fi
+
if test "$enable_namei_fileserver" = "yes"; then
AC_DEFINE(AFS_NAMEI_ENV, 1, [define if you want to want namei fileserver])
VFSCK=""
fi
if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_pam" = yes; then
- HAVE_PAM="YES"
+ HAVE_PAM="yes"
else
HAVE_PAM="no"
fi