02e38eae1b9cb5df2036a707dafd86f6047c17deSumit BoseAC_SUBST(KEYUTILS_LIBS)
02e38eae1b9cb5df2036a707dafd86f6047c17deSumit BoseAC_CHECK_HEADERS([keyutils.h],
02e38eae1b9cb5df2036a707dafd86f6047c17deSumit Bose [AC_CHECK_LIB([keyutils], [add_key],
02e38eae1b9cb5df2036a707dafd86f6047c17deSumit Bose [AC_DEFINE(USE_KEYRING, 1, [Define if the keyring should be used])
02e38eae1b9cb5df2036a707dafd86f6047c17deSumit Bose KEYUTILS_LIBS="-lkeyutils"
02e38eae1b9cb5df2036a707dafd86f6047c17deSumit Bose [AC_MSG_WARN([No usable keyutils library found])]
02e38eae1b9cb5df2036a707dafd86f6047c17deSumit Bose [AC_MSG_WARN([keyutils header files are not available])]