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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 AC_DEFUN([gl_FUNC_TCGETSID],
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 [
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 AC_REQUIRE([gl_TERMIOS_H_DEFAULTS])
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 dnl Persuade glibc <termios.h> to declare tcgetsid().
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
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
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
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
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 fi
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 ])
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 # Prerequisites of lib/tcgetsid.c.
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 AC_DEFUN([gl_PREREQ_TCGETSID], [
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 :
af3a7152efba New module 'tcgetsid'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 ])