diff options
Diffstat (limited to 'source3/configure.in')
-rw-r--r-- | source3/configure.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in index 86228a3e6c..5e019c0015 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1582,6 +1582,30 @@ case "$host_os" in ;; esac +######################################################## +# Do xattr functions take additional options like on Darwin? +if test x"$ac_cv_func_getxattr" = x"yes" ; then + AC_CACHE_CHECK([whether xattr interface takes additional options], smb_attr_cv_xattr_add_opt, [ + old_LIBS=$LIBS + LIBS="$LIBS $ACL_LIBS" + AC_TRY_COMPILE([ + #include <sys/types.h> + #if HAVE_ATTR_XATTR_H + #include <attr/xattr.h> + #elif HAVE_SYS_XATTR_H + #include <sys/xattr.h> + #endif + ],[ + getxattr(0, 0, 0, 0, 0, 0); + ], + [smb_attr_cv_xattr_add_opt=yes], + [smb_attr_cv_xattr_add_opt=no;LIBS=$old_LIBS]) + ]) + if test x"$smb_attr_cv_xattr_add_opt" = x"yes"; then + AC_DEFINE(XATTR_ADD_OPT, 1, [xattr functions have additional options]) + fi +fi + # Check if we have extattr case "$host_os" in *freebsd4* | *dragonfly* ) |