From: ts Date: 2006-08-28T22:17:57+09:00 Subject: Re: Version Check in C Extension >>>>> "A" == Athanasopoulos writes: A> Should I generate the macro HAVE_RB_FRAME_THIS_FUNC in the Makefile? I A> thought Ruby 1.9 had it by default defined in its internals. Part of extconf.rb for bdb ["rb_frame_this_func", "rb_block_proc", "rb_io_stdio_file"].each do |f| if have_func(f) $CFLAGS += " -DHAVE_#{f.upcase}" end end ["insert", "values_at"].each do |f| print "checking for Array##{f}... " if [].respond_to?(f) puts "yes" $CFLAGS += " -DHAVE_RB_ARY_#{f.upcase}" else puts "no" end end Guy Decoux