dnl dnl $Id: bsd-vfs-busy.m4,v 1.1 2000/09/11 14:40:45 art Exp $ dnl dnl dnl try to find out if vfs_busy takes three/four arguments dnl AC_DEFUN(AC_BSD_FUNC_VFS_BUSY,[ AC_CACHE_CHECK(if vfs_busy takes three arguments, ac_cv_func_vfs_busy_three_args, AC_TRY_COMPILE_KERNEL([ #ifdef HAVE_SYS_CDEFS_H #include #endif #include #include #include #ifdef HAVE_SYS_MODULE_H #include #endif #include ],[vfs_busy(0, 0, 0)], ac_cv_func_vfs_busy_three_args=yes, ac_cv_func_vfs_busy_three_args=no)) if test "$ac_cv_func_vfs_busy_three_args" = yes; then AC_DEFINE(HAVE_THREE_ARGUMENT_VFS_BUSY, 1, [define if vfs_busy takes three arguments]) fi AC_CACHE_CHECK(if vfs_busy takes four arguments, ac_cv_func_vfs_busy_four_args, AC_TRY_COMPILE_KERNEL([ #ifdef HAVE_SYS_CDEFS_H #include #endif #include #include #include #ifdef HAVE_SYS_MODULE_H #include #endif #include ],[vfs_busy(0, 0, 0, 0)], ac_cv_func_vfs_busy_four_args=yes, ac_cv_func_vfs_busy_four_args=no)) if test "$ac_cv_func_vfs_busy_four_args" = yes; then AC_DEFINE(HAVE_FOUR_ARGUMENT_VFS_BUSY, 1, [define if vfs_busy takes four arguments]) fi ])