plug-ins: if --with-sendmail is set with a value, use it. (2)

I should always test my patches thoroughly! Commit 912fcec was not
working as planned. This is!
This commit is contained in:
Jehan 2016-06-02 18:17:09 +02:00
parent 8bd53dc09f
commit 0a8c322ef8
2 changed files with 25 additions and 13 deletions

View file

@ -1838,15 +1838,17 @@ have_sendmail=no
if test "x$with_sendmail" != "x" && test "x$with_sendmail" != "xno"; then
if test "x$with_sendmail" = "xyes"; then
sendmail_path=$PATH:/usr/sbin:/usr/lib
AC_DEFINE_UNQUOTED(SENDMAIL, "",
[The MTA used by the mail plug-in.])
else
sendmail_path=$with_sendmail
AC_DEFINE_UNQUOTED(SENDMAIL, "$with_sendmail",
[The MTA used by the mail plug-in.])
fi
AC_PATH_PROG(SENDMAIL, sendmail, , $sendmail_path)
if test "x$SENDMAIL" != "x"; then
have_email="yes (sendmail)"
AC_DEFINE_UNQUOTED(SENDMAIL, "$SENDMAIL",
[The MTA used by the mail plug-in.])
else
# Not having sendmail at runtime is not a blocker.
have_email="needs runtime dependency: sendmail"