Support for the ARM 64 bit CPU architecture (aarch64) was introduced in autoconf 2.69. readline appears to use an earlier version of autoconf, preventing its being built. This can be fixed in of three ways (In order of preference): 1. Work with upstream to migrate the package to autoconf 2.69. 2. Rerun autoconf or autoreconf in %prep or %build prior to running configure. 3. Apply the patch at http://ausil.fedorapeople.org/aarch64/readline/readline-aarch64.patch which updates config.guess and config.sub to recognize aarch64.
I wrote mail to upstream a meanwhile we can use your patch. Thanks for report and suggested fixes.