annotate m4/passfd.m4 @ 40196:e63f5d3edab5

relocatable-prog: Update documentation. * doc/relocatable-maint.texi (Supporting Relocation): Update to match the recent changes.
author Bruno Haible <bruno@clisp.org>
date Sun, 24 Feb 2019 01:49:15 +0100
parents b06060465f09
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14600
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
1 # passfd.m4 serial 8
40057
b06060465f09 maint: Run 'make update-copyright'
Paul Eggert <eggert@cs.ucla.edu>
parents: 19484
diff changeset
2 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
14600
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
6
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
7 AC_DEFUN([gl_PASSFD],
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
8 [
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
9 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
10 AC_CHECK_FUNCS_ONCE([recvmsg sendmsg])
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
11
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
12 dnl Persuade AIX 5.2 <sys/socket.h> to declare CMSG_SPACE, CMSG_LEN.
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
13 dnl CMSG_FIRSTHDR is POSIX 2008, but CMSG_SPACE is only in RFC 3542.
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
14 AC_DEFINE([_LINUX_SOURCE_COMPAT], [1],
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
15 [Define in order to get some macros on AIX systems.])
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
16
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
17 dnl Passfd prefers the POSIX use of msg.msg_control if the CMSG_* macros
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
18 dnl are present, but can fall back to BSD 4.3 style of msg.msg_accrights.
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
19 AC_CHECK_MEMBERS([struct msghdr.msg_accrights], [], [], [[
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
20 #include <sys/types.h>
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
21 #include <sys/socket.h>
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
22 ]])
f57a9fcc777a passfd: speed up configure and drop unused code
Eric Blake <eblake@redhat.com>
parents:
diff changeset
23 ])