1dnl #
2dnl # 2.6.39 API change
3dnl # Added kstrtoul()
4dnl #
5AC_DEFUN([ZFS_AC_KERNEL_SRC_KSTRTOUL], [
6	ZFS_LINUX_TEST_SRC([kstrtoul], [
7		#include <linux/kernel.h>
8	],[
9		int ret __attribute__ ((unused)) = kstrtoul(NULL, 10, NULL);
10	])
11])
12
13AC_DEFUN([ZFS_AC_KERNEL_KSTRTOUL], [
14	AC_MSG_CHECKING([whether kstrtoul() exists])
15	ZFS_LINUX_TEST_RESULT([kstrtoul], [
16		AC_MSG_RESULT(yes)
17		AC_DEFINE(HAVE_KSTRTOUL, 1, [kstrtoul() exists])
18	],[
19		ZFS_LINUX_TEST_ERROR([kstrtoul()])
20	])
21])
22