1 AC_CHECK_HEADERS(linux/inotify.h asm/unistd.h sys/inotify.h)
2 AC_CHECK_FUNC(inotify_init)
3 AC_HAVE_DECL(__NR_inotify_init, [#include <asm/unistd.h>])
5 SMB_ENABLE(sys_notify_inotify, NO)
7 if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_sys_inotify_h" = x"yes"; then
8 SMB_ENABLE(sys_notify_inotify, YES)
11 if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_linux_inotify_h" = x"yes"; then
12 SMB_ENABLE(sys_notify_inotify, YES)
15 if test x"$ac_cv_header_linux_inotify_h" = x"yes" -a x"$ac_cv_have___NR_inotify_init_decl" = x"yes"; then
16 SMB_ENABLE(sys_notify_inotify, YES)
19 AC_HAVE_DECL(F_SETLEASE, [#include <fcntl.h>])
20 AC_HAVE_DECL(SA_SIGINFO, [#include <signal.h>])
22 SMB_ENABLE(sys_lease_linux, NO)
24 if test x"$ac_cv_have_F_SETLEASE_decl" = x"yes" \
25 -a x"$ac_cv_have_SA_SIGINFO_decl" = x"yes"; then
26 SMB_ENABLE(sys_lease_linux, YES)