diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-12-28 12:13:40 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-12-28 12:13:40 +0100 |
| commit | b0afb8fe0ff1d87165af9df61501197a06240dda (patch) | |
| tree | 274ac6a96c53ef4c19ab4974ce24a06a233128c5 /gl/m4/strncasecmp.m4 | |
| parent | 68fc05381ee5fa0aee1413118fbb3d81ca888b09 (diff) | |
| download | monitoring-plugins-b0afb8fe0ff1d87165af9df61501197a06240dda.tar.gz | |
Sync with Gnulib stable-202507 code (a8ac9f9ce5)
Diffstat (limited to 'gl/m4/strncasecmp.m4')
| -rw-r--r-- | gl/m4/strncasecmp.m4 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gl/m4/strncasecmp.m4 b/gl/m4/strncasecmp.m4 new file mode 100644 index 00000000..c7c8b240 --- /dev/null +++ b/gl/m4/strncasecmp.m4 | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | # strncasecmp.m4 | ||
| 2 | # serial 2 | ||
| 3 | dnl Copyright (C) 2002-2025 Free Software Foundation, Inc. | ||
| 4 | dnl This file is free software; the Free Software Foundation | ||
| 5 | dnl gives unlimited permission to copy and/or distribute it, | ||
| 6 | dnl with or without modifications, as long as this notice is preserved. | ||
| 7 | dnl This file is offered as-is, without any warranty. | ||
| 8 | |||
| 9 | AC_DEFUN([gl_FUNC_STRNCASECMP], | ||
| 10 | [ | ||
| 11 | AC_REQUIRE([gl_STRINGS_H_DEFAULTS]) | ||
| 12 | AC_CHECK_FUNCS([strncasecmp]) | ||
| 13 | if test $ac_cv_func_strncasecmp = yes; then | ||
| 14 | dnl Assume that strncasecmp and strcasecmp share the same bugs. | ||
| 15 | gl_STRCASECMP_WORKS | ||
| 16 | case "$gl_cv_func_strcasecmp_works" in | ||
| 17 | *yes) ;; | ||
| 18 | *) REPLACE_STRNCASECMP=1 ;; | ||
| 19 | esac | ||
| 20 | else | ||
| 21 | HAVE_STRNCASECMP=0 | ||
| 22 | fi | ||
| 23 | AC_CHECK_DECLS([strncasecmp]) | ||
| 24 | if test $ac_cv_have_decl_strncasecmp = no; then | ||
| 25 | HAVE_DECL_STRNCASECMP=0 | ||
| 26 | fi | ||
| 27 | ]) | ||
| 28 | |||
| 29 | # Prerequisites of lib/strncasecmp.c. | ||
| 30 | AC_DEFUN([gl_PREREQ_STRNCASECMP], [ | ||
| 31 | : | ||
| 32 | ]) | ||
