annotate m4/wchar_h.m4 @ 17252:7a29ec33d6c5

missing @item
author Karl Berry <karl@freefriends.org>
date Tue, 01 Jan 2013 09:17:08 -0800
parents e542fd46ad6f
children 344018b6e5d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12913
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 dnl A placeholder for ISO C99 <wchar.h>, for platforms that have issues.
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2
17249
e542fd46ad6f maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents: 16201
diff changeset
3 dnl Copyright (C) 2007-2013 Free Software Foundation, Inc.
12913
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 dnl This file is free software; the Free Software Foundation
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 dnl gives unlimited permission to copy and/or distribute it,
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 dnl with or without modifications, as long as this notice is preserved.
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 dnl Written by Eric Blake.
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9
14685
f7f11056a86e maint: remove useless REPLACE_*_H macros
Eric Blake <eblake@redhat.com>
parents: 14303
diff changeset
10 # wchar_h.m4 serial 39
12913
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 AC_DEFUN([gl_WCHAR_H],
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 [
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 AC_REQUIRE([gl_WCHAR_H_INLINE_OK])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 dnl Prepare for creating substitute <wchar.h>.
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 dnl Check for <wchar.h> (missing in Linux uClibc when built without wide
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 dnl character support).
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 dnl <wchar.h> is always overridden, because of GNULIB_POSIXCHECK.
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 gl_CHECK_NEXT_HEADERS([wchar.h])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 if test $ac_cv_header_wchar_h = yes; then
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 HAVE_WCHAR_H=1
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 else
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 HAVE_WCHAR_H=0
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 fi
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 AC_SUBST([HAVE_WCHAR_H])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27
13887
ff73aa93842c Ensure that <features.h> is included before __GLIBC__ is tested.
Bruno Haible <bruno@clisp.org>
parents: 13885
diff changeset
28 AC_REQUIRE([gl_FEATURES_H])
ff73aa93842c Ensure that <features.h> is included before __GLIBC__ is tested.
Bruno Haible <bruno@clisp.org>
parents: 13885
diff changeset
29
12913
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 AC_REQUIRE([gt_TYPE_WINT_T])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 if test $gt_cv_c_wint_t = yes; then
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 HAVE_WINT_T=1
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 else
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 HAVE_WINT_T=0
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 fi
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 AC_SUBST([HAVE_WINT_T])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38 dnl Check for declarations of anything we want to poison if the
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 dnl corresponding gnulib module is not in use.
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 gl_WARN_ON_USE_PREPARE([[
14020
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
41 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
42 <wchar.h>.
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
43 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
44 included before <wchar.h>. */
13885
87a95303747f Port to uClibc.
Bruno Haible <bruno@clisp.org>
parents: 13071
diff changeset
45 #if !(defined __GLIBC__ && !defined __UCLIBC__)
12913
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46 # include <stddef.h>
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
47 # include <stdio.h>
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
48 # include <time.h>
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
49 #endif
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50 #include <wchar.h>
14268
27d6460ec7c1 New module 'wmemchr', part 2.
Bruno Haible <bruno@clisp.org>
parents: 14267
diff changeset
51 ]],
27d6460ec7c1 New module 'wmemchr', part 2.
Bruno Haible <bruno@clisp.org>
parents: 14267
diff changeset
52 [btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb
14280
ac540ec36bef New module 'wmemset'.
Bruno Haible <bruno@clisp.org>
parents: 14279
diff changeset
53 wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset
14289
b5843d4d8441 New module 'wcscmp'.
Bruno Haible <bruno@clisp.org>
parents: 14288
diff changeset
54 wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp
14297
029111e5ac51 New module 'wcsrchr'.
Bruno Haible <bruno@clisp.org>
parents: 14296
diff changeset
55 wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr
14303
7357862f4745 New module 'wcswidth'.
Bruno Haible <bruno@clisp.org>
parents: 14302
diff changeset
56 wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth
14268
27d6460ec7c1 New module 'wmemchr', part 2.
Bruno Haible <bruno@clisp.org>
parents: 14267
diff changeset
57 ])
12913
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
58 ])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
59
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
60 dnl Check whether <wchar.h> is usable at all.
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
61 AC_DEFUN([gl_WCHAR_H_INLINE_OK],
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
62 [
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
63 dnl Test whether <wchar.h> suffers due to the transition from '__inline' to
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
64 dnl 'gnu_inline'. See <http://sourceware.org/bugzilla/show_bug.cgi?id=4022>
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
65 dnl and <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42440>. In summary,
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
66 dnl glibc version 2.5 or older, together with gcc version 4.3 or newer and
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
67 dnl the option -std=c99 or -std=gnu99, leads to a broken <wchar.h>.
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
68 AC_CACHE_CHECK([whether <wchar.h> uses 'inline' correctly],
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
69 [gl_cv_header_wchar_h_correct_inline],
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
70 [gl_cv_header_wchar_h_correct_inline=yes
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
71 AC_LANG_CONFTEST([
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
72 AC_LANG_SOURCE([[#define wcstod renamed_wcstod
14020
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
73 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
74 <wchar.h>.
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
75 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
76 included before <wchar.h>. */
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
77 #include <stddef.h>
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
78 #include <stdio.h>
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
79 #include <time.h>
12913
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
80 #include <wchar.h>
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
81 extern int zero (void);
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
82 int main () { return zero(); }
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
83 ]])])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
84 if AC_TRY_EVAL([ac_compile]); then
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
85 mv conftest.$ac_objext conftest1.$ac_objext
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
86 AC_LANG_CONFTEST([
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
87 AC_LANG_SOURCE([[#define wcstod renamed_wcstod
14020
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
88 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
89 <wchar.h>.
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
90 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
91 included before <wchar.h>. */
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
92 #include <stddef.h>
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
93 #include <stdio.h>
318a4063e921 Ensure all prerequisites of <wchar.h> are included.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
94 #include <time.h>
12913
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
95 #include <wchar.h>
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
96 int zero (void) { return 0; }
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
97 ]])])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
98 if AC_TRY_EVAL([ac_compile]); then
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
99 mv conftest.$ac_objext conftest2.$ac_objext
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
100 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&AS_MESSAGE_LOG_FD 2>&1; then
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
101 :
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
102 else
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
103 gl_cv_header_wchar_h_correct_inline=no
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
104 fi
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
105 fi
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
106 fi
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
107 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
108 ])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
109 if test $gl_cv_header_wchar_h_correct_inline = no; then
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
110 AC_MSG_ERROR([<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
111 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
112 C99 mode. You have four options:
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
113 - Add the flag -fgnu89-inline to CC and reconfigure, or
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
114 - Fix your include files, using parts of
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
115 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
116 - Use a gcc version older than 4.3, or
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
117 - Don't use the flags -std=c99 or -std=gnu99.
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
118 Configuration aborted.])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
119 fi
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
120 ])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
121
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
122 AC_DEFUN([gl_WCHAR_MODULE_INDICATOR],
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
123 [
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
124 dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
125 AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
13066
fc8c984b0733 Factorize common .m4 code.
Bruno Haible <bruno@clisp.org>
parents: 12974
diff changeset
126 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
12974
61705dab4021 Tests of module 'wchar' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12913
diff changeset
127 dnl Define it also as a C macro, for the benefit of the unit tests.
13071
b2385e7b332e Distinguish two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 13066
diff changeset
128 gl_MODULE_INDICATOR_FOR_TESTS([$1])
12913
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
129 ])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
130
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
131 AC_DEFUN([gl_WCHAR_H_DEFAULTS],
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
132 [
14292
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
133 GNULIB_BTOWC=0; AC_SUBST([GNULIB_BTOWC])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
134 GNULIB_WCTOB=0; AC_SUBST([GNULIB_WCTOB])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
135 GNULIB_MBSINIT=0; AC_SUBST([GNULIB_MBSINIT])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
136 GNULIB_MBRTOWC=0; AC_SUBST([GNULIB_MBRTOWC])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
137 GNULIB_MBRLEN=0; AC_SUBST([GNULIB_MBRLEN])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
138 GNULIB_MBSRTOWCS=0; AC_SUBST([GNULIB_MBSRTOWCS])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
139 GNULIB_MBSNRTOWCS=0; AC_SUBST([GNULIB_MBSNRTOWCS])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
140 GNULIB_WCRTOMB=0; AC_SUBST([GNULIB_WCRTOMB])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
141 GNULIB_WCSRTOMBS=0; AC_SUBST([GNULIB_WCSRTOMBS])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
142 GNULIB_WCSNRTOMBS=0; AC_SUBST([GNULIB_WCSNRTOMBS])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
143 GNULIB_WCWIDTH=0; AC_SUBST([GNULIB_WCWIDTH])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
144 GNULIB_WMEMCHR=0; AC_SUBST([GNULIB_WMEMCHR])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
145 GNULIB_WMEMCMP=0; AC_SUBST([GNULIB_WMEMCMP])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
146 GNULIB_WMEMCPY=0; AC_SUBST([GNULIB_WMEMCPY])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
147 GNULIB_WMEMMOVE=0; AC_SUBST([GNULIB_WMEMMOVE])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
148 GNULIB_WMEMSET=0; AC_SUBST([GNULIB_WMEMSET])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
149 GNULIB_WCSLEN=0; AC_SUBST([GNULIB_WCSLEN])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
150 GNULIB_WCSNLEN=0; AC_SUBST([GNULIB_WCSNLEN])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
151 GNULIB_WCSCPY=0; AC_SUBST([GNULIB_WCSCPY])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
152 GNULIB_WCPCPY=0; AC_SUBST([GNULIB_WCPCPY])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
153 GNULIB_WCSNCPY=0; AC_SUBST([GNULIB_WCSNCPY])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
154 GNULIB_WCPNCPY=0; AC_SUBST([GNULIB_WCPNCPY])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
155 GNULIB_WCSCAT=0; AC_SUBST([GNULIB_WCSCAT])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
156 GNULIB_WCSNCAT=0; AC_SUBST([GNULIB_WCSNCAT])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
157 GNULIB_WCSCMP=0; AC_SUBST([GNULIB_WCSCMP])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
158 GNULIB_WCSNCMP=0; AC_SUBST([GNULIB_WCSNCMP])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
159 GNULIB_WCSCASECMP=0; AC_SUBST([GNULIB_WCSCASECMP])
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
160 GNULIB_WCSNCASECMP=0; AC_SUBST([GNULIB_WCSNCASECMP])
14293
13e6946b4e9a New module 'wcscoll'.
Bruno Haible <bruno@clisp.org>
parents: 14292
diff changeset
161 GNULIB_WCSCOLL=0; AC_SUBST([GNULIB_WCSCOLL])
14294
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents: 14293
diff changeset
162 GNULIB_WCSXFRM=0; AC_SUBST([GNULIB_WCSXFRM])
14295
34809a158a33 New module 'wcsdup'.
Bruno Haible <bruno@clisp.org>
parents: 14294
diff changeset
163 GNULIB_WCSDUP=0; AC_SUBST([GNULIB_WCSDUP])
14296
932d02b6b200 New module 'wcschr'.
Bruno Haible <bruno@clisp.org>
parents: 14295
diff changeset
164 GNULIB_WCSCHR=0; AC_SUBST([GNULIB_WCSCHR])
14297
029111e5ac51 New module 'wcsrchr'.
Bruno Haible <bruno@clisp.org>
parents: 14296
diff changeset
165 GNULIB_WCSRCHR=0; AC_SUBST([GNULIB_WCSRCHR])
14298
f0c82d0c08e6 New module 'wcscspn'.
Bruno Haible <bruno@clisp.org>
parents: 14297
diff changeset
166 GNULIB_WCSCSPN=0; AC_SUBST([GNULIB_WCSCSPN])
14299
0d372bfa8a0f New module 'wcsspn'.
Bruno Haible <bruno@clisp.org>
parents: 14298
diff changeset
167 GNULIB_WCSSPN=0; AC_SUBST([GNULIB_WCSSPN])
14300
31285699a61f New module 'wcspbrk'.
Bruno Haible <bruno@clisp.org>
parents: 14299
diff changeset
168 GNULIB_WCSPBRK=0; AC_SUBST([GNULIB_WCSPBRK])
14301
b58bcfabff09 New module 'wcsstr'.
Bruno Haible <bruno@clisp.org>
parents: 14300
diff changeset
169 GNULIB_WCSSTR=0; AC_SUBST([GNULIB_WCSSTR])
14302
952e98e7b703 New module 'wcstok'.
Bruno Haible <bruno@clisp.org>
parents: 14301
diff changeset
170 GNULIB_WCSTOK=0; AC_SUBST([GNULIB_WCSTOK])
14303
7357862f4745 New module 'wcswidth'.
Bruno Haible <bruno@clisp.org>
parents: 14302
diff changeset
171 GNULIB_WCSWIDTH=0; AC_SUBST([GNULIB_WCSWIDTH])
12913
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
172 dnl Assume proper GNU behavior unless another module says otherwise.
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
173 HAVE_BTOWC=1; AC_SUBST([HAVE_BTOWC])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
174 HAVE_MBSINIT=1; AC_SUBST([HAVE_MBSINIT])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
175 HAVE_MBRTOWC=1; AC_SUBST([HAVE_MBRTOWC])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
176 HAVE_MBRLEN=1; AC_SUBST([HAVE_MBRLEN])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
177 HAVE_MBSRTOWCS=1; AC_SUBST([HAVE_MBSRTOWCS])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
178 HAVE_MBSNRTOWCS=1; AC_SUBST([HAVE_MBSNRTOWCS])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
179 HAVE_WCRTOMB=1; AC_SUBST([HAVE_WCRTOMB])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
180 HAVE_WCSRTOMBS=1; AC_SUBST([HAVE_WCSRTOMBS])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
181 HAVE_WCSNRTOMBS=1; AC_SUBST([HAVE_WCSNRTOMBS])
14267
9ccff8d6fbbe New module 'wmemchr'.
Bruno Haible <bruno@clisp.org>
parents: 14211
diff changeset
182 HAVE_WMEMCHR=1; AC_SUBST([HAVE_WMEMCHR])
14277
91a2110f419b New module 'wmemcmp'.
Bruno Haible <bruno@clisp.org>
parents: 14268
diff changeset
183 HAVE_WMEMCMP=1; AC_SUBST([HAVE_WMEMCMP])
14278
fe5382375992 New module 'wmemcpy'.
Bruno Haible <bruno@clisp.org>
parents: 14277
diff changeset
184 HAVE_WMEMCPY=1; AC_SUBST([HAVE_WMEMCPY])
14279
2a7d15223d39 New module 'wmemmove'.
Bruno Haible <bruno@clisp.org>
parents: 14278
diff changeset
185 HAVE_WMEMMOVE=1; AC_SUBST([HAVE_WMEMMOVE])
14280
ac540ec36bef New module 'wmemset'.
Bruno Haible <bruno@clisp.org>
parents: 14279
diff changeset
186 HAVE_WMEMSET=1; AC_SUBST([HAVE_WMEMSET])
14281
cae17a11c789 New module 'wcslen'.
Bruno Haible <bruno@clisp.org>
parents: 14280
diff changeset
187 HAVE_WCSLEN=1; AC_SUBST([HAVE_WCSLEN])
14282
3e1169cfa252 New module 'wcsnlen'.
Bruno Haible <bruno@clisp.org>
parents: 14281
diff changeset
188 HAVE_WCSNLEN=1; AC_SUBST([HAVE_WCSNLEN])
14283
f6f1da9d12f7 New module 'wcscpy'.
Bruno Haible <bruno@clisp.org>
parents: 14282
diff changeset
189 HAVE_WCSCPY=1; AC_SUBST([HAVE_WCSCPY])
14284
252e51b8dd78 New module 'wcpcpy'.
Bruno Haible <bruno@clisp.org>
parents: 14283
diff changeset
190 HAVE_WCPCPY=1; AC_SUBST([HAVE_WCPCPY])
14285
46d0f7a51cc0 New module 'wcsncpy'.
Bruno Haible <bruno@clisp.org>
parents: 14284
diff changeset
191 HAVE_WCSNCPY=1; AC_SUBST([HAVE_WCSNCPY])
14286
c436f87485c4 New module 'wcpncpy'.
Bruno Haible <bruno@clisp.org>
parents: 14285
diff changeset
192 HAVE_WCPNCPY=1; AC_SUBST([HAVE_WCPNCPY])
14287
783f910af794 New module 'wcscat'.
Bruno Haible <bruno@clisp.org>
parents: 14286
diff changeset
193 HAVE_WCSCAT=1; AC_SUBST([HAVE_WCSCAT])
14288
75ffd7ebdec7 New module 'wcsncat'.
Bruno Haible <bruno@clisp.org>
parents: 14287
diff changeset
194 HAVE_WCSNCAT=1; AC_SUBST([HAVE_WCSNCAT])
14289
b5843d4d8441 New module 'wcscmp'.
Bruno Haible <bruno@clisp.org>
parents: 14288
diff changeset
195 HAVE_WCSCMP=1; AC_SUBST([HAVE_WCSCMP])
14290
0da9f0fe36fe New module 'wcsncmp'.
Bruno Haible <bruno@clisp.org>
parents: 14289
diff changeset
196 HAVE_WCSNCMP=1; AC_SUBST([HAVE_WCSNCMP])
14291
517e0af1a79b New module 'wcscasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14290
diff changeset
197 HAVE_WCSCASECMP=1; AC_SUBST([HAVE_WCSCASECMP])
14292
ba9661869dda New module 'wcsncasecmp'.
Bruno Haible <bruno@clisp.org>
parents: 14291
diff changeset
198 HAVE_WCSNCASECMP=1; AC_SUBST([HAVE_WCSNCASECMP])
14293
13e6946b4e9a New module 'wcscoll'.
Bruno Haible <bruno@clisp.org>
parents: 14292
diff changeset
199 HAVE_WCSCOLL=1; AC_SUBST([HAVE_WCSCOLL])
14294
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents: 14293
diff changeset
200 HAVE_WCSXFRM=1; AC_SUBST([HAVE_WCSXFRM])
14295
34809a158a33 New module 'wcsdup'.
Bruno Haible <bruno@clisp.org>
parents: 14294
diff changeset
201 HAVE_WCSDUP=1; AC_SUBST([HAVE_WCSDUP])
14296
932d02b6b200 New module 'wcschr'.
Bruno Haible <bruno@clisp.org>
parents: 14295
diff changeset
202 HAVE_WCSCHR=1; AC_SUBST([HAVE_WCSCHR])
14297
029111e5ac51 New module 'wcsrchr'.
Bruno Haible <bruno@clisp.org>
parents: 14296
diff changeset
203 HAVE_WCSRCHR=1; AC_SUBST([HAVE_WCSRCHR])
14298
f0c82d0c08e6 New module 'wcscspn'.
Bruno Haible <bruno@clisp.org>
parents: 14297
diff changeset
204 HAVE_WCSCSPN=1; AC_SUBST([HAVE_WCSCSPN])
14299
0d372bfa8a0f New module 'wcsspn'.
Bruno Haible <bruno@clisp.org>
parents: 14298
diff changeset
205 HAVE_WCSSPN=1; AC_SUBST([HAVE_WCSSPN])
14300
31285699a61f New module 'wcspbrk'.
Bruno Haible <bruno@clisp.org>
parents: 14299
diff changeset
206 HAVE_WCSPBRK=1; AC_SUBST([HAVE_WCSPBRK])
14301
b58bcfabff09 New module 'wcsstr'.
Bruno Haible <bruno@clisp.org>
parents: 14300
diff changeset
207 HAVE_WCSSTR=1; AC_SUBST([HAVE_WCSSTR])
14302
952e98e7b703 New module 'wcstok'.
Bruno Haible <bruno@clisp.org>
parents: 14301
diff changeset
208 HAVE_WCSTOK=1; AC_SUBST([HAVE_WCSTOK])
14303
7357862f4745 New module 'wcswidth'.
Bruno Haible <bruno@clisp.org>
parents: 14302
diff changeset
209 HAVE_WCSWIDTH=1; AC_SUBST([HAVE_WCSWIDTH])
12913
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
210 HAVE_DECL_WCTOB=1; AC_SUBST([HAVE_DECL_WCTOB])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
211 HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
212 REPLACE_MBSTATE_T=0; AC_SUBST([REPLACE_MBSTATE_T])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
213 REPLACE_BTOWC=0; AC_SUBST([REPLACE_BTOWC])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
214 REPLACE_WCTOB=0; AC_SUBST([REPLACE_WCTOB])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
215 REPLACE_MBSINIT=0; AC_SUBST([REPLACE_MBSINIT])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
216 REPLACE_MBRTOWC=0; AC_SUBST([REPLACE_MBRTOWC])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
217 REPLACE_MBRLEN=0; AC_SUBST([REPLACE_MBRLEN])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
218 REPLACE_MBSRTOWCS=0; AC_SUBST([REPLACE_MBSRTOWCS])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
219 REPLACE_MBSNRTOWCS=0; AC_SUBST([REPLACE_MBSNRTOWCS])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
220 REPLACE_WCRTOMB=0; AC_SUBST([REPLACE_WCRTOMB])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
221 REPLACE_WCSRTOMBS=0; AC_SUBST([REPLACE_WCSRTOMBS])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
222 REPLACE_WCSNRTOMBS=0; AC_SUBST([REPLACE_WCSNRTOMBS])
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
223 REPLACE_WCWIDTH=0; AC_SUBST([REPLACE_WCWIDTH])
14303
7357862f4745 New module 'wcswidth'.
Bruno Haible <bruno@clisp.org>
parents: 14302
diff changeset
224 REPLACE_WCSWIDTH=0; AC_SUBST([REPLACE_WCSWIDTH])
12913
6a1b2eb4c331 More consistent naming of *.m4 files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
225 ])