New module 'mbsinit'.
[gnulib.git] / modules / wchar
1 Description:
2 A <wchar.h> that works around platform issues.
3
4 Files:
5 lib/wchar.in.h
6 m4/wchar.m4
7 m4/wint_t.m4
8
9 Depends-on:
10 include_next
11 link-warning
12
13 configure.ac:
14 gl_WCHAR_H
15
16 Makefile.am:
17 BUILT_SOURCES += $(WCHAR_H)
18
19 # We need the following in order to create <wchar.h> when the system
20 # version does not work standalone.
21 wchar.h: wchar.in.h
22         rm -f $@-t $@
23         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
24           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
25               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
26               -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \
27               -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \
28               -e 's|@''GNULIB_MBSINIT''@|$(GNULIB_MBSINIT)|g' \
29               -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \
30               -e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \
31               -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \
32               -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
33               -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
34               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
35             < $(srcdir)/wchar.in.h; \
36         } > $@-t
37         mv $@-t $@
38 MOSTLYCLEANFILES += wchar.h wchar.h-t
39
40 Include:
41 #include <wchar.h>
42
43 License:
44 LGPLv2+
45
46 Maintainer:
47 all