X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=libcfs%2Fautoconf%2Flustre-libcfs.m4;h=d7e1a4581694394830ca1342d613d25a9b93ecb0;hp=cc0e1844456afdd14ca9ca92dcd4bd04725bda6a;hb=725ea49d8bd42e5acad2045acb3b6f72969c08ff;hpb=b83b016c487ce5c9793cc75a230adec54a2d95af diff --git a/libcfs/autoconf/lustre-libcfs.m4 b/libcfs/autoconf/lustre-libcfs.m4 index cc0e184..d7e1a45 100644 --- a/libcfs/autoconf/lustre-libcfs.m4 +++ b/libcfs/autoconf/lustre-libcfs.m4 @@ -322,6 +322,23 @@ LB_CHECK_LINUX_HEADER([asm/fpu/api.h], [ ]) # LIBCFS_FPU_API # +# Kernel version 4.5-rc1 commit d12481bc58fba89427565f8592e88446ec084a24 +# added crypto hash helpers +# +AC_DEFUN([LIBCFS_CRYPTO_HASH_HELPERS], [ +LB_CHECK_COMPILE([does crypto hash helper functions exist], +crypto_hash_helpers, [ + #include +],[ + crypto_ahash_alg_name(NULL); + crypto_ahash_driver_name(NULL); +],[ + AC_DEFINE(HAVE_CRYPTO_HASH_HELPERS, 1, + [crypto hash helper functions are available]) +]) +]) # LIBCFS_CRYPTO_HASH_HELPERS + +# # LIBCFS_PROG_LINUX # # LibCFS linux kernel checks @@ -361,6 +378,8 @@ LIBCFS_HLIST_ADD_AFTER # 4.2 LIBCFS_HAVE_TOPOLOGY_SIBLING_CPUMASK LIBCFS_FPU_API +# 4.5 +LIBCFS_CRYPTO_HASH_HELPERS ]) # LIBCFS_PROG_LINUX #