From a3d08894e544f6b9e65581469cbbafbe39a353fe Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 6 Nov 2013 07:17:47 -0700 Subject: [PATCH] don't check for string.h or strings.h Now that we are using the gnulib string.h module, we don't need to check for string.h or strings.h. This removes the last few checks from the source and from the configure scripts. 2013-11-18 Tom Tromey * configure: Rebuild. * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or strings.h. 2013-11-18 Tom Tromey * server.h: Don't check HAVE_STRING_H. * gdbreplay.c: Don't check HAVE_STRING_H. * configure: Rebuild. --- gdb/ChangeLog | 6 ++++++ gdb/common/common.m4 | 1 - gdb/configure | 2 +- gdb/gdbserver/ChangeLog | 6 ++++++ gdb/gdbserver/configure | 2 +- gdb/gdbserver/gdbreplay.c | 2 -- gdb/gdbserver/server.h | 2 -- 7 files changed, 14 insertions(+), 7 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 26ea86ed59f..d29fbf0324b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2013-11-18 Tom Tromey + + * configure: Rebuild. + * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or + strings.h. + 2013-11-18 Tom Tromey * common/gdb_string.h: Remove. diff --git a/gdb/common/common.m4 b/gdb/common/common.m4 index 20fbb44fa6e..b1abc4df3f6 100644 --- a/gdb/common/common.m4 +++ b/gdb/common/common.m4 @@ -27,7 +27,6 @@ AC_DEFUN([GDB_AC_COMMON], [ AM_LANGINFO_CODESET AC_CHECK_HEADERS(linux/perf_event.h locale.h memory.h signal.h dnl - string.h strings.h dnl sys/resource.h sys/socket.h sys/syscall.h dnl sys/un.h sys/wait.h dnl thread_db.h wait.h) diff --git a/gdb/configure b/gdb/configure index 8b20a133a3b..ae24ca5ce4e 100755 --- a/gdb/configure +++ b/gdb/configure @@ -10667,7 +10667,7 @@ $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h fi - for ac_header in linux/perf_event.h locale.h memory.h signal.h string.h strings.h sys/resource.h sys/socket.h sys/syscall.h sys/un.h sys/wait.h thread_db.h wait.h + for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/syscall.h sys/un.h sys/wait.h thread_db.h wait.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 13bde11a8bb..96d598d010b 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,9 @@ +2013-11-18 Tom Tromey + + * server.h: Don't check HAVE_STRING_H. + * gdbreplay.c: Don't check HAVE_STRING_H. + * configure: Rebuild. + 2013-11-18 Tom Tromey * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure index 6bef97c1d47..096c7b39214 100755 --- a/gdb/gdbserver/configure +++ b/gdb/gdbserver/configure @@ -5420,7 +5420,7 @@ $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h fi - for ac_header in linux/perf_event.h locale.h memory.h signal.h string.h strings.h sys/resource.h sys/socket.h sys/syscall.h sys/un.h sys/wait.h thread_db.h wait.h + for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/syscall.h sys/un.h sys/wait.h thread_db.h wait.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" diff --git a/gdb/gdbserver/gdbreplay.c b/gdb/gdbserver/gdbreplay.c index 5e64f6d6681..1f823e0addc 100644 --- a/gdb/gdbserver/gdbreplay.c +++ b/gdb/gdbserver/gdbreplay.c @@ -38,9 +38,7 @@ #ifdef HAVE_STDLIB_H #include #endif -#ifdef HAVE_STRING_H #include -#endif #include #ifdef HAVE_NETINET_IN_H #include diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h index 05724e03210..32cf4164834 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -41,9 +41,7 @@ /* For gnulib's PATH_MAX. */ #include "pathmax.h" -#ifdef HAVE_STRING_H #include -#endif #ifdef HAVE_ALLOCA_H #include -- 2.30.2