don't check for string.h or strings.h
authorTom Tromey <tromey@redhat.com>
Wed, 6 Nov 2013 14:17:47 +0000 (07:17 -0700)
committerTom Tromey <tromey@redhat.com>
Mon, 18 Nov 2013 20:29:01 +0000 (13:29 -0700)
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  <tromey@redhat.com>

* configure: Rebuild.
* common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
strings.h.

2013-11-18  Tom Tromey  <tromey@redhat.com>

* server.h: Don't check HAVE_STRING_H.
* gdbreplay.c: Don't check HAVE_STRING_H.
* configure: Rebuild.

gdb/ChangeLog
gdb/common/common.m4
gdb/configure
gdb/gdbserver/ChangeLog
gdb/gdbserver/configure
gdb/gdbserver/gdbreplay.c
gdb/gdbserver/server.h

index 26ea86e..d29fbf0 100644 (file)
@@ -1,5 +1,11 @@
 2013-11-18  Tom Tromey  <tromey@redhat.com>
 
+       * configure: Rebuild.
+       * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
+       strings.h.
+
+2013-11-18  Tom Tromey  <tromey@redhat.com>
+
        * common/gdb_string.h: Remove.
        * aarch64-tdep.c: Use string.h, not gdb_string.h.
        * ada-exp.y: Use string.h, not gdb_string.h.
index 20fbb44..b1abc4d 100644 (file)
@@ -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)
index 8b20a13..ae24ca5 100755 (executable)
@@ -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"
index 13bde11..96d598d 100644 (file)
@@ -1,5 +1,11 @@
 2013-11-18  Tom Tromey  <tromey@redhat.com>
 
+       * server.h: Don't check HAVE_STRING_H.
+       * gdbreplay.c: Don't check HAVE_STRING_H.
+       * configure: Rebuild.
+
+2013-11-18  Tom Tromey  <tromey@redhat.com>
+
        * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
        LIBGNU.
 
index 6bef97c..096c7b3 100755 (executable)
@@ -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"
index 5e64f6d..1f823e0 100644 (file)
@@ -38,9 +38,7 @@
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
-#ifdef HAVE_STRING_H
 #include <string.h>
-#endif
 #include <unistd.h>
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
index 05724e0..32cf416 100644 (file)
@@ -41,9 +41,7 @@
 /* For gnulib's PATH_MAX.  */
 #include "pathmax.h"
 
-#ifdef HAVE_STRING_H
 #include <string.h>
-#endif
 
 #ifdef HAVE_ALLOCA_H
 #include <alloca.h>