diff -ru /usr/ports/mail/mutt-devel/Makefile ./Makefile --- /usr/ports/mail/mutt-devel/Makefile Wed Oct 4 06:08:07 2006 +++ ./Makefile Sat Nov 4 12:08:06 2006 @@ -377,8 +377,9 @@ .if exists(${LOCALBASE}/bin/krb5-config) LIB_DEPENDS+= gssapi_krb5:${PORTSDIR}/security/krb5 CONFIGURE_ARGS+= --with-gss=${LOCALBASE} -.else +.elif (defined(MAKE_KERBEROS5) && ${OSVERSION} > 500105) || exists(/usr/lib/libkrb5.a) CONFIGURE_ARGS+= --with-gss +USE_KRB5_SYS=YES .endif .endif @@ -449,7 +450,7 @@ pre-configure:: @(cd ${WRKSRC}; ${SETENV} ${AUTOMAKE_ENV} ${ACLOCAL} -I m4) -.if !exists(${LOCALBASE}/bin/krb5-config) +.if defined(USE_KRB5_SYS) @${ECHO_CMD} "#define HAVE_HEIMDAL" >> ${WRKSRC}/config.h.in @${REINPLACE_CMD} -e 's|||' \ ${WRKSRC}/imap/auth_gss.c