ext/extconf.rb in google_hash-0.6.2 vs ext/extconf.rb in google_hash-0.7.0

- old
+ new

@@ -4,15 +4,20 @@ require 'sane' # re-build google's lib locally... dir = Dir.pwd -Dir.chdir 'sparsehash-1.5.2' do +Dir.chdir 'sparsehash-1.8.1' do dir = dir + '/local_installed' - command = "sh configure --prefix=#{dir} && make && make install" - puts command - # only if necessary - system command unless File.directory?(dir) + # only if haven't already built it...except who installing a gem would ever have it already there? reinstallers? + unless File.directory?(dir) + puts 'building local copy/version of google sparse/dense hash library' + configure = "sh configure --prefix=#{dir}" + puts configure + system configure + system "make" + system "make install" + end end $CFLAGS += " -I./local_installed/include " if RUBY_VERSION < '1.9'