cfengine-3.4.5-acl.patch 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. From a12b5b3b8cd4397545104923d1de3297fd971f9e Mon Sep 17 00:00:00 2001
  2. From: Christian Ruppert <idl0r@gentoo.org>
  3. Date: Fri, 29 Mar 2013 00:23:21 +0100
  4. Subject: [PATCH] Fix acl header detection
  5. Signed-off-by: Christian Ruppert <idl0r@gentoo.org>
  6. ---
  7. configure.ac | 5 ++++-
  8. 1 file changed, 4 insertions(+), 1 deletion(-)
  9. diff --git a/configure.ac b/configure.ac
  10. index 542d115..f3f0c04 100755
  11. --- a/configure.ac
  12. +++ b/configure.ac
  13. @@ -335,7 +335,10 @@ AC_ARG_WITH([libacl],
  14. if test "x$with_libacl" != xno; then
  15. CF3_WITH_LIBRARY(libacl, [
  16. AC_CHECK_LIB(acl, acl_init, [], [if test "x$with_libacl" != xcheck; then AC_MSG_ERROR(Cannot find libacl library); fi])
  17. - AC_CHECK_HEADERS([acl.h sys/acl.h acl/libacl.h], [], [if test "x$with_libacl" != xcheck; then AC_MSG_ERROR(Cannot find libacl library headers); fi])
  18. + AC_CHECK_HEADERS([acl.h sys/acl.h acl/libacl.h], [found_acl_h=yes], [])
  19. + if test "x$found_acl_h" != xyes; then
  20. + AC_MSG_ERROR(Cannot find libacl library headers)
  21. + fi
  22. ])
  23. fi
  24. --
  25. 1.8.1.5