function sparse_lib_versions
    spparms('spumoni',2)

    load west0479
    C = west0479;
    A = C * C';
    n = size(A,1);
    b = rand(n,1);

    filename = fullfile(tempdir, 'sparse_info.txt');
    fclose(fopen(filename,'wt'));  % erase existing file
    diary(filename);

    p = amd(A);
    p = colamd(A);
    x = C \ b;
    x = A \ b;

    S = C (:, 1:n-1);
    x = S \ b;

    diary off
    spparms('spumoni',0)

    hyperlink = ['<a href="matlab:edit(''' filename ''')">' filename '</a>'];
    fprintf('\n=> sparse matrix library versions (from %s):\n', hyperlink);
    fprintf(  '============================================================\n');
    
    try
        % First try running the internal grep command (if available)
        grep('-Q', 'version ',  filename);
        grep('-Q', 'UMFPACK V', filename);
    catch
        % Try running the external grep command
        dos(['grep -h "version "  "' filename '"']);
        dos(['grep -h "UMFPACK V" "' filename '"']);
    end

    %delete(filename);
end
