Browse Source

New upstream version 1.0.6

tags/upstream/1.0.6^0
Guido Günther 8 years ago
parent
commit
3a2c75c79b
100 changed files with 10305 additions and 16389 deletions
  1. +6
    -0
      AUTHORS
  2. +245
    -414
      COPYING
  3. +0
    -0
      COPYING.LESSER
  4. +6372
    -2824
      ChangeLog
  5. +15
    -2
      Makefile.am
  6. +6
    -4
      Makefile.in
  7. +15
    -0
      Makefile.nonreentrant
  8. +0
    -11903
      NEWS
  9. +2
    -0
      aclocal.m4
  10. +2
    -0
      autobuild.sh
  11. +43
    -9
      cfg.mk
  12. +33
    -3
      config.h.in
  13. +507
    -23
      configure
  14. +33
    -11
      configure.ac
  15. +18
    -2
      daemon/Makefile.am
  16. +20
    -17
      daemon/Makefile.in
  17. +21
    -35
      daemon/libvirtd-config.c
  18. +1
    -1
      daemon/libvirtd.8.in
  19. +23
    -16
      daemon/libvirtd.c
  20. +1
    -4
      daemon/qemu_dispatch.h
  21. +127
    -148
      daemon/remote.c
  22. +11
    -16
      daemon/remote_dispatch.h
  23. +1
    -1
      docs/404.html
  24. +3
    -2
      docs/404.html.in
  25. +19
    -6
      docs/Makefile.am
  26. +8
    -6
      docs/Makefile.in
  27. +22
    -22
      docs/api.html
  28. +3
    -2
      docs/api.html.in
  29. +30
    -30
      docs/api_extension.html
  30. +3
    -1
      docs/api_extension.html.in
  31. +59
    -54
      docs/apps.html
  32. +11
    -1
      docs/apps.html.in
  33. +3
    -1
      docs/archdomain.html.in
  34. +3
    -3
      docs/architecture.html
  35. +3
    -2
      docs/architecture.html.in
  36. +3
    -3
      docs/archnetwork.html
  37. +3
    -2
      docs/archnetwork.html.in
  38. +3
    -1
      docs/archnode.html.in
  39. +3
    -1
      docs/archstorage.html.in
  40. +21
    -17
      docs/auth.html
  41. +3
    -2
      docs/auth.html.in
  42. +12
    -12
      docs/bindings.html
  43. +3
    -2
      docs/bindings.html.in
  44. +11
    -11
      docs/bugs.html
  45. +3
    -2
      docs/bugs.html.in
  46. +429
    -0
      docs/cgroups.html
  47. +285
    -0
      docs/cgroups.html.in
  48. +10
    -10
      docs/compiling.html
  49. +3
    -2
      docs/compiling.html.in
  50. +10
    -10
      docs/contact.html
  51. +3
    -2
      docs/contact.html.in
  52. +17
    -17
      docs/csharp.html
  53. +3
    -2
      docs/csharp.html.in
  54. +9
    -5
      docs/deployment.html
  55. +3
    -1
      docs/deployment.html.in
  56. +11
    -11
      docs/devguide.html
  57. +3
    -2
      docs/devguide.html.in
  58. +33
    -14
      docs/devhelp/libvirt-libvirt.html
  59. +5
    -0
      docs/devhelp/libvirt-virterror.html
  60. +1
    -0
      docs/devhelp/libvirt.devhelp
  61. +3
    -1
      docs/docs.html.in
  62. +17
    -17
      docs/downloads.html
  63. +3
    -2
      docs/downloads.html.in
  64. +5
    -5
      docs/drivers.html
  65. +3
    -1
      docs/drivers.html.in
  66. +87
    -87
      docs/drvesx.html
  67. +4
    -1
      docs/drvesx.html.in
  68. +15
    -15
      docs/drvhyperv.html
  69. +4
    -1
      docs/drvhyperv.html.in
  70. +326
    -37
      docs/drvlxc.html
  71. +369
    -36
      docs/drvlxc.html.in
  72. +11
    -11
      docs/drvopenvz.html
  73. +3
    -1
      docs/drvopenvz.html.in
  74. +6
    -6
      docs/drvparallels.html
  75. +4
    -1
      docs/drvparallels.html.in
  76. +7
    -7
      docs/drvphyp.html
  77. +4
    -1
      docs/drvphyp.html.in
  78. +30
    -30
      docs/drvqemu.html
  79. +5
    -2
      docs/drvqemu.html.in
  80. +3
    -1
      docs/drvremote.html.in
  81. +1
    -1
      docs/drvtest.html
  82. +3
    -1
      docs/drvtest.html.in
  83. +4
    -4
      docs/drvuml.html
  84. +3
    -1
      docs/drvuml.html.in
  85. +16
    -5
      docs/drvvbox.html
  86. +15
    -1
      docs/drvvbox.html.in
  87. +7
    -7
      docs/drvvmware.html
  88. +3
    -1
      docs/drvvmware.html.in
  89. +16
    -16
      docs/drvxen.html
  90. +3
    -1
      docs/drvxen.html.in
  91. +18
    -18
      docs/errors.html
  92. +3
    -2
      docs/errors.html.in
  93. +29
    -25
      docs/firewall.html
  94. +3
    -2
      docs/firewall.html.in
  95. +2
    -1
      docs/format.html.in
  96. +3
    -3
      docs/formatcaps.html
  97. +3
    -1
      docs/formatcaps.html.in
  98. +379
    -265
      docs/formatdomain.html
  99. +205
    -38
      docs/formatdomain.html.in
  100. +121
    -41
      docs/formatnetwork.html

+ 6
- 0
AUTHORS View File

