408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
|
# File 'lib/mkmf-gnome2.rb', line 408
def check_ruby_func
= "ruby.h"
have_func("rb_define_alloc_func", )
have_func("rb_block_proc", )
STDOUT.print("checking for new allocation framework... ")
if Object.respond_to? :allocate
STDOUT.print "yes\n"
$defs << "-DHAVE_OBJECT_ALLOCATE"
else
STDOUT.print "no\n"
end
STDOUT.print("checking for attribute assignment... ")
STDOUT.flush
if defined? try_compile and try_compile "#include \"ruby.h\"\n#include \"node.h\"\nint node_attrasgn = (int)NODE_ATTRASGN;\n"
STDOUT.print "yes\n"
$defs << "-DHAVE_NODE_ATTRASGN"
else
STDOUT.print "no\n"
end
end
|