- else*/
- cxx_ver = "-";
- }
-
- string fn = include.substr(1);
- if(builder.get_verbose()>=5)
- IO::print("Looking for include %s from %s with path %s\n", fn, from, join(path.begin(), path.end()));
-
- SearchPath syspath;
- const Architecture &arch = builder.get_current_arch();
- if(arch.is_native())
- syspath.push_back("/usr/include");
- else
- syspath.push_back("/usr/"+arch.get_cross_prefix()+"/include");
- if(cxx_ver!="-")
- syspath.push_back((FS::Path("/usr/include/c++/")/cxx_ver).str());
-
- FileTarget *tgt = 0;
- if(include[0]=='\"')
- tgt = get_header(FS::Path(from)/fn);
- for(list<string>::const_iterator j=path.begin(); (!tgt && j!=path.end()); ++j)
- tgt = get_header(FS::Path(*j)/fn);
- for(list<string>::const_iterator j=syspath.begin(); (!tgt && j!=syspath.end()); ++j)
- tgt = get_header(FS::Path(*j)/fn);