The config.h.in file in the standalone readline distribution is missing a lot of templates. It should really be generated by autoheader.
--- readline-6.3/config.h.in.~1~ 2012-01-18 16:22:13.000000000 +0100 +++ readline-6.3/config.h.in 2015-04-19 19:39:13.215290092 +0200 @@ -6,6 +6,14 @@ #undef _FILE_OFFSET_BITS +#undef __EXTENSIONS__ +#undef _ALL_SOURCE +#undef _GNU_SOURCE +#undef _POSIX_SOURCE +#undef _POSIX_1_SOURCE +#undef _POSIX_PTHREAD_SEMANTICS +#undef _TANDEM_SOURCE + /* Define if on MINIX. */ #undef _MINIX @@ -27,6 +35,8 @@ #undef PROTOTYPES +#undef __PROTOTYPES + #undef __CHAR_UNSIGNED__ /* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */ @@ -71,6 +81,12 @@ /* Define if you have the mbrtowc function. */ #undef HAVE_MBRTOWC +/* Define if you have the mbscmp function. */ +#undef HAVE_MBSCMP + +/* Define if you have the mbsnrtowcs function. */ +#undef HAVE_MBSNRTOWCS + /* Define if you have the mbsrtowcs function. */ #undef HAVE_MBSRTOWCS @@ -118,6 +134,9 @@ /* Define if you have the wcscoll function. */ #undef HAVE_WCSCOLL +/* Define if you have the wcsdup function. */ +#undef HAVE_WCSDUP + /* Define if you have the wctype function. */ #undef HAVE_WCTYPE @@ -244,9 +263,9 @@ #undef HAVE_GETPW_DECLS -#undef STRUCT_DIRENT_HAS_D_INO +#undef HAVE_STRUCT_DIRENT_D_INO -#undef STRUCT_DIRENT_HAS_D_FILENO +#undef HAVE_STRUCT_DIRENT_D_FILENO #undef HAVE_BSD_SIGNALS -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."