aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-04-22 12:52:55 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-04-22 12:52:55 +0000
commit6bad5399dddddeed9c49ebc420d482eb8ea4cb42 (patch)
tree567cb774b1e0ebaf09bd8b194885ccc7d3fdeef4 /configure.ac
parent7bca36310de46b08f3148faca204a8ba834117fe (diff)
downloadpaludis-6bad5399dddddeed9c49ebc420d482eb8ea4cb42.tar.gz
paludis-6bad5399dddddeed9c49ebc420d482eb8ea4cb42.tar.xz
Preserve extended attributes, where supported
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0b87d1e..1047d59 100644
--- a/configure.ac
+++ b/configure.ac
@@ -473,6 +473,28 @@ AC_CHECK_FUNCS([lchflags])
AM_CONDITIONAL(HAVE_LCHFLAGS, test x$ac_cv_func_lchflags = xyes)
dnl }}}
+dnl {{{ check for listxattrf etc
+AC_MSG_CHECKING([for f*xattr function family])
+AC_COMPILE_IFELSE([
+#include <sys/types.h>
+#include <attr/xattr.h>
+
+int main(int, char **)
+{
+ flistxattr(0, 0, 0);
+ fgetxattr(0, 0, 0, 0);
+ fsetxattr(0, 0, 0, 0, 0);
+}
+],
+ [AC_MSG_RESULT([yes])
+ HAVE_XATTRS=yes],
+ [AC_MSG_RESULT([no])
+ HAVE_XATTRS=])
+if test "x$HAVE_XATTRS" = "xyes"; then
+ AC_DEFINE([HAVE_XATTRS], [1], [Have xattrs support])
+fi
+dnl }}}
+
dnl {{{ check for canonicalize_file_name function
AC_CHECK_FUNCS([canonicalize_file_name])
AM_CONDITIONAL(HAVE_CANONICALIZE_FILE_NAME, test x$ac_cv_func_canonicalize_file_name = xyes)