Trying to follow the directions from: http://github.com/zeromq/jzmq
I installed pkg-config using Homebrew and then I run the following commands: ./autogen.sh ./configure
The configure fails with:
checking how to hardcode library paths into programs... immediate ./configure: line 15263: syntax error near unexpected token `newline' ./configure: line 15263: ` PKG_CHECK_MODULES('
For me, the problem was that I didn't have pkg-config installed.
With homebrew, the key is the warning message:
If you look at /usr/local/Cellar/pkg-config/0.25/share/aclocal/, you will see:
You need to append /usr/local/Cellar/pkg-config/0.25/share/aclocal/ to /usr/share/aclocal/dirlist,like this:
And then re-run autogen and the other steps.
A better solution is:
This will allow the version of aclocal that ships with OSX to find any macros installed by homebrew packages.
I came here with the same question, and I don't feel this is answered. I also installed ZeroMQ and pkg-config via Homebrew. /usr/local/share/aclocal/pkg.m4 exists and comes from pkg-config 0.25. It seems that Homebrew has satisfied the requirements listed but it still fails.
I made a simple list about jzmq building for MacOS.
Install brew
https://brew.sh
Install tools for jzmq building
Download jzmq source
https://github.com/zeromq/jzmq source download to ~/somewhere/jzmq
Add symbolic link to /usr/local/include
Add symbolic linke to /usr/local/lib
Build jzmq-jni
Add option to VM options
VM options
-Djava.library.path=/usr/local/lib
On Osx Mountain Lion I don't have the dirlist file as Phil Calçado said, but a simple symlink from
/usr/local/Cellar/pkg-config/[version]/share/aclocal/pkg.m4
to/usr/share/aclocal
made the trick and now jzmq build fine.