2 Like <fcntl.h>, but with non-working flags defined to 0.
21 BUILT_SOURCES += fcntl.h
23 # We need the following in order to create <fcntl.h> when the system
24 # doesn't have one that works with the given compiler.
25 fcntl.h: fcntl.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
26 $(AM_V_GEN)rm -f $@-t $@ && \
27 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
28 sed -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_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \
32 -e 's|@''GNULIB_FCNTL''@|$(GNULIB_FCNTL)|g' \
33 -e 's|@''GNULIB_OPEN''@|$(GNULIB_OPEN)|g' \
34 -e 's|@''GNULIB_OPENAT''@|$(GNULIB_OPENAT)|g' \
35 -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \
36 -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \
37 -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \
38 -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \
39 -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \
40 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
41 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
42 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
43 < $(srcdir)/fcntl.in.h; \
46 MOSTLYCLEANFILES += fcntl.h fcntl.h-t