1 AC_DEFUN([AC_PACKAGE_NEED_ATTR_XATTR_H],
2 [ AC_CHECK_HEADERS([attr/xattr.h])
3 if test "$ac_cv_header_attr_xattr_h" != "yes"; then
5 echo 'FATAL ERROR: attr/xattr.h does not exist.'
6 echo 'Install the extended attributes (attr) development package.'
7 echo 'Alternatively, run "make install-lib" from the attr source.'
12 AC_DEFUN([AC_PACKAGE_NEED_ATTR_ERROR_H],
13 [ AC_CHECK_HEADERS([attr/error_context.h])
14 if test "$ac_cv_header_attr_error_context_h" != "yes"; then
16 echo 'FATAL ERROR: attr/error_context.h does not exist.'
17 echo 'Install the extended attributes (attr) development package.'
18 echo 'Alternatively, run "make install-lib" from the attr source.'
23 AC_DEFUN([AC_PACKAGE_NEED_ATTRIBUTES_H],
24 [ have_attributes_h=false
25 AC_CHECK_HEADERS([attr/attributes.h sys/attributes.h], [have_attributes_h=true], )
26 if test "$have_attributes_h" = "false"; then
28 echo 'FATAL ERROR: attributes.h does not exist.'
29 echo 'Install the extended attributes (attr) development package.'
30 echo 'Alternatively, run "make install-lib" from the attr source.'
35 AC_DEFUN([AC_PACKAGE_WANT_ATTRLIST_LIBATTR],
36 [ AC_CHECK_LIB(attr, attr_list, [have_attr_list=true], [have_attr_list=false])
37 AC_SUBST(have_attr_list)
40 AC_DEFUN([AC_PACKAGE_NEED_GETXATTR_LIBATTR],
41 [ AC_CHECK_LIB(attr, getxattr,, [
43 echo 'FATAL ERROR: could not find a valid Extended Attributes library.'
44 echo 'Install the extended attributes (attr) development package.'
45 echo 'Alternatively, run "make install-lib" from the attr source.'
49 test -f `pwd`/../attr/libattr/libattr.la && \
50 libattr="`pwd`/../attr/libattr/libattr.la"
51 test -f /usr/lib/libattr.la && libattr="/usr/lib/libattr.la"
55 AC_DEFUN([AC_PACKAGE_NEED_ATTRGET_LIBATTR],
56 [ AC_CHECK_LIB(attr, attr_get,, [
58 echo 'FATAL ERROR: could not find a valid Extended Attributes library.'
59 echo 'Install the extended attributes (attr) development package.'
60 echo 'Alternatively, run "make install-lib" from the attr source.'
64 test -f `pwd`/../attr/libattr/libattr.la && \
65 libattr="`pwd`/../attr/libattr/libattr.la"
66 test -f /usr/lib/libattr.la && libattr="/usr/lib/libattr.la"
70 AC_DEFUN([AC_PACKAGE_NEED_ATTRIBUTES_MACROS],
71 [ AC_MSG_CHECKING([macros in attr/attributes.h])
73 #include <sys/types.h>
74 #include <attr/attributes.h>],
75 [ int x = ATTR_SECURE; ], [ echo ok ], [
77 echo 'FATAL ERROR: could not find a current attributes header.'
78 echo 'Upgrade the extended attributes (attr) development package.'
79 echo 'Alternatively, run "make install-dev" from the attr source.'