Re: mutt on macOS and --with-curses=DIR
"Kevin J. McCarthy" <[email protected]>
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <ac-Hdjl06eTvz_nj@qinghai> |
On Fri, Apr 03, 2026 at 10:01:57AM +0200, Dennis Preiser wrote:
>On Fri, Apr 03, 2026 at 10:36:59AM +0800, Kevin J. McCarthy wrote:
>> On Thu, Apr 02, 2026 at 07:51:44PM +0200, Dennis Preiser wrote:
>> > Unfortunately, configure doesn't seem to be able to find ncurses in
>> > $HOME/sw. It finds the system-wide ncurses library instead, and later
>> > mutt is linked against that one.
>>
>> So, to be clear, you don't see -I$HOME/sw/include in the various gcc lines
>> during compilation and you don't see -L$HOME/sw/lib in the final mutt
>> compilation line?
>
>No, I see it - it's there. My $HOME is /Users/dennis and it appears in
>every Makefile after configure in the CPPFLAGS and LDFLAGS variables, so
>it's also included in the calls to clang (no gcc here).
[...]
>The system-wide library here is libncurses, but the library in $HOME/sw
>is libncursesw. I think it should therefore be -lncursesw in MUTTLIBS.
Ahh... I see. It turns out the configure.ac is checking for ncurses
first, and then ncursesw:
for lib in ncurses ncursesw
do
AC_CHECK_LIB($lib, waddnwstr, [cf_ncurses="$lib"; break])
done
So it's finding the system "ncurses", and then saying 'okay I'm good'.
If you don't mind, would you try compiling from the git 'stable' branch,
but changing the check above on line 336 to reverse the order:
for lib in ncursesw ncurses
do
AC_CHECK_LIB($lib, waddnwstr, [cf_ncurses="$lib"; break])
done
You'll need to have autoconf and those utils installed though, and use
the 'prepare' script in place of you configure invocation... If that's
not feasible, let me know and I'll regen configure and email it to you
directly.
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmnPh3YACgkQre92hIAx a9p2eQ/+JxhKrbSedpaIucorMVYtgeAHuXOduEOXXJhvveIUpd8V0xlzSh1JUfoW 6mve/fer/W51bCv/3NEg8lsa+z2pZ/wTeuZIxlQna3qkZhNa+Z4o0McoDYR5+da3 P3rEdXBqyEethMDLhqCebIsiWxhZTbNK8dxNwbETI+m0aIkBP8CTMp6ugYeUcfP7 Vkwt7s2aptMe/kvOmJruIlw2AYYOeI+0dEwfJjg8dxcQ6HQ7PNRZE5AnBSZyJgFq 8cV/dbtsEP/HazjKS4F4OlYE3dmzulrfCSfPrXf8AYzvbQRYK2uwhC7GgMTM8xji FvmkYfPFqiyz4BP9zSQQV0Hu+z/8lFQ+/EWtOT1HerHv/NOgJk9NAJhRmVNHS2Zf mMZwRp37zvnehntztIhbktyBpUBaf4x4MYd+gtPX/KN+zQW2rMG/Djo9iTdyLh4x poshINbFIuW4p9NXd/mCrvVLahbVMpsRaKN5XcpYGFmx14LDv8vgBi3YTxhvXp+7 RPRe+ObakbQSgsASpSVh6O58zqWCgpJUM2EPWF/SZ7gtzrL+iaxPAKDefdTwZ+Q9 D8Mh2iUkC4NaFT7Rj1uhLa6PI8BWzzIhpBjBVUXUiRWXlbOYulgBB/fjrdt2gVWl zJU+rrhFfq5+R9nTKAvXPRAaDhC8XWoyjfwk6KXG7auHAScDBjk= =tUpu -----END PGP SIGNATURE-----