Hash :
d8e0b253
Author :
Date :
2025-02-15T21:50:08
isupper_l: New module. * lib/ctype.in.h: (isupper_l): New declaration. * lib/isupper_l.c: New file. * m4/isupper_l.m4: New file. * m4/ctype_h.m4 (gl_CTYPE_H): Test for isupper_l. (gl_CTYPE_H_REQUIRE_DEFAULTS): Initialize GNULIB_ISUPPER_L. (gl_CTYPE_H_DEFAULTS): Initialize HAVE_ISUPPER_L. * modules/ctype-h (Makefile.am): Substitute GNULIB_ISUPPER_L, HAVE_ISUPPER_L. * modules/isupper_l: New file. * tests/test-ctype-h-c++.cc: Check declaration of isupper_l. * doc/posix-functions/isupper_l.texi: Mention the new module.
# isupper_l.m4
# serial 1
dnl Copyright (C) 2009-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_ISUPPER_L],
[
AC_REQUIRE([gl_CTYPE_H_DEFAULTS])
dnl Persuade glibc <ctype.h> to declare isupper_l().
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
AC_CHECK_FUNCS_ONCE([isupper_l])
if test $ac_cv_func_isupper_l = no; then
HAVE_ISUPPER_L=0
fi
dnl Prerequisites of lib/isupper_l.c.
AC_REQUIRE([gt_FUNC_USELOCALE])
])