1 dnl 2 dnl Copyright (c) 2016 Fujitsu Ltd. 3 dnl Copyright (c) 2017 Petr Vorel <pvorel (a] suse.cz> 4 dnl 5 dnl Author: Xiao Yang <yangx.jy (a] cn.fujitsu.com> 6 dnl 7 dnl This program is free software; you can redistribute it and/or modify it 8 dnl under the terms of version 2 of the GNU General Public License as 9 dnl published by the Free Software Foundation. 10 dnl 11 dnl This program is distributed in the hope that it would be useful, but 12 dnl WITHOUT ANY WARRANTY; without even the implied warranty of 13 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 dnl 15 dnl You should have received a copy of the GNU General Public License 16 dnl alone with this program. 17 dnl 18 19 dnl 20 dnl LTP_CHECK_KEYUTILS_SUPPORT 21 dnl ---------------------------- 22 dnl 23 AC_DEFUN([LTP_CHECK_KEYUTILS_SUPPORT], [ 24 AC_CHECK_LIB([keyutils], [add_key], 25 [AC_DEFINE(HAVE_LIBKEYUTILS, 1, [Define to 1 if you have libkeyutils installed.]) 26 AC_SUBST(KEYUTILS_LIBS, "-lkeyutils")]) 27 ]) 28