Doubt from Hydrogen bonding

How to understand whether a compound does intermolecular or intramolecular hydrogen bonding?Ex glycerol and catecholfpr which both are possible..

Please help..