diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-19 04:57:46 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-19 04:57:46 +0000 |
| commit | 0759b62240acf1d27f8b5635be52468c4350194a (patch) | |
| tree | 0b4c7a62bf15826927bfc2a763e891f261e576b1 | |
| parent | dea29ccb3533c13c2425285aec12893967dd2efd (diff) | |
| download | ruby-0759b62240acf1d27f8b5635be52468c4350194a.tar.gz ruby-0759b62240acf1d27f8b5635be52468c4350194a.tar.xz ruby-0759b62240acf1d27f8b5635be52468c4350194a.zip | |
* configure.in (TIMEZONE_VOID): check whether timezone requires zero
arguments. [ruby-dev:32631]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | configure.in | 11 |
2 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed Dec 19 13:57:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * configure.in (TIMEZONE_VOID): check whether timezone requires zero + arguments. [ruby-dev:32631] + Wed Dec 19 13:22:14 2007 NARUSE, Yui <naruse@ruby-lang.org> * ext/nkf/nkf.c (NKF::_ENCODING): removed. diff --git a/configure.in b/configure.in index 2ac140e33..1fd009730 100644 --- a/configure.in +++ b/configure.in @@ -657,6 +657,17 @@ RUBY_CHECK_VARTYPE(timezone, [#include <time.h>], [long int]) 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, |
