s3-waf: add check for fcntl locking.
authorGünther Deschner <gd@samba.org>
Wed, 16 Feb 2011 15:51:14 +0000 (16:51 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 16 Feb 2011 17:39:28 +0000 (18:39 +0100)
Guenther

source3/wscript

index bbb25eeedca59967da475c45ccab8af40e4caa29..8ce2a129ce487ab5617fa17978a36a673fa64a9a 100644 (file)
@@ -1006,6 +1006,14 @@ int i; i = PAM_RADIO_TYPE;
     else:
         conf.undefine('HAVE_STRUCT_DIRENT64')
 
+    conf.CHECK_CODE('''
+#include "../tests/fcntl_lock.c"
+''',
+               'HAVE_FCNTL_LOCK',
+               addmain=False,
+               execute=True,
+               msg='Checking whether fcntl locking is available')
+
     default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam
                                       auth_sam auth_unix auth_winbind auth_wbc auth_server
                                       auth_domain auth_builtin vfs_default