3 AC_DEFUN(jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL,
4 [AC_REQUIRE([jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H])
5 AC_CACHE_CHECK([whether use of TIOCGWINSZ requires sys/ioctl.h],
6 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h,
7 [jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
11 [#include <sys/types.h>
12 # include <sys/ioctl.h>
16 ], jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes)
19 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
20 AC_DEFINE(GWINSZ_IN_SYS_IOCTL)