xref: /OK3568_Linux_fs/yocto/poky/meta/files/common-licenses/LGPL-2.0-or-later (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunGNU LIBRARY GENERAL PUBLIC LICENSE
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunVersion 2, June 1991 Copyright (C) 1991 Free Software Foundation, Inc.
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunEveryone is permitted to copy and distribute verbatim copies of this license
8*4882a593Smuzhiyundocument, but changing it is not allowed.
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun[This is the first released version of the library GPL. It is numbered 2 because
11*4882a593Smuzhiyunit goes with version 2 of the ordinary GPL.]
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunPreamble
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunThe licenses for most software are designed to take away your freedom to share
16*4882a593Smuzhiyunand change it. By contrast, the GNU General Public Licenses are intended to
17*4882a593Smuzhiyunguarantee your freedom to share and change free software--to make sure the
18*4882a593Smuzhiyunsoftware is free for all its users.
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunThis license, the Library General Public License, applies to some specially
21*4882a593Smuzhiyundesignated Free Software Foundation software, and to any other libraries whose
22*4882a593Smuzhiyunauthors decide to use it. You can use it for your libraries, too.
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunWhen we speak of free software, we are referring to freedom, not price. Our
25*4882a593SmuzhiyunGeneral Public Licenses are designed to make sure that you have the freedom
26*4882a593Smuzhiyunto distribute copies of free software (and charge for this service if you
27*4882a593Smuzhiyunwish), that you receive source code or can get it if you want it, that you
28*4882a593Smuzhiyuncan change the software or use pieces of it in new free programs; and that
29*4882a593Smuzhiyunyou know you can do these things.
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunTo protect your rights, we need to make restrictions that forbid anyone to
32*4882a593Smuzhiyundeny you these rights or to ask you to surrender the rights. These restrictions
33*4882a593Smuzhiyuntranslate to certain responsibilities for you if you distribute copies of
34*4882a593Smuzhiyunthe library, or if you modify it.
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunFor example, if you distribute copies of the library, whether gratis or for
37*4882a593Smuzhiyuna fee, you must give the recipients all the rights that we gave you. You must
38*4882a593Smuzhiyunmake sure that they, too, receive or can get the source code. If you link
39*4882a593Smuzhiyuna program with the library, you must provide complete object files to the
40*4882a593Smuzhiyunrecipients so that they can relink them with the library, after making changes
41*4882a593Smuzhiyunto the library and recompiling it. And you must show them these terms so they
42*4882a593Smuzhiyunknow their rights.
43*4882a593Smuzhiyun
44*4882a593SmuzhiyunOur method of protecting your rights has two steps: (1) copyright the library,
45*4882a593Smuzhiyunand (2) offer you this license which gives you legal permission to copy, distribute
46*4882a593Smuzhiyunand/or modify the library.
47*4882a593Smuzhiyun
48*4882a593SmuzhiyunAlso, for each distributor's protection, we want to make certain that everyone
49*4882a593Smuzhiyununderstands that there is no warranty for this free library. If the library
50*4882a593Smuzhiyunis modified by someone else and passed on, we want its recipients to know
51*4882a593Smuzhiyunthat what they have is not the original version, so that any problems introduced
52*4882a593Smuzhiyunby others will not reflect on the original authors' reputations.
53*4882a593Smuzhiyun
54*4882a593SmuzhiyunFinally, any free program is threatened constantly by software patents. We
55*4882a593Smuzhiyunwish to avoid the danger that companies distributing free software will individually
56*4882a593Smuzhiyunobtain patent licenses, thus in effect transforming the program into proprietary
57*4882a593Smuzhiyunsoftware. To prevent this, we have made it clear that any patent must be licensed
58*4882a593Smuzhiyunfor everyone's free use or not licensed at all.
59*4882a593Smuzhiyun
60*4882a593SmuzhiyunMost GNU software, including some libraries, is covered by the ordinary GNU
61*4882a593SmuzhiyunGeneral Public License, which was designed for utility programs. This license,
62*4882a593Smuzhiyunthe GNU Library General Public License, applies to certain designated libraries.
63*4882a593SmuzhiyunThis license is quite different from the ordinary one; be sure to read it
64*4882a593Smuzhiyunin full, and don't assume that anything in it is the same as in the ordinary
65*4882a593Smuzhiyunlicense.
66*4882a593Smuzhiyun
67*4882a593SmuzhiyunThe reason we have a separate public license for some libraries is that they
68*4882a593Smuzhiyunblur the distinction we usually make between modifying or adding to a program
69*4882a593Smuzhiyunand simply using it. Linking a program with a library, without changing the
70*4882a593Smuzhiyunlibrary, is in some sense simply using the library, and is analogous to running
71*4882a593Smuzhiyuna utility program or application program. However, in a textual and legal
72*4882a593Smuzhiyunsense, the linked executable is a combined work, a derivative of the original
73*4882a593Smuzhiyunlibrary, and the ordinary General Public License treats it as such.
74*4882a593Smuzhiyun
75*4882a593SmuzhiyunBecause of this blurred distinction, using the ordinary General Public License
76*4882a593Smuzhiyunfor libraries did not effectively promote software sharing, because most developers
77*4882a593Smuzhiyundid not use the libraries. We concluded that weaker conditions might promote
78*4882a593Smuzhiyunsharing better.
79*4882a593Smuzhiyun
80*4882a593SmuzhiyunHowever, unrestricted linking of non-free programs would deprive the users
81*4882a593Smuzhiyunof those programs of all benefit from the free status of the libraries themselves.
82*4882a593SmuzhiyunThis Library General Public License is intended to permit developers of non-free
83*4882a593Smuzhiyunprograms to use free libraries, while preserving your freedom as a user of
84*4882a593Smuzhiyunsuch programs to change the free libraries that are incorporated in them.
85*4882a593Smuzhiyun(We have not seen how to achieve this as regards changes in header files,
86*4882a593Smuzhiyunbut we have achieved it as regards changes in the actual functions of the
87*4882a593SmuzhiyunLibrary.) The hope is that this will lead to faster development of free libraries.
88*4882a593Smuzhiyun
89*4882a593SmuzhiyunThe precise terms and conditions for copying, distribution and modification
90*4882a593Smuzhiyunfollow. Pay close attention to the difference between a "work based on the
91*4882a593Smuzhiyunlibrary" and a "work that uses the library". The former contains code derived
92*4882a593Smuzhiyunfrom the library, while the latter only works together with the library.
93*4882a593Smuzhiyun
94*4882a593SmuzhiyunNote that it is possible for a library to be covered by the ordinary General
95*4882a593SmuzhiyunPublic License rather than by this special one.
96*4882a593Smuzhiyun
97*4882a593SmuzhiyunTERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
98*4882a593Smuzhiyun
99*4882a593Smuzhiyun0. This License Agreement applies to any software library which contains a
100*4882a593Smuzhiyunnotice placed by the copyright holder or other authorized party saying it
101*4882a593Smuzhiyunmay be distributed under the terms of this Library General Public License
102*4882a593Smuzhiyun(also called "this License"). Each licensee is addressed as "you".
103*4882a593Smuzhiyun
104*4882a593SmuzhiyunA "library" means a collection of software functions and/or data prepared
105*4882a593Smuzhiyunso as to be conveniently linked with application programs (which use some
106*4882a593Smuzhiyunof those functions and data) to form executables.
107*4882a593Smuzhiyun
108*4882a593SmuzhiyunThe "Library", below, refers to any such software library or work which has
109*4882a593Smuzhiyunbeen distributed under these terms. A "work based on the Library" means either
110*4882a593Smuzhiyunthe Library or any derivative work under copyright law: that is to say, a
111*4882a593Smuzhiyunwork containing the Library or a portion of it, either verbatim or with modifications
112*4882a593Smuzhiyunand/or translated straightforwardly into another language. (Hereinafter, translation
113*4882a593Smuzhiyunis included without limitation in the term "modification".)
114*4882a593Smuzhiyun
115*4882a593Smuzhiyun"Source code" for a work means the preferred form of the work for making modifications
116*4882a593Smuzhiyunto it. For a library, complete source code means all the source code for all
117*4882a593Smuzhiyunmodules it contains, plus any associated interface definition files, plus
118*4882a593Smuzhiyunthe scripts used to control compilation and installation of the library.
119*4882a593Smuzhiyun
120*4882a593SmuzhiyunActivities other than copying, distribution and modification are not covered
121*4882a593Smuzhiyunby this License; they are outside its scope. The act of running a program
122*4882a593Smuzhiyunusing the Library is not restricted, and output from such a program is covered
123*4882a593Smuzhiyunonly if its contents constitute a work based on the Library (independent of
124*4882a593Smuzhiyunthe use of the Library in a tool for writing it). Whether that is true depends
125*4882a593Smuzhiyunon what the Library does and what the program that uses the Library does.
126*4882a593Smuzhiyun
127*4882a593Smuzhiyun1. You may copy and distribute verbatim copies of the Library's complete source
128*4882a593Smuzhiyuncode as you receive it, in any medium, provided that you conspicuously and
129*4882a593Smuzhiyunappropriately publish on each copy an appropriate copyright notice and disclaimer
130*4882a593Smuzhiyunof warranty; keep intact all the notices that refer to this License and to
131*4882a593Smuzhiyunthe absence of any warranty; and distribute a copy of this License along with
132*4882a593Smuzhiyunthe Library.
133*4882a593Smuzhiyun
134*4882a593SmuzhiyunYou may charge a fee for the physical act of transferring a copy, and you
135*4882a593Smuzhiyunmay at your option offer warranty protection in exchange for a fee.
136*4882a593Smuzhiyun
137*4882a593Smuzhiyun2. You may modify your copy or copies of the Library or any portion of it,
138*4882a593Smuzhiyunthus forming a work based on the Library, and copy and distribute such modifications
139*4882a593Smuzhiyunor work under the terms of Section 1 above, provided that you also meet all
140*4882a593Smuzhiyunof these conditions:
141*4882a593Smuzhiyun
142*4882a593Smuzhiyun      a) The modified work must itself be a software library.
143*4882a593Smuzhiyun
144*4882a593Smuzhiyunb) You must cause the files modified to carry prominent notices stating that
145*4882a593Smuzhiyunyou changed the files and the date of any change.
146*4882a593Smuzhiyun
147*4882a593Smuzhiyunc) You must cause the whole of the work to be licensed at no charge to all
148*4882a593Smuzhiyunthird parties under the terms of this License.
149*4882a593Smuzhiyun
150*4882a593Smuzhiyund) If a facility in the modified Library refers to a function or a table of
151*4882a593Smuzhiyundata to be supplied by an application program that uses the facility, other
152*4882a593Smuzhiyunthan as an argument passed when the facility is invoked, then you must make
153*4882a593Smuzhiyuna good faith effort to ensure that, in the event an application does not supply
154*4882a593Smuzhiyunsuch function or table, the facility still operates, and performs whatever
155*4882a593Smuzhiyunpart of its purpose remains meaningful.
156*4882a593Smuzhiyun
157*4882a593Smuzhiyun(For example, a function in a library to compute square roots has a purpose
158*4882a593Smuzhiyunthat is entirely well-defined independent of the application. Therefore, Subsection
159*4882a593Smuzhiyun2d requires that any application-supplied function or table used by this function
160*4882a593Smuzhiyunmust be optional: if the application does not supply it, the square root function
161*4882a593Smuzhiyunmust still compute square roots.)
162*4882a593Smuzhiyun
163*4882a593SmuzhiyunThese requirements apply to the modified work as a whole. If identifiable
164*4882a593Smuzhiyunsections of that work are not derived from the Library, and can be reasonably
165*4882a593Smuzhiyunconsidered independent and separate works in themselves, then this License,
166*4882a593Smuzhiyunand its terms, do not apply to those sections when you distribute them as
167*4882a593Smuzhiyunseparate works. But when you distribute the same sections as part of a whole
168*4882a593Smuzhiyunwhich is a work based on the Library, the distribution of the whole must be
169*4882a593Smuzhiyunon the terms of this License, whose permissions for other licensees extend
170*4882a593Smuzhiyunto the entire whole, and thus to each and every part regardless of who wrote
171*4882a593Smuzhiyunit.
172*4882a593Smuzhiyun
173*4882a593SmuzhiyunThus, it is not the intent of this section to claim rights or contest your
174*4882a593Smuzhiyunrights to work written entirely by you; rather, the intent is to exercise
175*4882a593Smuzhiyunthe right to control the distribution of derivative or collective works based
176*4882a593Smuzhiyunon the Library.
177*4882a593Smuzhiyun
178*4882a593SmuzhiyunIn addition, mere aggregation of another work not based on the Library with
179*4882a593Smuzhiyunthe Library (or with a work based on the Library) on a volume of a storage
180*4882a593Smuzhiyunor distribution medium does not bring the other work under the scope of this
181*4882a593SmuzhiyunLicense.
182*4882a593Smuzhiyun
183*4882a593Smuzhiyun3. You may opt to apply the terms of the ordinary GNU General Public License
184*4882a593Smuzhiyuninstead of this License to a given copy of the Library. To do this, you must
185*4882a593Smuzhiyunalter all the notices that refer to this License, so that they refer to the
186*4882a593Smuzhiyunordinary GNU General Public License, version 2, instead of to this License.
187*4882a593Smuzhiyun(If a newer version than version 2 of the ordinary GNU General Public License
188*4882a593Smuzhiyunhas appeared, then you can specify that version instead if you wish.) Do not
189*4882a593Smuzhiyunmake any other change in these notices.
190*4882a593Smuzhiyun
191*4882a593SmuzhiyunOnce this change is made in a given copy, it is irreversible for that copy,
192*4882a593Smuzhiyunso the ordinary GNU General Public License applies to all subsequent copies
193*4882a593Smuzhiyunand derivative works made from that copy.
194*4882a593Smuzhiyun
195*4882a593SmuzhiyunThis option is useful when you wish to copy part of the code of the Library
196*4882a593Smuzhiyuninto a program that is not a library.
197*4882a593Smuzhiyun
198*4882a593Smuzhiyun4. You may copy and distribute the Library (or a portion or derivative of
199*4882a593Smuzhiyunit, under Section 2) in object code or executable form under the terms of
200*4882a593SmuzhiyunSections 1 and 2 above provided that you accompany it with the complete corresponding
201*4882a593Smuzhiyunmachine-readable source code, which must be distributed under the terms of
202*4882a593SmuzhiyunSections 1 and 2 above on a medium customarily used for software interchange.
203*4882a593Smuzhiyun
204*4882a593SmuzhiyunIf distribution of object code is made by offering access to copy from a designated
205*4882a593Smuzhiyunplace, then offering equivalent access to copy the source code from the same
206*4882a593Smuzhiyunplace satisfies the requirement to distribute the source code, even though
207*4882a593Smuzhiyunthird parties are not compelled to copy the source along with the object code.
208*4882a593Smuzhiyun
209*4882a593Smuzhiyun5. A program that contains no derivative of any portion of the Library, but
210*4882a593Smuzhiyunis designed to work with the Library by being compiled or linked with it,
211*4882a593Smuzhiyunis called a "work that uses the Library". Such a work, in isolation, is not
212*4882a593Smuzhiyuna derivative work of the Library, and therefore falls outside the scope of
213*4882a593Smuzhiyunthis License.
214*4882a593Smuzhiyun
215*4882a593SmuzhiyunHowever, linking a "work that uses the Library" with the Library creates an
216*4882a593Smuzhiyunexecutable that is a derivative of the Library (because it contains portions
217*4882a593Smuzhiyunof the Library), rather than a "work that uses the library". The executable
218*4882a593Smuzhiyunis therefore covered by this License. Section 6 states terms for distribution
219*4882a593Smuzhiyunof such executables.
220*4882a593Smuzhiyun
221*4882a593SmuzhiyunWhen a "work that uses the Library" uses material from a header file that
222*4882a593Smuzhiyunis part of the Library, the object code for the work may be a derivative work
223*4882a593Smuzhiyunof the Library even though the source code is not. Whether this is true is
224*4882a593Smuzhiyunespecially significant if the work can be linked without the Library, or if
225*4882a593Smuzhiyunthe work is itself a library. The threshold for this to be true is not precisely
226*4882a593Smuzhiyundefined by law.
227*4882a593Smuzhiyun
228*4882a593SmuzhiyunIf such an object file uses only numerical parameters, data structure layouts
229*4882a593Smuzhiyunand accessors, and small macros and small inline functions (ten lines or less
230*4882a593Smuzhiyunin length), then the use of the object file is unrestricted, regardless of
231*4882a593Smuzhiyunwhether it is legally a derivative work. (Executables containing this object
232*4882a593Smuzhiyuncode plus portions of the Library will still fall under Section 6.)
233*4882a593Smuzhiyun
234*4882a593SmuzhiyunOtherwise, if the work is a derivative of the Library, you may distribute
235*4882a593Smuzhiyunthe object code for the work under the terms of Section 6. Any executables
236*4882a593Smuzhiyuncontaining that work also fall under Section 6, whether or not they are linked
237*4882a593Smuzhiyundirectly with the Library itself.
238*4882a593Smuzhiyun
239*4882a593Smuzhiyun6. As an exception to the Sections above, you may also compile or link a "work
240*4882a593Smuzhiyunthat uses the Library" with the Library to produce a work containing portions
241*4882a593Smuzhiyunof the Library, and distribute that work under terms of your choice, provided
242*4882a593Smuzhiyunthat the terms permit modification of the work for the customer's own use
243*4882a593Smuzhiyunand reverse engineering for debugging such modifications.
244*4882a593Smuzhiyun
245*4882a593SmuzhiyunYou must give prominent notice with each copy of the work that the Library
246*4882a593Smuzhiyunis used in it and that the Library and its use are covered by this License.
247*4882a593SmuzhiyunYou must supply a copy of this License. If the work during execution displays
248*4882a593Smuzhiyuncopyright notices, you must include the copyright notice for the Library among
249*4882a593Smuzhiyunthem, as well as a reference directing the user to the copy of this License.
250*4882a593SmuzhiyunAlso, you must do one of these things:
251*4882a593Smuzhiyun
252*4882a593Smuzhiyuna) Accompany the work with the complete corresponding machine-readable source
253*4882a593Smuzhiyuncode for the Library including whatever changes were used in the work (which
254*4882a593Smuzhiyunmust be distributed under Sections 1 and 2 above); and, if the work is an
255*4882a593Smuzhiyunexecutable linked with the Library, with the complete machine-readable "work
256*4882a593Smuzhiyunthat uses the Library", as object code and/or source code, so that the user
257*4882a593Smuzhiyuncan modify the Library and then relink to produce a modified executable containing
258*4882a593Smuzhiyunthe modified Library. (It is understood that the user who changes the contents
259*4882a593Smuzhiyunof definitions files in the Library will not necessarily be able to recompile
260*4882a593Smuzhiyunthe application to use the modified definitions.)
261*4882a593Smuzhiyun
262*4882a593Smuzhiyunb) Accompany the work with a written offer, valid for at least three years,
263*4882a593Smuzhiyunto give the same user the materials specified in Subsection 6a, above, for
264*4882a593Smuzhiyuna charge no more than the cost of performing this distribution.
265*4882a593Smuzhiyun
266*4882a593Smuzhiyunc) If distribution of the work is made by offering access to copy from a designated
267*4882a593Smuzhiyunplace, offer equivalent access to copy the above specified materials from
268*4882a593Smuzhiyunthe same place.
269*4882a593Smuzhiyun
270*4882a593Smuzhiyund) Verify that the user has already received a copy of these materials or
271*4882a593Smuzhiyunthat you have already sent this user a copy.
272*4882a593Smuzhiyun
273*4882a593SmuzhiyunFor an executable, the required form of the "work that uses the Library" must
274*4882a593Smuzhiyuninclude any data and utility programs needed for reproducing the executable
275*4882a593Smuzhiyunfrom it. However, as a special exception, the source code distributed need
276*4882a593Smuzhiyunnot include anything that is normally distributed (in either source or binary
277*4882a593Smuzhiyunform) with the major components (compiler, kernel, and so on) of the operating
278*4882a593Smuzhiyunsystem on which the executable runs, unless that component itself accompanies
279*4882a593Smuzhiyunthe executable.
280*4882a593Smuzhiyun
281*4882a593SmuzhiyunIt may happen that this requirement contradicts the license restrictions of
282*4882a593Smuzhiyunother proprietary libraries that do not normally accompany the operating system.
283*4882a593SmuzhiyunSuch a contradiction means you cannot use both them and the Library together
284*4882a593Smuzhiyunin an executable that you distribute.
285*4882a593Smuzhiyun
286*4882a593Smuzhiyun7. You may place library facilities that are a work based on the Library side-by-side
287*4882a593Smuzhiyunin a single library together with other library facilities not covered by
288*4882a593Smuzhiyunthis License, and distribute such a combined library, provided that the separate
289*4882a593Smuzhiyundistribution of the work based on the Library and of the other library facilities
290*4882a593Smuzhiyunis otherwise permitted, and provided that you do these two things:
291*4882a593Smuzhiyun
292*4882a593Smuzhiyuna) Accompany the combined library with a copy of the same work based on the
293*4882a593SmuzhiyunLibrary, uncombined with any other library facilities. This must be distributed
294*4882a593Smuzhiyununder the terms of the Sections above.
295*4882a593Smuzhiyun
296*4882a593Smuzhiyunb) Give prominent notice with the combined library of the fact that part of
297*4882a593Smuzhiyunit is a work based on the Library, and explaining where to find the accompanying
298*4882a593Smuzhiyununcombined form of the same work.
299*4882a593Smuzhiyun
300*4882a593Smuzhiyun8. You may not copy, modify, sublicense, link with, or distribute the Library
301*4882a593Smuzhiyunexcept as expressly provided under this License. Any attempt otherwise to
302*4882a593Smuzhiyuncopy, modify, sublicense, link with, or distribute the Library is void, and
303*4882a593Smuzhiyunwill automatically terminate your rights under this License. However, parties
304*4882a593Smuzhiyunwho have received copies, or rights, from you under this License will not
305*4882a593Smuzhiyunhave their licenses terminated so long as such parties remain in full compliance.
306*4882a593Smuzhiyun
307*4882a593Smuzhiyun9. You are not required to accept this License, since you have not signed
308*4882a593Smuzhiyunit. However, nothing else grants you permission to modify or distribute the
309*4882a593SmuzhiyunLibrary or its derivative works. These actions are prohibited by law if you
310*4882a593Smuzhiyundo not accept this License. Therefore, by modifying or distributing the Library
311*4882a593Smuzhiyun(or any work based on the Library), you indicate your acceptance of this License
312*4882a593Smuzhiyunto do so, and all its terms and conditions for copying, distributing or modifying
313*4882a593Smuzhiyunthe Library or works based on it.
314*4882a593Smuzhiyun
315*4882a593Smuzhiyun10. Each time you redistribute the Library (or any work based on the Library),
316*4882a593Smuzhiyunthe recipient automatically receives a license from the original licensor
317*4882a593Smuzhiyunto copy, distribute, link with or modify the Library subject to these terms
318*4882a593Smuzhiyunand conditions. You may not impose any further restrictions on the recipients'
319*4882a593Smuzhiyunexercise of the rights granted herein. You are not responsible for enforcing
320*4882a593Smuzhiyuncompliance by third parties to this License.
321*4882a593Smuzhiyun
322*4882a593Smuzhiyun11. If, as a consequence of a court judgment or allegation of patent infringement
323*4882a593Smuzhiyunor for any other reason (not limited to patent issues), conditions are imposed
324*4882a593Smuzhiyunon you (whether by court order, agreement or otherwise) that contradict the
325*4882a593Smuzhiyunconditions of this License, they do not excuse you from the conditions of
326*4882a593Smuzhiyunthis License. If you cannot distribute so as to satisfy simultaneously your
327*4882a593Smuzhiyunobligations under this License and any other pertinent obligations, then as
328*4882a593Smuzhiyuna consequence you may not distribute the Library at all. For example, if a
329*4882a593Smuzhiyunpatent license would not permit royalty-free redistribution of the Library
330*4882a593Smuzhiyunby all those who receive copies directly or indirectly through you, then the
331*4882a593Smuzhiyunonly way you could satisfy both it and this License would be to refrain entirely
332*4882a593Smuzhiyunfrom distribution of the Library.
333*4882a593Smuzhiyun
334*4882a593SmuzhiyunIf any portion of this section is held invalid or unenforceable under any
335*4882a593Smuzhiyunparticular circumstance, the balance of the section is intended to apply,
336*4882a593Smuzhiyunand the section as a whole is intended to apply in other circumstances.
337*4882a593Smuzhiyun
338*4882a593SmuzhiyunIt is not the purpose of this section to induce you to infringe any patents
339*4882a593Smuzhiyunor other property right claims or to contest validity of any such claims;
340*4882a593Smuzhiyunthis section has the sole purpose of protecting the integrity of the free
341*4882a593Smuzhiyunsoftware distribution system which is implemented by public license practices.
342*4882a593SmuzhiyunMany people have made generous contributions to the wide range of software
343*4882a593Smuzhiyundistributed through that system in reliance on consistent application of that
344*4882a593Smuzhiyunsystem; it is up to the author/donor to decide if he or she is willing to
345*4882a593Smuzhiyundistribute software through any other system and a licensee cannot impose
346*4882a593Smuzhiyunthat choice.
347*4882a593Smuzhiyun
348*4882a593SmuzhiyunThis section is intended to make thoroughly clear what is believed to be a
349*4882a593Smuzhiyunconsequence of the rest of this License.
350*4882a593Smuzhiyun
351*4882a593Smuzhiyun12. If the distribution and/or use of the Library is restricted in certain
352*4882a593Smuzhiyuncountries either by patents or by copyrighted interfaces, the original copyright
353*4882a593Smuzhiyunholder who places the Library under this License may add an explicit geographical
354*4882a593Smuzhiyundistribution limitation excluding those countries, so that distribution is
355*4882a593Smuzhiyunpermitted only in or among countries not thus excluded. In such case, this
356*4882a593SmuzhiyunLicense incorporates the limitation as if written in the body of this License.
357*4882a593Smuzhiyun
358*4882a593Smuzhiyun13. The Free Software Foundation may publish revised and/or new versions of
359*4882a593Smuzhiyunthe Library General Public License from time to time. Such new versions will
360*4882a593Smuzhiyunbe similar in spirit to the present version, but may differ in detail to address
361*4882a593Smuzhiyunnew problems or concerns.
362*4882a593Smuzhiyun
363*4882a593SmuzhiyunEach version is given a distinguishing version number. If the Library specifies
364*4882a593Smuzhiyuna version number of this License which applies to it and "any later version",
365*4882a593Smuzhiyunyou have the option of following the terms and conditions either of that version
366*4882a593Smuzhiyunor of any later version published by the Free Software Foundation. If the
367*4882a593SmuzhiyunLibrary does not specify a license version number, you may choose any version
368*4882a593Smuzhiyunever published by the Free Software Foundation.
369*4882a593Smuzhiyun
370*4882a593Smuzhiyun14. If you wish to incorporate parts of the Library into other free programs
371*4882a593Smuzhiyunwhose distribution conditions are incompatible with these, write to the author
372*4882a593Smuzhiyunto ask for permission. For software which is copyrighted by the Free Software
373*4882a593SmuzhiyunFoundation, write to the Free Software Foundation; we sometimes make exceptions
374*4882a593Smuzhiyunfor this. Our decision will be guided by the two goals of preserving the free
375*4882a593Smuzhiyunstatus of all derivatives of our free software and of promoting the sharing
376*4882a593Smuzhiyunand reuse of software generally.
377*4882a593Smuzhiyun
378*4882a593Smuzhiyun   NO WARRANTY
379*4882a593Smuzhiyun
380*4882a593Smuzhiyun15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR
381*4882a593SmuzhiyunTHE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE
382*4882a593SmuzhiyunSTATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY
383*4882a593Smuzhiyun"AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
384*4882a593SmuzhiyunBUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
385*4882a593SmuzhiyunFOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
386*4882a593SmuzhiyunOF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
387*4882a593SmuzhiyunTHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
388*4882a593Smuzhiyun
389*4882a593Smuzhiyun16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
390*4882a593SmuzhiyunWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE
391*4882a593SmuzhiyunTHE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
392*4882a593SmuzhiyunGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE
393*4882a593SmuzhiyunOR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA
394*4882a593SmuzhiyunOR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES
395*4882a593SmuzhiyunOR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH
396*4882a593SmuzhiyunHOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
397*4882a593SmuzhiyunEND OF TERMS AND CONDITIONS
398*4882a593Smuzhiyun
399*4882a593SmuzhiyunHow to Apply These Terms to Your New Libraries
400*4882a593Smuzhiyun
401*4882a593SmuzhiyunIf you develop a new library, and you want it to be of the greatest possible
402*4882a593Smuzhiyunuse to the public, we recommend making it free software that everyone can
403*4882a593Smuzhiyunredistribute and change. You can do so by permitting redistribution under
404*4882a593Smuzhiyunthese terms (or, alternatively, under the terms of the ordinary General Public
405*4882a593SmuzhiyunLicense).
406*4882a593Smuzhiyun
407*4882a593SmuzhiyunTo apply these terms, attach the following notices to the library. It is safest
408*4882a593Smuzhiyunto attach them to the start of each source file to most effectively convey
409*4882a593Smuzhiyunthe exclusion of warranty; and each file should have at least the "copyright"
410*4882a593Smuzhiyunline and a pointer to where the full notice is found.
411*4882a593Smuzhiyun
412*4882a593Smuzhiyunone line to give the library's name and an idea of what it does.
413*4882a593Smuzhiyun
414*4882a593SmuzhiyunCopyright (C) year name of author
415*4882a593Smuzhiyun
416*4882a593SmuzhiyunThis library is free software; you can redistribute it and/or modify it under
417*4882a593Smuzhiyunthe terms of the GNU Library General Public License as published by the Free
418*4882a593SmuzhiyunSoftware Foundation; either version 2 of the License, or (at your option)
419*4882a593Smuzhiyunany later version.
420*4882a593Smuzhiyun
421*4882a593SmuzhiyunThis library is distributed in the hope that it will be useful, but WITHOUT
422*4882a593SmuzhiyunANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
423*4882a593SmuzhiyunFOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
424*4882a593Smuzhiyundetails.
425*4882a593Smuzhiyun
426*4882a593SmuzhiyunYou should have received a copy of the GNU Library General Public License
427*4882a593Smuzhiyunalong with this library; if not, write to the Free Software Foundation, Inc.,
428*4882a593Smuzhiyun51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
429*4882a593Smuzhiyun
430*4882a593SmuzhiyunAlso add information on how to contact you by electronic and paper mail.
431*4882a593Smuzhiyun
432*4882a593SmuzhiyunYou should also get your employer (if you work as a programmer) or your school,
433*4882a593Smuzhiyunif any, to sign a "copyright disclaimer" for the library, if necessary. Here
434*4882a593Smuzhiyunis a sample; alter the names:
435*4882a593Smuzhiyun
436*4882a593SmuzhiyunYoyodyne, Inc., hereby disclaims all copyright interest in
437*4882a593Smuzhiyun
438*4882a593Smuzhiyunthe library `Frob' (a library for tweaking knobs) written
439*4882a593Smuzhiyun
440*4882a593Smuzhiyunby James Random Hacker.
441*4882a593Smuzhiyun
442*4882a593Smuzhiyunsignature of Ty Coon, 1 April 1990
443*4882a593Smuzhiyun
444*4882a593SmuzhiyunTy Coon, President of Vice
445*4882a593Smuzhiyun
446*4882a593SmuzhiyunThat's all there is to it!
447