mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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.
This commit is contained in:
parent
ed9ac03917
commit
17c3014bb7
1 changed files with 4 additions and 4 deletions
|
@ -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'])
|
||||
|
|
Loading…
Add table
Reference in a new issue