diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-04-17 19:08:53 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-04-17 19:08:53 +0900 |
commit | 17c3014bb7012793553c275f1509b2bb6f82cd50 (patch) | |
tree | 8a066441017a933ff103d1c78368bdb39d9e2b06 /configure.ac | |
parent | ed9ac0391725f616f101cf9311a43f6161d4c7d9 (diff) |
Prefer positive condition to double negative
Autoconf 2.70 seems to omit the check for the given CC,
`AC_COMPILE_IFELSE` does not know which is the cause of the
failure.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 27899f751d..ebfd52f62a 100644 --- a/configure.ac +++ b/configure.ac @@ -486,11 +486,10 @@ done AC_MSG_CHECKING([whether it is Android]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - @%:@ifdef __ANDROID__ - @%:@error android + @%:@ifndef __ANDROID__ + @%:@error Not android @%:@endif ]], [[]])], -[AC_MSG_RESULT(no)], [ AC_MSG_RESULT(yes) target_os=${target_os}-android @@ -501,7 +500,8 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ AC_MSG_RESULT($rb_android_api) RUBY_APPEND_OPTIONS(CPPFLAGS, -D__ANDROID_API__=$rb_android_api -Wno-macro-redefined) ]) -]) +], +[AC_MSG_RESULT(no)]) AC_SUBST(RM, ['rm -f']) AC_SUBST(CP, ['cp']) |