aboutsummaryrefslogtreecommitdiffstats
path: root/ext/date/extconf.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-09-09 17:33:50 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-09-09 17:36:38 +0900
commit4a587fab94508271e2d6dc8370e1afe0974c7dab (patch)
tree1fc45d1cb3189b717db265b6a72c2495d5b7bd8a /ext/date/extconf.rb
parent28362876f2c342f89cf404cee9e5a8bebd538871 (diff)
downloadruby-wip/cleanup-configure.tar.gz
configure.in, date: move ext/date-specific existence checkwip/cleanup-configure
ext/date does not care of the type of timezone and altzone; just use have_var provided by mkmf.
Diffstat (limited to 'ext/date/extconf.rb')
-rw-r--r--ext/date/extconf.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/date/extconf.rb b/ext/date/extconf.rb
index a4f243ee10..8938df13b3 100644
--- a/ext/date/extconf.rb
+++ b/ext/date/extconf.rb
@@ -1,4 +1,9 @@
# frozen_string_literal: true
require 'mkmf'
+
config_string("strict_warnflags") {|w| $warnflags += " #{w}"}
+
+have_var("timezone", "time.h")
+have_var("altzone", "time.h")
+
create_makefile('date_core')