aboutsummaryrefslogtreecommitdiff
path: root/gas/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-08-07 18:23:08 +0000
committerIan Lance Taylor <ian@airs.com>1996-08-07 18:23:08 +0000
commit5cece5267784495835c2fb2fb4141612d4c3c02b (patch)
treea7d7b04d6fca609aa19a2c99636365f51f327356 /gas/configure.in
parent85fe9d3e46ca45f86886f8baf9aa21fa6ec2ece7 (diff)
downloadgdb-5cece5267784495835c2fb2fb4141612d4c3c02b.zip
gdb-5cece5267784495835c2fb2fb4141612d4c3c02b.tar.gz
gdb-5cece5267784495835c2fb2fb4141612d4c3c02b.tar.bz2
Wed Aug 7 14:19:03 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* configure.in: Make GAS_CHECK_DECL_NEEDED include <string.h> or <strings.h> if they exist. Call GAS_CHECK_DECL_NEEDED on strstr and sbrk. * acconfig.h (NEED_DECLARATION_STRSTR): New macro. (NEED_DECLARATION_SBRK): New macro. * configure, conf.in: Rebuild. * as.h: Only include <strings.h> if HAVE_STRINGS_H. (strstr): Declare if NEED_DECLARATION_STRSTR. * as.c: If HAVE_SBRK and NEED_DECLARATION_SBRK, declare sbrk.
Diffstat (limited to 'gas/configure.in')
-rw-r--r--gas/configure.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/gas/configure.in b/gas/configure.in
index 0b535c6..98977c2 100644
--- a/gas/configure.in
+++ b/gas/configure.in
@@ -656,6 +656,10 @@ gas_test_headers="
#endif
#ifdef HAVE_STRING_H
#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
@@ -664,8 +668,10 @@ gas_test_headers="
#include <unistd.h>
#endif
"
+GAS_CHECK_DECL_NEEDED(strstr, f, char *(*f)(), $gas_test_headers)
GAS_CHECK_DECL_NEEDED(malloc, f, char *(*f)(), $gas_test_headers)
GAS_CHECK_DECL_NEEDED(free, f, void (*f)(), $gas_test_headers)
+GAS_CHECK_DECL_NEEDED(sbrk, f, char *(*f)(), $gas_test_headers)
# Does errno.h declare errno, or do we have to add a separate declaration
# for it?