2 Like <fcntl.h>, but with non-working flags defined to 0.
23 BUILT_SOURCES += fcntl.h
25 # We need the following in order to create <fcntl.h> when the system
26 # doesn't have one that works with the given compiler.
27 fcntl.h: fcntl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
28 $(AM_V_GEN)rm -f $@-t $@ && \
29 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
30 sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
31 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
32 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
33 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
34 -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \
35 -e 's/@''GNULIB_CREAT''@/$(GNULIB_CREAT)/g' \
36 -e 's/@''GNULIB_FCNTL''@/$(GNULIB_FCNTL)/g' \
37 -e 's/@''GNULIB_NONBLOCKING''@/$(GNULIB_NONBLOCKING)/g' \
38 -e 's/@''GNULIB_OPEN''@/$(GNULIB_OPEN)/g' \
39 -e 's/@''GNULIB_OPENAT''@/$(GNULIB_OPENAT)/g' \
40 -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \
41 -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \
42 -e 's|@''REPLACE_CREAT''@|$(REPLACE_CREAT)|g' \
43 -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \
44 -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \
45 -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \
46 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
47 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
48 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
49 < $(srcdir)/fcntl.in.h; \
52 MOSTLYCLEANFILES += fcntl.h fcntl.h-t