diff options
author | Joel Brobecker <brobecker@gnat.com> | 2010-09-01 18:56:45 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2010-09-01 18:56:45 +0000 |
commit | bb0116a433af6f2a1bb99b628a863be46446cea0 (patch) | |
tree | 4f115327f70f296c49b1c121ce62c7a853ee5df2 /gdb/gdbserver/configure.ac | |
parent | 0482b03b6a590ca2540b32cc8db2526172bd8e34 (diff) | |
download | gdb-bb0116a433af6f2a1bb99b628a863be46446cea0.zip gdb-bb0116a433af6f2a1bb99b628a863be46446cea0.tar.gz gdb-bb0116a433af6f2a1bb99b628a863be46446cea0.tar.bz2 |
Import vsnprintf from libiberty if not available.
vasprintf and vsnprintf are not available on LynxOS, at least not on
version 4.0.0. This patch updates the configury to import them from
libiberty if not available out of the box.
gdbserver/
* Makefile.in (vasprintf.o, vsnprintf.o): New rules.
* configure.ac: Add check for vasprintf and vsnprintf.
* configure, config.in: Regenerate.
* server.h (vasprintf, vsnprintf): Add conditional declarations.
Diffstat (limited to 'gdb/gdbserver/configure.ac')
-rw-r--r-- | gdb/gdbserver/configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac index bc3bb11..c61ab54 100644 --- a/gdb/gdbserver/configure.ac +++ b/gdb/gdbserver/configure.ac @@ -44,7 +44,7 @@ AC_CHECK_HEADERS(sgtty.h termio.h termios.h sys/reg.h string.h dnl sys/ioctl.h netinet/in.h sys/socket.h netdb.h dnl netinet/tcp.h arpa/inet.h sys/wait.h) AC_CHECK_FUNCS(pread pwrite pread64) -AC_REPLACE_FUNCS(memmem) +AC_REPLACE_FUNCS(memmem vasprintf vsnprintf) # Check for UST ustlibs="" @@ -161,7 +161,7 @@ AC_TRY_LINK([ [AC_MSG_RESULT(no)]) fi -AC_CHECK_DECLS([strerror, perror, memmem]) +AC_CHECK_DECLS([strerror, perror, memmem, vasprintf, vsnprintf]) AC_CHECK_TYPES(socklen_t, [], [], [#include <sys/types.h> |