X-Git-Url: http://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fcf%2Flinux-test4.m4;h=14cf9a6beb25d6c08313a2f169dcfff3870a9b99;hp=2420b7b2a7c4be6c738a8b0b4e2c3f46a73308f2;hb=b7b0b4dea74e829ce0e36edd87a881a6f11df472;hpb=80481fb14ea9301b0f6b3503d07ecaef39aef0d8 diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4 index 2420b7b..14cf9a6 100644 --- a/src/cf/linux-test4.m4 +++ b/src/cf/linux-test4.m4 @@ -1231,3 +1231,29 @@ _bdi.name = NULL;], AC_DEFINE([STRUCT_BDI_HAS_NAME], 1, [define if struct backing_dev_info has a name member]) fi]) +AC_DEFUN([LINUX_HAVE_ZERO_USER_SEGMENTS], [ + AC_MSG_CHECKING([for zero_user_segments]) + AC_CACHE_VAL([ac_cv_linux_have_zero_user_segments], [ + AC_TRY_KBUILD( +[#include ], +[zero_user_segments(NULL, 0, 0, 0, 0);], + ac_cv_linux_have_zero_user_segments=yes, + ac_cv_linux_have_zero_user_segments=no)]) + AC_MSG_RESULT($ac_cv_linux_have_zero_user_segments) + if test "x$ac_cv_linux_have_zero_user_segments" = "xyes"; then + AC_DEFINE([HAVE_ZERO_USER_SEGMENTS], 1, [define if your kernel has the zero_user_segments function]) + fi]) + +AC_DEFUN([LINUX_HAVE_PAGE_OFFSET], [ + AC_MSG_CHECKING([for page_offset]) + AC_CACHE_VAL([ac_cv_linux_have_page_offset], [ + AC_TRY_KBUILD( +[#include ], +[page_offset(NULL);], + ac_cv_linux_have_page_offset=yes, + ac_cv_linux_have_page_offset=no)]) + AC_MSG_RESULT($ac_cv_linux_have_page_offset) + if test "x$ac_cv_linux_have_page_offset" = "xyes"; then + AC_DEFINE([HAVE_PAGE_OFFSET], 1, [define if your kernel has the page_offset function]) + fi]) +