PR 34486 opcodes fails to compile with mingw
Checks
Commit Message
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.
@@ -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.