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