lib/autobuild/packages/autotools.rb in autobuild-0.6.5 vs lib/autobuild/packages/autotools.rb in autobuild-0.6.6
- old
+ new
@@ -88,10 +88,12 @@
Rake::Task[Package[pkg].installstamp].invoke
end
end
def prepare
+ configureflags.flatten!
+
# Check if config.status has been generated with the
# same options than the ones in configureflags
config_status = "#{builddir}/config.status"
force_reconfigure = false
@@ -100,10 +102,10 @@
raise "invalid output of config.status --version" unless output =~ /with options "(.*)"$/
options = Shellwords.shellwords($1)
# Add the --prefix option to the configureflags array
testflags = ["--prefix=#{prefix}"] + Array[*configureflags]
- old_opt = options.find { |o| !testflags.include?(o) }
+ old_opt = options.find { |o| !testflags.include?(o) }
new_opt = testflags.find { |o| !options.include?(o) }
if old_opt || new_opt
File.rm_f config_status # to force reconfiguration
end
end