build: Fix SENDMAIL define for a PATH with spaces.

* configure.ac: Fix use of $PATH

(cherry picked from commit 77e416741a)
This commit is contained in:
Werner Koch 2020-10-04 20:47:13 +02:00
parent 4747b9e868
commit 6c36b8bb23
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 1 additions and 1 deletions

View File

@ -1247,7 +1247,7 @@ AC_ARG_WITH(mailprog,
[use "NAME -t" for mail transport]),
,with_mailprog=yes)
if test x"$with_mailprog" = xyes ; then
AC_PATH_PROG(SENDMAIL,sendmail,,$PATH:/usr/sbin:/usr/libexec:/usr/lib)
AC_PATH_PROG(SENDMAIL,sendmail,,"$PATH":/usr/sbin:/usr/libexec:/usr/lib)
elif test x"$with_mailprog" != xno ; then
AC_MSG_CHECKING([for a mail transport program])
AC_SUBST(SENDMAIL,$with_mailprog)