r15029: fixed the detection of inotify
authorAndrew Tridgell <tridge@samba.org>
Tue, 11 Apr 2006 01:19:20 +0000 (01:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:04:02 +0000 (14:04 -0500)
(This used to be commit 5471b4b1a812dad3c97c97b938bd2dc41ae32420)

source4/ntvfs/sysdep/config.m4

index 46787f9f0fddbe8680952d5b8f7bec96fefc49b8..f70cac5e642dc0039e77f3936074995c4cd7afb6 100644 (file)
@@ -1,6 +1,6 @@
 AC_CHECK_HEADERS(linux/inotify.h asm/unistd.h)
 AC_CHECK_FUNC(inotify_init)
-AC_CHECK_DECL(__NR_inotify_init)
+AC_HAVE_DECL(__NR_inotify_init, [#include <asm/unistd.h>])
 
 SMB_ENABLE(sys_notify_inotify, NO)
 
@@ -8,6 +8,6 @@ if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_linux_inotify_h"
     SMB_ENABLE(sys_notify_inotify, YES)
 fi
 
-if test x"$ac_cv_header_linux_inotify_h" = x"yes" -a x"$ac_cv_have_decl___NR_inotify_init"; then
+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