summaryrefslogtreecommitdiff
path: root/modules/qcopy-acl
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-01-13 09:30:29 +0100
committerBruno Haible <bruno@clisp.org>2023-01-13 09:30:29 +0100
commitbe8884dd02e43c1078aa8b751ae1a6f0ea0f245d (patch)
tree836415de48d956631df8eaa5c7310b5c9ec6e2b7 /modules/qcopy-acl
parent92e048ee346d70bb63d79b9f9e12d2227d7f6ae6 (diff)
downloadgnulib-be8884dd02e43c1078aa8b751ae1a6f0ea0f245d.tar.gz
qcopy-acl: Adjust link dependencies.
* modules/qcopy-acl (Depends-on): Add condition. (configure.ac): Set QCOPY_ACL_LIB. (Link): Add $(QCOPY_ACL_LIB). Remove $(LIB_ACL). * modules/qacl (Link): Add $(LIB_ACL) and $(QCOPY_ACL_LIB). * modules/acl (Link): Add $(LIB_ACL) and $(QCOPY_ACL_LIB). * modules/copy-file (Link): Add $(QCOPY_ACL_LIB). * modules/supersede (Link): Add $(QCOPY_ACL_LIB). * modules/acl-tests (Makefile.am): Link test-copy-acl with $(QCOPY_ACL_LIB). * modules/copy-file-tests (Makefile.am): Link test-copy-file with $(QCOPY_ACL_LIB). * modules/supersede-tests (Makefile.am): Link test-supersede with $(QCOPY_ACL_LIB).
Diffstat (limited to 'modules/qcopy-acl')
-rw-r--r--modules/qcopy-acl10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/qcopy-acl b/modules/qcopy-acl
index e0cd914953..8dd147927d 100644
--- a/modules/qcopy-acl
+++ b/modules/qcopy-acl
@@ -6,10 +6,16 @@ lib/qcopy-acl.c
m4/xattr.m4
Depends-on:
-acl-permissions
+acl-permissions [test "$use_xattr" != yes]
configure.ac:
gl_FUNC_XATTR
+if test "$use_xattr" = yes; then
+ QCOPY_ACL_LIB="$LIB_XATTR"
+else
+ QCOPY_ACL_LIB="$LIB_ACL"
+fi
+AC_SUBST([QCOPY_ACL_LIB])
Makefile.am:
lib_SOURCES += qcopy-acl.c
@@ -18,7 +24,7 @@ Include:
"acl.h"
Link:
-$(LIB_ACL)
+$(QCOPY_ACL_LIB)
License:
GPL