ruby-changes:41728
From: naruse <ko1@a...>
Date: Thu, 11 Feb 2016 05:57:38 +0900 (JST)
Subject: [ruby-changes:41728] naruse:r53802 (trunk): * configure.in (int128_t): don't check HAVE_XXX (for example
naruse 2016-02-11 05:57:49 +0900 (Thu, 11 Feb 2016) New Revision: 53802 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53802 Log: * configure.in (int128_t): don't check HAVE_XXX (for example HAVE___INT128) because RUBY_CHECK_SIZEOF() don't define it for config.h and use of $ac_cv_sizeof___int128 alternates the check. (and don't need to define because users shouldn't know that) Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 53801) +++ configure.in (revision 53802) @@ -2038,10 +2038,6 @@ if test "${rb_cv_type_$1}" != no; then https://github.com/ruby/ruby/blob/trunk/configure.in#L2038 t=AS_TR_SH($t) ]) cond= - AS_CASE([$t], [__int*], [ - cond="defined HAVE_"AS_TR_CPP($t) - echo "@%:@if $cond" >> confdefs.h - ]) AC_DEFINE([HAVE_]AS_TR_CPP($1), 1) if test "${rb_cv_type_$1}" = yes; then m4_bmatch([$2], [^[1-9][0-9]*$], [AC_CHECK_SIZEOF([$1], 0, [AC_INCLUDES_DEFAULT([$4])])], @@ -2050,9 +2046,6 @@ if test "${rb_cv_type_$1}" != no; then https://github.com/ruby/ruby/blob/trunk/configure.in#L2046 AC_DEFINE_UNQUOTED($1, [$rb_cv_type_$1]) AC_DEFINE_UNQUOTED([SIZEOF_]AS_TR_CPP($1), [SIZEOF_]AS_TR_CPP([$rb_cv_type_$1])) fi - AS_IF([test -n "$cond"], [ - echo "@%:@endif /* $cond */" >> confdefs.h - ]) fi AS_VAR_POPDEF([cond])dnl AS_VAR_POPDEF([t])dnl Index: ChangeLog =================================================================== --- ChangeLog (revision 53801) +++ ChangeLog (revision 53802) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Feb 11 05:33:24 2016 NARUSE, Yui <naruse@r...> + + * configure.in (int128_t): don't check HAVE_XXX (for example + HAVE___INT128) because RUBY_CHECK_SIZEOF() don't define it for + config.h and use of $ac_cv_sizeof___int128 alternates the check. + (and don't need to define because users shouldn't know that) + Wed Feb 10 12:03:41 2016 Nobuyoshi Nakada <nobu@r...> * configure.in (ARFLAGS): check if deterministic mode flag is -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/