PR 34486 opcodes fails to compile with mingw

Alan Modra <[email protected]>
Newsgroups gmane.comp.gnu.binutils
Message-ID <[email protected]>
Add the config machinery to ensure asprintf is supplied by libiberty
if missing.  While we're at it, check decls for some other functions
used in opcodes that may not be in C90 systems.

	* configure.ac: CHECK_DECLS for asprintf, snprintf, strtoull
	and vsnprintf.
	* configure: Regenerate.
	* config.in: Regenerate.

diff --git a/opcodes/configure.ac b/opcodes/configure.ac
index 2c2556598c9..c6d8972aa0a 100644
--- a/opcodes/configure.ac
+++ b/opcodes/configure.ac
@@ -96,7 +96,7 @@ BFD_64_BIT
 AC_SUBST(HDEFINES)
 AC_PROG_INSTALL
 
-AC_CHECK_DECLS([basename, stpcpy])
+AC_CHECK_DECLS([asprintf, basename, snprintf, stpcpy, strtoull, vsnprintf])
 
 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
 # since sigsetjmp might only be defined as a macro.

-- 
Alan Modra
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.