To compare the efficacy and safety of dapsone versus atovaquone in preventing or delaying the onset of histologically proven or probable Pneumocystis carinii pneumonia in HIV-infected patients with CD4 counts <= 200 cells/mm3 or <= 15 percent of the total lymphocyte count who are intolerant to trimethoprim and/or sulfonamides.