waf: Require ACL support to be specifically disabled
authorGarming Sam <garming@catalyst.net.nz>
Sun, 15 Dec 2013 23:45:45 +0000 (12:45 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 7 Jan 2014 03:13:26 +0000 (04:13 +0100)
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
source3/wscript

index f87a0a870057dc1254aa24ecdce26aefc98dbd0b..4578b0ae22efa70c6f4866fab5eb6b1fc71868ad 100644 (file)
@@ -428,7 +428,12 @@ utimensat vsyslog _write __write __xstat
                 conf.DEFINE('HAVE_TRU64_ACLS',1)
                 default_static_modules.extend(TO_LIST('vfs_tru64acl'))
         elif (host_os.rfind('darwin') > -1):
-            Logs.warn('ACLs on Dwarwin currently not supported')
+            Logs.warn('ACLs on Darwin currently not supported')
+            conf.fatal("ACL support not available on Darwin/MacOS. "
+                       "Use --without-acl-support for building without "
+                       "ACL support. "
+                       "ACL support is required to change permissions "
+                       "from Windows clients.")
         else:
             conf.CHECK_FUNCS_IN('acl_get_file', 'acl')
             if conf.CHECK_CODE('''
@@ -449,7 +454,13 @@ return acl_get_perm_np(permset_d, perm);
                         headers='sys/types.h sys/acl.h', link=True,
                         msg="Checking whether acl_get_perm_np() is available")
                 default_static_modules.extend(TO_LIST('vfs_posixacl'))
-
+            else:
+                conf.fatal("ACL support not found. Try installing libacl1-dev "
+                           "or libacl-devel.  "
+                           "Otherwise, use --without-acl-support to build "
+                           "without ACL support. "
+                           "ACL support is required to change permissions from "
+                           "Windows clients.")
 
     if conf.CHECK_FUNCS('dirfd'):
         conf.DEFINE('HAVE_DIRFD_DECL', 1)