Fix configuring with --enable-checking on non-Android platforms

* configure.ac (ENABLE_CHECKING): Fix test for --with-android.
This commit is contained in:
Eli Zaretskii 2023-08-07 17:43:33 +03:00
parent 72a606bb27
commit a95253f5cc

View file

@ -723,7 +723,7 @@ AS_IF([test "x$XCONFIGURE" = "xandroid" \
# There is little point in enabling checking in the build machine if
# cross-compiling for Android.
AS_IF([test -z "$with_android" || test -n "$XCONFIGURE"],[
AS_IF([test "$with_android" = no || test -n "$XCONFIGURE"],[
if test x$ac_enable_checking != x ; then
AC_DEFINE([ENABLE_CHECKING], [1],
[Define to 1 if expensive run-time data type and consistency checks are enabled.])