It depends entirely on how you play. Dragon Age was built so that Alistair can be romanced by a female Warden, and the relationship is optional either way — the game lets you take it or leave it.
So there is no fixed answer written into the character. His arc responds to your choices, which is rather the point of the design.