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