From 1a7c9185ede8c9765b97be00cdf3745ff28b87e7 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sat, 20 Feb 2010 14:47:45 -0500 Subject: [PATCH] Linux: Remove unused LINUX_KERNEL_SELINUX test This test needs , which has moved in 2.6.33. It is also unused (it was removed in master by commit 35d5b6c4e101c92e2c242bb75029db24eb1aa7d7). Signed-off-by: Anders Kaseorg Change-Id: I7876fed2ed2b0395cdf29c71edfdad1089c88cce Reviewed-on: http://gerrit.openafs.org/1354 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- acinclude.m4 | 4 ---- src/cf/linux-test3.m4 | 14 -------------- 2 files changed, 18 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 1c7a7deae7..84cd588535 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -781,7 +781,6 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*) LINUX_KERNEL_POSIX_LOCK_FILE_WAIT_ARG LINUX_POSIX_TEST_LOCK_RETURNS_CONFLICT LINUX_POSIX_TEST_LOCK_CONFLICT_ARG - LINUX_KERNEL_SELINUX LINUX_KERNEL_SOCK_CREATE LINUX_KERNEL_PAGE_FOLLOW_LINK LINUX_KERNEL_HLIST_UNHASHED @@ -954,9 +953,6 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*) if test "x$ac_cv_linux_kernel_posix_lock_file_wait_arg" = "xyes" ; then AC_DEFINE(POSIX_LOCK_FILE_WAIT_ARG, 1, [define if your linux kernel uses 3 arguments for posix_lock_file]) fi - if test "x$ac_cv_linux_kernel_is_selinux" = "xyes" ; then - AC_DEFINE(LINUX_KERNEL_IS_SELINUX, 1, [define if your linux kernel uses SELinux features]) - fi if test "x$ac_cv_linux_kernel_sock_create_v" = "xyes" ; then AC_DEFINE(LINUX_KERNEL_SOCK_CREATE_V, 1, [define if your linux kernel uses 5 arguments for sock_create]) fi diff --git a/src/cf/linux-test3.m4 b/src/cf/linux-test3.m4 index ba0aaa39b4..cbc71e4f4a 100644 --- a/src/cf/linux-test3.m4 +++ b/src/cf/linux-test3.m4 @@ -69,20 +69,6 @@ fi AC_SUBST(MPS) ]) -AC_DEFUN([LINUX_KERNEL_SELINUX],[ -AC_MSG_CHECKING(for SELinux kernel) -AC_CACHE_VAL(ac_cv_linux_kernel_is_selinux, -[ -AC_TRY_KBUILD( - [#include ], - [#ifndef CONFIG_SECURITY_SELINUX - #error not SELINUX - #endif], - ac_cv_linux_kernel_is_selinux=yes, - ac_cv_linux_kernel_is_selinux=no)]) -AC_MSG_RESULT($ac_cv_linux_kernel_is_selinux) -]) - AC_DEFUN([LINUX_KERNEL_LINUX_SEQ_FILE_H],[ AC_MSG_CHECKING(for linux/seq_file.h in kernel) AC_TRY_KBUILD([#include ], [],