| 1 |
GNU LESSER GENERAL PUBLIC LICENSE |
|---|
| 2 |
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
|---|
| 3 |
|
|---|
| 4 |
0. This License Agreement applies to any software library or other |
|---|
| 5 |
program which contains a notice placed by the copyright holder or |
|---|
| 6 |
other authorized party saying it may be distributed under the terms of |
|---|
| 7 |
this Lesser General Public License (also called "this License"). |
|---|
| 8 |
Each licensee is addressed as "you". |
|---|
| 9 |
|
|---|
| 10 |
A "library" means a collection of software functions and/or data |
|---|
| 11 |
prepared so as to be conveniently linked with application programs |
|---|
| 12 |
(which use some of those functions and data) to form executables. |
|---|
| 13 |
|
|---|
| 14 |
The "Library", below, refers to any such software library or work |
|---|
| 15 |
which has been distributed under these terms. A "work based on the |
|---|
| 16 |
Library" means either the Library or any derivative work under |
|---|
| 17 |
copyright law: that is to say, a work containing the Library or a |
|---|
| 18 |
portion of it, either verbatim or with modifications and/or translated |
|---|
| 19 |
straightforwardly into another language. (Hereinafter, translation is |
|---|
| 20 |
included without limitation in the term "modification".) |
|---|
| 21 |
|
|---|
| 22 |
"Source code" for a work means the preferred form of the work for |
|---|
| 23 |
making modifications to it. For a library, complete source code means |
|---|
| 24 |
all the source code for all modules it contains, plus any associated |
|---|
| 25 |
interface definition files, plus the scripts used to control compilation |
|---|
| 26 |
and installation of the library. |
|---|
| 27 |
|
|---|
| 28 |
Activities other than copying, distribution and modification are not |
|---|
| 29 |
covered by this License; they are outside its scope. The act of |
|---|
| 30 |
running a program using the Library is not restricted, and output from |
|---|
| 31 |
such a program is covered only if its contents constitute a work based |
|---|
| 32 |
on the Library (independent of the use of the Library in a tool for |
|---|
| 33 |
writing it). Whether that is true depends on what the Library does |
|---|
| 34 |
and what the program that uses the Library does. |
|---|
| 35 |
|
|---|
| 36 |
1. You may copy and distribute verbatim copies of the Library's |
|---|
| 37 |
complete source code as you receive it, in any medium, provided that |
|---|
| 38 |
you conspicuously and appropriately publish on each copy an |
|---|
| 39 |
appropriate copyright notice and disclaimer of warranty; keep intact |
|---|
| 40 |
all the notices that refer to this License and to the absence of any |
|---|
| 41 |
warranty; and distribute a copy of this License along with the |
|---|
| 42 |
Library. |
|---|
| 43 |
|
|---|
| 44 |
You may charge a fee for the physical act of transferring a copy, |
|---|
| 45 |
and you may at your option offer warranty protection in exchange for a |
|---|
| 46 |
fee. |
|---|
| 47 |
|
|---|
| 48 |
2. You may modify your copy or copies of the Library or any portion |
|---|
| 49 |
of it, thus forming a work based on the Library, and copy and |
|---|
| 50 |
distribute such modifications or work under the terms of Section 1 |
|---|
| 51 |
above, provided that you also meet all of these conditions: |
|---|
| 52 |
|
|---|
| 53 |
a) The modified work must itself be a software library. |
|---|
| 54 |
|
|---|
| 55 |
b) You must cause the files modified to carry prominent notices |
|---|
| 56 |
stating that you changed the files and the date of any change. |
|---|
| 57 |
|
|---|
| 58 |
c) You must cause the whole of the work to be licensed at no |
|---|
| 59 |
charge to all third parties under the terms of this License. |
|---|
| 60 |
|
|---|
| 61 |
d) If a facility in the modified Library refers to a function or a |
|---|
| 62 |
table of data to be supplied by an application program that uses |
|---|
| 63 |
the facility, other than as an argument passed when the facility |
|---|
| 64 |
is invoked, then you must make a good faith effort to ensure that, |
|---|
| 65 |
in the event an application does not supply such function or |
|---|
| 66 |
table, the facility still operates, and performs whatever part of |
|---|
| 67 |
its purpose remains meaningful. |
|---|
| 68 |
|
|---|
| 69 |
(For example, a function in a library to compute square roots has |
|---|
| 70 |
a purpose that is entirely well-defined independent of the |
|---|
| 71 |
application. Therefore, Subsection 2d requires that any |
|---|
| 72 |
application-supplied function or table used by this function must |
|---|
| 73 |
be optional: if the application does not supply it, the square |
|---|
| 74 |
root function must still compute square roots.) |
|---|
| 75 |
|
|---|
| 76 |
These requirements apply to the modified work as a whole. If |
|---|
| 77 |
identifiable sections of that work are not derived from the Library, |
|---|
| 78 |
and can be reasonably considered independent and separate works in |
|---|
| 79 |
themselves, then this License, and its terms, do not apply to those |
|---|
| 80 |
sections when you distribute them as separate works. But when you |
|---|
| 81 |
distribute the same sections as part of a whole which is a work based |
|---|
| 82 |
on the Library, the distribution of the whole must be on the terms of |
|---|
| 83 |
this License, whose permissions for other licensees extend to the |
|---|
| 84 |
entire whole, and thus to each and every part regardless of who wrote |
|---|
| 85 |
it. |
|---|
| 86 |
|
|---|
| 87 |
Thus, it is not the intent of this section to claim rights or contest |
|---|
| 88 |
your rights to work written entirely by you; rather, the intent is to |
|---|
| 89 |
exercise the right to control the distribution of derivative or |
|---|
| 90 |
collective works based on the Library. |
|---|
| 91 |
|
|---|
| 92 |
In addition, mere aggregation of another work not based on the Library |
|---|
| 93 |
with the Library (or with a work based on the Library) on a volume of |
|---|
| 94 |
a storage or distribution medium does not bring the other work under |
|---|
| 95 |
the scope of this License. |
|---|
| 96 |
|
|---|
| 97 |
3. You may opt to apply the terms of the ordinary GNU General Public |
|---|
| 98 |
License instead of this License to a given copy of the Library. To do |
|---|
| 99 |
this, you must alter all the notices that refer to this License, so |
|---|
| 100 |
that they refer to the ordinary GNU General Public License, version 2, |
|---|
| 101 |
instead of to this License. (If a newer version than version 2 of the |
|---|
| 102 |
ordinary GNU General Public License has appeared, then you can specify |
|---|
| 103 |
that version instead if you wish.) Do not make any other change in |
|---|
| 104 |
these notices. |
|---|
| 105 |
|
|---|
| 106 |
Once this change is made in a given copy, it is irreversible for |
|---|
| 107 |
that copy, so the ordinary GNU General Public License applies to all |
|---|
| 108 |
subsequent copies and derivative works made from that copy. |
|---|
| 109 |
|
|---|
| 110 |
This option is useful when you wish to copy part of the code of |
|---|
| 111 |
the Library into a program that is not a library. |
|---|
| 112 |
|
|---|
| 113 |
4. You may copy and distribute the Library (or a portion or |
|---|
| 114 |
derivative of it, under Section 2) in object code or executable form |
|---|
| 115 |
under the terms of Sections 1 and 2 above provided that you accompany |
|---|
| 116 |
it with the complete corresponding machine-readable source code, which |
|---|
| 117 |
must be distributed under the terms of Sections 1 and 2 above on a |
|---|
| 118 |
medium customarily used for software interchange. |
|---|
| 119 |
|
|---|
| 120 |
If distribution of object code is made by offering access to copy |
|---|
| 121 |
from a designated place, then offering equivalent access to copy the |
|---|
| 122 |
source code from the same place satisfies the requirement to |
|---|
| 123 |
distribute the source code, even though third parties are not |
|---|
| 124 |
compelled to copy the source along with the object code. |
|---|
| 125 |
|
|---|
| 126 |
5. A program that contains no derivative of any portion of the |
|---|
| 127 |
Library, but is designed to work with the Library by being compiled or |
|---|
| 128 |
linked with it, is called a "work that uses the Library". Such a |
|---|
| 129 |
work, in isolation, is not a derivative work of the Library, and |
|---|
| 130 |
therefore falls outside the scope of this License. |
|---|
| 131 |
|
|---|
| 132 |
However, linking a "work that uses the Library" with the Library |
|---|
| 133 |
creates an executable that is a derivative of the Library (because it |
|---|
| 134 |
contains portions of the Library), rather than a "work that uses the |
|---|
| 135 |
library". The executable is therefore covered by this License. |
|---|
| 136 |
Section 6 states terms for distribution of such executables. |
|---|
| 137 |
|
|---|
| 138 |
When a "work that uses the Library" uses material from a header file |
|---|
| 139 |
that is part of the Library, the object code for the work may be a |
|---|
| 140 |
derivative work of the Library even though the source code is not. |
|---|
| 141 |
Whether this is true is especially significant if the work can be |
|---|
| 142 |
linked without the Library, or if the work is itself a library. The |
|---|
| 143 |
threshold for this to be true is not precisely defined by law. |
|---|
| 144 |
|
|---|
| 145 |
If such an object file uses only numerical parameters, data |
|---|
| 146 |
structure layouts and accessors, and small macros and small inline |
|---|
| 147 |
functions (ten lines or less in length), then the use of the object |
|---|
| 148 |
file is unrestricted, regardless of whether it is legally a derivative |
|---|
| 149 |
work. (Executables containing this object code plus portions of the |
|---|
| 150 |
Library will still fall under Section 6.) |
|---|
| 151 |
|
|---|
| 152 |
Otherwise, if the work is a derivative of the Library, you may |
|---|
| 153 |
distribute the object code for the work under the terms of Section 6. |
|---|
| 154 |
Any executables containing that work also fall under Section 6, |
|---|
| 155 |
whether or not they are linked directly with the Library itself. |
|---|
| 156 |
|
|---|
| 157 |
6. As an exception to the Sections above, you may also combine or |
|---|
| 158 |
link a "work that uses the Library" with the Library to produce a |
|---|
| 159 |
work containing portions of the Library, and distribute that work |
|---|
| 160 |
under terms of your choice, provided that the terms permit |
|---|
| 161 |
modification of the work for the customer's own use and reverse |
|---|
| 162 |
engineering for debugging such modifications. |
|---|
| 163 |
|
|---|
| 164 |
You must give prominent notice with each copy of the work that the |
|---|
| 165 |
Library is used in it and that the Library and its use are covered by |
|---|
| 166 |
this License. You must supply a copy of this License. If the work |
|---|
| 167 |
during execution displays copyright notices, you must include the |
|---|
| 168 |
copyright notice for the Library among them, as well as a reference |
|---|
| 169 |
directing the user to the copy of this License. Also, you must do one |
|---|
| 170 |
of these things: |
|---|
| 171 |
|
|---|
| 172 |
a) Accompany the work with the complete corresponding |
|---|
| 173 |
machine-readable source code for the Library including whatever |
|---|
| 174 |
changes were used in the work (which must be distributed under |
|---|
| 175 |
Sections 1 and 2 above); and, if the work is an executable linked |
|---|
| 176 |
with the Library, with the complete machine-readable "work that |
|---|
| 177 |
uses the Library", as object code and/or source code, so that the |
|---|
| 178 |
user can modify the Library and then relink to produce a modified |
|---|
| 179 |
executable containing the modified Library. (It is understood |
|---|
| 180 |
that the user who changes the contents of definitions files in the |
|---|
| 181 |
Library will not necessarily be able to recompile the application |
|---|
| 182 |
to use the modified definitions.) |
|---|
| 183 |
|
|---|
| 184 |
b) Use a suitable shared library mechanism for linking with the |
|---|
| 185 |
Library. A suitable mechanism is one that (1) uses at run time a |
|---|
| 186 |
copy of the library already present on the user's computer system, |
|---|
| 187 |
rather than copying library functions into the executable, and (2) |
|---|
| 188 |
will operate properly with a modified version of the library, if |
|---|
| 189 |
the user installs one, as long as the modified version is |
|---|
| 190 |
interface-compatible with the version that the work was made with. |
|---|
| 191 |
|
|---|
| 192 |
c) Accompany the work with a written offer, valid for at |
|---|
| 193 |
least three years, to give the same user the materials |
|---|
| 194 |
specified in Subsection 6a, above, for a charge no more |
|---|
| 195 |
than the cost of performing this distribution. |
|---|
| 196 |
|
|---|
| 197 |
d) If distribution of the work is made by offering access to copy |
|---|
| 198 |
from a designated place, offer equivalent access to copy the above |
|---|
| 199 |
specified materials from the same place. |
|---|
| 200 |
|
|---|
| 201 |
e) Verify that the user has already received a copy of these |
|---|
| 202 |
materials or that you have already sent this user a copy. |
|---|
| 203 |
|
|---|
| 204 |
For an executable, the required form of the "work that uses the |
|---|
| 205 |
Library" must include any data and utility programs needed for |
|---|
| 206 |
reproducing the executable from it. However, as a special exception, |
|---|
| 207 |
the materials to be distributed need not include anything that is |
|---|
| 208 |
normally distributed (in either source or binary form) with the major |
|---|
| 209 |
components (compiler, kernel, and so on) of the operating system on |
|---|
| 210 |
which the executable runs, unless that component itself accompanies |
|---|
| 211 |
the executable. |
|---|
| 212 |
|
|---|
| 213 |
It may happen that this requirement contradicts the license |
|---|
| 214 |
restrictions of other proprietary libraries that do not normally |
|---|
| 215 |
accompany the operating system. Such a contradiction means you cannot |
|---|
| 216 |
use both them and the Library together in an executable that you |
|---|
| 217 |
distribute. |
|---|
| 218 |
|
|---|
| 219 |
7. You may place library facilities that are a work based on the |
|---|
| 220 |
Library side-by-side in a single library together with other library |
|---|
| 221 |
facilities not covered by this License, and distribute such a combined |
|---|
| 222 |
library, provided that the separate distribution of the work based on |
|---|
| 223 |
the Library and of the other library facilities is otherwise |
|---|
| 224 |
permitted, and provided that you do these two things: |
|---|
| 225 |
|
|---|
| 226 |
a) Accompany the combined library with a copy of the same work |
|---|
| 227 |
based on the Library, uncombined with any other library |
|---|
| 228 |
facilities. This must be distributed under the terms of the |
|---|
| 229 |
Sections above. |
|---|
| 230 |
|
|---|
| 231 |
b) Give prominent notice with the combined library of the fact |
|---|
| 232 |
that part of it is a work based on the Library, and explaining |
|---|
| 233 |
where to find the accompanying uncombined form of the same work. |
|---|
| 234 |
|
|---|
| 235 |
8. You may not copy, modify, sublicense, link with, or distribute |
|---|
| 236 |
the Library except as expressly provided under this License. Any |
|---|
| 237 |
attempt otherwise to copy, modify, sublicense, link with, or |
|---|
| 238 |
distribute the Library is void, and will automatically terminate your |
|---|
| 239 |
rights under this License. However, parties who have received copies, |
|---|
| 240 |
or rights, from you under this License will not have their licenses |
|---|
| 241 |
terminated so long as such parties remain in full compliance. |
|---|
| 242 |
|
|---|
| 243 |
9. You are not required to accept this License, since you have not |
|---|
| 244 |
signed it. However, nothing else grants you permission to modify or |
|---|
| 245 |
distribute the Library or its derivative works. These actions are |
|---|
| 246 |
prohibited by law if you do not accept this License. Therefore, by |
|---|
| 247 |
modifying or distributing the Library (or any work based on the |
|---|
| 248 |
Library), you indicate your acceptance of this License to do so, and |
|---|
| 249 |
all its terms and conditions for copying, distributing or modifying |
|---|
| 250 |
the Library or works based on it. |
|---|
| 251 |
|
|---|
| 252 |
10. Each time you redistribute the Library (or any work based on the |
|---|
| 253 |
Library), the recipient automatically receives a license from the |
|---|
| 254 |
original licensor to copy, distribute, link with or modify the Library |
|---|
| 255 |
subject to these terms and conditions. You may not impose any further |
|---|
| 256 |
restrictions on the recipients' exercise of the rights granted herein. |
|---|
| 257 |
You are not responsible for enforcing compliance by third parties with |
|---|
| 258 |
this License. |
|---|
| 259 |
|
|---|
| 260 |
11. If, as a consequence of a court judgment or allegation of patent |
|---|
| 261 |
infringement or for any other reason (not limited to patent issues), |
|---|
| 262 |
conditions are imposed on you (whether by court order, agreement or |
|---|
| 263 |
otherwise) that contradict the conditions of this License, they do not |
|---|
| 264 |
excuse you from the conditions of this License. If you cannot |
|---|
| 265 |
distribute so as to satisfy simultaneously your obligations under this |
|---|
| 266 |
License and any other pertinent obligations, then as a consequence you |
|---|
| 267 |
may not distribute the Library at all. For example, if a patent |
|---|
| 268 |
license would not permit royalty-free redistribution of the Library by |
|---|
| 269 |
all those who receive copies directly or indirectly through you, then |
|---|
| 270 |
the only way you could satisfy both it and this License would be to |
|---|
| 271 |
refrain entirely from distribution of the Library. |
|---|
| 272 |
|
|---|
| 273 |
If any portion of this section is held invalid or unenforceable under any |
|---|
| 274 |
particular circumstance, the balance of the section is intended to apply, |
|---|
| 275 |
and the section as a whole is intended to apply in other circumstances. |
|---|
| 276 |
|
|---|
| 277 |
It is not the purpose of this section to induce you to infringe any |
|---|
| 278 |
patents or other property right claims or to contest validity of any |
|---|
| 279 |
such claims; this section has the sole purpose of protecting the |
|---|
| 280 |
integrity of the free software distribution system which is |
|---|
| 281 |
implemented by public license practices. Many people have made |
|---|
| 282 |
generous contributions to the wide range of software distributed |
|---|
| 283 |
through that system in reliance on consistent application of that |
|---|
| 284 |
system; it is up to the author/donor to decide if he or she is willing |
|---|
| 285 |
to distribute software through any other system and a licensee cannot |
|---|
| 286 |
impose that choice. |
|---|
| 287 |
|
|---|
| 288 |
This section is intended to make thoroughly clear what is believed to |
|---|
| 289 |
be a consequence of the rest of this License. |
|---|
| 290 |
|
|---|
| 291 |
12. If the distribution and/or use of the Library is restricted in |
|---|
| 292 |
certain countries either by patents or by copyrighted interfaces, the |
|---|
| 293 |
original copyright holder who places the Library under this License may add |
|---|
| 294 |
an explicit geographical distribution limitation excluding those countries, |
|---|
| 295 |
so that distribution is permitted only in or among countries not thus |
|---|
| 296 |
excluded. In such case, this License incorporates the limitation as if |
|---|
| 297 |
written in the body of this License. |
|---|
| 298 |
|
|---|
| 299 |
13. The Free Software Foundation may publish revised and/or new |
|---|
| 300 |
versions of the Lesser General Public License from time to time. |
|---|
| 301 |
Such new versions will be similar in spirit to the present version, |
|---|
| 302 |
but may differ in detail to address new problems or concerns. |
|---|
| 303 |
|
|---|
| 304 |
Each version is given a distinguishing version number. If the Library |
|---|
| 305 |
specifies a version number of this License which applies to it and |
|---|
| 306 |
"any later version", you have the option of following the terms and |
|---|
| 307 |
conditions either of that version or of any later version published by |
|---|
| 308 |
the Free Software Foundation. If the Library does not specify a |
|---|
| 309 |
license version number, you may choose any version ever published by |
|---|
| 310 |
the Free Software Foundation. |
|---|
| 311 |
|
|---|
| 312 |
14. If you wish to incorporate parts of the Library into other free |
|---|
| 313 |
programs whose distribution conditions are incompatible with these, |
|---|
| 314 |
write to the author to ask for permission. For software which is |
|---|
| 315 |
copyrighted by the Free Software Foundation, write to the Free |
|---|
| 316 |
Software Foundation; we sometimes make exceptions for this. Our |
|---|
| 317 |
decision will be guided by the two goals of preserving the free status |
|---|
| 318 |
of all derivatives of our free software and of promoting the sharing |
|---|
| 319 |
and reuse of software generally. |
|---|
| 320 |
|
|---|
| 321 |
NO WARRANTY |
|---|
| 322 |
|
|---|
| 323 |
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO |
|---|
| 324 |
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. |
|---|
| 325 |
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR |
|---|
| 326 |
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY |
|---|
| 327 |
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE |
|---|
| 328 |
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
|---|
| 329 |
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE |
|---|
| 330 |
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME |
|---|
| 331 |
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |
|---|
| 332 |
|
|---|
| 333 |
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN |
|---|
| 334 |
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY |
|---|
| 335 |
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU |
|---|
| 336 |
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR |
|---|
| 337 |
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE |
|---|
| 338 |
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING |
|---|
| 339 |
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A |
|---|
| 340 |
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF |
|---|
| 341 |
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
|---|
| 342 |
DAMAGES. |
|---|
| 343 |
|
|---|
| 344 |
END OF TERMS AND CONDITIONS |
|---|