xref: /freebsd/sys/contrib/openzfs/config/kernel-totalhigh_pages.m4 (revision e1c4c8dd8d2d10b6104f06856a77bd5b4813a801)
1dnl #
2dnl # 5.0 API change
3dnl #
4AC_DEFUN([ZFS_AC_KERNEL_SRC_TOTALHIGH_PAGES], [
5	ZFS_LINUX_TEST_SRC([totalhigh_pages], [
6		#include <linux/highmem.h>
7	],[
8		unsigned long pages __attribute__ ((unused));
9		pages = totalhigh_pages();
10	])
11])
12
13AC_DEFUN([ZFS_AC_KERNEL_TOTALHIGH_PAGES], [
14	AC_MSG_CHECKING([whether totalhigh_pages() exists])
15	ZFS_LINUX_TEST_RESULT([totalhigh_pages], [
16		AC_MSG_RESULT(yes)
17		AC_DEFINE(HAVE_TOTALHIGH_PAGES, 1, [totalhigh_pages() exists])
18	],[
19		AC_MSG_RESULT(no)
20	])
21])
22