libposix: Add _HEADERS primaries to posix modules.
[gnulib.git] / modules / pty
1 Description:
2 A <pty.h> for systems that lacks it.
3
4 Files:
5 lib/pty.in.h
6 m4/pty_h.m4
7
8 Depends-on:
9 c++defs
10 include_next
11 warn-on-use
12
13 configure.ac:
14 gl_PTY_H
15
16 Makefile.am:
17 nodist_pkginclude_HEADERS += pty.h
18
19 BUILT_SOURCES += pty.h
20
21 # We need the following in order to create <pty.h> when the system
22 # doesn't have one that works with the given compiler.
23 pty.h: pty.in.h $(CXXDEFS_H) $(WARN_ON_USE_H)
24         $(AM_V_GEN)rm -f $@-t $@ && \
25         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
26           sed -e 's|@''HAVE_PTY_H''@|$(HAVE_PTY_H)|g' \
27               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
28               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
29               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
30               -e 's|@''NEXT_PTY_H''@|$(NEXT_PTY_H)|g' \
31               -e 's|@''GNULIB_FORKPTY''@|$(GNULIB_FORKPTY)|g' \
32               -e 's|@''GNULIB_OPENPTY''@|$(GNULIB_OPENPTY)|g' \
33               -e 's|@''HAVE_UTIL_H''@|$(HAVE_UTIL_H)|g' \
34               -e 's|@''HAVE_LIBUTIL_H''@|$(HAVE_LIBUTIL_H)|g' \
35               -e 's|@''HAVE_FORKPTY''@|$(HAVE_FORKPTY)|g' \
36               -e 's|@''HAVE_OPENPTY''@|$(HAVE_OPENPTY)|g' \
37               -e 's|@''REPLACE_FORKPTY''@|$(REPLACE_FORKPTY)|g' \
38               -e 's|@''REPLACE_OPENPTY''@|$(REPLACE_OPENPTY)|g' \
39               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
40               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
41               < $(srcdir)/pty.in.h; \
42         } > $@-t && \
43         mv $@-t $@
44 MOSTLYCLEANFILES += pty.h pty.h-t
45
46 Include:
47 <pty.h>
48
49 Link:
50 $(PTY_LIB)
51
52 License:
53 LGPLv2+
54
55 Maintainer:
56 Simon Josefsson