X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=configure.in;h=14690b60fb4d050e787ac0b58443bbb9d980f1ad;hb=d036480eb208e821aba1485ec77da7f06bdf13a8;hp=6b3367f539e81d7351c6e3145476fca07076e980;hpb=d3d0096ab170eec3ccfb35615a246a4d5d31b878;p=mmh diff --git a/configure.in b/configure.in index 6b3367f..14690b6 100644 --- a/configure.in +++ b/configure.in @@ -238,8 +238,22 @@ if test "$lspath" != "no" -a "$cutpath" != "no"; then fi]) fi +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) + dnl ...If it's not, we need to #define MAILGROUP to 1 and make inc setgid mail. if test "$nmh_cv_mailspool_world_writable" = "no"; then +dnl do we really need both of these? AC_DEFINE(MAILGROUP) SETGID_MAIL=1 fi @@ -337,6 +351,11 @@ AC_CHECK_FUNC(dbm_open, , AC_CHECK_LIB(dbm, dbm_open))) dnl ---------------- +dnl CHECK FOR NDBM.H +dnl ---------------- +AC_CHECK_HEADERS(db1/ndbm.h) + +dnl ---------------- dnl CHECK FOR HESIOD dnl ---------------- if test x$with_hesiod != x -a x$with_hesiod != xno; then