source: branches/samba-3.5.x/source4/ntvfs/sysdep/config.m4

Last change on this file was 414, checked in by Herwig Bauernfeind, 16 years ago

Samba 3.5.0: Initial import

File size: 882 bytes
Line 
1AC_CHECK_HEADERS(linux/inotify.h asm/unistd.h sys/inotify.h)
2AC_CHECK_FUNC(inotify_init)
3AC_HAVE_DECL(__NR_inotify_init, [#include <asm/unistd.h>])
4
5SMB_ENABLE(sys_notify_inotify, NO)
6
7if 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)
9fi
10
11if 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)
13fi
14
15if 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)
17fi
18
19AC_HAVE_DECL(F_SETLEASE, [#include <fcntl.h>])
20AC_HAVE_DECL(SA_SIGINFO, [#include <signal.h>])
21
22SMB_ENABLE(sys_lease_linux, NO)
23
24if 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)
27fi
Note: See TracBrowser for help on using the repository browser.