~ubuntu-branches/ubuntu/oneiric/libvirt/oneiric-updates

« back to all changes in this revision

Viewing changes to gnulib/m4/spawn_h.m4

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2011-05-11 12:29:51 UTC
  • mfrom: (1.2.10) (3.4.30 sid)
  • Revision ID: package-import@ubuntu.com-20110511122951-ku5fk1tv37o5aymm
Tags: 0.9.1-1ubuntu1
* Resynchronize and merge from Debian unstable (LP: #794378). Remaining
  changes:
  - debian/control:
    * set X-Python-Version to 2.7, as 2.6 is not in oneiric.
    * set ubuntu maintainer
    * Build-Depends:
      - remove [linux-any] from all dependencies
      - remove [!linux-any] deps
      - swap libxen to libxen3, qemu to qemu-kvm, and open-iscsi to
        open-iscsi-utils in Build-Depends
      - remove virtualbox-ose Build-Depends
      - add parted and libapparmor-dev Build-Depends
    * convert Vcs-Git to Xs-Debian-Vcs-Git
    * libvirt-bin Depends: move netcat-openbsd, bridge-utils, dnsmasq-base
      (>= 2.46-1), and iptables from Recommends to Depends
    * libvirt-bin Recommends: move qemu to Suggests
    * libvirt-bin Suggests: add apparmor
    * libvirt0 Recommands: move lvm2 to Suggests
  - keep debian/libvirt-bin.apport
  - keep debian/libvirt-bin.cron.daily
  - debian/libvirt-bin.dirs:
    * add apparmor, cron.daily, and apport dirs
  - debian/libvirt-bin.examples:
    * add debian/libvirt-suspendonreboot
  - debian/libvirt-bin.install:
    * add /etc/apparmor.d files
    * add apport hook
  - debian/libvirt-bin.manpages:
    * add debian/libvirt-migrate-qemu-disks.1
  - debian/libvirt-bin.postinst:
    * replace libvirt groupname with libvirtd
    * add each admin user to libvirtd group
    * call apparmor_parser on usr.sbin.libvirtd and
      usr.lib.libvirt.virt-aa-helper
    * call 'libvirt-migrate-qemu-disks -a' after
      libvirt-bin has started if migrating from
      older than 0.8.3-1ubuntu1
  - debian/libvirt-bin.postrm:
    * replace libvirt groupname with libvirtd
    * remove usr.sbin.libvirtd and
      usr.lib.libvirt.virt-aa-helper
  - keep added files under debian/:
    * libvirt-bin.upstart
    * libvirt-migrate-qemu-disks
    * libvirt-migrate-qemu-disks.1
    * libvirt-suspendonreboot
    * apparmor profiles
  - debian/README.Debian:
    * add 'Apparmor Profile' section
    * add 'Disk migration' section
  - debian/rules:
    * move include of debhelper.mk to top of file so DEB_HOST_ARCH_OS
      is defined.
    * don't build with vbox since virtualbox-ose is in universe
      - remove WITH_VBOX, add explicit --without-vbox
    * add --with-apparmor to DEB_CONFIGURE_EXTRA_FLAGS
    * set DEB_DH_INSTALLINIT_ARGS to '--upstart-only'
    * remove unneeded binary-install/libvirt-bin:: and clean::
      sections (they only deal with sysvinit stuff)
    * add build/libvirt-bin:: section to install
      - apparmor files
      - apport hooks
      - libvirt-migrate-qemu-disks
* debian/patches/series:
  - don't apply Disable-CHECKSUM-rule.patch: our iptables can do this
  - don't apply Debian-specific Debianize-libvirt-guests.patch (sysvinit only)
  - don't apply Disable qemu-disable-network.diff.patch
* debian/patches:
  - drop 9007-fix-daemon-conf-ftbfs.patch (looks like it may be fixed)
  - drop patches applied upstream:
    * 9022-drop-booton-when-kernel-specified.patch
    * 9023-fix-lxc-console-hangup.patch
    * 9024-fix-broken-commandtest.patch
    * 9025-Pass-virSecurityManagerPtr-to-virSecurityDAC-Set-Res.patch
    * 9026-security-avoid-memory-leak.patch
    * 9027-CVE-2011-1146.patch
  - keep patches:
    * 9000-delayed_iff_up_bridge.patch
    * 9001-dont_clobber_existing_bridges.patch
    * 9002-better_default_uri_virsh.patch
    * 9003-better-default-arch.patch
    * 9004-libvirtd-group-name.patch
    * 9005-increase-unix-socket-timeout.patch
    * 9006-default-config-test-case.patch
    * 9011-move-ebtables-script.patch (refreshed)
    * 9014-skip-nodeinfotest.patch (modified to make it apply)
    * 9020-lp545795.patch (modified to make it still apply)
    * 9021-fix-uint64_t.patch
    * 9022-allows-lxc-containers-with-lxcguest.patch (renamed, modified
      to make it still apply, and added DEP-3 tags).
  - new patches:
    * 9023-disable-test-poll.patch - don't run broken test-poll

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- buffer-read-only: t -*- vi: set ro:
 
2
# DO NOT EDIT! GENERATED AUTOMATICALLY!
 
3
# spawn_h.m4 serial 12
 
4
dnl Copyright (C) 2008-2011 Free Software Foundation, Inc.
 
5
dnl This file is free software; the Free Software Foundation
 
6
dnl gives unlimited permission to copy and/or distribute it,
 
7
dnl with or without modifications, as long as this notice is preserved.
 
8
 
 
9
dnl Written by Bruno Haible.
 
10
 
 
11
AC_DEFUN([gl_SPAWN_H],
 
12
[
 
13
  dnl Use AC_REQUIRE here, so that the default behavior below is expanded
 
14
  dnl once only, before all statements that occur in other macros.
 
15
  AC_REQUIRE([gl_SPAWN_H_DEFAULTS])
 
16
 
 
17
  dnl <spawn.h> is always overridden, because of GNULIB_POSIXCHECK.
 
18
  gl_CHECK_NEXT_HEADERS([spawn.h])
 
19
 
 
20
  if test $ac_cv_header_spawn_h = yes; then
 
21
    HAVE_SPAWN_H=1
 
22
    AC_CHECK_TYPES([posix_spawnattr_t], [], [HAVE_POSIX_SPAWNATTR_T=0], [[
 
23
#include <spawn.h>
 
24
      ]])
 
25
    AC_CHECK_TYPES([posix_spawn_file_actions_t], [],
 
26
      [HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0], [[
 
27
#include <spawn.h>
 
28
      ]])
 
29
  else
 
30
    HAVE_SPAWN_H=0
 
31
    HAVE_POSIX_SPAWNATTR_T=0
 
32
    HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0
 
33
    gl_REPLACE_SPAWN_H
 
34
  fi
 
35
  AC_SUBST([HAVE_SPAWN_H])
 
36
 
 
37
  AC_REQUIRE([gl_HAVE_POSIX_SPAWN])
 
38
 
 
39
  AC_REQUIRE([AC_C_RESTRICT])
 
40
 
 
41
  dnl Check for declarations of anything we want to poison if the
 
42
  dnl corresponding gnulib module is not in use.
 
43
  gl_WARN_ON_USE_PREPARE([[#include <spawn.h>
 
44
    ]], [posix_spawn posix_spawnp posix_spawnattr_init posix_spawnattr_destroy
 
45
    posix_spawnattr_getsigdefault posix_spawnattr_setsigdefault
 
46
    posix_spawnattr_getsigmask posix_spawnattr_setsigmask
 
47
    posix_spawnattr_getflags posix_spawnattr_setflags
 
48
    posix_spawnattr_getpgroup posix_spawnattr_setpgroup
 
49
    posix_spawnattr_getschedpolicy posix_spawnattr_setschedpolicy
 
50
    posix_spawnattr_getschedparam posix_spawnattr_setschedparam
 
51
    posix_spawn_file_actions_init posix_spawn_file_actions_destroy
 
52
    posix_spawn_file_actions_addopen posix_spawn_file_actions_addclose
 
53
    posix_spawn_file_actions_adddup2])
 
54
])
 
55
 
 
56
dnl Checks whether the system has the functions posix_spawn.
 
57
dnl Sets ac_cv_func_posix_spawn and HAVE_POSIX_SPAWN.
 
58
AC_DEFUN([gl_HAVE_POSIX_SPAWN],
 
59
[
 
60
  dnl Use AC_REQUIRE here, so that the default behavior below is expanded
 
61
  dnl once only, before all statements that occur in other macros.
 
62
  AC_REQUIRE([gl_SPAWN_H_DEFAULTS])
 
63
 
 
64
  AC_CHECK_FUNCS_ONCE([posix_spawn])
 
65
  if test $ac_cv_func_posix_spawn != yes; then
 
66
    HAVE_POSIX_SPAWN=0
 
67
  fi
 
68
])
 
69
 
 
70
dnl Unconditionally enables the replacement of <spawn.h>.
 
71
AC_DEFUN([gl_REPLACE_SPAWN_H],
 
72
[
 
73
  dnl This is a no-op, because <spawn.h> is always overridden.
 
74
  :
 
75
])
 
76
 
 
77
AC_DEFUN([gl_SPAWN_MODULE_INDICATOR],
 
78
[
 
79
  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
 
80
  AC_REQUIRE([gl_SPAWN_H_DEFAULTS])
 
81
  gl_MODULE_INDICATOR_SET_VARIABLE([$1])
 
82
  dnl Define it also as a C macro, for the benefit of the unit tests.
 
83
  gl_MODULE_INDICATOR_FOR_TESTS([$1])
 
84
])
 
85
 
 
86
AC_DEFUN([gl_SPAWN_H_DEFAULTS],
 
87
[
 
88
  GNULIB_POSIX_SPAWN=0;                       AC_SUBST([GNULIB_POSIX_SPAWN])
 
89
  GNULIB_POSIX_SPAWNP=0;                      AC_SUBST([GNULIB_POSIX_SPAWNP])
 
90
  GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT=0;     AC_SUBST([GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT])
 
91
  GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=0; AC_SUBST([GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE])
 
92
  GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=0;  AC_SUBST([GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2])
 
93
  GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=0;  AC_SUBST([GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN])
 
94
  GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY=0;  AC_SUBST([GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY])
 
95
  GNULIB_POSIX_SPAWNATTR_INIT=0;              AC_SUBST([GNULIB_POSIX_SPAWNATTR_INIT])
 
96
  GNULIB_POSIX_SPAWNATTR_GETFLAGS=0;          AC_SUBST([GNULIB_POSIX_SPAWNATTR_GETFLAGS])
 
97
  GNULIB_POSIX_SPAWNATTR_SETFLAGS=0;          AC_SUBST([GNULIB_POSIX_SPAWNATTR_SETFLAGS])
 
98
  GNULIB_POSIX_SPAWNATTR_GETPGROUP=0;         AC_SUBST([GNULIB_POSIX_SPAWNATTR_GETPGROUP])
 
99
  GNULIB_POSIX_SPAWNATTR_SETPGROUP=0;         AC_SUBST([GNULIB_POSIX_SPAWNATTR_SETPGROUP])
 
100
  GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM=0;     AC_SUBST([GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM])
 
101
  GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM=0;     AC_SUBST([GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM])
 
102
  GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY=0;    AC_SUBST([GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY])
 
103
  GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY=0;    AC_SUBST([GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY])
 
104
  GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT=0;     AC_SUBST([GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT])
 
105
  GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT=0;     AC_SUBST([GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT])
 
106
  GNULIB_POSIX_SPAWNATTR_GETSIGMASK=0;        AC_SUBST([GNULIB_POSIX_SPAWNATTR_GETSIGMASK])
 
107
  GNULIB_POSIX_SPAWNATTR_SETSIGMASK=0;        AC_SUBST([GNULIB_POSIX_SPAWNATTR_SETSIGMASK])
 
108
  GNULIB_POSIX_SPAWNATTR_DESTROY=0;           AC_SUBST([GNULIB_POSIX_SPAWNATTR_DESTROY])
 
109
  dnl Assume proper GNU behavior unless another module says otherwise.
 
110
  HAVE_POSIX_SPAWN=1;        AC_SUBST([HAVE_POSIX_SPAWN])
 
111
  HAVE_POSIX_SPAWNATTR_T=1;  AC_SUBST([HAVE_POSIX_SPAWNATTR_T])
 
112
  HAVE_POSIX_SPAWN_FILE_ACTIONS_T=1;
 
113
                             AC_SUBST([HAVE_POSIX_SPAWN_FILE_ACTIONS_T])
 
114
  REPLACE_POSIX_SPAWN=0;     AC_SUBST([REPLACE_POSIX_SPAWN])
 
115
])