title: How to fix "missing some pkg-config macros" error?
body: <p>I'm trying to install zeromq on OS X 10.11.2. To do this, the following shell commands were suggested:</p>
  
  <pre><code>cd libzmq
  ./autogen.sh &amp;&amp; configure &amp;&amp; make -j 4
  </code></pre>
  
  <p>But when I enter the second line, I get the following errors:</p>
  
  <pre><code>configure.ac:59: error: missing some pkg-config macros (pkg-config package)
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation.
  configure.ac:68: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
  configure.ac:69: error: possibly undefined macro: AC_PROG_LIBTOOL
  configure.ac:253: error: possibly undefined macro: AC_MSG_ERROR
  configure.ac:427: error: missing some pkg-config macros (pkg-config package)
  configure:6315: error: possibly undefined macro: AC_DISABLE_STATIC
  configure:6319: error: possibly undefined macro: AC_ENABLE_STATIC
  autoreconf: /usr/local/Cellar/autoconf/2.69/bin/autoconf failed with exit status: 1
  autogen.sh: error: autoreconf exited with status 0
  </code></pre>
  
  <p>How can I fix this and successfully install zeromq?</p>