build: sys_lease_linux needs to be conditionally enabled
authorAndrew Tridgell <tridge@samba.org>
Tue, 23 Mar 2010 14:46:27 +0000 (10:46 -0400)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:01 +0000 (20:27 +1000)
source4/ntvfs/sysdep/wscript_build

index 8330d47d9bb2beee28b0dfb2983686d14a3d7d9d..eb9612936ca0af9efd07b7cbd3b9dde6d3129697 100644 (file)
@@ -4,21 +4,24 @@ bld.SAMBA_MODULE('sys_notify_inotify',
                  init_function='sys_notify_inotify_init',
                  deps='LIBEVENTS',
                  enabled = bld.CONFIG_SET('HAVE_LINUX_INOTIFY')
-       )
+                 )
 
 
 bld.SAMBA_SUBSYSTEM('sys_notify',
-       source='sys_notify.c'
-       )
+                    source='sys_notify.c'
+                    )
 
 
-bld.SAMBA_SUBSYSTEM('sys_lease_linux',
-       source='sys_lease_linux.c',
-       deps='tevent'
-       )
+bld.SAMBA_MODULE('sys_lease_linux',
+                 source='sys_lease_linux.c',
+                 deps='tevent',
+                 subsystem='sys_lease',
+                 init_function='sys_lease_linux_init',
+                 enabled = bld.CONFIG_SET('HAVE_F_SETLEASE_DECL')
+                 )
 
 
 bld.SAMBA_SUBSYSTEM('sys_lease',
-       source='sys_lease.c'
-       )
+                    source='sys_lease.c'
+                    )