Is it possible to force a dependency on GNU Readline? During `./configure`, check whether Ruby was built using Readline instead of libedit?

(Alternatively: does re-writing in another language solve this problem?)