Files
metasploit-gs/external/ruby-lorcon2/extconf.rb
T
HD Moore ddeb80e0da See #412. Fix compile warnings and errors on 1.9, still needs testing
git-svn-id: file:///home/svn/framework3/trunk@7285 4d416f70-5f16-0410-b530-b9f4589650da
2009-10-26 21:09:40 +00:00

13 lines
346 B
Ruby

#!/usr/bin/env ruby
require 'mkmf'
if ( RUBY_VERSION =~ /^1\.9/ )
$CFLAGS += " -DRUBY_19"
end
if (have_library("orcon2", "lorcon_list_drivers", "lorcon2/lorcon.h") or find_library("orcon2", "lorcon_list_drivers", "lorcon2/lorcon.h"))
create_makefile("Lorcon2")
else
puts "Error: the lorcon2 library was not found, please see the README"
end