A history of repeated chronic infections due to an acquired B-cell deficiency and decreased antibody production and/or function is usually indicative of