From the zeromq mailing list:
Building 0MQ from the development
trunk on a UNIX style OS (Linux, OS X)
requires that pkg-config
(http://pkg-config.freedesktop.org/wiki/)
be installed. A regular source build
of 0MQ does not require pkg-config.
On Mac OS X, pkg-config does not come
with the system, so when you try to do
./configure you may see errors like:
./configure: line 23913: syntax error
near unexpected token GLIB,'
./configure: line 23913:
PKG_CHECK_MODULES(GLIB, glib-2.0
gthread-2.0)'
To resolve this, you need to install
the latest pkg-config:
tar xzf pkg-config-0.25.tar.gz cd
pkg-config-0.25 ./configure
--prefix=/usr/local/pkg-config-0.25 --datarootdir=/usr/share make sudo make install
Then you will need to put
/usr/local/pkg-config-0.25/bin on your
$PATH. It is important to include the
"--datarootdir=/usr/share" option,
which will install the pkg.m4 file in
/usr/share/aclocal, where aclocal will
be able to find it.
Then you can build 0MQ:
cd zeromq2 ./autogen.sh # must do
this again after installing pkg-config
./configure # add other options
here make sudo make install
Edited to reflect latest pkg-config version (0.25).