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