New module 'wctob'.
[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_BTOWC''@|$(GNULIB_BTOWC)|g' \
29               -e 's|@''GNULIB_WCTOB''@|$(GNULIB_WCTOB)|g' \
30               -e 's|@''GNULIB_MBSINIT''@|$(GNULIB_MBSINIT)|g' \
31               -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \
32               -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
33               -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
34               -e 's|@''HAVE_WCTOB''@|$(HAVE_WCTOB)|g' \
35               -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \
36               -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
37               -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
38               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
39             < $(srcdir)/wchar.in.h; \
40         } > $@-t
41         mv $@-t $@
42 MOSTLYCLEANFILES += wchar.h wchar.h-t
43
44 Include:
45 #include <wchar.h>
46
47 License:
48 LGPLv2+
49
50 Maintainer:
51 all