Merge pull request #4385 from mono/work-btls-02152017
authorRodrigo Kumpera <kumpera@users.noreply.github.com>
Thu, 16 Feb 2017 17:42:57 +0000 (09:42 -0800)
committerGitHub <noreply@github.com>
Thu, 16 Feb 2017 17:42:57 +0000 (09:42 -0800)
[btls]: Make configure fail when building on Android without '--with-btls-android-ndk'

configure.ac

index 4778f68234bfca3a8e1df3884fe0de2cb118f37b..387b6d297ba5a3c1834e439291b5bf1276538ea0 100644 (file)
@@ -4106,6 +4106,8 @@ if test "x$enable_btls" = "xyes"; then
                BTLS_CMAKE_ARGS="$BTLS_CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE=$BTLS_ROOT/util/android-cmake/android.toolchain.cmake"
                if test "x$with_btls_android_ndk" != "x"; then
                        BTLS_CMAKE_ARGS="$BTLS_CMAKE_ARGS -DANDROID_NDK=\"$with_btls_android_ndk\""
+               else
+                       AC_MSG_ERROR([Need to pass the --with-btls-android-ndk argument when building with BTLS support on Android.])
                fi
        fi