自作では、重要なのは警告メッセージです。
~/code/foss/java/jzmq$ brew install pkg-config
==> Downloading http://pkg-config.freedesktop.org/releases/pkg-config-0.25.tar.gz
==> ./configure --disable-debug --prefix=/usr/local/Cellar/pkg-config/0.25 --with-pc-path=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11/lib/pkgconfig
==> make install
Warning: m4 macros were installed to "share/aclocal".
Homebrew does not append "/usr/local/share/aclocal"
to "/usr/share/aclocal/dirlist". If an autoconf script you use
requires these m4 macros, you'll need to add this path manually.
==> Summary
/usr/local/Cellar/pkg-config/0.25: 8 files, 232K, built in 19 seconds
/usr/local/Cellar/pkg-config/0.25/share/aclocal/ を見ると、次のように表示されます。
$ ls /usr/local/Cellar/pkg-config/0.25/share/aclocal/
pkg.m4
次のように、/usr/local/Cellar/pkg-config/0.25/share/aclocal/ を /usr/share/aclocal/dirlist に追加する必要があります。
$ cat /usr/share/aclocal/dirlist
/usr/local/share/aclocal
/usr/local/Cellar/pkg-config/0.25/share/aclocal/
そして、autogen とその他の手順を再実行します。