Mercurial > hg > octave-shane > gnulib-hg
annotate m4/tcgetsid.m4 @ 17480:f40b3156a43e
selinux-at: omit unnecessary include
* lib/selinux-at.c: Don't include dosname.h; not needed, since
this source file doesn't use its macros, and subsidiary files that
use the macros already include it.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Fri, 23 Aug 2013 13:53:46 -0700 |
parents | e542fd46ad6f |
children | 344018b6e5d7 |
rev | line source |
---|---|
15502
5bbc9e0b9275
tcgetsid: Detect declaration correctly.
Bruno Haible <bruno@clisp.org>
parents:
15124
diff
changeset
|
1 # tcgetsid.m4 serial 4 |
17249
e542fd46ad6f
maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents:
16201
diff
changeset
|
2 dnl Copyright (C) 2010-2013 Free Software Foundation, Inc. |
13689 | 3 dnl This file is free software; the Free Software Foundation |
4 dnl gives unlimited permission to copy and/or distribute it, | |
5 dnl with or without modifications, as long as this notice is preserved. | |
6 | |
7 AC_DEFUN([gl_FUNC_TCGETSID], | |
8 [ | |
9 AC_REQUIRE([gl_TERMIOS_H_DEFAULTS]) | |
10 | |
11 dnl Persuade glibc <termios.h> to declare tcgetsid(). | |
12 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) | |
13 | |
15502
5bbc9e0b9275
tcgetsid: Detect declaration correctly.
Bruno Haible <bruno@clisp.org>
parents:
15124
diff
changeset
|
14 AC_CHECK_DECLS([tcgetsid], , , [[#include <termios.h>]]) |
13955
7f79090fda41
tcgetsid: Add missing declaration on OSF/1 5.1.
Bruno Haible <bruno@clisp.org>
parents:
13689
diff
changeset
|
15 if test $ac_cv_have_decl_tcgetsid = no; then |
7f79090fda41
tcgetsid: Add missing declaration on OSF/1 5.1.
Bruno Haible <bruno@clisp.org>
parents:
13689
diff
changeset
|
16 HAVE_DECL_TCGETSID=0 |
7f79090fda41
tcgetsid: Add missing declaration on OSF/1 5.1.
Bruno Haible <bruno@clisp.org>
parents:
13689
diff
changeset
|
17 fi |
7f79090fda41
tcgetsid: Add missing declaration on OSF/1 5.1.
Bruno Haible <bruno@clisp.org>
parents:
13689
diff
changeset
|
18 |
13689 | 19 AC_CHECK_FUNCS([tcgetsid]) |
15124
f4866d768f30
tcgetsid: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
20 if test $ac_cv_func_tcgetsid = yes; then |
f4866d768f30
tcgetsid: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
21 HAVE_TCGETSID=1 |
f4866d768f30
tcgetsid: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
22 else |
f4866d768f30
tcgetsid: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
23 HAVE_TCGETSID=0 |
13689 | 24 fi |
25 ]) | |
26 | |
27 # Prerequisites of lib/tcgetsid.c. | |
28 AC_DEFUN([gl_PREREQ_TCGETSID], [ | |
29 : | |
30 ]) |