Use a special ./configure option for homebrew.
Also install openssl and readline via homebrew.