diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-08-21 01:02:53 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-08-21 01:02:53 +0000 |
commit | fef1696ffcfaeb438ebd8c519edd3baf212b76e7 (patch) | |
tree | e16e4e7a49cef8a194aea6c7828b359beeed04c4 /gdb/configure.in | |
parent | dbc4eefc3dcccd9f8759540505e3fb9c466c7d62 (diff) | |
download | gdb-fef1696ffcfaeb438ebd8c519edd3baf212b76e7.zip gdb-fef1696ffcfaeb438ebd8c519edd3baf212b76e7.tar.gz gdb-fef1696ffcfaeb438ebd8c519edd3baf212b76e7.tar.bz2 |
* aclocal.m4: Include ../bfd/aclocal.m4.
* configure.in: Add stdlib.h to AC_CHECK_HEADERS. Call
BFD_NEED_DECLARATION on malloc, realloc, and free.
* acconfig.h: Add NEED_DECLARATION_MALLOC,
NEED_DECLARATION_REALLOC, and NEED_DECLARATION_FREE.
* configure, config.in: Rebuild.
* defs.h: Include <stddef.h> and <stdlib.h> based on HAVE_*_H
rather than __STDC__. Only declare malloc, realloc, and free if
NEED_DECLARATION_* is defined.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index a8ffc6a..42ffb2e 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -39,7 +39,7 @@ AC_CANONICAL_SYSTEM AC_ARG_PROGRAM AC_HEADER_STDC -AC_CHECK_HEADERS(limits.h memory.h string.h strings.h unistd.h termios.h termio.h sgtty.h stddef.h sys/procfs.h link.h endian.h) +AC_CHECK_HEADERS(limits.h memory.h string.h strings.h unistd.h termios.h termio.h sgtty.h stddef.h stdlib.h sys/procfs.h link.h endian.h) AC_HEADER_STAT AC_C_CONST @@ -133,6 +133,10 @@ AC_MSG_RESULT($gdb_cv_printf_has_long_double) AC_FUNC_MMAP +BFD_NEED_DECLARATION(malloc) +BFD_NEED_DECLARATION(realloc) +BFD_NEED_DECLARATION(free) + dnl See if thread_db library is around for Solaris thread debugging. Note that dnl we must explicitly test for version 1 of the library because version 0 dnl (present on Solaris 2.4 or earlier) doesn't have the same API. |