title: pkg-config: PKG_PROG_PKG_CONFIG: command not found
body: <p>I get the following error</p>
  
  <pre><code>./configure: line 11162: PKG_PROG_PKG_CONFIG: command not found
  </code></pre>
  
  <p>when this is code is executed in (<a href="https://github.com/kivy/kivy-ios/blob/master/tools/build-sdlmixer.sh" rel="noreferrer" title="build file link">kivy-ios/tools-build-sdlmixer.sh</a>)</p>
  
  <pre><code>if [ ! -f libtremor/tremor/.libs/libvorbisidec.a ]; then
          try cd libtremor/tremor
          echo &gt; asm_arm.h
          CC="$ARM_CC" AR="$ARM_AR" \
          LDFLAGS="$ARM_LDFLAGS" CFLAGS="$ARM_CFLAGS" \
          OGG_CFLAGS="-I../../libogg/include" \
          OGG_LDFLAGS="-L../../libogg/src/.libs" \
          PKG_CONFIG_LIBDIR="../../libogg" \
          ACLOCAL_FLAGS="-I $DESTROOT/share/aclocal -I `aclocal --print-ac-dir`" ./autogen.sh \
              --prefix=$DESTROOT \
                  --disable-shared \
                  --host=arm-apple-darwin \
                  --enable-static=yes \
                  --enable-shared=no
          try make
          try make install
          try cd ../..
  fi
  </code></pre>
  
  <p>My pkg-config application is in my PATH (/usr/local/bin). I've also tried exporting PKG_CONFIG_PATH on my command line to /usr/local/bin/pkg-config and /usr/local/lib/pkgconfig. I've tried exporting LD_LIBRARY_PATH to various paths as well (not sure where it should point to tbh), and that doesn't seem to help either.</p>
  
  <p>I read something about multiple aclocal directories on my system, which could be problematic, but its not clear to me how to resolve that or determine its the issue.</p>
  
  <p>This linux build newbie (on OSX) appreciates any help.</p>