@@ -104,6 +104,7 @@ Beat Jörg <Beat.Joerg@ssatr.ch>
Benjamin Cama <benoar@dolka.fr>
Bharata B Rao <bharata@linux.vnet.ibm.com>
Bogdan Purcareata <bogdan.purcareata@freescale.com>
Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Bryan Kearney <bkearney@redhat.com>
Chang Liu <lingjiao.lc@taobao.com>
Charles Duffy <charles_duffy@messageone.com>
@@ -124,6 +125,7 @@ Dan Smith <danms@us.ibm.com>
Daniel Berrange <berrange@redhat.com>
Daniel Berteaud <daniel@firewall-services.com>
Daniel Gollub <gollub@b1-systems.de>
Daniel Hansel <daniel.hansel@linux.vnet.ibm.com>
Daniel J Walsh <dwalsh@redhat.com>
Daniel P. Berrange <berrange@redhat.com>
Daniel Veillard <veillard@redhat.com>
@@ -184,6 +186,7 @@ Jan Kiszka <jan.kiszka@siemens.com>
Jasper Lievisse Adriaanse <jasper@humppa.nl>
Jean-Baptiste Rouault <jean-baptiste.rouault@diateam.net>
Jesse Cook <code.crashenx@gmail.com>
Jesse J. Cook <jesse.j.cook@member.fsf.org>
Jim Fehlig <jfehlig@suse.com>
Jim Meyering <meyering@redhat.com>
Jim Paris <jim@jtan.com>
@@ -220,6 +223,7 @@ MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Marc-André Lureau <marcandre.lureau@redhat.com>
Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Marco Bozzolan <bozzolan@gmail.com>
Marek Marczykowski <marmarek@invisiblethingslab.com>
Mark McLoughlin <markmc@redhat.com>
Mark Wu <dwu@redhat.com>
Markus Groß <gross@univention.de>
@@ -339,7 +343,9 @@ Yuji NISHIDA <nishidy@nict.go.jp>
Yuri Chornoivan <yurchor@ukr.net>
Zdenek Styblik <stybla@turnovfree.net>
Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
Zhang Xiaohe <zhangxh@cn.fujitsu.com>
liguang <lig.fnst@cn.fujitsu.com>
yangdongsheng <yangds.fnst@cn.fujitsu.com>
Марк Коренберг <socketpair@gmail.com>

[....send patches to get your name here....]


+ 245
- 414
COPYING View File

@@ -1,400 +1,221 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999

Copyright (C) 1991, 1999 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]

Preamble

The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.

This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations
below.

When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.

When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.

To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.

For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.

We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.

To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
^L
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.

Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.

When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.

We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.

For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it
becomes a de-facto standard. To achieve this, non-free programs must
be allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.

In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.

Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.

For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.

We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.

Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.

Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.

The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
^L
GNU LESSER GENERAL PUBLIC LICENSE
modification follow.

GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".

A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.

The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)

"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control
compilation and installation of the library.

Activities other than copying, distribution and modification are not
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".

Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.

1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.

You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.

1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.

You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.

2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:

a) The modified work must itself be a software library.

b) You must cause the files modified to carry prominent notices
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.

c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.

d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.

(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.

c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)

These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
entire whole, and thus to each and every part regardless of who wrote it.

Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
collective works based on the Program.

In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.

3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
^L
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.

This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.

4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.

If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:

a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,

b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,

c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)

The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.

If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.

5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.

However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.

When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.

If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)

Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
^L
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.

You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:

a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)

b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.

c) Accompany the work with a written offer, valid for at least
three years, to give the same user the materials specified in
Subsection 6a, above, for a charge no more than the cost of
performing this distribution.

d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.

e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.

For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.

It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
^L
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:

a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.

b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.

8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.

9. You are not required to accept this License, since you have not
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.

5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
the Program or works based on it.

10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
You are not responsible for enforcing compliance by third parties to
this License.
^L
11. If, as a consequence of a court judgment or allegation of patent

7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
refrain entirely from distribution of the Program.

If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply, and the section as a whole is intended to apply in other
apply and the section as a whole is intended to apply in other
circumstances.

It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
@@ -405,104 +226,114 @@ impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.

12. If the distribution and/or use of the Library is restricted in
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License
may add an explicit geographical distribution limitation excluding those
countries, so that distribution is permitted only in or among
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.

13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.

Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
^L
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.

10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.

NO WARRANTY

15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.

12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

END OF TERMS AND CONDITIONS
^L
How to Apply These Terms to Your New Libraries

If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms
of the ordinary General Public License).
How to Apply These Terms to Your New Programs

To apply these terms, attach the following notices to the library.
It is safest to attach them to the start of each source file to most
effectively convey the exclusion of warranty; and each file should
have at least the "copyright" line and a pointer to where the full
notice is found.
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

<one line to give the library's name and a brief idea of what it does.>
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This library is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Also add information on how to contact you by electronic and paper mail.

You should also get your employer (if you work as a programmer) or
your school, if any, to sign a "copyright disclaimer" for the library,
if necessary. Here is a sample; alter the names:
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:

Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.

You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:

Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James
Random Hacker.
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.

<signature of Ty Coon>, 1 April 1990
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice

That's all there is to it!
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

COPYING.LIB → COPYING.LESSER View File


+ 6372
- 2824
ChangeLog
File diff suppressed because it is too large
View File


+ 15
- 2
Makefile.am View File

@@ -1,7 +1,20 @@
## Process this file with automake to produce Makefile.in

## Copyright (C) 2005-2012 Red Hat, Inc.
## See COPYING.LIB for the License of this software
## Copyright (C) 2005-2013 Red Hat, Inc.
##
## This library is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public
## License as published by the Free Software Foundation; either
## version 2.1 of the License, or (at your option) any later version.
##
## This library is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public
## License along with this library. If not, see
## <http://www.gnu.org/licenses/>.

