5 AC_DEFUN([AC_OSF_FUNC_UBC_LOOKUP], [
6 AC_CACHE_CHECK(if ubc_lookup takes six arguments,
7 ac_cv_func_ubc_lookup_six_args,
8 AC_TRY_COMPILE_KERNEL([
9 #if defined(__osf__) && defined(__GNUC__)
12 #include <sys/types.h>
13 #include <sys/param.h>
16 #include <vm/vm_ubc.h>
17 ], [ubc_lookup(NULL, 0, 0, 0, NULL, NULL)],
18 ac_cv_func_ubc_lookup_six_args=yes,
19 ac_cv_func_ubc_lookup_six_args=no))
20 if test "$ac_cv_func_ubc_lookup_six_args" = yes; then
21 AC_DEFINE(HAVE_SIX_ARGUMENT_UBC_LOOKUP, 1,
22 [define if ubc_lookup takes six arguments])