def arguments_for_install
if ruby?(:ruby, :ree, :goruby, :tcs)
begin
require 'rbconfig'
require 'shellwords'
config_args = Shellwords.shellwords(Config::CONFIG['configure_args'].to_s.strip)
real_arguments = []
config_args.each do |arg|
if ruby?(:ree) && arg == "--enable-mbari-api"
next
elsif arg =~ /^--prefix/
next
elsif arg =~ /^[^\-]/
next
else
real_arguments << normalize_argument(arg)
end
end
config_args = real_arguments.join(",")
return "-C #{quote(config_args)}" unless config_args.strip.empty?
rescue LoadError
end
end
return ""
end