OpenZFS 4185 - add new cryptographic checksums to ZFS: SHA-512, Skein, Edon-R
[zfs.git] / config / kernel-d-obtain-alias.m4
blob2b4b11eccc1b906fa2110846baff15b9c08ef77b
1 dnl #
2 dnl # 2.6.28 API change
3 dnl # Added d_obtain_alias() helper function.
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_D_OBTAIN_ALIAS],
6         [AC_MSG_CHECKING([whether d_obtain_alias() is available])
7         ZFS_LINUX_TRY_COMPILE_SYMBOL([
8                 #include <linux/dcache.h>
9         ], [
10                 d_obtain_alias(NULL);
11         ], [d_obtain_alias], [fs/dcache.c], [
12                 AC_MSG_RESULT(yes)
13                 AC_DEFINE(HAVE_D_OBTAIN_ALIAS, 1,
14                           [d_obtain_alias() is available])
15         ], [
16                 AC_MSG_RESULT(no)
17         ])