He would like to have done with life and its vanity altogether--so bootless and unsatisfactory the struggle, so cheerless and dreary the prospect seemed to him. 
He would have liked to have done with life and its vanity altogether - so pointless and dreary the prospect seemed to him. 