summaryrefslogtreecommitdiff
path: root/modules/acl
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-04-24 22:07:56 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2015-04-24 22:08:28 -0700
commit800807020745a5d10b95f5b9f2a9026c6de5968f (patch)
tree124087742f816e2f7d215ac929a8c87f67f6b6ce /modules/acl
parentdf82ac05f6f308ccf07a456242dae34500ea9b9b (diff)
downloadgnulib-800807020745a5d10b95f5b9f2a9026c6de5968f.tar.gz
file-has-acl: new module, split from acl
And add a new module file-has-acl-tests to match. I ran into a problem with the recent changes to the acl module, as they introduced a typo 'test use_xattrs = 0' into 'configure'. When using the fixed version with Emacs, I discovered that file-has-acl wasn't separated out well enough for Emacs (e.g., it had multiple libraries, but needed only one), so I fixed that too. * NEWS: Document this incompatible change. * modules/file-has-acl, modules/file-has-acl-tests: New files. * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL. Initialize gl_need_lib_has_acl. (gl_FUNC_ACL): Require it. Simplify use of 'test'. Set LIB_HAS_ACL if gl_need_lib_has_acl. Move the file-has-acl.c-relevant stuff to ... (gl_FILE_HAS_ACL): ... this new macro. Rewrite to fix 'test use_xattrs = 0' typo, and omit some needless work. Set gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set when gl_FUNC_ACL is called. * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c. (Link): Remove $(LIB_HAS_ACL). * modules/acl-tests (Files, Depends-on, configure.ac, TESTS) (check_PROGRAMS): Move stuff relevant to file-has-acl to modules/file-has-acl-tests. (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
Diffstat (limited to 'modules/acl')
-rw-r--r--modules/acl4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/acl b/modules/acl
index 7faec17163..d5d3450365 100644
--- a/modules/acl
+++ b/modules/acl
@@ -2,7 +2,6 @@ Description:
Access control lists of files, with diagnostics. (Unportable.)
Files:
-lib/file-has-acl.c
lib/copy-acl.c
lib/set-acl.c
@@ -16,14 +15,13 @@ stdbool
configure.ac:
Makefile.am:
-lib_SOURCES += file-has-acl.c copy-acl.c set-acl.c
+lib_SOURCES += copy-acl.c set-acl.c
Include:
"acl.h"
Link:
$(LIB_ACL)
-$(LIB_HAS_ACL)
License:
GPL