# File utils.rb, line 93 def testForLibrary( library, nicename=nil ) nicename ||= library message( "Testing for the #{nicename} library..." ) if $:.detect {|dir| File.exists?(File.join(dir,"#{library}.rb")) || File.exists?(File.join(dir,"#{library}.so"))} message( "found.\n" ) return true else message( "not found.\n" ) return false end end