unet_CHECK_TYPE_SIZES
dnl Checks for library functions.
-AC_CHECK_FUNC(kqueue)
+AC_CHECK_FUNCS([kqueue setrlimit getrusage times])
dnl Do we have restarting syscalls ?
AC_SYS_RESTARTABLE_SYSCALLS
AC_MSG_CHECKING([whether to enable head in sand 'features'])
AC_ARG_ENABLE([headinsand],
[ --disable-headinsand Disable head in sand (-DNO_HEAD_IN_SAND)],
-[unet_cv_enable_symbols=$enable_headinsand],
+[unet_cv_enable_headinsand=$enable_headinsand],
[AC_CACHE_VAL(unet_cv_enable_headinsand,
[unet_cv_enable_headinsand=yes])])
AC_MSG_RESULT([$unet_cv_enable_headinsand])
-if test x"$unet_cv_enable_headinsand" = xyes; then
+if test x"$unet_cv_enable_headinsand" = xno; then
CFLAGS="-DNO_HEAD_IN_SAND $CFLAGS"
fi