added a bit to configure.ac to cause errors if libraries aren't found and emit a #define HAVE_READLINE if we have readline