Thanks to everyone who responded to my plea for help, using ... ./configure --with-readline=no worked fine, and finally reading doc/html/R-admin.htm helped.