LCOV = lcov
GENHTML = genhtml


+ 6
- 4
Makefile.in View File

@@ -55,8 +55,8 @@ DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
$(srcdir)/libvirt.pc.in $(srcdir)/libvirt.spec.in \
$(srcdir)/mingw-libvirt.spec.in $(srcdir)/run.in \
$(top_srcdir)/configure ABOUT-NLS AUTHORS COPYING COPYING.LIB \
ChangeLog INSTALL NEWS TODO build-aux/compile \
$(top_srcdir)/configure ABOUT-NLS AUTHORS COPYING \
COPYING.LESSER ChangeLog INSTALL NEWS TODO build-aux/compile \
build-aux/config.guess build-aux/config.rpath \
build-aux/config.sub build-aux/depcomp build-aux/install-sh \
build-aux/ltmain.sh build-aux/missing build-aux/mkinstalldirs
@@ -161,6 +161,7 @@ am__aclocal_m4_deps = $(top_srcdir)/gnulib/m4/00gnulib.m4 \
$(top_srcdir)/gnulib/m4/md5.m4 \
$(top_srcdir)/gnulib/m4/memchr.m4 \
$(top_srcdir)/gnulib/m4/mgetgroups.m4 \
$(top_srcdir)/gnulib/m4/mkdtemp.m4 \
$(top_srcdir)/gnulib/m4/mkostemp.m4 \
$(top_srcdir)/gnulib/m4/mkostemps.m4 \
$(top_srcdir)/gnulib/m4/mktime.m4 \
@@ -169,6 +170,7 @@ am__aclocal_m4_deps = $(top_srcdir)/gnulib/m4/00gnulib.m4 \
$(top_srcdir)/gnulib/m4/msvc-inval.m4 \
$(top_srcdir)/gnulib/m4/msvc-nothrow.m4 \
$(top_srcdir)/gnulib/m4/multiarch.m4 \
$(top_srcdir)/gnulib/m4/nanosleep.m4 \
$(top_srcdir)/gnulib/m4/net_if_h.m4 \
$(top_srcdir)/gnulib/m4/netdb_h.m4 \
$(top_srcdir)/gnulib/m4/netinet_in_h.m4 \
@@ -480,7 +482,7 @@ DLLTOOL = @DLLTOOL@
DLOPEN_LIBS = @DLOPEN_LIBS@
DMSETUP = @DMSETUP@
DNSMASQ = @DNSMASQ@
DRIVER_MODULE_CFLAGS = @DRIVER_MODULE_CFLAGS@
DRIVER_MODULE_LDFLAGS = @DRIVER_MODULE_LDFLAGS@
DRIVER_MODULE_LIBS = @DRIVER_MODULE_LIBS@
DSYMUTIL = @DSYMUTIL@
DTRACE = @DTRACE@
@@ -1326,6 +1328,7 @@ LIBXML_LIBS = @LIBXML_LIBS@
LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
LIB_EXECINFO = @LIB_EXECINFO@
LIB_FDATASYNC = @LIB_FDATASYNC@
LIB_NANOSLEEP = @LIB_NANOSLEEP@
LIB_POLL = @LIB_POLL@
LIB_PTHREAD = @LIB_PTHREAD@
LIB_PTHREAD_SIGMASK = @LIB_PTHREAD_SIGMASK@
@@ -1761,7 +1764,6 @@ VGS = @VGS@
VGSCAN = @VGSCAN@
VIRSH_LIBS = @VIRSH_LIBS@
WARN_CFLAGS = @WARN_CFLAGS@
WARN_LDFLAGS = @WARN_LDFLAGS@
WARN_PYTHON_CFLAGS = @WARN_PYTHON_CFLAGS@
WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
WIN32_EXTRA_CFLAGS = @WIN32_EXTRA_CFLAGS@


+ 15
- 0
Makefile.nonreentrant View File

@@ -1,3 +1,18 @@
## Copyright (C) 2009-2010, 2013 Red Hat, Inc.
##
## This library is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public
## License as published by the Free Software Foundation; either
## version 2.1 of the License, or (at your option) any later version.
##
## This library is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public
## License along with this library. If not, see
## <http://www.gnu.org/licenses/>.

#
# Generated by running the following on Fedora 9:


+ 0
- 11903
NEWS
File diff suppressed because it is too large
View File


+ 2
- 0
aclocal.m4 View File

@@ -1583,6 +1583,7 @@ m4_include([gnulib/m4/mbtowc.m4])
m4_include([gnulib/m4/md5.m4])
m4_include([gnulib/m4/memchr.m4])
m4_include([gnulib/m4/mgetgroups.m4])
m4_include([gnulib/m4/mkdtemp.m4])
m4_include([gnulib/m4/mkostemp.m4])
m4_include([gnulib/m4/mkostemps.m4])
m4_include([gnulib/m4/mktime.m4])
@@ -1591,6 +1592,7 @@ m4_include([gnulib/m4/mode_t.m4])
m4_include([gnulib/m4/msvc-inval.m4])
m4_include([gnulib/m4/msvc-nothrow.m4])
m4_include([gnulib/m4/multiarch.m4])
m4_include([gnulib/m4/nanosleep.m4])
m4_include([gnulib/m4/net_if_h.m4])
m4_include([gnulib/m4/netdb_h.m4])
m4_include([gnulib/m4/netinet_in_h.m4])


+ 2
- 0
autobuild.sh View File

@@ -69,6 +69,7 @@ fi
if test -x /usr/bin/i686-w64-mingw32-gcc ; then
make distclean

