From: Marco van Wieringen Date: Thu, 23 Sep 2010 12:41:01 +0000 (+0200) Subject: Added configure support for the AIX extended attributes interface. X-Git-Tag: Release-7.0.0~1547 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=df6083e88402cf6b623568737a3dbcb1742548de;p=bacula%2Fbacula Added configure support for the AIX extended attributes interface. --- diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index a2064b8ce4..1071a6e2ba 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -2683,7 +2683,33 @@ if test x$support_xattr = xyes -o x$support_xattr = xauto; then fi dnl - dnl If we failed to find *BSD support try the Linux or OSX implementation of xattr + dnl If we failed to find *BSD support try the AIX implementation of extented attributes (EA) + dnl + if test $have_xattr = no; then + AC_CHECK_HEADER(sys/ea.h, [ AC_DEFINE(HAVE_SYS_EA_H,1,[Defines if your system have the sys/ea.h header file])] , ) + AC_CHECK_FUNCS(llistea lgetea lsetea, + [ + have_xattr=yes + AC_DEFINE([HAVE_LLISTEA],1,[Define to 1 if you have the 'llistea' function.]) + AC_DEFINE([HAVE_LGETEA],1,[Define to 1 if you have the 'lgetea' function.]) + AC_DEFINE([HAVE_LSETEA],1,[Define to 1 if you have the 'lsetea' function.]) + ] + ) + + if test $have_xattr = no; then + AC_CHECK_FUNCS(listea getea setea, + [ + have_xattr=yes + AC_DEFINE([HAVE_LISTEA],1,[Define to 1 if you have the 'listea' function.]) + AC_DEFINE([HAVE_GETEA],1,[Define to 1 if you have the 'getea' function.]) + AC_DEFINE([HAVE_SETEA],1,[Define to 1 if you have the 'setea' function.]) + ] + ) + fi + fi + + dnl + dnl If we failed to find AIX support try the Linux or OSX implementation of xattr dnl if test $have_xattr = no; then AC_CHECK_HEADER(sys/xattr.h, [ AC_DEFINE(HAVE_SYS_XATTR_H,1,[Defines if your system have the sys/xattr.h header file])] , )