diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2020-06-04 17:16:09 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2020-07-22 18:02:18 +0100 |
commit | 43a61d7d3e619385b98c03d43733572b5b1dc015 (patch) | |
tree | 7c298d15791c90bd94c64445d721d96f02d4135a /libctf/configure | |
parent | ac2ff760303260cf7f6137f08fc28d1a73cfcd6a (diff) | |
download | gdb-43a61d7d3e619385b98c03d43733572b5b1dc015.zip gdb-43a61d7d3e619385b98c03d43733572b5b1dc015.tar.gz gdb-43a61d7d3e619385b98c03d43733572b5b1dc015.tar.bz2 |
libctf: check for vasprintf
We've been using this for all of libctf's history in binutils: we should
check for it in configure.
libctf/
configure.ac: Check for vasprintf.
configure: Regenerated.
config.h.in: Likewise.
Diffstat (limited to 'libctf/configure')
-rwxr-xr-x | libctf/configure | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/libctf/configure b/libctf/configure index 1dc1b65..58aaa3a 100755 --- a/libctf/configure +++ b/libctf/configure @@ -13099,17 +13099,6 @@ fi done -ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" -if test "x$ac_cv_have_decl_asprintf" = xyes; 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" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h> " if test "x$ac_cv_have_decl_bswap_16" = xyes; then : @@ -13144,6 +13133,27 @@ cat >>confdefs.h <<_ACEOF #define HAVE_DECL_BSWAP_64 $ac_have_decl _ACEOF +ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" +if test "x$ac_cv_have_decl_asprintf" = xyes; 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" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" +if test "x$ac_cv_have_decl_vasprintf" = xyes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_VASPRINTF $ac_have_decl +_ACEOF + |