From d464704f111d211c1f1ff9ef23ef1d755054be00 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Wed, 15 Aug 2007 19:08:43 +0000 Subject: add tag v1_8_5_54 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_8_5_54@12952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby_1_8_5/ext/dl/extconf.rb | 193 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 193 insertions(+) create mode 100644 ruby_1_8_5/ext/dl/extconf.rb (limited to 'ruby_1_8_5/ext/dl/extconf.rb') diff --git a/ruby_1_8_5/ext/dl/extconf.rb b/ruby_1_8_5/ext/dl/extconf.rb new file mode 100644 index 0000000000..beb15ab04c --- /dev/null +++ b/ruby_1_8_5/ext/dl/extconf.rb @@ -0,0 +1,193 @@ +require 'mkmf' + +begin # for the exception SystemExit + +$:.unshift File.dirname(__FILE__) +require 'type' + +if( ARGV.include?("--help") ) + print < + --with-callback= + --enable-asm use the embedded assembler for passing arguments. + (this option is available for i386 machine now.) + --enable-dlstack use a stack emulation for constructing function call. +EOF + exit(0) +end + +($CPPFLAGS || $CFLAGS) << " -I." + +if (Config::CONFIG['CC'] =~ /gcc/) # from Win32API + $CFLAGS << " -fno-defer-pop -fno-omit-frame-pointer" +end + +$with_dlstack ||= true +$with_asm = ! $with_dlstack + +$with_type_int = try_cpp(<\n") + exit(1) + end +end +max_arg ||= 6 + +max_callback = with_config("callback","10").to_i +callback_types = DLTYPE.keys.length + + +$dlconfig_h = <