1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/source4/ntvfs/sysdep/config.m4
Andrew Tridgell b1b58a1dcf use glibc sys/inotify.h header
when we first added the inotify code glibc didn't have the inotify
functions yet. Now that it does we can use the official header and
avoid the asm/unistd.h syscall workaround
2008-10-30 15:53:46 +11:00

28 lines
882 B
Plaintext

AC_CHECK_HEADERS(linux/inotify.h asm/unistd.h sys/inotify.h)
AC_CHECK_FUNC(inotify_init)
AC_HAVE_DECL(__NR_inotify_init, [#include <asm/unistd.h>])
SMB_ENABLE(sys_notify_inotify, NO)
if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_sys_inotify_h" = x"yes"; then
SMB_ENABLE(sys_notify_inotify, YES)
fi
if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_linux_inotify_h" = x"yes"; then
SMB_ENABLE(sys_notify_inotify, YES)
fi
if test x"$ac_cv_header_linux_inotify_h" = x"yes" -a x"$ac_cv_have___NR_inotify_init_decl" = x"yes"; then
SMB_ENABLE(sys_notify_inotify, YES)
fi
AC_HAVE_DECL(F_SETLEASE, [#include <fcntl.h>])
AC_HAVE_DECL(SA_SIGINFO, [#include <signal.h>])
SMB_ENABLE(sys_lease_linux, NO)
if test x"$ac_cv_have_F_SETLEASE_decl" = x"yes" \
-a x"$ac_cv_have_SA_SIGINFO_decl" = x"yes"; then
SMB_ENABLE(sys_lease_linux, YES)
fi