2 A <wchar.h> that works around platform issues.
17 BUILT_SOURCES += $(WCHAR_H)
19 # We need the following in order to create <wchar.h> when the system
20 # version does not work standalone.
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; \
42 MOSTLYCLEANFILES += wchar.h wchar.h-t