*/
void Package::configure(const RawOptionMap &opts, unsigned flag)
{
- if(conf_done || !buildable)
+ if(conf_done)
return;
-
+
if(builder.get_verbose()>=3)
cout<<"Configuring "<<name<<'\n';
-
- init_config();
- if(flag && config.process(opts) && !builder.get_dry_run())
- {
- if(builder.get_verbose()>=2)
- cout<<"Configuration of "<<name<<" changed.\n";
- config.save(source/".options.cache");
- }
-
- for(PackageList::iterator i=all_reqs.begin(); i!=all_reqs.end(); ++i)
+ if(buildable)
{
- (*i)->configure(opts, flag&2);
- if((*i)->get_need_path())
- (*i)->set_path(config.get_option((*i)->get_name()+"_path").value);
+ init_config();
+
+ if(flag && config.process(opts) && !builder.get_dry_run())
+ {
+ if(builder.get_verbose()>=2)
+ cout<<"Configuration of "<<name<<" changed\n";
+ config.save(source/".options.cache");
+ }
+
+ for(PackageList::iterator i=all_reqs.begin(); i!=all_reqs.end(); ++i)
+ {
+ if((*i)->get_need_path())
+ (*i)->set_path(config.get_option((*i)->get_name()+"_path").value);
+ (*i)->configure(opts, flag&2);
+ }
}
-
+
create_build_info();
conf_done=true;
}
else if(name=="fmod4")
{
+ cout<<path<<'\n';
export_binfo.libs.push_back("fmodex");
if(!path.empty())
{