]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Better configure support for Solaris xattrs
authorBen Walton <bwalton@artsci.utoronto.ca>
Mon, 12 Sep 2011 00:57:05 +0000 (02:57 +0200)
committerWayne Davison <wayned@samba.org>
Mon, 12 Sep 2011 01:48:52 +0000 (18:48 -0700)
If we have the attropen() function, allow OS conditional enabling of
extended attribute support.  This removes the need to pass
--enable-extended-attributes to force the feature activation on Solaris.

configure.ac

index 9e6da5e56a898eacf446c25d31c4fb464ffb199a..8962b1500b1a0c6cc1f7cce8d047a96937cd7ca4 100644 (file)
@@ -593,7 +593,7 @@ AC_CHECK_FUNCS(waitpid wait4 getcwd strdup chown chmod lchmod mknod mkfifo \
     setlocale setmode open64 lseek64 mkstemp64 mtrace va_copy __va_copy \
     seteuid strerror putenv iconv_open locale_charset nl_langinfo getxattr \
     extattr_get_link sigaction sigprocmask setattrlist getgrouplist \
-    initgroups utimensat posix_fallocate)
+    initgroups utimensat posix_fallocate attropen)
 
 dnl cygwin iconv.h defines iconv_open as libiconv_open
 if test x"$ac_cv_func_iconv_open" != x"yes"; then
@@ -1011,7 +1011,7 @@ AC_MSG_CHECKING(whether to support extended attributes)
 AC_ARG_ENABLE(xattr-support,
     AC_HELP_STRING([--disable-xattr-support],
            [disable extended attributes]),
-    [], [case "$ac_cv_func_getxattr$ac_cv_func_extattr_get_link" in
+    [], [case "$ac_cv_func_getxattr$ac_cv_func_extattr_get_link$ac_cv_func_attropen" in
        *yes*) enable_xattr_support=maybe ;;
        *) enable_xattr_support=no ;;
        esac])