It's 1.8.6, I used configure without any args when I built it.
readline will only be built if ruby can find the header files. Many
distributions cripple the installation by not providing the headers by
default for various
arbitrary reasons.
Once you sorted this readline problem (you know, this apt-get hassle or
yum or rpm...), go to your extracted ruby archive.
Do
cd ext/readline; ruby extconf.rb; make
That should give you readline support in ruby (i think it will also
complain
if it encounters a problem therein)
I think there is a option --with-readline
Unfortunately there is not.