This is the second in a series of patches to make a build with an in-tree GNU libiconv work as designed.
Currently GDB is the only toolchain component which actually uses an in-tree libiconv. This patch modifies the common AM_ICONV to use an in-tree libiconv when present and not already provided by libc. (GDB's workaround uses an in-tree libiconv even when libc provides iconv(3); I'm not sure when or why that would be desirable.) Once these two patches are merged in to each tree, I will follow with patches to regenerate the various configure scripts and a few other minor corresponding changes. -- Yaakov Selkowitz Associate Software Engineer, ARM Red Hat, Inc.