- const PackageList &reqs = i->get_requires();
- for(PackageList::const_iterator j=reqs.begin(); j!=reqs.end(); ++j)
- (*j)->configure(opts, flag&2);
- }
-}
-
-void SourcePackage::init_config()
-{
- config.add_option("profile", "default", "Configuration profile");
- config.add_option("tempdir", "temp", "Directory for storing temporary files");
- config.add_option("outdir", ".", "Directory to put build results in");
- config.add_option("optimize", "0", "Compiler optimization level");
- config.add_option("strip", "no", "Strip symbols from programs");
- config.add_option("debug", "no", "Produce debugging symbols");
- config.add_option("staticlibs", "local", "Use static libraries");
-
- for(FeatureList::iterator i=features.begin(); i!=features.end(); ++i)
- config.add_option("with_"+i->name, i->def_value, i->descr);