title: ./configure command not found, pkg-config
body: <p>When trying to install pkg-config on a brand new install of 10.8.5 i got a ./configure: no such file or directory.</p>
  
  <p>first I downloaded the source with git</p>
  
  <p><code>git clone git://anongit.freedesktop.org/pkg-config</code></p>
  
  <p>then I switched to the directory</p>
  
  <pre><code>cd /Users/nah/Desktop/pkg-config
  </code></pre>
  
  <p>when I run ls I can see the configure file but when I run</p>
  
  <pre><code>./configure --with-internal-glib
  </code></pre>
  
  <p>I get ./configure: no such file or directory. Even though I see the file in the pkg-config directory.
  When I searched for answers online The two i saw were are you in the correct directory which i clearly am, and the second answer i saw was to use homebrew or Macports. I know homebrew and macports will work but that doesn't really answer the question it's sort of a work around. I than realized that the configure file wasn't executable so I ran chmod on it to make it executable but I get the same thing. The other thing I thought of was the configure file is configure.ac , a quick glance at a bunch of other source files on my computer and they all have configure files with no .ac.
  I also tried dragging the executable configure file to terminal to run it and I got
   line 1: syntax error near unexpected token <code>[2.62}</code>
   /Users/nah/pkg-config/configure.ac: line 1: 'AC_PREREQ([2.62])'
  do you think there's a problem with the configure script for Mountain lion, i did this on snow leopard about a month ago with no problems.</p>
  
  <p>so in conclusion, i can't install pkg-config using normal ./configure; make; make install;
  And would like to know way to solve problem with out homebrew or Macports work around.</p>