title: the program arm-linux-androideabi-gcc is currently not installed
body: <p>I'm trying to compile FFTW for android using NDK r10.
  Using the instructions here: 
  <a href="http://blog.jimjh.com/compiling-open-source-libraries-with-android-ndk-part-2.html" rel="nofollow">http://blog.jimjh.com/compiling-open-source-libraries-with-android-ndk-part-2.html</a></p>
  
  <p>However, when I run ./configure it fails because of the error: the program arm-linux-androideabi-gcc is currently not installed.<br>
  I validate that my PATH includes the needed entries - and of course the file arm-linux-androideabi-gcc exists in the bin folder.</p>
  
  <p>can you please help me </p>
  
  <pre><code>#!/bin/sh
  # FourierTest/build.sh
  # Compiles fftw3 for Android
  # Make sure you have NDK_ROOT defined in .bashrc or .bash_profile
  
  INSTALL_DIR="`pwd`/jni/analysis/fftw3"
  SRC_DIR="`pwd`/../fftw-3.3.4"
  NDK_ROOT="~/utils/android-ndk-r10"
  
  cd $SRC_DIR
  
  export ANDROID_NDK_ROOT="~/utils/android-ndk-r10"
  export ANDROID_NDK_TOOLCHAIN="~/utils/android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/"
  
  export PATH="~/utils/android-ndk-r10/toolchains/arm-linux androideabi-4.8/prebuilt/linux-x86_64/bin/:$PATH"
  export SYS_ROOT="~/utils/android-ndk-r10/platforms/android-14/arch-arm/"
  export CC="arm-linux-androideabi1-gcc --sysroot=$SYS_ROOT"
  export LD="arm-linux-androideabi-ld"
  export AR="arm-linux-androideabi-ar"
  export RANLIB="arm-linux-androideabi-ranlib"
  export STRIP="arm-linux-androideabi-strip"
  
  mkdir -p $INSTALL_DIR
  ./configure --prefix=$INSTALL_DIR --enable-float
  
  make
  make install
  
  exit 0
  </code></pre>
  
  <p>Edit: I had small issue with my path before because of me playing with it. Now it gives me:
  "Gcc error: gcc: error trying to exec 'cc1': execvp: No such file or directory" </p>