[LTP] [RFC PATCH 1/6] m4: Fix libkeyutils detection on 32-bit cross build

Petr Vorel pvorel@suse.cz
Fri Oct 6 03:53:31 CEST 2017


Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 m4/ltp-keyutils.m4 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/m4/ltp-keyutils.m4 b/m4/ltp-keyutils.m4
index 74b7d3249..1434ca823 100644
--- a/m4/ltp-keyutils.m4
+++ b/m4/ltp-keyutils.m4
@@ -18,7 +18,7 @@ dnl
 dnl LTP_CHECK_KEYUTILS_SUPPORT
 dnl ----------------------------
 dnl
-AC_DEFUN([LTP_CHECK_KEYUTILS_SUPPORT],[
-AC_CHECK_HEADERS([keyutils.h], [keyutils_libs="-lkeyutils"])
-AC_SUBST([KEYUTILS_LIBS], [$keyutils_libs])
+AC_DEFUN([LTP_CHECK_KEYUTILS_SUPPORT], [
+	AC_CHECK_LIB([keyutils], [add_key], [keyutils_libs="-lkeyutils"])
+	AC_SUBST([KEYUTILS_LIBS], [$keyutils_libs])
 ])
-- 
2.14.2



More information about the ltp mailing list