Improve autoconf checking for readline on Mac OS X

For now the minimum version of readline is fixed at 6.2 which is what
brew currently provides. Certain previous versions probably also works.

This also introduces a --with-readline=DIR argument to configure, making
it simpler to tell configure where to look for readline.

Fixes #185