PKG_CONFIG_LIBDIR="/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig:/usr/i686-w64-mingw32/sys-root/mingw/share/pkgconfig" \
PKG_CONFIG_PATH="$AUTOBUILD_INSTALL_ROOT/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig" \
CC="i686-w64-mingw32-gcc" \
../configure \
@@ -88,6 +89,7 @@ fi
if test -x /usr/bin/x86_64-w64-mingw32-gcc ; then
make distclean

PKG_CONFIG_LIBDIR="/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig:/usr/x86_64-w64-mingw32/sys-root/mingw/share/pkgconfig" \
PKG_CONFIG_PATH="$AUTOBUILD_INSTALL_ROOT/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig" \
CC="x86_64-w64-mingw32-gcc" \
../configure \


+ 43
- 9
cfg.mk View File

@@ -378,10 +378,19 @@ sc_prohibit_strtol:
$(_sc_search_regexp)

# Use virAsprintf rather than as'printf since *strp is undefined on error.
# But for plain %s, virAsprintf is overkill compared to strdup.
sc_prohibit_asprintf:
@prohibit='\<v?a[s]printf\>' \
halt='use virAsprintf, not as'printf \
$(_sc_search_regexp)
@prohibit='virAsprintf.*, *"%s",' \
halt='use VIR_STRDUP instead of virAsprintf with "%s"' \
$(_sc_search_regexp)

sc_prohibit_strdup:
@prohibit='\<strn?dup\> *\(' \
halt='use VIR_STRDUP, not strdup' \
$(_sc_search_regexp)

# Prefer virSetUIDGID.
sc_prohibit_setuid:
@@ -440,6 +449,11 @@ sc_prohibit_nonreentrant:
done ; \
exit $$fail

sc_prohibit_select:
@prohibit="\\<select *\\(" \
halt="use poll(), not se""lect()" \
$(_sc_search_regexp)

# Prohibit the inclusion of <ctype.h>.
sc_prohibit_ctype_h:
@prohibit='^# *include *<ctype\.h>' \
@@ -486,6 +500,11 @@ sc_prohibit_virBufferAdd_with_string_literal:
halt='use virBufferAddLit, not virBufferAdd, with a string literal' \
$(_sc_search_regexp)

sc_prohibit_virBufferAsprintf_with_string_literal:
@prohibit='\<virBufferAsprintf *\([^,]+, *"([^%"\]|\\.|%%)*"\)' \
halt='use virBufferAddLit, not virBufferAsprintf, with a string literal' \
$(_sc_search_regexp)

# Not only do they fail to deal well with ipv6, but the gethostby*
# functions are also not thread-safe.
sc_prohibit_gethostby:
@@ -668,11 +687,22 @@ sc_copyright_format:
$(_sc_search_regexp)

# Prefer the new URL listing over the old street address listing when
# calling out where to get a copy of the [L]GPL.
sc_copyright_address:
# calling out where to get a copy of the [L]GPL. Also, while we have
# to ship COPYING (GPL) alongside COPYING.LESSER (LGPL), we want any
# source file that calls out a top-level file to call out the LGPL
# version. Note that our typical copyright boilerplate refers to the
# license by name, not by reference to a top-level file.
sc_copyright_usage:
@prohibit=Boston,' MA' \
halt='Point to <http://www.gnu.org/licenses/>, not an address' \
$(_sc_search_regexp)
@require='COPYING\.LESSER' \
containing='COPYING' \
halt='Refer to COPYING.LESSER for LGPL' \
$(_sc_search_regexp)
@prohibit='COPYING\.LIB' \
halt='Refer to COPYING.LESSER for LGPL' \
$(_sc_search_regexp)

# Some functions/macros produce messages intended solely for developers
# and maintainers. Do not mark them for translation.
@@ -749,7 +779,7 @@ sc_prohibit_duplicate_header:
}' $$i || fail=1; \
done; \
if test $$fail -eq 1; then \
{ echo "$(ME)": avoid duplicate headers >&2; exit 1; } \
{ echo '$(ME): avoid duplicate headers' 1>&2; exit 1; } \
fi;

# Don't include "libvirt/*.h" in "" form.
@@ -815,7 +845,8 @@ syntax-check: $(top_srcdir)/HACKING bracket-spacing-check
bracket-spacing-check:
$(AM_V_GEN)files=`$(VC_LIST) | grep '\.c$$'`; \
$(PERL) $(top_srcdir)/build-aux/bracket-spacing.pl $$files || \
(echo $(ME): incorrect whitespace around brackets, see HACKING for rules && exit 1)
{ echo '$(ME): incorrect whitespace, see HACKING for rules' 1>&2; \
exit 1; }

# sc_po_check can fail if generated files are not built first
sc_po_check: \
@@ -832,15 +863,15 @@ $(srcdir)/src/remote/remote_client_bodies.h: $(srcdir)/src/remote/remote_protoco
# List all syntax-check exemptions:
exclude_file_name_regexp--sc_avoid_strcase = ^tools/virsh\.h$$

_src1=libvirt|fdstream|qemu/qemu_monitor|util/(vircommand|virutil)|xen/xend_internal|rpc/virnetsocket|lxc/lxc_controller|locking/lock_daemon
_src1=libvirt|fdstream|qemu/qemu_monitor|util/(vircommand|virfile)|xen/xend_internal|rpc/virnetsocket|lxc/lxc_controller|locking/lock_daemon
_test1=shunloadtest|virnettlscontexttest|vircgroupmock
exclude_file_name_regexp--sc_avoid_write = \
^(src/($(_src1))|daemon/libvirtd|tools/console|tests/($(_test1)))\.c$$

