5 AC_DEFUN([AC_BSD_FUNC_SUSER], [
6 AC_CACHE_CHECK(if suser takes two arguments,
7 ac_cv_func_suser_two_args,
8 AC_TRY_COMPILE_KERNEL([
9 #ifdef HAVE_SYS_CDEFS_H
10 #include <sys/cdefs.h>
12 #include <sys/types.h>
13 #include <sys/param.h>
16 #include <sys/systm.h>
17 ], [suser(NULL, NULL)],
18 ac_cv_func_suser_two_args=yes,
19 ac_cv_func_suser_two_args=no))
20 if test "$ac_cv_func_suser_two_args" = yes; then
21 AC_DEFINE(HAVE_TWO_ARGUMENT_SUSER, 1,
22 [define if suser takes two arguments])