The problem with some of these conditions unfortunately is that it is only possible to speculate based on behavioral reports, because the term simply didn't exist back then (or if it did, it existed in widely varying terms describing some sort of "insanity" or "neurosis"). So unfortunately I don't think there is an answer to this question.
In reading up on the histories of various classical composers, for instance, several of them appear to have suffered regularly from depressive orders (a very definitive example is Sergei Rachmaninoff). A few of them such as Erik Satie and Anton Bruckner appear to be afflicted with what we now know as OCD. Can we definitively diagnose, though? No, we only have reports to go off of.
Heck, we're still pretty fuzzy with the diagnosis and root cause of some of these mental conditions now. (See: the definition of Aspergers)