16 BUILT_SOURCES += unistd.h
18 # We need the following in order to create an empty placeholder for
19 # <unistd.h> when the system doesn't have one.
22 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
23 sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
24 -e 's|@''ABSOLUTE_UNISTD_H''@|$(ABSOLUTE_UNISTD_H)|g' \
25 -e 's/@''HAVE_INCLUDE_NEXT''@/$(HAVE_INCLUDE_NEXT)/g' \
26 -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \
27 -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \
28 -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \
29 -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \
30 -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \
31 -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \
32 -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \
33 -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \
34 -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
35 -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
36 -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
37 -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
38 -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
39 -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
40 -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
41 -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
42 < $(srcdir)/unistd_.h; \
45 MOSTLYCLEANFILES += unistd.h unistd.h-t