rlwrap binaries built on top of readline V6.2 and rlwrap V0.37 source packages.
If you want to use it with amdlib or any other command line tool, please copy the proper file into one bin directory which is in your PATH. Do not forget to make it executable running chmod +x rlwrap
To make it compile and run properly, we just had to declare CFLAGS and LDFLAGS pointing to our local installation directory of readline.