title: Cross-compiling Makefile: dealing with test programs
body: <p>I'm trying to cross-compile several libraries from OSX to iOS. I've successfully cross-compiled libjpeg and libogg.</p>
  
  <p>But I can't compile libvorbis because <code>configure</code> insists on creating and running a small test program. This obviously fails, because it creates an <code>armv7</code> binary, fails to run it, and then interprets this as missing ogg libraries.</p>
  
  <p>How do you usually deal with this kind of problem? I'm tempted to hack the configure script to work around these issues, but because of this kind of failure some features may be disabled. I'm also thinking of letting <code>configure</code> generate a native Makefile and then convert it to use the iOS toolchain, but this seems too error prone.</p>
  
  <p>Any advice?</p>