aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorBen Walton <bwalton@artsci.utoronto.ca>2011-09-12 02:57:05 +0200
committerWayne Davison <wayned@samba.org>2011-09-11 18:48:52 -0700
commitc4170cbaacc78678110295dce810b8f8ae26ba28 (patch)
treea88ff4d8b3640c26884bc22a121049a1d5a02ba6 /configure.ac
parentde407c03d2f424829fc1af3db3260286788bd619 (diff)
downloadandroid_external_rsync-c4170cbaacc78678110295dce810b8f8ae26ba28.tar.gz
android_external_rsync-c4170cbaacc78678110295dce810b8f8ae26ba28.tar.bz2
android_external_rsync-c4170cbaacc78678110295dce810b8f8ae26ba28.zip
Better configure support for Solaris xattrs
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.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 9e6da5e5..8962b150 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])