From 5fc47138b1f01f5ec8d449585bd19abea4da7960 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 21 Dec 1996 01:50:50 +0000 Subject: broken out of ../acinclude.m4 --- m4/jm-winsz1.m4 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 m4/jm-winsz1.m4 (limited to 'm4/jm-winsz1.m4') diff --git a/m4/jm-winsz1.m4 b/m4/jm-winsz1.m4 new file mode 100644 index 000000000..346e8dd4f --- /dev/null +++ b/m4/jm-winsz1.m4 @@ -0,0 +1,19 @@ +dnl From Jim Meyering. +#serial 1 +AC_DEFUN(jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H, +[AC_REQUIRE([AM_SYS_POSIX_TERMIOS]) + AC_CACHE_CHECK([whether use of TIOCGWINSZ requires termios.h], + jm_cv_sys_tiocgwinsz_needs_termios_h, + [jm_cv_sys_tiocgwinsz_needs_termios_h=no + + if test $am_cv_sys_posix_termios = yes; then + AC_EGREP_CPP([yes], + [#include +# include +# ifdef TIOCGWINSZ + yes +# endif + ], jm_cv_sys_tiocgwinsz_needs_termios_h=yes) + fi + ]) +]) -- cgit v1.2.3-54-g00ecf