Mercurial > hg > octave-jordi > gnulib-hg
annotate m4/jm-winsz2.m4 @ 17848:ab58d4870664
version-etc: new year
* doc/gnulib.texi:
* lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
* all files: Run 'make update-copyright'.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 01 Jan 2015 01:38:23 +0000 |
parents | 344018b6e5d7 |
children |
rev | line source |
---|---|
11007
f6cba5a556ce
many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents:
9459
diff
changeset
|
1 # serial 7 |
5611
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
2 |
17848 | 3 # Copyright (C) 1996, 1999, 2001, 2004, 2009-2015 Free Software Foundation, |
12559
c2cbabec01dd
update nearly all FSF copyright year lists to include 2010
Jim Meyering <meyering@redhat.com>
parents:
12421
diff
changeset
|
4 # Inc. |
5611
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
5 # This file is free software; the Free Software Foundation |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
6 # gives unlimited permission to copy and/or distribute it, |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
7 # with or without modifications, as long as this notice is preserved. |
820 | 8 |
5016
7141ea4946af
Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
Jim Meyering <jim@meyering.net>
parents:
3339
diff
changeset
|
9 AC_DEFUN([gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL], |
7141ea4946af
Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
Jim Meyering <jim@meyering.net>
parents:
3339
diff
changeset
|
10 [AC_REQUIRE([gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H]) |
820 | 11 AC_CACHE_CHECK([whether use of TIOCGWINSZ requires sys/ioctl.h], |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
11007
diff
changeset
|
12 gl_cv_sys_tiocgwinsz_needs_sys_ioctl_h, |
9459
4971433ca28e
Change cache variable name prefix "jm_" to "gl_" everywhere.
Jim Meyering <meyering@redhat.com>
parents:
5611
diff
changeset
|
13 [gl_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no |
820 | 14 |
9459
4971433ca28e
Change cache variable name prefix "jm_" to "gl_" everywhere.
Jim Meyering <meyering@redhat.com>
parents:
5611
diff
changeset
|
15 if test $gl_cv_sys_tiocgwinsz_needs_termios_h = no; then |
820 | 16 AC_EGREP_CPP([yes], |
17 [#include <sys/types.h> | |
18 # include <sys/ioctl.h> | |
19 # ifdef TIOCGWINSZ | |
20 yes | |
21 # endif | |
9459
4971433ca28e
Change cache variable name prefix "jm_" to "gl_" everywhere.
Jim Meyering <meyering@redhat.com>
parents:
5611
diff
changeset
|
22 ], gl_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes) |
820 | 23 fi |
24 ]) | |
9459
4971433ca28e
Change cache variable name prefix "jm_" to "gl_" everywhere.
Jim Meyering <meyering@redhat.com>
parents:
5611
diff
changeset
|
25 if test $gl_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then |
11007
f6cba5a556ce
many *.m4 files: improve m4 quoting
Jim Meyering <meyering@redhat.com>
parents:
9459
diff
changeset
|
26 AC_DEFINE([GWINSZ_IN_SYS_IOCTL], [1], |
1672
004ad983c640
Use the 3-argument forms of AC_DEFINE* macros.
Jim Meyering <jim@meyering.net>
parents:
820
diff
changeset
|
27 [Define if your system defines TIOCGWINSZ in sys/ioctl.h.]) |
820 | 28 fi |
29 ]) |