title: pecl installs to directory other than ext_dir
body: <p>I have been plugging away, trying to install the pecl_http extension (it is a dependency for a library I am going to use). I am having an issue where the extension is being installed in the wrong directory.</p>
  
  <p>I am working on an Apple MacBook Air, with OSX 10.8.5. I have the php that comes with OSX, and I have installed a more recent version (5.4.27) via Homebrew. I have configured my path to include the copy of php I installed via Homebrew.</p>
  
  <p>My pecl configuration, and my php configuration, list the following as the extension_dir (ext_dir):</p>
  
  <pre><code>/usr/local/php5/lib/php/extensions/no-debug-non-zts-20100525
  </code></pre>
  
  <p>However, the output from the <code>pecl install pecl_install</code> command tells me that the extension has been installed in the following location:</p>
  
  <pre><code>/usr/lib/php/extensions/no-debug-non-zts-20090626
  </code></pre>
  
  <p>I have included the following output for reference:</p>
  
  <pre><code>Build process completed successfully
  Installing '/usr/include/php/ext/http/php_http.h'
  Installing '/usr/include/php/ext/http/php_http_api.h'
  Installing '/usr/include/php/ext/http/php_http_buffer.h'
  Installing '/usr/include/php/ext/http/php_http_client.h'
  Installing '/usr/include/php/ext/http/php_http_client_request.h'
  Installing '/usr/include/php/ext/http/php_http_client_response.h'
  Installing '/usr/include/php/ext/http/php_http_cookie.h'
  Installing '/usr/include/php/ext/http/php_http_curl.h'
  Installing '/usr/include/php/ext/http/php_http_encoding.h'
  Installing '/usr/include/php/ext/http/php_http_env.h'
  Installing '/usr/include/php/ext/http/php_http_env_request.h'
  Installing '/usr/include/php/ext/http/php_http_env_response.h'
  Installing '/usr/include/php/ext/http/php_http_etag.h'
  Installing '/usr/include/php/ext/http/php_http_exception.h'
  Installing '/usr/include/php/ext/http/php_http_filter.h'
  Installing '/usr/include/php/ext/http/php_http_header.h'
  Installing '/usr/include/php/ext/http/php_http_header_parser.h'
  Installing '/usr/include/php/ext/http/php_http_info.h'
  Installing '/usr/include/php/ext/http/php_http_message.h'
  Installing '/usr/include/php/ext/http/php_http_message_body.h'
  Installing '/usr/include/php/ext/http/php_http_message_parser.h'
  Installing '/usr/include/php/ext/http/php_http_misc.h'
  Installing '/usr/include/php/ext/http/php_http_negotiate.h'
  Installing '/usr/include/php/ext/http/php_http_object.h'
  Installing '/usr/include/php/ext/http/php_http_options.h'
  Installing '/usr/include/php/ext/http/php_http_params.h'
  Installing '/usr/include/php/ext/http/php_http_querystring.h'
  Installing '/usr/include/php/ext/http/php_http_strlist.h'
  Installing '/usr/include/php/ext/http/php_http_url.h'
  Installing '/usr/include/php/ext/http/php_http_version.h'
  Installing '/usr/lib/php/extensions/no-debug-non-zts-20090626/http.so'
  </code></pre>
  
  <p>Additionally, I have configured pecl to use the php.ini file which is associated with the php I installed via Homebrew.</p>
  
  <p>My questions are:</p>
  
  <p>What would cause pecl to install in this directory (which I have not configured it to), and what can I do to solve this problem?</p>