configure does not recognize androideabi

larvyde picture larvyde · Jan 4, 2011 · Viewed 17.6k times · Source

I am trying to compile a library using android-ndk-r5 standalone toolchain and autotools. When doing a ./configure, it fails with:

$ ./configure --host=arm-linux-androideabi
...snip...
checking host system type... Invalid configuration `arm-linux-androideabi': system `androideabi' not recognized
configure: error: /bin/sh ./config.sub arm-linux-androideabi failed

Explicitly setting CC and CXX does not work either (configure says to use --host).

The NDK docs and various materials online seems to indicate that using the standalone toolchain in this manner should be possible. What is wrong here? and how can I resolve it? (besides simply ditching autoconf and going back to Android.mk)

Answer

Peter Eisentraut picture Peter Eisentraut · Jan 4, 2011

You might need a newer config.sub and config.guess, 2010-05-20 or later.