Debian Codegraph @

m4/ctype_h.m4

raw
1 # ctype_h.m4
2 # serial 9
3 dnl Copyright (C) 2009-2024 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_ONCE([gl_CTYPE_H],
10 [
11 AC_REQUIRE([gl_CTYPE_H_DEFAULTS])
12
13 dnl <ctype.h> is always overridden, because of GNULIB_POSIXCHECK.
14 gl_NEXT_HEADERS([ctype.h])
15
16 dnl Check for declarations of anything we want to poison if the
17 dnl corresponding gnulib module is not in use.
18 gl_WARN_ON_USE_PREPARE([[#include <ctype.h>
19 ]], [isblank])
20 ])
21
22 # gl_CTYPE_MODULE_INDICATOR([modulename])
23 # sets the shell variable that indicates the presence of the given module
24 # to a C preprocessor expression that will evaluate to 1.
25 # This macro invocation must not occur in macros that are AC_REQUIREd.
26 AC_DEFUN([gl_CTYPE_MODULE_INDICATOR],
27 [
28 dnl Ensure to expand the default settings once only.
29 gl_CTYPE_H_REQUIRE_DEFAULTS
30 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
31 ])
32
33 # Initializes the default values for AC_SUBSTed shell variables.
34 # This macro must not be AC_REQUIREd. It must only be invoked, and only
35 # outside of macros or in macros that are not AC_REQUIREd.
36 AC_DEFUN([gl_CTYPE_H_REQUIRE_DEFAULTS],
37 [
38 m4_defun(GL_MODULE_INDICATOR_PREFIX[_CTYPE_H_MODULE_INDICATOR_DEFAULTS], [
39 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISBLANK])
40 ])
41 m4_require(GL_MODULE_INDICATOR_PREFIX[_CTYPE_H_MODULE_INDICATOR_DEFAULTS])
42 AC_REQUIRE([gl_CTYPE_H_DEFAULTS])
43 ])
44
45 AC_DEFUN([gl_CTYPE_H_DEFAULTS],
46 [
47 dnl Assume proper GNU behavior unless another module says otherwise.
48 HAVE_ISBLANK=1; AC_SUBST([HAVE_ISBLANK])
49 ])