xref: /aosp_15_r20/external/ltp/m4/ltp-keyutils.m4 (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Workerdnl SPDX-License-Identifier: GPL-2.0-or-later
2*49cdfc7eSAndroid Build Coastguard Workerdnl Copyright (c) 2016 Fujitsu Ltd.
3*49cdfc7eSAndroid Build Coastguard Workerdnl Copyright (c) 2017 Petr Vorel <[email protected]>
4*49cdfc7eSAndroid Build Coastguard Workerdnl Author: Xiao Yang <[email protected]>
5*49cdfc7eSAndroid Build Coastguard Worker
6*49cdfc7eSAndroid Build Coastguard WorkerAC_DEFUN([LTP_CHECK_KEYUTILS_SUPPORT], [
7*49cdfc7eSAndroid Build Coastguard Worker	AC_CHECK_LIB([keyutils], [add_key],
8*49cdfc7eSAndroid Build Coastguard Worker	[AC_DEFINE(HAVE_LIBKEYUTILS, 1, [Define to 1 if you have libkeyutils installed.])
9*49cdfc7eSAndroid Build Coastguard Worker	      AC_SUBST(KEYUTILS_LIBS, "-lkeyutils")])
10*49cdfc7eSAndroid Build Coastguard Worker])
11