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_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \
29 -e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \
30 -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
31 -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
32 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
33 < $(srcdir)/wchar.in.h; \
36 MOSTLYCLEANFILES += wchar.h wchar.h-t