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