- ]], [[
- int openpty (int *, int *, char *, struct termios const *,
- struct winsize const *);
- ]])],
- [gl_cv_func_openpty_const=yes], [gl_cv_func_openpty_const=no])])
- if test $gl_cv_func_openpty_const != yes; then
- REPLACE_OPENPTY=1
+ ]], [[
+ int openpty (int *, int *, char *, struct termios const *,
+ struct winsize const *);
+ ]])
+ ],
+ [gl_cv_func_openpty_const=yes], [gl_cv_func_openpty_const=no])
+ ])
+ if test $gl_cv_func_openpty_const != yes; then
+ REPLACE_OPENPTY=1
+ AC_LIBOBJ([openpty])
+ AC_DEFINE([HAVE_OPENPTY], [1],
+ [Define to 1 if the system has the 'openpty' function.])
+ fi
+ else
+ dnl The system does not have openpty.
+ HAVE_OPENPTY=0