From: Wim Vander Schelden Date: 2007-01-22T19:12:54+09:00 Subject: Re: Ruby extension tutorial Eric Hodel schreef: > On Jan 22, 2007, at 01:46, Wim Vander Schelden wrote: >> Eric Hodel schreef: >>> I'd change this to: >>> >>> abort 'need stdio.h' unless have_header("stdio.h") >>> >> Yes, I first did that as well, I thought have_header and the like >> aborted all by themselves. I changed it to abort 'need stdio.h' now, >> looks cleaner when it fails. > > It allows you to look for headers that may have different names for > different versions like: > > have_header "foo1.h" or > have_header "foo2.h" or > abort "can't find headers for foo" > > --Eric Hodel - drbrain@segment7.net - http://blog.segment7.net > > I LIT YOUR GEM ON FIRE! > > > I might add this to the discussion of the extconf.rb file later, I think it deserves a little extra attention. - Wim