diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-01-21 13:14:02 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-01-21 13:14:02 +0000 |
commit | a3828db05a4f4b107b8ab4210f5f7e882786a365 (patch) | |
tree | c537993ee89fe990bbf8d59312ab7f0c1b2eaa7a /gdb/configure.ac | |
parent | b717d30eb550a5418757c32f232a01e7620f640d (diff) | |
download | gdb-a3828db05a4f4b107b8ab4210f5f7e882786a365.zip gdb-a3828db05a4f4b107b8ab4210f5f7e882786a365.tar.gz gdb-a3828db05a4f4b107b8ab4210f5f7e882786a365.tar.bz2 |
* configure.ac: Use AC_CHECK_DECLS instead of gcc_AC_CHECK_DECLS
and BFD_NEED_DECLARATION. Don't check if a declaration of strdup
is necessary.
* configure, config.in: Regenerate.
* utils.c: Adjust for usage of AC_CHECK_DECLS instead of
BFD_NEED_DECLARATION. Never provide a prototype for
caninicalize_file_name.
* gdb_string.h: Adjust for usage of AC_CHECK_DECLS instead of
BFD_NEED_DECLARATION.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r-- | gdb/configure.ac | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac index 82c8bbe..7243cbd 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -424,7 +424,9 @@ AC_CHECK_HEADERS(ctype.h time.h) # Checks for declarations. # # ------------------------- # -gcc_AC_CHECK_DECLS(getopt) +AC_CHECK_DECLS([free, malloc, realloc]) +AC_CHECK_DECLS([strerror, strstr]) +AC_CHECK_DECLS(getopt) # ----------------------- # # Checks for structures. # @@ -477,7 +479,7 @@ gdb_ptrace_headers=' #endif ' # There is no point in checking if we don't have a prototype. -gcc_AC_CHECK_DECLS(ptrace, , [ +AC_CHECK_DECLS(ptrace, [], [ : ${gdb_cv_func_ptrace_ret='int'} : ${gdb_cv_func_ptrace_args='int,int,long,long'} ], $gdb_ptrace_headers) @@ -694,14 +696,6 @@ if test $gdb_cv_have_uintptr_t = yes; then AC_DEFINE(HAVE_UINTPTR_T, 1, [Define if <stdint.h> provides the uintptr_t type.]) fi -BFD_NEED_DECLARATION(malloc) -BFD_NEED_DECLARATION(realloc) -BFD_NEED_DECLARATION(free) -BFD_NEED_DECLARATION(strerror) -BFD_NEED_DECLARATION(strdup) -BFD_NEED_DECLARATION(strstr) -BFD_NEED_DECLARATION(canonicalize_file_name) - # If we are configured native on GNU/Linux, work around problems with # sys/procfs.h # Also detect which type of /proc is in use, such as for Unixware or Solaris. |