|
Packit Service |
09cdfc |
dnl Check for wbclient package
|
|
Packit Service |
09cdfc |
dnl
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
AC_DEFUN([AC_TEST_WBCHL],[
|
|
Packit Service |
09cdfc |
if test $enable_cifsidmap != "no" -o $enable_cifsacl != "no"; then
|
|
Packit Service |
09cdfc |
PKG_CHECK_MODULES(WBCLIENT, wbclient, , [
|
|
Packit Service |
09cdfc |
if test "$enable_cifsidmap" = "yes"; then
|
|
Packit Service |
09cdfc |
AC_MSG_ERROR([wbclient.h not found, consider installing libwbclient-devel.])
|
|
Packit Service |
09cdfc |
else
|
|
Packit Service |
09cdfc |
AC_MSG_WARN([wbclient.h not found, consider installing libwbclient-devel. Disabling cifs.idmap.])
|
|
Packit Service |
09cdfc |
enable_cifsidmap="no"
|
|
Packit Service |
09cdfc |
fi
|
|
Packit Service |
09cdfc |
if test "$enable_cifsacl" = "yes"; then
|
|
Packit Service |
09cdfc |
AC_MSG_ERROR([wbclient.h not found, consider installing libwbclient-devel.])
|
|
Packit Service |
09cdfc |
else
|
|
Packit Service |
09cdfc |
AC_MSG_WARN([wbclient.h not found, consider installing libwbclient-devel. Disabling cifsacl.])
|
|
Packit Service |
09cdfc |
enable_cifsacl="no"
|
|
Packit Service |
09cdfc |
fi
|
|
Packit Service |
09cdfc |
])
|
|
Packit Service |
09cdfc |
fi
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
if test $enable_cifsidmap != "no" -o $enable_cifsacl != "no"; then
|
|
Packit Service |
09cdfc |
ac_wbc_save_LDFLAGS="$LDFLAGS"
|
|
Packit Service |
09cdfc |
ac_wbc_save_LIBS="$LIBS"
|
|
Packit Service |
09cdfc |
LDFLAGS="$LDFLAGS $WBCLIENT_LIBS"
|
|
Packit Service |
09cdfc |
AC_CHECK_LIB(wbclient, wbcSidsToUnixIds, , [
|
|
Packit Service |
09cdfc |
if test "$enable_cifsidmap" = "yes"; then
|
|
Packit Service |
09cdfc |
AC_MSG_ERROR([wbclient library lacks wbcSidsToUnixIds().])
|
|
Packit Service |
09cdfc |
else
|
|
Packit Service |
09cdfc |
AC_MSG_WARN([wbclient library lacks wbcSidsToUnixIds(). Disabling cifs.idmap.])
|
|
Packit Service |
09cdfc |
enable_cifsidmap="no"
|
|
Packit Service |
09cdfc |
fi
|
|
Packit Service |
09cdfc |
if test "$enable_cifsacl" = "yes"; then
|
|
Packit Service |
09cdfc |
AC_MSG_ERROR([wbclient library lacks wbcSidsToUnixIds.])
|
|
Packit Service |
09cdfc |
else
|
|
Packit Service |
09cdfc |
AC_MSG_WARN([wbclient library lacks wbcSidsToUnixIds(). Disabling cifsacl tools.])
|
|
Packit Service |
09cdfc |
enable_cifsacl="no"
|
|
Packit Service |
09cdfc |
fi
|
|
Packit Service |
09cdfc |
])
|
|
Packit Service |
09cdfc |
LDFLAGS=$ac_wbc_save_LDFLAGS
|
|
Packit Service |
09cdfc |
LIBS=$ac_wbc_save_LIBS
|
|
Packit Service |
09cdfc |
fi
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
if test $enable_cifsacl != "no"; then
|
|
Packit Service |
09cdfc |
AC_CHECK_HEADERS([sys/xattr.h], , [
|
|
Packit Service |
09cdfc |
if test "$enable_cifsacl" = "yes"; then
|
|
Packit Service |
09cdfc |
AC_MSG_ERROR([/usr/include/sys/xattr.h not found])
|
|
Packit Service |
09cdfc |
else
|
|
Packit Service |
09cdfc |
AC_MSG_WARN([/usr/include/sys/xattr.h not found. Disabling cifsacl.])
|
|
Packit Service |
09cdfc |
enable_cifsacl="no"
|
|
Packit Service |
09cdfc |
fi
|
|
Packit Service |
09cdfc |
], [ ])
|
|
Packit Service |
09cdfc |
fi
|
|
Packit Service |
09cdfc |
])
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
AC_DEFUN([AC_TEST_WBC_IDMAP_BOTH],[
|
|
Packit Service |
09cdfc |
AC_MSG_CHECKING([whether WBC_ID_TYPE_BOTH enum value is defined])
|
|
Packit Service |
09cdfc |
AC_LANG_PUSH([C])
|
|
Packit Service |
09cdfc |
ac_wbc_save_CFLAGS="$CFLAGS"
|
|
Packit Service |
09cdfc |
CFLAGS="$CFLAGS $WBCLIENT_CFLAGS"
|
|
Packit Service |
09cdfc |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <stdint.h>
|
|
Packit Service |
09cdfc |
#include <stdbool.h>
|
|
Packit Service |
09cdfc |
#include <wbclient.h>], [enum wbcIdType id = WBC_ID_TYPE_BOTH;])],
|
|
Packit Service |
09cdfc |
AC_DEFINE(HAVE_WBC_ID_TYPE_BOTH, 1, [Does wbclient.h have a WBC_ID_TYPE_BOTH enum?])
|
|
Packit Service |
09cdfc |
AC_MSG_RESULT([yes]), AC_MSG_RESULT([no]))
|
|
Packit Service |
09cdfc |
CFLAGS=$ac_wbc_save_CFLAGS
|
|
Packit Service |
09cdfc |
AC_LANG_POP([C])
|
|
Packit Service |
09cdfc |
])
|