3 AC_DEFUN(jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
4 [AC_REQUIRE([AM_SYS_POSIX_TERMIOS])
5 AC_CACHE_CHECK([whether use of TIOCGWINSZ requires termios.h],
6 jm_cv_sys_tiocgwinsz_needs_termios_h,
7 [jm_cv_sys_tiocgwinsz_needs_termios_h=no
9 if test $am_cv_sys_posix_termios = yes; then
11 [#include <sys/types.h>
16 ], jm_cv_sys_tiocgwinsz_needs_termios_h=yes)
21 AC_DEFUN(jm_WINSIZE_IN_PTEM,
22 [AC_CHECK_HEADER([sys/ptem.h],
23 AC_DEFINE(WINSIZE_IN_PTEM, 1,
24 [Define if your system defines \`struct winsize' in sys/ptem.h.]))