1Description:
2A GNU-like <iconv.h>.
3
4Files:
5lib/iconv.in.h
6m4/iconv_h.m4
7
8Depends-on:
9include_next
10snippet/arg-nonnull
11snippet/c++defs
12snippet/warn-on-use
13
14configure.ac:
15gl_ICONV_H
16gl_ICONV_H_REQUIRE_DEFAULTS
17
18Makefile.am:
19BUILT_SOURCES += $(ICONV_H)
20
21# We need the following in order to create <iconv.h> when the system
22# doesn't have one that works with the given compiler.
23if GL_GENERATE_ICONV_H
24iconv.h: iconv.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
25	$(AM_V_GEN)rm -f $@-t $@ && \
26	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
27	  sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
28	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
29	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
30	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
31	      -e 's|@''NEXT_ICONV_H''@|$(NEXT_ICONV_H)|g' \
32	      -e 's/@''GNULIB_ICONV''@/$(GNULIB_ICONV)/g' \
33	      -e 's|@''ICONV_CONST''@|$(ICONV_CONST)|g' \
34	      -e 's|@''REPLACE_ICONV''@|$(REPLACE_ICONV)|g' \
35	      -e 's|@''REPLACE_ICONV_OPEN''@|$(REPLACE_ICONV_OPEN)|g' \
36	      -e 's|@''REPLACE_ICONV_UTF''@|$(REPLACE_ICONV_UTF)|g' \
37	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
38	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
39	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
40	      < $(srcdir)/iconv.in.h; \
41	} > $@-t && \
42	mv $@-t $@
43else
44iconv.h: $(top_builddir)/config.status
45	rm -f $@
46endif
47MOSTLYCLEANFILES += iconv.h iconv.h-t
48
49Include:
50#if HAVE_ICONV_H
51# include <iconv.h>
52#endif
53
54License:
55LGPLv2+
56
57Maintainer:
58all
59