Files
RedBear-OS/local/recipes/tools/diffutils/source/m4/strcasecmp.m4
T
vasilito 068a1ca63e bootloader: rebase onto upstream 1.0.0, sync firmware-loader version
Bootloader fork rebase:
- Base changed from 0.1.0 pre-patched archive to upstream 1.0.0 tag (c7eeb9f)
- Applied 0001-redbear-local-forks.patch (Cargo.toml crate path redirects)
- Applied fix-uefi-alloc-panic.patch equivalents (4 panic!() -> graceful
  error handling in src/main.rs)
- Applied P5-live-preload-cap-1gib.patch (1 GiB cap on live image preload)
- Skipped: P0 GPT partition scan (requires new module + integration),
  P1 timeout/default-resolution, P2 live preload guard (subsumed by
  panic fixes + cap), P3 live image safe read, P4 large ISO boot,
  redox.patch — to be applied in dedicated rebase session.

firmware-loader/Cargo.toml: version 0.1.0 -> 0.3.0 (sync with other
Red Bear custom crates which are at 0.3.0).

fork-upstream-map.toml: bootloader back from PENDING_REBASE to 1.0.0
since the partial rebase matches upstream 1.0.0 content.

fork-upstream-map.toml: base restored to 'main' tracked (was correctly
tracked by build-redbear.sh).
2026-07-11 09:47:59 +03:00

68 lines
1.7 KiB
Plaintext

# strcasecmp.m4
# serial 2
dnl Copyright (C) 2002-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl This file is offered as-is, without any warranty.
AC_DEFUN([gl_FUNC_STRCASECMP],
[
AC_REQUIRE([gl_STRINGS_H_DEFAULTS])
AC_CHECK_FUNCS([strcasecmp])
if test $ac_cv_func_strcasecmp = yes; then
gl_STRCASECMP_WORKS
case "$gl_cv_func_strcasecmp_works" in
*yes) ;;
*) REPLACE_STRCASECMP=1 ;;
esac
else
HAVE_STRCASECMP=0
fi
])
AC_DEFUN([gl_STRCASECMP_WORKS],
[
AC_REQUIRE([AC_CANONICAL_HOST])
AC_CACHE_CHECK([whether strcasecmp works],
[gl_cv_func_strcasecmp_works],
[dnl Prepare a guess, used when cross-compiling or when specific locales
dnl are not available.
case "$host_os" in
solaris* | cygwin*)
gl_cv_func_strcasecmp_works="guessing no" ;;
*)
gl_cv_func_strcasecmp_works="guessing yes" ;;
esac
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
#include <stdio.h>
#include <ctype.h>
#include <locale.h>
#include <strings.h>
int main ()
{
if (setlocale (LC_ALL, "fr_FR.ISO-8859-1") != NULL
|| setlocale (LC_ALL, "fr_FR.ISO8859-1") != NULL)
{
int c1 = (unsigned char) '\311';
int c2 = (unsigned char) '\351';
if (tolower (c1) == c2 && toupper (c2) == c1)
return strcasecmp ("Fej\311r", "Fej\351r") != 0;
}
return 2;
}]])],
[gl_cv_func_strcasecmp_works=yes],
[if test $? = 1; then
gl_cv_func_strcasecmp_works=no
fi
],
[])
])
])
# Prerequisites of lib/strcasecmp.c.
AC_DEFUN([gl_PREREQ_STRCASECMP], [
:
])