Minor configuration fix to disable ACL support on MacOS X (which
lacks ACL_USER). Thanks to: Marcus Geiger, Joe Esch, and Markus Slopianka
This commit is contained in:
parent
0f215b41b5
commit
ae8fd24a2e
@ -49,6 +49,7 @@
|
||||
#define HAVE_ACL_SET_FD 1
|
||||
#define HAVE_ACL_SET_FD_NP 1
|
||||
#define HAVE_ACL_SET_FILE 1
|
||||
#define HAVE_ACL_USER 1
|
||||
#endif
|
||||
#define HAVE_BZLIB_H 1
|
||||
#define HAVE_CHFLAGS 1
|
||||
@ -122,11 +123,11 @@
|
||||
#endif
|
||||
|
||||
/*
|
||||
* If this platform has <sys/acl.h>, acl_create(), acl_init(), and
|
||||
* acl_set_file(), we assume it has the rest of the POSIX.1e draft
|
||||
* functions used in archive_read_extract.c.
|
||||
* If this platform has <sys/acl.h>, acl_create(), acl_init(),
|
||||
* acl_set_file(), and ACL_USER, we assume it has the rest of the
|
||||
* POSIX.1e draft functions used in archive_read_extract.c.
|
||||
*/
|
||||
#if HAVE_SYS_ACL_H && HAVE_ACL_CREATE_ENTRY && HAVE_ACL_INIT && HAVE_ACL_SET_FILE
|
||||
#if HAVE_SYS_ACL_H && HAVE_ACL_CREATE_ENTRY && HAVE_ACL_INIT && HAVE_ACL_SET_FILE && HAVE_ACL_USER
|
||||
#define HAVE_POSIX_ACL 1
|
||||
#endif
|
||||
|
||||
|
@ -77,6 +77,14 @@ AC_CHECK_FUNCS([chflags fchdir fchflags fchmod fchown futimes])
|
||||
AC_CHECK_FUNCS([lchflags lchmod lchown lutimes memmove])
|
||||
AC_CHECK_FUNCS([memset mkdir mkfifo strchr strdup strerror strrchr])
|
||||
|
||||
# MacOS has an acl.h that isn't POSIX. It can be detected by
|
||||
# checking for ACL_USER
|
||||
AC_CHECK_DECL([ACL_USER],
|
||||
[AC_DEFINE(HAVE_ACL_USER, 1, [True for systems with POSIX ACL support])],
|
||||
[],
|
||||
[#include <sys/acl.h>])
|
||||
|
||||
|
||||
# Additional requirements
|
||||
AC_SYS_LARGEFILE
|
||||
AC_SUBST(ARCHIVE_API_VERSION,[1])
|
||||
|
Loading…
Reference in New Issue
Block a user