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 | c3f8c067954023ca268a9c8d83b379f267c4f19d (patch) | |
tree | 0b4c7a62bf15826927bfc2a763e891f261e576b1 /configure.in | |
parent | 0cf4378f14318890b8694665e4a37b511d0ac566 (diff) | |
download | ruby-c3f8c067954023ca268a9c8d83b379f267c4f19d.tar.gz |
* configure.in (TIMEZONE_VOID): check whether timezone requires zero
arguments. [ruby-dev:32631]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 2ac140e334..1fd0097303 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, |