diff options
Diffstat (limited to 'gl/m4/strstr.m4')
| -rw-r--r-- | gl/m4/strstr.m4 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gl/m4/strstr.m4 b/gl/m4/strstr.m4 index 957ed2e3..3a9e9c60 100644 --- a/gl/m4/strstr.m4 +++ b/gl/m4/strstr.m4 | |||
| @@ -1,9 +1,10 @@ | |||
| 1 | # strstr.m4 | 1 | # strstr.m4 |
| 2 | # serial 24 | 2 | # serial 25 |
| 3 | dnl Copyright (C) 2008-2024 Free Software Foundation, Inc. | 3 | dnl Copyright (C) 2008-2026 Free Software Foundation, Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| 7 | dnl This file is offered as-is, without any warranty. | ||
| 7 | 8 | ||
| 8 | dnl Check that strstr works. | 9 | dnl Check that strstr works. |
| 9 | AC_DEFUN([gl_FUNC_STRSTR_SIMPLE], | 10 | AC_DEFUN([gl_FUNC_STRSTR_SIMPLE], |
| @@ -13,8 +14,8 @@ AC_DEFUN([gl_FUNC_STRSTR_SIMPLE], | |||
| 13 | if test $REPLACE_MEMCHR = 1; then | 14 | if test $REPLACE_MEMCHR = 1; then |
| 14 | REPLACE_STRSTR=1 | 15 | REPLACE_STRSTR=1 |
| 15 | else | 16 | else |
| 16 | dnl Detect https://sourceware.org/bugzilla/show_bug.cgi?id=12092 | 17 | dnl Detect https://sourceware.org/PR12092 |
| 17 | dnl and https://sourceware.org/bugzilla/show_bug.cgi?id=23637. | 18 | dnl and https://sourceware.org/PR23637. |
| 18 | AC_CACHE_CHECK([whether strstr works], | 19 | AC_CACHE_CHECK([whether strstr works], |
| 19 | [gl_cv_func_strstr_works_always], | 20 | [gl_cv_func_strstr_works_always], |
| 20 | [AC_RUN_IFELSE( | 21 | [AC_RUN_IFELSE( |
| @@ -95,7 +96,7 @@ static void quit (int sig) { _exit (sig + 128); } | |||
| 95 | char *haystack = (char *) malloc (2 * m + 2); | 96 | char *haystack = (char *) malloc (2 * m + 2); |
| 96 | char *needle = (char *) malloc (m + 2); | 97 | char *needle = (char *) malloc (m + 2); |
| 97 | /* Failure to compile this test due to missing alarm is okay, | 98 | /* Failure to compile this test due to missing alarm is okay, |
| 98 | since all such platforms (mingw) also have quadratic strstr. */ | 99 | since all such platforms (mingw, MSVC) also have quadratic strstr. */ |
| 99 | signal (SIGALRM, quit); | 100 | signal (SIGALRM, quit); |
| 100 | alarm (5); | 101 | alarm (5); |
| 101 | /* Check for quadratic performance. */ | 102 | /* Check for quadratic performance. */ |
