all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Mou Tong <mou.tong@outlook.com>
Cc: "65190@debbugs.gnu.org" <65190@debbugs.gnu.org>
Subject: bug#65190: 30.0.50; Emacs doesn't build with `--with-mailutils` by default when mailutils is installed on macOS
Date: Thu, 10 Aug 2023 12:47:08 +0800	[thread overview]
Message-ID: <87o7jftsfn.fsf@yahoo.com> (raw)
In-Reply-To: <35D4BE4A-06BD-46F9-A73A-DD2712E0E3E0@outlook.com> (Mou Tong's message of "Thu, 10 Aug 2023 03:10:36 +0000")

Mou Tong <mou.tong@outlook.com> writes:

> Thx for the quick response, here is the modification:
>
> ```diff
> --- a/configure.ac
> +++ b/configure.ac
> @@ -347,8 +347,10 @@ AC_DEFUN
>    [],
>    [with_mailutils=$with_features
>     AS_IF([test "$with_mailutils" = yes],
> -     [AS_IF([test "x$XCONFIGURE" != "xandroid" \
> -             && test "$with_android" = "no"],
> +     dnl [AS_IF([test "x$XCONFIGURE" != "xandroid" \
> +     dnl         && test "$with_android" = "no"],
> +     dnl   [(movemail --version) >/dev/null 2>&1 || with_mailutils=no],
> +     [AS_IF([test "x$XCONFIGURE" != "xandroid"],
>         [(movemail --version) >/dev/null 2>&1 || with_mailutils=no],
>         [dnl Don't check for movemail if cross-compiling.
>          dnl instead, default to false.
> ```
>
> But the problem still exists.

What if you try moving:

AC_ARG_WITH([mailutils],
  [AS_HELP_STRING([--with-mailutils],
     [rely on GNU Mailutils, so that the --without-pop through --with-mailhost
      options are irrelevant; this is the default if GNU Mailutils is
      installed])],
  [],
  [with_mailutils=$with_features
   AS_IF([test "$with_mailutils" = yes],
     [AS_IF([test "x$XCONFIGURE" != "xandroid" \
             && test "$with_android" = "no"],
       [(movemail --version) >/dev/null 2>&1 || with_mailutils=no],
       [dnl Don't check for movemail if cross-compiling.
        dnl instead, default to false.
        with_mailutils=no])])])
AS_IF([test "$with_mailutils" = no],
  [with_mailutils=])

AS_IF([test x"$with_mailutils" = xyes],
  [AC_DEFINE([HAVE_MAILUTILS], [1],
     [Define to 1 if Emacs was configured with mailutils])])

AC_SUBST([with_mailutils])

AC_ARG_WITH([pop],
  [AS_HELP_STRING([--with-pop],
     [Support POP mail retrieval if Emacs movemail is used (not recommended,
      as Emacs movemail POP is insecure).  This is the default only on
      native MS-Windows and Android.])],
  [],
  dnl Enable movemail POP support on Android as GNU Mailutils is
  dnl normally unavailable on that platform.
  [AS_CASE([$host],
     [*-mingw*|*android*], [with_pop=yes],
     [with_pop=no-by-default])])
if test "$with_pop" = yes; then
   AC_DEFINE([MAIL_USE_POP])
fi
AH_TEMPLATE([MAIL_USE_POP], [Define to support POP mail retrieval.])dnl

to below:

OPTION_DEFAULT_OFF([android],[cross-compile Android application package])
OPTION_DEFAULT_ON([android-debug],[don't build Emacs as a debug package on Android])

?  Does that resolve the problem?

Thanks.





  reply	other threads:[~2023-08-10  4:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-10  2:06 bug#65190: 30.0.50; Emacs doesn't build with `--with-mailutils` by default when mailutils is installed on macOS Mou Tong
2023-08-10  2:37 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-10  3:10   ` Mou Tong
2023-08-10  4:47     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-08-10  6:04       ` Mou Tong
2023-08-11  1:00         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-11  1:37           ` Mou Tong
2023-08-11  1:51             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o7jftsfn.fsf@yahoo.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=65190@debbugs.gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=mou.tong@outlook.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.