@@ -139,6 +139,11 @@ AC_CHECK_LIB([ssl], [SSL_CTX_new],
AC_DEFINE([HAVE_LIBSSL], [1],
[Define if you have libssl])],
[AC_MSG_ERROR([libssl not found.])])
+AC_CHECK_LIB([attr], [fgetxattr],
+ [AC_SUBST([LIBATTR], ["-lattr"])
+ AC_DEFINE([HAVE_LIBATTR], [1],
+ [Define if you have libattr])],
+ [AC_MSG_ERROR([libattr not found.])])
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h langinfo.h locale.h memory.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h syslog.h termios.h unistd.h wchar.h])
libattr.so and headers under /usr/include/attr/ should be called out by configure.ac if they can't be found on the build system. Introduced by commit 0520ee72 "Initial commit", Tue Mar 29 15:37:40 2011. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+)