Also, I *can* brew install mu (0.9.8) without mu4e, and it seems to run fine: it indexes my ~/Maildir, I can mu find <predicate> from bash, the results look right. I think that brew's install of mu uses a prebuilt binary, but --with-emacs requires recompiling. Of course I want the emacs bits too, but this is an interesting start.
I also tried to compile directly from git, and got a different error: autoconf completes, but configure does not:
pball@petunia:~/src/mu
$ autoreconf -i
pball@petunia:~/src/mu
$ ./configure
<snip>
checking for /usr/local/bin/gcc option to accept ISO C99... none needed
checking for /usr/local/bin/gcc option to accept ISO Standard C... (cached) none needed
checking for /usr/local/bin/gcc option to accept ISO C99... (cached) none needed
checking how to run the C preprocessor... /usr/local/bin/cpp
checking for grep that handles long lines and -e... /Users/pball/bin/grep
checking for egrep... /Users/pball/bin/grep -E
checking for ANSI C header files... yes
checking for a sed that does not truncate output... /usr/local/bin/gsed
./configure: line 5754: syntax error near unexpected token `AX_COMPILER_FLAGS_CFLAGS'
./configure: line 5754: ` AX_REQUIRE_DEFINED(AX_COMPILER_FLAGS_CFLAGS)'
(NB that the $HOME/bin/grep and gsed just symlink to the gnu versions in /usr/local/bin/)
Using the trick to replace /usr/bin/emacs I managed to get brew to compile on a different machine running MacOS 10.12.1 just a few weeks ago, but I can't make it work now.
Am I missing something obvious? I suspect that something in the toolchain is different (and wrong), but I'm not sure what. Thanks in advance -- PB.
full brew log:
pball@petunia:~/src/mu
$ cat /Users/pball/Library/Logs/Homebrew/mu/01.autoreconf
2016-12-19 23:52:05 -0800
autoreconf
-ivf
autoreconf: Entering directory `.'
autoreconf:
configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf:
configure.ac: tracing
autoreconf:
configure.ac: creating directory xua
autoreconf: running: glibtoolize --copy --force
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'xua'.
glibtoolize: copying file 'xua/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoconf --force
configure:5822: error: possibly undefined macro: dnl
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure:5897: error: possibly undefined macro: AS_ECHO
autoreconf: /usr/local/Cellar/autoconf/2.69/bin/autoconf failed with exit status: 1
HOMEBREW_VERSION: 1.1.5
ORIGIN:
https://github.com/Homebrew/brewHEAD: 9cd5a21b473f0271b162bbe7f77f7d1468c0cfa1
Last commit: 6 days ago
Core tap ORIGIN:
https://github.com/Homebrew/homebrew-coreCore tap HEAD: 3977167695b3cc0e917370191c44a42046e61a40
Core tap last commit: 14 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN:
https://homebrew.bintray.comCPU: octa-core 64-bit skylake
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.11.0 => /usr/local/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: N/A
macOS: 10.12.2-x86_64
Xcode: N/A
CLT: 8.2.0.0.1.1480973914
X11: N/A
HOMEBREW_CC: gcc-5
HOMEBREW_CXX: g++-5
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local/opt/gettext:/usr/local/opt/libffi:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/pcre/lib/pkgconfig:/usr/local/opt/glib/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/fontconfig/lib/pkgconfig:/usr/local/opt/pixman/lib/pkgconfig:/usr/local/opt/cairo/lib/pkgconfig:/usr/local/opt/gobject-introspection/lib/pkgconfig:/usr/local/opt/gmime/lib/pkgconfig:/usr/local/opt/xapian/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.12
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal
PATH: /usr/local/bin:/usr/local/Homebrew/Library/Homebrew/shims/super:/usr/local/opt/autoconf/bin:/usr/local/opt/automake/bin:/usr/local/opt/libtool/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/gettext/bin:/usr/local/opt/pcre/bin:/usr/local/opt/glib/bin:/usr/local/opt/libpng/bin:/usr/local/opt/freetype/bin:/usr/local/opt/fontconfig/bin:/usr/local/opt/cairo/bin:/usr/local/opt/gobject-introspection/bin:/usr/local/opt/xapian/bin:/usr/local/opt/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/gcc5/bin