'cabal configure': honor the '--constraint' flag.

Fixes #1185.