scanclrmake/src/idcompiler.cxx
// ==========================================================================
// Return true if the compiler is identified.  If so, id is set with
// the name of the compiler used for configuration purposes, e.g. ntcl.
//
Return true if the compiler is identified.  If so, id is set with
the name of the compiler used for configuration purposes, e.g. ntcl.
Return true if the compiler is identified . If so id is set with the name of the compiler used for configuration purposes e . g . ntcl .
bool CompilerIdentifier::id(const string &compiler_name,
			    const string &compiler_path,
			    string &id)
{
    bool have_parser = false;
    string actual_path;
    if (checkCache(compiler_path, id)) {
	return !(id == "");
    }
    else if (compiler_path == "-@" || compiler_path == "") {
    }
    else if (userOverride(compiler_name, id)) {
	have_parser = true;
    }
    else if (findCompiler(compiler_path, compiler_name, actual_path)) {
	if (   tryGcc(actual_path, id, beVerbose)
            || tryOther(actual_path, id, beVerbose)) {
	    have_parser = true;
	}
    }
    else if (guessCompiler(compiler_name, id, beVerbose)) {
	have_parser = true;
    }
    if (have_parser) {
	cacheId(compiler_path, id);
    }
    else {
	cacheId(compiler_path, string(""));
    }
    return have_parser;
}
bool CompilerIdentifier :: id ( const string & compiler_name , const string & compiler_path , string & id ) { bool have_parser = false ; string actual_path ; if ( checkCache ( compiler_path , id ) ) { return ! ( id == " " ) ; } else if ( compiler_path == " " || compiler_path == " " ) { } else if ( userOverride ( compiler_name , id ) ) { have_parser = true ; } else if ( findCompiler ( compiler_path , compiler_name , actual_path ) ) { if ( tryGcc ( actual_path , id , beVerbose ) || tryOther ( actual_path , id , beVerbose ) ) { have_parser = true ; } } else if ( guessCompiler ( compiler_name , id , beVerbose ) ) { have_parser = true ; } if ( have_parser ) { cacheId ( compiler_path , id ) ; } else { cacheId ( compiler_path , string ( " " ) ) ; } return have_parser ; }
Return true if the compiler is identified.
Return true if the compiler is identified .