From c363aae8d1d8419f08a85d92d7a7a75d433c06d0 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Wed, 15 Feb 2017 19:13:58 +0100 Subject: [PATCH] [btls]: Make configure fail when building on Android without '--with-btls-android-ndk'. When building on Android with BTLS support, the '--with-btls-android-ndk' argument is required to teach the underlying cmake the NDK location. Fixes #52511. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 4778f68234b..387b6d297ba 100644 --- a/configure.ac +++ b/configure.ac @@ -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 -- 2.25.1