New configure script.

Currently, it only supports --prefix as an option, but since it's a bash
script, it should be easy to add dependency checking in the future.

This closes #8.