| Index: gdb/gnulib/import/m4/string_h.m4
|
| diff --git a/gdb/gnulib/m4/string_h.m4 b/gdb/gnulib/import/m4/string_h.m4
|
| similarity index 86%
|
| rename from gdb/gnulib/m4/string_h.m4
|
| rename to gdb/gnulib/import/m4/string_h.m4
|
| index 75310fb7f086a68cc678841ef7c23ffad51d1e06..5677e092d44b4d126f533db924d786ecced52770 100644
|
| --- a/gdb/gnulib/m4/string_h.m4
|
| +++ b/gdb/gnulib/import/m4/string_h.m4
|
| @@ -1,11 +1,11 @@
|
| # Configure a GNU-like replacement for <string.h>.
|
|
|
| -# Copyright (C) 2007-2011 Free Software Foundation, Inc.
|
| +# Copyright (C) 2007-2012 Free Software Foundation, Inc.
|
| # This file is free software; the Free Software Foundation
|
| # gives unlimited permission to copy and/or distribute it,
|
| # with or without modifications, as long as this notice is preserved.
|
|
|
| -# serial 17
|
| +# serial 21
|
|
|
| # Written by Paul Eggert.
|
|
|
| @@ -20,16 +20,16 @@ AC_DEFUN([gl_HEADER_STRING_H_BODY],
|
| [
|
| AC_REQUIRE([AC_C_RESTRICT])
|
| AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
|
| - gl_CHECK_NEXT_HEADERS([string.h])
|
| + gl_NEXT_HEADERS([string.h])
|
|
|
| dnl Check for declarations of anything we want to poison if the
|
| dnl corresponding gnulib module is not in use, and which is not
|
| dnl guaranteed by C89.
|
| gl_WARN_ON_USE_PREPARE([[#include <string.h>
|
| ]],
|
| - [memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup
|
| - strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal
|
| - strverscmp])
|
| + [ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul
|
| + strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r
|
| + strerror_r strsignal strverscmp])
|
| ])
|
|
|
| AC_DEFUN([gl_STRING_MODULE_INDICATOR],
|
| @@ -43,6 +43,8 @@ AC_DEFUN([gl_STRING_MODULE_INDICATOR],
|
|
|
| AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS],
|
| [
|
| + GNULIB_FFSL=0; AC_SUBST([GNULIB_FFSL])
|
| + GNULIB_FFSLL=0; AC_SUBST([GNULIB_FFSLL])
|
| GNULIB_MEMCHR=0; AC_SUBST([GNULIB_MEMCHR])
|
| GNULIB_MEMMEM=0; AC_SUBST([GNULIB_MEMMEM])
|
| GNULIB_MEMPCPY=0; AC_SUBST([GNULIB_MEMPCPY])
|
| @@ -75,10 +77,13 @@ AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS],
|
| GNULIB_MBSSEP=0; AC_SUBST([GNULIB_MBSSEP])
|
| GNULIB_MBSTOK_R=0; AC_SUBST([GNULIB_MBSTOK_R])
|
| GNULIB_STRERROR=0; AC_SUBST([GNULIB_STRERROR])
|
| + GNULIB_STRERROR_R=0; AC_SUBST([GNULIB_STRERROR_R])
|
| GNULIB_STRSIGNAL=0; AC_SUBST([GNULIB_STRSIGNAL])
|
| GNULIB_STRVERSCMP=0; AC_SUBST([GNULIB_STRVERSCMP])
|
| HAVE_MBSLEN=0; AC_SUBST([HAVE_MBSLEN])
|
| dnl Assume proper GNU behavior unless another module says otherwise.
|
| + HAVE_FFSL=1; AC_SUBST([HAVE_FFSL])
|
| + HAVE_FFSLL=1; AC_SUBST([HAVE_FFSLL])
|
| HAVE_MEMCHR=1; AC_SUBST([HAVE_MEMCHR])
|
| HAVE_DECL_MEMMEM=1; AC_SUBST([HAVE_DECL_MEMMEM])
|
| HAVE_MEMPCPY=1; AC_SUBST([HAVE_MEMPCPY])
|
| @@ -94,6 +99,7 @@ AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS],
|
| HAVE_STRSEP=1; AC_SUBST([HAVE_STRSEP])
|
| HAVE_STRCASESTR=1; AC_SUBST([HAVE_STRCASESTR])
|
| HAVE_DECL_STRTOK_R=1; AC_SUBST([HAVE_DECL_STRTOK_R])
|
| + HAVE_DECL_STRERROR_R=1; AC_SUBST([HAVE_DECL_STRERROR_R])
|
| HAVE_DECL_STRSIGNAL=1; AC_SUBST([HAVE_DECL_STRSIGNAL])
|
| HAVE_STRVERSCMP=1; AC_SUBST([HAVE_STRVERSCMP])
|
| REPLACE_MEMCHR=0; AC_SUBST([REPLACE_MEMCHR])
|
| @@ -102,7 +108,9 @@ AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS],
|
| REPLACE_STRDUP=0; AC_SUBST([REPLACE_STRDUP])
|
| REPLACE_STRSTR=0; AC_SUBST([REPLACE_STRSTR])
|
| REPLACE_STRCASESTR=0; AC_SUBST([REPLACE_STRCASESTR])
|
| + REPLACE_STRCHRNUL=0; AC_SUBST([REPLACE_STRCHRNUL])
|
| REPLACE_STRERROR=0; AC_SUBST([REPLACE_STRERROR])
|
| + REPLACE_STRERROR_R=0; AC_SUBST([REPLACE_STRERROR_R])
|
| REPLACE_STRNCAT=0; AC_SUBST([REPLACE_STRNCAT])
|
| REPLACE_STRNDUP=0; AC_SUBST([REPLACE_STRNDUP])
|
| REPLACE_STRNLEN=0; AC_SUBST([REPLACE_STRNLEN])
|
|
|