summaryrefslogtreecommitdiff
path: root/ext/thread/extconf.rb
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-09 11:48:34 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-09 11:48:34 +0000
commitb28988b4f18f34ced254373593de702fa97cff63 (patch)
tree0b2b65031eef87df776e14a24c7727621519d7f9 /ext/thread/extconf.rb
parentfff0db9dfe21f0cfb9394e8968d493ad1d5eaa6e (diff)
* ext/thread: Make style fixes (mostly de-K&R'ism) to match the
rest of the source code. * ext/thread: Make USE_MEM_POOLS an extconf option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/thread/extconf.rb')
-rw-r--r--ext/thread/extconf.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/thread/extconf.rb b/ext/thread/extconf.rb
index f83dacae39..efe1d5dbe5 100644
--- a/ext/thread/extconf.rb
+++ b/ext/thread/extconf.rb
@@ -1,2 +1,7 @@
require 'mkmf'
+
+if with_config('mem-pools', true)
+ $CPPFLAGS << ' -DUSE_MEM_POOLS'
+end
+
create_makefile("thread")