exclude_file_name_regexp--sc_bindtextdomain = ^(tests|examples)/

exclude_file_name_regexp--sc_copyright_address = \
^COPYING\.LIB$$
exclude_file_name_regexp--sc_copyright_usage = \
^COPYING(|\.LESSER)$$

exclude_file_name_regexp--sc_flags_usage = ^(docs/|src/util/virnetdevtap\.c$$|tests/vircgroupmock\.c$$)

@@ -858,7 +889,10 @@ exclude_file_name_regexp--sc_prohibit_always_true_header_tests = \
^python/(libvirt-(lxc-|qemu-)?override|typewrappers)\.c$$

exclude_file_name_regexp--sc_prohibit_asprintf = \
^(bootstrap.conf$$|src/util/virutil\.c$$|examples/domain-events/events-c/event-test\.c$$|tests/vircgroupmock\.c$$)
^(bootstrap.conf$$|src/util/virstring\.c$$|examples/domain-events/events-c/event-test\.c$$|tests/vircgroupmock\.c$$)

exclude_file_name_regexp--sc_prohibit_strdup = \
^(docs/|examples/|python/|src/util/virstring\.c$$)

exclude_file_name_regexp--sc_prohibit_close = \
(\.p[yl]$$|^docs/|^(src/util/virfile\.c|src/libvirt\.c|tests/vircgroupmock\.c)$$)
@@ -892,7 +926,7 @@ exclude_file_name_regexp--sc_prohibit_setuid = ^src/util/virutil\.c$$
exclude_file_name_regexp--sc_prohibit_sprintf = \
^(docs/hacking\.html\.in)|(examples/systemtap/.*stp)|(src/dtrace2systemtap\.pl)|(src/rpc/gensystemtap\.pl)$$

exclude_file_name_regexp--sc_prohibit_strncpy = ^src/util/virutil\.c$$
exclude_file_name_regexp--sc_prohibit_strncpy = ^src/util/virstring\.c$$

exclude_file_name_regexp--sc_prohibit_strtol = \
^src/(util/virsexpr|(vbox|xen|xenxs)/.*)\.c$$


+ 33
- 3
config.h.in View File

@@ -336,6 +336,9 @@
/* Define to 1 when the gnulib module memchr should be tested. */
#undef GNULIB_TEST_MEMCHR

/* Define to 1 when the gnulib module mkdtemp should be tested. */
#undef GNULIB_TEST_MKDTEMP

/* Define to 1 when the gnulib module mkostemp should be tested. */
#undef GNULIB_TEST_MKOSTEMP

@@ -345,6 +348,9 @@
/* Define to 1 when the gnulib module mktime should be tested. */
#undef GNULIB_TEST_MKTIME

/* Define to 1 when the gnulib module nanosleep should be tested. */
#undef GNULIB_TEST_NANOSLEEP

/* Define to 1 when the gnulib module nl_langinfo should be tested. */
#undef GNULIB_TEST_NL_LANGINFO

@@ -575,6 +581,9 @@
/* Define to 1 if you have the 'btowc' function. */
#undef HAVE_BTOWC

/* Define to 1 if nanosleep mishandles large arguments. */
#undef HAVE_BUG_BIG_NANOSLEEP

/* Define to 1 if you have the <byteswap.h> header file. */
#undef HAVE_BYTESWAP_H

@@ -735,6 +744,10 @@
don't. */
#undef HAVE_DECL_ISBLANK

/* Define to 1 if you have the declaration of `link_addr', and to 0 if you
don't. */
#undef HAVE_DECL_LINK_ADDR

/* Define to 1 if you have the declaration of `localtime_r', and to 0 if you
don't. */
#undef HAVE_DECL_LOCALTIME_R
@@ -962,6 +975,9 @@
/* Define to 1 if you have the 'getuid' function. */
#undef HAVE_GETUID

/* Define to 1 if you have the <gnutls/crypto.h> header file. */
#undef HAVE_GNUTLS_CRYPTO_H

/* Define to 1 if you have the `grantpt' function. */
#undef HAVE_GRANTPT

@@ -1169,6 +1185,9 @@
/* Define to 1 if you have the 'mempcpy' function. */
#undef HAVE_MEMPCPY

/* Define to 1 if you have the `mkdtemp' function. */
#undef HAVE_MKDTEMP

/* Define to 1 if you have the 'mkostemp' function. */
#undef HAVE_MKOSTEMP

@@ -2428,6 +2447,9 @@
# endif
#endif

/* Define to 1 if gcc supports pragma push/pop */
#undef WORKING_PRAGMA_PUSH

/* Enable large inode numbers on Mac OS X 10.5. */
#undef _DARWIN_USE_64_BIT_INODE

@@ -2510,13 +2532,21 @@
Suppress extern inline with HP-UX cc, as it appears to be broken; see
<http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.

Suppress the use of extern inline on Apple's platforms,
as Libc-825.25 (2012-09-19) is incompatible with it; see
Suppress extern inline with Sun C in standards-conformance mode, as it
mishandles inline functions that call each other. E.g., for 'inline void f
(void) { } inline void g (void) { f (); }', c99 incorrectly complains
'reference to static identifier "f" in extern inline function'.
This bug was observed with Sun C 5.12 SunOS_i386 2011/11/16.

Suppress the use of extern inline on Apple's platforms, as Libc at least
through Libc-825.26 (2013-04-09) is incompatible with it; see, e.g.,
<http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
Perhaps Apple will fix this some day. */
#if ((__GNUC__ \
? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
: 199901L <= __STDC_VERSION__ && !defined __HP_cc) \
: (199901L <= __STDC_VERSION__ \
&& !defined __HP_cc \
&& !(defined __SUNPRO_C && __STDC__))) \
&& !defined __APPLE__)
# define _GL_INLINE inline
# define _GL_EXTERN_INLINE extern inline


