1*49cdfc7eSAndroid Build Coastguard Workerdnl SPDX-License-Identifier: GPL-2.0-or-later 2*49cdfc7eSAndroid Build Coastguard Workerdnl Copyright (c) Red Hat Inc., 2009 3*49cdfc7eSAndroid Build Coastguard Worker 4*49cdfc7eSAndroid Build Coastguard WorkerAC_DEFUN([LTP_CHECK_SELINUX], 5*49cdfc7eSAndroid Build Coastguard Worker[ 6*49cdfc7eSAndroid Build Coastguard WorkerAH_TEMPLATE(HAVE_LIBSELINUX_DEVEL, 7*49cdfc7eSAndroid Build Coastguard Worker[Define to 1 if you have both SELinux libraries and headers.]) 8*49cdfc7eSAndroid Build Coastguard WorkerAC_CHECK_HEADERS(selinux/selinux.h,[ 9*49cdfc7eSAndroid Build Coastguard Worker AC_CHECK_LIB(selinux,is_selinux_enabled,[ 10*49cdfc7eSAndroid Build Coastguard Worker AC_DEFINE(HAVE_LIBSELINUX_DEVEL) SELINUX_LIBS="-lselinux"],[ 11*49cdfc7eSAndroid Build Coastguard Worker SELINUX_LIBS=""])],[ 12*49cdfc7eSAndroid Build Coastguard Worker SELINUX_LIBS=""]) 13*49cdfc7eSAndroid Build Coastguard WorkerAC_SUBST(SELINUX_LIBS)]) 14