-dnl Do you want to debug nmh?
-undefine([nmh-debug])dnl
-AC_ARG_ENABLE(nmh-debug,
-[ --enable-nmh-debug enable nmh code debugging])
+dnl What method of posting should post use?
+undefine([mts])dnl
+AC_ARG_WITH(mts,
+[ --with-mts=MTS specify the default mail transport agent/service])
+
+if test x"$with_mts" = x"smtp"; then
+ MTS="smtp"
+elif test x"$with_mts" = x"sendmail"; then
+ MTS="sendmail"
+else
+ MTS="smtp"
+fi
+AC_SUBST(MTS)dnl
+
+dnl Both the smtp and sendmail mail transport services use the smtp code
+AC_DEFINE(SMTPMTS)dnl
+
+dnl What should be the default pager?
+undefine([pager])dnl
+AC_ARG_WITH(pager,
+[ --with-pager=PAGER specify the default pager])
+
+if test -n "$with_pager"; then
+ pagerpath="$with_pager"
+fi
+
+dnl What should be the default mail server(s)?
+undefine([smtpservers])dnl
+AC_ARG_WITH(smtpservers,
+[ --with-smtpservers='SMTPSERVER1[ SMTPSERVER2...]'
+ specify the default SMTP server(s) [localhost]])
+if test -n "$with_smtpservers"; then
+ smtpservers="$with_smtpservers"
+else
+ smtpservers="localhost"
+fi
+AC_SUBST(smtpservers)dnl