Merge commit 'a39d4083cab589d7cd6a13e8a4b8db8875261d75'
[gnulib.git] / modules / openpty
index 1608a8d..8d174da 100644 (file)
@@ -1,5 +1,5 @@
 Description:
-Provide the openpty() function.
+openpty() function: Open a pseudo-terminal.
 
 Files:
 lib/openpty.c
@@ -7,9 +7,16 @@ m4/pty.m4
 
 Depends-on:
 pty
+extensions
+fcntl-h         [test $HAVE_OPENPTY = 0 || test $REPLACE_OPENPTY = 1]
+posix_openpt    [test $HAVE_OPENPTY = 0 || test $REPLACE_OPENPTY = 1]
+ioctl           [test $HAVE_OPENPTY = 0 || test $REPLACE_OPENPTY = 1]
 
 configure.ac:
-gl_OPENPTY
+gl_FUNC_OPENPTY
+if test $HAVE_OPENPTY = 0 || test $REPLACE_OPENPTY = 1; then
+  AC_LIBOBJ([openpty])
+fi
 gl_PTY_MODULE_INDICATOR([openpty])
 
 Makefile.am:
@@ -21,7 +28,7 @@ Link:
 $(PTY_LIB)
 
 License:
-LGPL
+LGPLv2+
 
 Maintainer:
 Simon Josefsson