2 A POSIX-like <errno.h>.
15 BUILT_SOURCES += $(ERRNO_H)
17 # We need the following in order to create <errno.h> when the system
18 # doesn't have one that is POSIX compliant.
19 if GL_GENERATE_ERRNO_H
20 errno.h: errno.in.h $(top_builddir)/config.status
21 $(AM_V_GEN)rm -f $@-t $@ && \
22 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
23 sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
24 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
25 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
26 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
27 -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \
28 -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \
29 -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \
30 -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \
31 -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \
32 -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \
33 -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \
34 < $(srcdir)/errno.in.h; \
38 errno.h: $(top_builddir)/config.status
41 MOSTLYCLEANFILES += errno.h errno.h-t