X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fpty.m4;h=617b1b90f3e16a6234b2d71e6915ccf458d5c248;hb=32a3eff7f5191d76a82be7db1190a98ed9ef55d0;hp=60bd73f5efd4577ce615dc710603db017f5a650b;hpb=eb8d73f9107decfddc7de65c4d3ba55b85850b8e;p=gnulib.git diff --git a/m4/pty.m4 b/m4/pty.m4 index 60bd73f5e..617b1b90f 100644 --- a/m4/pty.m4 +++ b/m4/pty.m4 @@ -1,4 +1,4 @@ -# pty.m4 serial 5 +# pty.m4 serial 7 dnl Copyright (C) 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -20,7 +20,7 @@ AC_DEFUN([gl_PTY_LIB], AC_SUBST([PTY_LIB]) ]) -AC_DEFUN([gl_FORKPTY], +AC_DEFUN([gl_FUNC_FORKPTY], [ AC_REQUIRE([gl_PTY_LIB]) AC_REQUIRE([gl_PTY_H]) @@ -72,7 +72,7 @@ AC_DEFUN([gl_FORKPTY], fi ]) -AC_DEFUN([gl_OPENPTY], +AC_DEFUN([gl_FUNC_OPENPTY], [ AC_REQUIRE([gl_PTY_LIB]) AC_REQUIRE([gl_PTY_H]) @@ -119,6 +119,8 @@ AC_DEFUN([gl_OPENPTY], 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.