getcwd: fix compile error in configure check
[gnulib.git] / modules / openpty
index 68e00db..8d174da 100644 (file)
@@ -1,14 +1,22 @@
 Description:
-Provide the openpty() function.
+openpty() function: Open a pseudo-terminal.
 
 Files:
+lib/openpty.c
 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:
@@ -20,7 +28,7 @@ Link:
 $(PTY_LIB)
 
 License:
-LGPL
+LGPLv2+
 
 Maintainer:
 Simon Josefsson