diff options
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index d814673f36bd..47980c593f37 100644 --- a/configure.ac +++ b/configure.ac @@ -340,7 +340,7 @@ AC_ARG_WITH(android-sdk, ,) ANDROID_NDK_HOME= -if test -z "$with_android_ndk" -a -e "$SRC_ROOT/external/android-ndk"; then +if test -z "$with_android_ndk" -a -e "$SRC_ROOT/external/android-ndk" -a "$build" != "$host"; then with_android_ndk="$SRC_ROOT/external/android-ndk" fi if test -n "$with_android_ndk"; then @@ -568,7 +568,7 @@ dnl =================================================================== dnl --with-android-sdk dnl =================================================================== ANDROID_SDK_HOME= -if test -z "$with_android_sdk" -a -e "$SRC_ROOT/external/android-sdk-linux"; then +if test -z "$with_android_sdk" -a -e "$SRC_ROOT/external/android-sdk-linux" -a "$build" != "$host"; then with_android_sdk="$SRC_ROOT/external/android-sdk-linux" fi if test -n "$with_android_sdk"; then |