summaryrefslogtreecommitdiff
blob: 815f257c36fa72d020707d213dc0deff0ad9a97f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From a12b5b3b8cd4397545104923d1de3297fd971f9e Mon Sep 17 00:00:00 2001
From: Christian Ruppert <idl0r@gentoo.org>
Date: Fri, 29 Mar 2013 00:23:21 +0100
Subject: [PATCH] Fix acl header detection


Signed-off-by: Christian Ruppert <idl0r@gentoo.org>
---
 configure.ac | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 542d115..f3f0c04 100755
--- a/configure.ac
+++ b/configure.ac
@@ -335,7 +335,10 @@ AC_ARG_WITH([libacl],
 if test "x$with_libacl" != xno; then
   CF3_WITH_LIBRARY(libacl, [
     AC_CHECK_LIB(acl, acl_init, [], [if test "x$with_libacl" != xcheck; then AC_MSG_ERROR(Cannot find libacl library); fi])
-    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])
+    AC_CHECK_HEADERS([acl.h sys/acl.h acl/libacl.h], [found_acl_h=yes], [])
+	if test "x$found_acl_h" != xyes; then
+		AC_MSG_ERROR(Cannot find libacl library headers)
+	fi
   ])
  fi
 
-- 
1.8.1.5