ruby-changes:2825
From: ko1@a...
Date: 19 Dec 2007 13:58:19 +0900
Subject: [ruby-changes:2825] nobu - Ruby:r14316 (ruby_1_8, trunk): * configure.in (TIMEZONE_VOID): check whether timezone requires zero
nobu 2007-12-19 13:57:46 +0900 (Wed, 19 Dec 2007)
New Revision: 14316
Modified files:
branches/ruby_1_8/ChangeLog
branches/ruby_1_8/configure.in
trunk/ChangeLog
trunk/configure.in
Log:
* configure.in (TIMEZONE_VOID): check whether timezone requires zero
arguments. [ruby-dev:32631]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/configure.in?r1=14316&r2=14315
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=14316&r2=14315
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14316&r2=14315
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/configure.in?r1=14316&r2=14315
Index: configure.in
===================================================================
--- configure.in (revision 14315)
+++ configure.in (revision 14316)
@@ -657,6 +657,17 @@
RUBY_CHECK_VARTYPE(altzone, [#include <time.h>], [long int])
if test "$rb_cv_var_timezone" = no; then
AC_CHECK_FUNCS(timezone)
+ if test "$ ac_cv_func_timezone" = yes; then
+ AC_CACHE_CHECK([whether timezone requires zero arguments], rb_cv_func_timezone_void,
+ [AC_TRY_COMPILE([#include <time.h>],
+ [(void)timezone(0, 0);],
+ [rb_cv_func_timezone_void=no],
+ [rb_cv_func_timezone_void=yes])]
+ )
+ if test $rb_cv_func_timezone_void = yes; then
+ AC_DEFINE(TIMEZONE_VOID)
+ fi
+ fi
fi
AC_CACHE_CHECK(for negative time_t for gmtime(3), rb_cv_negative_time_t,
Index: ChangeLog
===================================================================
--- ChangeLog (revision 14315)
+++ ChangeLog (revision 14316)
@@ -1,3 +1,8 @@
+Wed Dec 19 13:57:43 2007 Nobuyoshi Nakada <nobu@r...>
+
+ * configure.in (TIMEZONE_VOID): check whether timezone requires zero
+ arguments. [ruby-dev:32631]
+
Wed Dec 19 13:22:14 2007 NARUSE, Yui <naruse@r...>
* ext/nkf/nkf.c (NKF::_ENCODING): removed.
Index: ruby_1_8/configure.in
===================================================================
--- ruby_1_8/configure.in (revision 14315)
+++ ruby_1_8/configure.in (revision 14316)
@@ -595,6 +595,17 @@
RUBY_CHECK_VARTYPE(altzone, [#include <time.h>], [long int])
if test "$rb_cv_var_timezone" = no; then
AC_CHECK_FUNCS(timezone)
+ if test "$ ac_cv_func_timezone" = yes; then
+ AC_CACHE_CHECK([whether timezone requires zero arguments], rb_cv_func_timezone_void,
+ [AC_TRY_COMPILE([#include <time.h>],
+ [(void)timezone(0, 0);],
+ [rb_cv_func_timezone_void=no],
+ [rb_cv_func_timezone_void=yes])]
+ )
+ if test $rb_cv_func_timezone_void = yes; then
+ AC_DEFINE(TIMEZONE_VOID)
+ fi
+ fi
fi
AC_CACHE_CHECK(for negative time_t for gmtime(3), rb_cv_negative_time_t,
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog (revision 14315)
+++ ruby_1_8/ChangeLog (revision 14316)
@@ -1,3 +1,8 @@
+Wed Dec 19 13:57:43 2007 Nobuyoshi Nakada <nobu@r...>
+
+ * configure.in (TIMEZONE_VOID): check whether timezone requires zero
+ arguments. [ruby-dev:32631]
+
Wed Dec 19 12:01:42 2007 Nobuyoshi Nakada <nobu@r...>
* parse.y (f_rest_arg): check if duplicated. [ruby-core:14140]
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml