Configure options on installation.

New pull request. 

Old request: #350