+ 507
- 23
configure View File

@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for libvirt 1.0.5.
# Generated by GNU Autoconf 2.69 for libvirt 1.0.6.
#
# Report bugs to <libvir-list@redhat.com>.
#
@@ -590,8 +590,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='libvirt'
PACKAGE_TARNAME='libvirt'
PACKAGE_VERSION='1.0.5'
PACKAGE_STRING='libvirt 1.0.5'
PACKAGE_VERSION='1.0.6'
PACKAGE_STRING='libvirt 1.0.6'
PACKAGE_BUGREPORT='libvir-list@redhat.com'
PACKAGE_URL='http://libvirt.org'

@@ -664,7 +664,7 @@ WITH_NODE_DEVICES_FALSE
WITH_NODE_DEVICES_TRUE
LV_LIBTOOL_OBJDIR
DRIVER_MODULE_LIBS
DRIVER_MODULE_CFLAGS
DRIVER_MODULE_LDFLAGS
WITH_DRIVER_MODULES_FALSE
WITH_DRIVER_MODULES_TRUE
WITH_WIN_ICON_FALSE
@@ -981,7 +981,6 @@ RELRO_LDFLAGS
PIE_LDFLAGS
PIE_CFLAGS
WARN_PYTHON_CFLAGS
WARN_LDFLAGS
WARN_CFLAGS
LIBVIRT_NODELETE
OTOOL64
@@ -1038,6 +1037,7 @@ GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT
GNULIB_POSIX_SPAWNP
GNULIB_POSIX_SPAWN
NET_IF_LIB
LIB_NANOSLEEP
NEXT_AS_FIRST_DIRECTIVE_MATH_H
NEXT_MATH_H
REPLACE_TRUNCL
@@ -2963,7 +2963,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures libvirt 1.0.5 to adapt to many kinds of systems.
\`configure' configures libvirt 1.0.6 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

@@ -3033,7 +3033,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of libvirt 1.0.5:";;
short | recursive ) echo "Configuration of libvirt 1.0.6:";;
esac
cat <<\_ACEOF

@@ -3323,7 +3323,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
libvirt configure 1.0.5
libvirt configure 1.0.6
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
@@ -4032,7 +4032,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by libvirt $as_me 1.0.5, which was
It was created by libvirt $as_me 1.0.6, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ $0 $@
@@ -4974,7 +4974,7 @@ fi

# Define the identity of the package.
PACKAGE='libvirt'
VERSION='1.0.5'
VERSION='1.0.6'


cat >>confdefs.h <<_ACEOF
@@ -8087,6 +8087,7 @@ $as_echo "$as_me: autobuild timestamp... $date" >&6;}
# Code from module memchr:
# Code from module memchr-tests:
# Code from module mgetgroups:
# Code from module mkdtemp:
# Code from module mkostemp:
# Code from module mkostemps:
# Code from module mktempd:
@@ -8095,6 +8096,8 @@ $as_echo "$as_me: autobuild timestamp... $date" >&6;}
# Code from module msvc-inval:
# Code from module msvc-nothrow:
# Code from module multiarch:
# Code from module nanosleep:
# Code from module nanosleep-tests:
# Code from module net_if:
# Code from module net_if-tests:
# Code from module netdb:
@@ -28566,6 +28569,52 @@ $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h



for ac_func in mkdtemp
do :
ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
if test "x$ac_cv_func_mkdtemp" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_MKDTEMP 1
_ACEOF

fi
done

if test $ac_cv_func_mkdtemp = no; then
HAVE_MKDTEMP=0
fi

if test $HAVE_MKDTEMP = 0; then








gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"

:

fi





GNULIB_MKDTEMP=1





$as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h








@@ -42599,6 +42648,255 @@ $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h









:







nanosleep_save_libs=$LIBS

# Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
# Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
LIB_NANOSLEEP=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
$as_echo_n "checking for library containing nanosleep... " >&6; }
if ${ac_cv_search_nanosleep+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char nanosleep ();
int
main ()
{
return nanosleep ();
;
return 0;
}
_ACEOF
for ac_lib in '' rt posix4; do
if test -z "$ac_lib"; then
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_search_nanosleep=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext
if ${ac_cv_search_nanosleep+:} false; then :
break
fi
done
if ${ac_cv_search_nanosleep+:} false; then :

else
ac_cv_search_nanosleep=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
$as_echo "$ac_cv_search_nanosleep" >&6; }
ac_res=$ac_cv_search_nanosleep
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
test "$ac_cv_search_nanosleep" = "none required" ||
LIB_NANOSLEEP=$ac_cv_search_nanosleep
fi

if test "x$ac_cv_search_nanosleep" != xno; then


if test $APPLE_UNIVERSAL_BUILD = 1; then
# A universal build on Apple Mac OS X platforms.
# The test result would be 'no (mishandles large arguments)' in 64-bit
# mode but 'yes' in 32-bit mode. But we need a configuration result that
# is valid in both modes.
gl_cv_func_nanosleep='no (mishandles large arguments)'
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nanosleep" >&5
$as_echo_n "checking for working nanosleep... " >&6; }
if ${gl_cv_func_nanosleep+:} false; then :
$as_echo_n "(cached) " >&6
else

if test "$cross_compiling" = yes; then :
case "$host_os" in linux*) # Guess it halfway works when the kernel is Linux.
gl_cv_func_nanosleep='guessing no (mishandles large arguments)' ;;
*) # If we don't know, assume the worst.
gl_cv_func_nanosleep='guessing no' ;;
esac

else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

#include <errno.h>
#include <limits.h>
#include <signal.h>
#if HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#include <time.h>
#include <unistd.h>
#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
#define TYPE_MAXIMUM(t) \
((t) (! TYPE_SIGNED (t) \
? (t) -1 \
: ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))

static void
check_for_SIGALRM (int sig)
{
if (sig != SIGALRM)
_exit (1);
}

int
main ()
{
static struct timespec ts_sleep;
static struct timespec ts_remaining;
static struct sigaction act;
/* Test for major problems first. */
if (! nanosleep)
return 2;
act.sa_handler = check_for_SIGALRM;
sigemptyset (&act.sa_mask);
sigaction (SIGALRM, &act, NULL);
ts_sleep.tv_sec = 0;
ts_sleep.tv_nsec = 1;
alarm (1);
if (nanosleep (&ts_sleep, NULL) != 0)
return 3;
/* Test for a minor problem: the handling of large arguments. */
ts_sleep.tv_sec = TYPE_MAXIMUM (time_t);
ts_sleep.tv_nsec = 999999999;
alarm (1);
if (nanosleep (&ts_sleep, &ts_remaining) != -1)
return 4;
if (errno != EINTR)
return 5;
if (ts_remaining.tv_sec <= TYPE_MAXIMUM (time_t) - 10)
return 6;
return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
gl_cv_func_nanosleep=yes
else
case $? in 4|5|6) gl_cv_func_nanosleep='no (mishandles large arguments)';; *) gl_cv_func_nanosleep=no;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nanosleep" >&5
$as_echo "$gl_cv_func_nanosleep" >&6; }
case "$gl_cv_func_nanosleep" in
*yes)
REPLACE_NANOSLEEP=0
;;
*)
REPLACE_NANOSLEEP=1
case "$gl_cv_func_nanosleep" in
*"mishandles large arguments"*)

$as_echo "#define HAVE_BUG_BIG_NANOSLEEP 1" >>confdefs.h

;;
*)
# The replacement uses select(). Add $LIBSOCKET to $LIB_NANOSLEEP.
for ac_lib in $LIBSOCKET; do
case " $LIB_NANOSLEEP " in
*" $ac_lib "*) ;;
*) LIB_NANOSLEEP="$LIB_NANOSLEEP $ac_lib";;
esac
done
;;
esac
;;
esac
else
HAVE_NANOSLEEP=0
fi
LIBS=$nanosleep_save_libs

if test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1; then








gltests_LIBOBJS="$gltests_LIBOBJS nanosleep.$ac_objext"



:





:

fi





if test "$GNULIB_NANOSLEEP" != 1; then
if test "$GNULIB_NANOSLEEP" = 0; then
GNULIB_NANOSLEEP=$gl_module_indicator_condition
else
GNULIB_NANOSLEEP="($GNULIB_NANOSLEEP || $gl_module_indicator_condition)"
fi
fi





$as_echo "#define GNULIB_TEST_NANOSLEEP 1" >>confdefs.h




:





NET_IF_LIB=
gl_saved_libs="$LIBS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nameindex" >&5
@@ -54584,6 +54882,52 @@ fi
# gcc 4.4.6 complains this is C++ only; gcc 4.7.0 implies this from -Wall
dontwarn="$dontwarn -Wenum-compare"

# clang rather horribly ignores unknown warning flags by
# default. Thus to get gl_WARN_ADD to reliably detect
# flags, we need to set '-Werror -Wunknown-warning-option'
# in CFLAGS while probing support
WARN_CFLAGS=
orig_CFLAGS="$CFLAGS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wunknown-warning-option" >&5
$as_echo_n "checking whether C compiler handles -Wunknown-warning-option... " >&6; }
if ${gl_cv_warn_c__Wunknown_warning_option+:} false; then :
$as_echo_n "(cached) " >&6
else

gl_save_compiler_FLAGS="$CFLAGS"
as_fn_append CFLAGS " -Wunknown-warning-option"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

int
main ()
{

;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
gl_cv_warn_c__Wunknown_warning_option=yes
else
gl_cv_warn_c__Wunknown_warning_option=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
CFLAGS="$gl_save_compiler_FLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wunknown_warning_option" >&5
$as_echo "$gl_cv_warn_c__Wunknown_warning_option" >&6; }
if test "x$gl_cv_warn_c__Wunknown_warning_option" = xyes; then :
as_fn_append WARN_CFLAGS " -Wunknown-warning-option"
fi


if test -n "$WARN_CFLAGS" ; then
WARN_CFLAGS=
CFLAGS="-Werror -Wunknown-warning-option $CFLAGS"
fi

# gcc 4.2 treats attribute(format) as an implicit attribute(nonnull),
# which triggers spurious warnings for our usage
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc -Wformat allows NULL strings" >&5
@@ -54660,6 +55004,12 @@ $as_echo "$lv_cv_gcc_pragma_push_works" >&6; }
dontwarn="$dontwarn -Wmissing-prototypes"
dontwarn="$dontwarn -Wmissing-declarations"
dontwarn="$dontwarn -Wcast-align"
else

cat >>confdefs.h <<_ACEOF
#define WORKING_PRAGMA_PUSH 1
_ACEOF

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC -Wlogical-op gives bogus warnings" >&5
@@ -55280,6 +55630,114 @@ if test "x$gl_cv_warn_c___param_ssp_buffer_size_4" = xyes; then :
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
$as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
if ${gl_cv_warn_c__Wno_unused_command_line_argument+:} false; then :
$as_echo_n "(cached) " >&6
else

gl_save_compiler_FLAGS="$CFLAGS"
as_fn_append CFLAGS " -Wno-unused-command-line-argument"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

int
main ()
{

;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
gl_cv_warn_c__Wno_unused_command_line_argument=yes
else
gl_cv_warn_c__Wno_unused_command_line_argument=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
CFLAGS="$gl_save_compiler_FLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
$as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = xyes; then :
as_fn_append WARN_CFLAGS " -Wno-unused-command-line-argument"
fi


;;
*-*-freebsd*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fstack-protector" >&5
$as_echo_n "checking whether C compiler handles -fstack-protector... " >&6; }
if ${gl_cv_warn_c__fstack_protector+:} false; then :
$as_echo_n "(cached) " >&6
else

gl_save_compiler_FLAGS="$CFLAGS"
as_fn_append CFLAGS " -fstack-protector"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

int
main ()
{

;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
gl_cv_warn_c__fstack_protector=yes
else
gl_cv_warn_c__fstack_protector=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
CFLAGS="$gl_save_compiler_FLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fstack_protector" >&5
$as_echo "$gl_cv_warn_c__fstack_protector" >&6; }
if test "x$gl_cv_warn_c__fstack_protector" = xyes; then :
as_fn_append WARN_CFLAGS " -fstack-protector"
fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
$as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
if ${gl_cv_warn_c__Wno_unused_command_line_argument+:} false; then :
$as_echo_n "(cached) " >&6
else

gl_save_compiler_FLAGS="$CFLAGS"
as_fn_append CFLAGS " -Wno-unused-command-line-argument"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

int
main ()
{

;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
gl_cv_warn_c__Wno_unused_command_line_argument=yes
else
gl_cv_warn_c__Wno_unused_command_line_argument=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
CFLAGS="$gl_save_compiler_FLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
$as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = xyes; then :
as_fn_append WARN_CFLAGS " -Wno-unused-command-line-argument"
fi


;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fexceptions" >&5
@@ -55572,10 +56030,6 @@ fi

fi

WARN_LDFLAGS=$WARN_CFLAGS



save_WARN_CFLAGS=$WARN_CFLAGS
WARN_CFLAGS=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-redundant-decls" >&5
@@ -55626,6 +56080,9 @@ _ACEOF

fi

# Remove stuff we set for clang
CFLAGS="$orig_CFLAGS"


PIE_CFLAGS=
PIE_LDFLAGS=
@@ -62264,6 +62721,24 @@ fi
else
GNUTLS_LIBS="$GNUTLS_LIBS -lgcrypt"

GNUTLS_CFLAGS="$GNUTLS_CFLAGS -DGCRYPT_NO_DEPRECATED"

for ac_header in gnutls/crypto.h
do :
ac_fn_c_check_header_compile "$LINENO" "gnutls/crypto.h" "ac_cv_header_gnutls_crypto_h" "
#include <gnutls/gnutls.h>

"
if test "x$ac_cv_header_gnutls_crypto_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_GNUTLS_CRYPTO_H 1
_ACEOF

fi

done


with_gnutls=yes
fi

@@ -67475,7 +67950,7 @@ if test "$with_driver_modules" = "yes" || test "$with_driver_modules" = "check";
fi

if test "$with_driver_modules" = "yes" ; then
DRIVER_MODULE_CFLAGS="-export-dynamic"
DRIVER_MODULE_LDFLAGS="-export-dynamic"
case $ac_cv_search_dlopen in
no*) DRIVER_MODULE_LIBS= ;;
*) DRIVER_MODULE_LIBS=$ac_cv_search_dlopen ;;
@@ -68089,13 +68564,22 @@ _ACEOF

fi

# Check for BSD approach for setting MAC addr
ac_fn_c_check_decl "$LINENO" "link_addr" "ac_cv_have_decl_link_addr" "#include <sys/types.h>
#include <sys/socket.h>
#include <net/if_dl.h>

"
if test "x$ac_cv_have_decl_link_addr" = xyes; then :
ac_have_decl=1
else
ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_LINK_ADDR $ac_have_decl
_ACEOF

# Only COPYING.LIB is under version control, yet COPYING
# is included as part of the distribution tarball.
# Copy one to the other, but only if this is a srcdir-build.
# You are unlikely to be doing distribution-related things in a non-srcdir build
test "x$srcdir" = x. && ! test -f COPYING &&
cp -f COPYING.LIB COPYING

# Detect when running under the clang static analyzer's scan-build driver
# or Coverity-prevent's cov-build. Define STATIC_ANALYSIS accordingly.
@@ -69128,7 +69612,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by libvirt $as_me 1.0.5, which was
This file was extended by libvirt $as_me 1.0.6, which was
generated by GNU Autoconf 2.69. Invocation command line was

CONFIG_FILES = $CONFIG_FILES
@@ -69199,7 +69683,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
libvirt config.status 1.0.5
libvirt config.status 1.0.6
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"



+ 33
- 11
configure.ac View File

@@ -1,9 +1,22 @@
dnl Process this file with autoconf to produce a configure script.

dnl Copyright (C) 2005-2013 Red Hat, Inc.
dnl See COPYING.LIB for the License of this software
dnl
dnl This library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public
dnl License as published by the Free Software Foundation; either
dnl version 2.1 of the License, or (at your option) any later version.
dnl
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Lesser General Public License for more details.
dnl
dnl You should have received a copy of the GNU Lesser General Public
dnl License along with this library. If not, see
dnl <http://www.gnu.org/licenses/>.

AC_INIT([libvirt], [1.0.5], [libvir-list@redhat.com], [], [http://libvirt.org])
AC_INIT([libvirt], [1.0.6], [libvir-list@redhat.com], [], [http://libvirt.org])
AC_CONFIG_SRCDIR([src/libvirt.c])
AC_CONFIG_AUX_DIR([build-aux])