title: XCode Build Failure - aclocal [/share] files missing
body: <p>I'm trying to build an XCode project, and am getting the following error when trying to build:</p>
  
  <pre><code>...
  Building for x86_64 i386 armv7 armv7s arm64
  Building libssh2 for iphonesimulator7.1 x86_64
  Please stand by...
  /Users/jordanforeman/dev/ios/MyProject/objective-git/External/libssh2-ios/bin/iphonesimulator7.1-x86_64.sdk/build-libssh2.log
  Command /bin/sh failed with exit code 1
  
  ** BUILD FAILED **
  
  
  The following build commands failed:
      PhaseScriptExecution Run\ Script /Users/jordanforeman/Library/Developer/Xcode/DerivedData/MyProject-azifgvrunekkgmagzghrrvpdathe/Build/Intermediates/ObjectiveGitFramework.build/Debug-iphoneos/libssh2-iOS.build/Script-6A3C609117D5963700382DFF.sh
  (1 failure)
  </code></pre>
  
  <p>Taking a look at <code>build-libssh2.log</code> I see the following:</p>
  
  <pre><code>aclocal: error: aclocal: file '/usr/local/share/aclocal/pkg.m4' does not exist
  autoheader: error: AC_CONFIG_HEADERS not found in configure.ac
  cp: src/libssh2_config.h.in: No such file or directory
  configure.ac:5: error: possibly undefined macro: AM_CONFIG_HEADER
        If this token and others are legitimate, please use m4_pattern_allow.
        See the Autoconf documentation.
  
  ...
  
  tests/Makefile.am:11: error: SSHD does not appear in AM_CONDITIONAL
  parallel-tests: installing './test-driver'
  /usr/local/Cellar/automake/1.14.1/share/automake-1.14/am/check2.am: error: am__EXEEXT does not appear in AM_CONDITIONAL
  </code></pre>
  
  <p><a href="http://pastebin.com/tUah5M30" rel="nofollow">full log here</a></p>
  
  <p>Digging a little further, it would seem that all of the files in <code>/usr/local/share/aclocal</code> are symlinks to themselves. Is that intended, or is this causing my problems?</p>
  
  <p>Also, when I run <code>which aclocal</code> I get pointed to <code>/usr/local/bin/aclocal</code>. Does this mean that XCode or some shell script is trying to use the wrong aclocal install? If so - how do I fix that?</p>
  
  <p>That's about as far as I've got right now. I'm going to keep digging, and I'll update this as I learn more.</p>