Fix up Rubinius specific library specs.
[rbx.git] / lib / rubygems / ext / configure_builder.rb
blob1cde6915a74f09db8227a2325512b5842269876d
1 #--
2 # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
3 # All rights reserved.
4 # See LICENSE.txt for permissions.
5 #++
7 require 'rubygems/ext/builder'
9 class Gem::Ext::ConfigureBuilder < Gem::Ext::Builder
11   def self.build(extension, directory, dest_path, results)
12     unless File.exist?('Makefile') then
13       cmd = "sh ./configure --prefix=#{dest_path}"
15       run cmd, results
16     end
18     make dest_path, results
20     results
21   end
23 end