Method: #check_libs

Defined in:
ext/leveldb/platform.rb

#check_libs(libs = [], fatal = false) ⇒ Object

here lies some platform-specific C++ compile and link environment variable hacking.

this code is entirely stolen from eventmachine’s extconf.rb. many thanks to @tmm1 for the pointer.



7
8
9
# File 'ext/leveldb/platform.rb', line 7

def check_libs libs=[], fatal=false
  libs.all? { |lib| have_library(lib) || (abort("could not find library: #{lib}") if fatal) }
end