Top Level Namespace
Defined Under Namespace
Modules: ArgScanner, RequireAll Classes: NilClass
Instance Method Summary collapse
-
#real_have_header(header_name) ⇒ Object
Just a replacement of have_header because have_header searches not recursively :(.
Instance Method Details
#real_have_header(header_name) ⇒ Object
Just a replacement of have_header because have_header searches not recursively :(
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'ext/arg_scanner/extconf.rb', line 13 def real_have_header(header_name) if (have_header(header_name)) return true end yes_msg = "checking for #{header_name}... yes" no_msg = "checking for #{header_name}... no" include_env = ENV["C_INCLUDE_PATH"] if !include_env.empty? && !Dir.glob("#{include_env}/**/#{header_name}").empty? puts yes_msg return true end if !Dir.glob("/usr/include/**/#{header_name}").empty? puts yes_msg return true end puts no_msg return false end |