title: Changing APR-embedded values returned by apr-1-config?
body: <p>Is it possible to modify APR's embedded values without recompiling APR? Or is there a way to edit and "reload" APR's configuration files?</p>
  
  <p>On OS X 10.8 there are several bad values embedded in the Apache Portable Runtime Library. These values are causing problems compiling software whose makefiles rely on APR derived values. </p>
  
  <p>Specifically, the values for <code>CC</code> reported by both <code>apr-1-config</code> and <code>apxs</code> point to a non-existent Xcode Toolchain (<code>OSX10.8.xctoolchain</code> instead of <code>XcodeDefault.xctoolchain</code>). It would also be nice to tell <code>apxs</code> to use a different version of <code>libtool</code>. </p>
  
  <p>The values seem to be pulling from some mix of <code>/usr/share/apr-1/build-1/apr_rules.mk</code> and <code>/usr/share/httpd/build/config_vars.mk</code>.
  Editing <code>config_vars.mk</code> will change the results of queries to <code>apxs</code> but will not affect output from <code>apr-1-config</code>. I changed the <code>LIBTOOL</code> definition in config_vars.mk to point to /usr/bin/ and got this: </p>
  
  <pre><code>$ apxs -q LIBTOOL
  /usr/bin/libtool --silent   // modified
  
  $ apr-1-config --apr-libtool
  /usr/share/apr-1/build-1/libtool  // default value
  </code></pre>
  
  <p>Neither <code>apxs</code> or <code>apr-1-config</code> reflected similar changes to <code>apr_rules.mk</code>. Unfortunately, I suspect my problem is with the values returned by <code>apr-1-config</code>.</p>
  
  <p><strong>More:</strong></p>
  
  <p>A simple workaround is to just symlink the xctoolchain as described here:  <a href="https://github.com/mxcl/homebrew/issues/13586" rel="nofollow">Homebrew Issue #13586</a></p>
  
  <pre><code>sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain
  </code></pre>