aboutsummaryrefslogtreecommitdiff
path: root/binutils/configure
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-03-03 14:14:35 +0000
committerAlan Modra <amodra@gmail.com>2017-03-06 11:42:30 +1030
commit1f5345a614203185f7fdacbf4b000d2676de26dd (patch)
tree67228625c61b837baa2e0f176eabf2589445eb51 /binutils/configure
parent62e755d208d7359e722a248df3e74278779272c8 (diff)
downloadgdb-1f5345a614203185f7fdacbf4b000d2676de26dd.zip
gdb-1f5345a614203185f7fdacbf4b000d2676de26dd.tar.gz
gdb-1f5345a614203185f7fdacbf4b000d2676de26dd.tar.bz2
binutils: Fix warning on platforms that don't have asprintf
* configure.ac (AC_CHECK_DECLS): Add asprintf. * config.in: Regenerate. * configure: Regenerate.
Diffstat (limited to 'binutils/configure')
-rwxr-xr-xbinutils/configure10
1 files changed, 10 insertions, 0 deletions
diff --git a/binutils/configure b/binutils/configure
index fc9b976..48fa906 100755
--- a/binutils/configure
+++ b/binutils/configure
@@ -13518,6 +13518,16 @@ $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
fi
+ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
+if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_ASPRINTF $ac_have_decl
+_ACEOF
ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
if test "x$ac_cv_have_decl_environ" = x""yes; then :
ac_have_decl=1