[LTP] [PATCH v2 2/2] autotools: Move into configure.ac

Petr Vorel pvorel@suse.cz
Tue Sep 22 11:51:26 CEST 2026


Checking <linux/keyctl.h> is unrelated on checking of libkeyutils,
therefore it's probably better to have it together with other struct
checks.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
New in v2.

 configure.ac       | 4 ++++
 m4/ltp-keyutils.m4 | 3 ---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 18bfdb88c7..bc6df5ada3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -300,6 +300,10 @@ AC_CHECK_TYPES([struct uffdio_move],,,[#include <linux/userfaultfd.h>])
 AC_CHECK_TYPES([struct uffdio_poison],,,[#include <linux/userfaultfd.h>])
 AC_CHECK_TYPES([struct uffdio_writeprotect],,,[#include <linux/userfaultfd.h>])
 
+# see also m4/ltp-keyutils.m4
+AC_CHECK_TYPES([struct keyctl_kdf_params, struct keyctl_pkey_query, struct keyctl_pkey_params],,,
+[#include <linux/keyctl.h>])
+
 # Tools knobs
 
 # Bash
diff --git a/m4/ltp-keyutils.m4 b/m4/ltp-keyutils.m4
index b073183405..23132664c7 100644
--- a/m4/ltp-keyutils.m4
+++ b/m4/ltp-keyutils.m4
@@ -8,7 +8,4 @@ AC_DEFUN([LTP_CHECK_KEYUTILS_SUPPORT], [
 	AC_CHECK_LIB([keyutils], [add_key],
 	[AC_DEFINE(HAVE_LIBKEYUTILS, 1, [Define to 1 if you have libkeyutils installed.])
 	      AC_SUBST(KEYUTILS_LIBS, "-lkeyutils")])
-
-	AC_CHECK_TYPES([struct keyctl_kdf_params, struct keyctl_pkey_query, struct keyctl_pkey_params],,,
-			[#include <linux/keyctl.h>])
 ])
-- 
2.55.0



More information about the ltp mailing list