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