+dnl see if we can determine which group owns the mail spool dir
+undefine([nmh_grp_mailspool])dnl
+AC_CACHE_CHECK(what group owns the mail spool, nmh_group_mailspool,
+[ nmh_group_mailspool=`ls -lgd $mailspool | awk '{print $4}'`
+ if test x$nmh_group_mailspool = xmail; then
+ MAILGROUP="mail"
+ elif test x$nmh_group_mailspool = xwheel; then
+ MAILGROUP="wheel"
+ else
+ MAILGROUP="'0'"
+ fi])
+AC_SUBST(MAILGROUP)
+