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