[SNIP]
Just found that configure scrip for openldap 2.1.x use AC_DEFINE_UNQUOTED, AC_TRY_COMPILE, AC_TRY_LINK and is with AC_PREREQ(2.13) so autoconf 2.13 is sufficient.AM_ICONV is defined in iconv.m4. I can found it in gettext-0.10.38 (gnu site begin with gettext-0.10.40 from 15-Sep-2001).The macro use AC_DEFINE_UNQUOTED, AC_TRY_COMPILE, AC_TRY_LINK. I can found them in autoconf 2.50 but I'm not sure for 2.13. So that for AM_ICONV: AC_PREREQ(2.50) is sufficient.
Roumen