The generalized perpetual American exchange-option problem