1*a53002f4SWolfgang Denk GNU LIBRARY GENERAL PUBLIC LICENSE 2*a53002f4SWolfgang Denk Version 2, June 1991 3*a53002f4SWolfgang Denk 4*a53002f4SWolfgang Denk Copyright (C) 1991 Free Software Foundation, Inc. 5*a53002f4SWolfgang Denk 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6*a53002f4SWolfgang Denk Everyone is permitted to copy and distribute verbatim copies 7*a53002f4SWolfgang Denk of this license document, but changing it is not allowed. 8*a53002f4SWolfgang Denk 9*a53002f4SWolfgang Denk[This is the first released version of the library GPL. It is 10*a53002f4SWolfgang Denk numbered 2 because it goes with version 2 of the ordinary GPL.] 11*a53002f4SWolfgang Denk 12*a53002f4SWolfgang Denk Preamble 13*a53002f4SWolfgang Denk 14*a53002f4SWolfgang Denk The licenses for most software are designed to take away your 15*a53002f4SWolfgang Denkfreedom to share and change it. By contrast, the GNU General Public 16*a53002f4SWolfgang DenkLicenses are intended to guarantee your freedom to share and change 17*a53002f4SWolfgang Denkfree software--to make sure the software is free for all its users. 18*a53002f4SWolfgang Denk 19*a53002f4SWolfgang Denk This license, the Library General Public License, applies to some 20*a53002f4SWolfgang Denkspecially designated Free Software Foundation software, and to any 21*a53002f4SWolfgang Denkother libraries whose authors decide to use it. You can use it for 22*a53002f4SWolfgang Denkyour libraries, too. 23*a53002f4SWolfgang Denk 24*a53002f4SWolfgang Denk When we speak of free software, we are referring to freedom, not 25*a53002f4SWolfgang Denkprice. Our General Public Licenses are designed to make sure that you 26*a53002f4SWolfgang Denkhave the freedom to distribute copies of free software (and charge for 27*a53002f4SWolfgang Denkthis service if you wish), that you receive source code or can get it 28*a53002f4SWolfgang Denkif you want it, that you can change the software or use pieces of it 29*a53002f4SWolfgang Denkin new free programs; and that you know you can do these things. 30*a53002f4SWolfgang Denk 31*a53002f4SWolfgang Denk To protect your rights, we need to make restrictions that forbid 32*a53002f4SWolfgang Denkanyone to deny you these rights or to ask you to surrender the rights. 33*a53002f4SWolfgang DenkThese restrictions translate to certain responsibilities for you if 34*a53002f4SWolfgang Denkyou distribute copies of the library, or if you modify it. 35*a53002f4SWolfgang Denk 36*a53002f4SWolfgang Denk For example, if you distribute copies of the library, whether gratis 37*a53002f4SWolfgang Denkor for a fee, you must give the recipients all the rights that we gave 38*a53002f4SWolfgang Denkyou. You must make sure that they, too, receive or can get the source 39*a53002f4SWolfgang Denkcode. If you link a program with the library, you must provide 40*a53002f4SWolfgang Denkcomplete object files to the recipients so that they can relink them 41*a53002f4SWolfgang Denkwith the library, after making changes to the library and recompiling 42*a53002f4SWolfgang Denkit. And you must show them these terms so they know their rights. 43*a53002f4SWolfgang Denk 44*a53002f4SWolfgang Denk Our method of protecting your rights has two steps: (1) copyright 45*a53002f4SWolfgang Denkthe library, and (2) offer you this license which gives you legal 46*a53002f4SWolfgang Denkpermission to copy, distribute and/or modify the library. 47*a53002f4SWolfgang Denk 48*a53002f4SWolfgang Denk Also, for each distributor's protection, we want to make certain 49*a53002f4SWolfgang Denkthat everyone understands that there is no warranty for this free 50*a53002f4SWolfgang Denklibrary. If the library is modified by someone else and passed on, we 51*a53002f4SWolfgang Denkwant its recipients to know that what they have is not the original 52*a53002f4SWolfgang Denkversion, so that any problems introduced by others will not reflect on 53*a53002f4SWolfgang Denkthe original authors' reputations. 54*a53002f4SWolfgang Denk 55*a53002f4SWolfgang Denk Finally, any free program is threatened constantly by software 56*a53002f4SWolfgang Denkpatents. We wish to avoid the danger that companies distributing free 57*a53002f4SWolfgang Denksoftware will individually obtain patent licenses, thus in effect 58*a53002f4SWolfgang Denktransforming the program into proprietary software. To prevent this, 59*a53002f4SWolfgang Denkwe have made it clear that any patent must be licensed for everyone's 60*a53002f4SWolfgang Denkfree use or not licensed at all. 61*a53002f4SWolfgang Denk 62*a53002f4SWolfgang Denk Most GNU software, including some libraries, is covered by the ordinary 63*a53002f4SWolfgang DenkGNU General Public License, which was designed for utility programs. This 64*a53002f4SWolfgang Denklicense, the GNU Library General Public License, applies to certain 65*a53002f4SWolfgang Denkdesignated libraries. This license is quite different from the ordinary 66*a53002f4SWolfgang Denkone; be sure to read it in full, and don't assume that anything in it is 67*a53002f4SWolfgang Denkthe same as in the ordinary license. 68*a53002f4SWolfgang Denk 69*a53002f4SWolfgang Denk The reason we have a separate public license for some libraries is that 70*a53002f4SWolfgang Denkthey blur the distinction we usually make between modifying or adding to a 71*a53002f4SWolfgang Denkprogram and simply using it. Linking a program with a library, without 72*a53002f4SWolfgang Denkchanging the library, is in some sense simply using the library, and is 73*a53002f4SWolfgang Denkanalogous to running a utility program or application program. However, in 74*a53002f4SWolfgang Denka textual and legal sense, the linked executable is a combined work, a 75*a53002f4SWolfgang Denkderivative of the original library, and the ordinary General Public License 76*a53002f4SWolfgang Denktreats it as such. 77*a53002f4SWolfgang Denk 78*a53002f4SWolfgang Denk Because of this blurred distinction, using the ordinary General 79*a53002f4SWolfgang DenkPublic License for libraries did not effectively promote software 80*a53002f4SWolfgang Denksharing, because most developers did not use the libraries. We 81*a53002f4SWolfgang Denkconcluded that weaker conditions might promote sharing better. 82*a53002f4SWolfgang Denk 83*a53002f4SWolfgang Denk However, unrestricted linking of non-free programs would deprive the 84*a53002f4SWolfgang Denkusers of those programs of all benefit from the free status of the 85*a53002f4SWolfgang Denklibraries themselves. This Library General Public License is intended to 86*a53002f4SWolfgang Denkpermit developers of non-free programs to use free libraries, while 87*a53002f4SWolfgang Denkpreserving your freedom as a user of such programs to change the free 88*a53002f4SWolfgang Denklibraries that are incorporated in them. (We have not seen how to achieve 89*a53002f4SWolfgang Denkthis as regards changes in header files, but we have achieved it as regards 90*a53002f4SWolfgang Denkchanges in the actual functions of the Library.) The hope is that this 91*a53002f4SWolfgang Denkwill lead to faster development of free libraries. 92*a53002f4SWolfgang Denk 93*a53002f4SWolfgang Denk The precise terms and conditions for copying, distribution and 94*a53002f4SWolfgang Denkmodification follow. Pay close attention to the difference between a 95*a53002f4SWolfgang Denk"work based on the library" and a "work that uses the library". The 96*a53002f4SWolfgang Denkformer contains code derived from the library, while the latter only 97*a53002f4SWolfgang Denkworks together with the library. 98*a53002f4SWolfgang Denk 99*a53002f4SWolfgang Denk Note that it is possible for a library to be covered by the ordinary 100*a53002f4SWolfgang DenkGeneral Public License rather than by this special one. 101*a53002f4SWolfgang Denk 102*a53002f4SWolfgang Denk GNU LIBRARY GENERAL PUBLIC LICENSE 103*a53002f4SWolfgang Denk TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 104*a53002f4SWolfgang Denk 105*a53002f4SWolfgang Denk 0. This License Agreement applies to any software library which 106*a53002f4SWolfgang Denkcontains a notice placed by the copyright holder or other authorized 107*a53002f4SWolfgang Denkparty saying it may be distributed under the terms of this Library 108*a53002f4SWolfgang DenkGeneral Public License (also called "this License"). Each licensee is 109*a53002f4SWolfgang Denkaddressed as "you". 110*a53002f4SWolfgang Denk 111*a53002f4SWolfgang Denk A "library" means a collection of software functions and/or data 112*a53002f4SWolfgang Denkprepared so as to be conveniently linked with application programs 113*a53002f4SWolfgang Denk(which use some of those functions and data) to form executables. 114*a53002f4SWolfgang Denk 115*a53002f4SWolfgang Denk The "Library", below, refers to any such software library or work 116*a53002f4SWolfgang Denkwhich has been distributed under these terms. A "work based on the 117*a53002f4SWolfgang DenkLibrary" means either the Library or any derivative work under 118*a53002f4SWolfgang Denkcopyright law: that is to say, a work containing the Library or a 119*a53002f4SWolfgang Denkportion of it, either verbatim or with modifications and/or translated 120*a53002f4SWolfgang Denkstraightforwardly into another language. (Hereinafter, translation is 121*a53002f4SWolfgang Denkincluded without limitation in the term "modification".) 122*a53002f4SWolfgang Denk 123*a53002f4SWolfgang Denk "Source code" for a work means the preferred form of the work for 124*a53002f4SWolfgang Denkmaking modifications to it. For a library, complete source code means 125*a53002f4SWolfgang Denkall the source code for all modules it contains, plus any associated 126*a53002f4SWolfgang Denkinterface definition files, plus the scripts used to control compilation 127*a53002f4SWolfgang Denkand installation of the library. 128*a53002f4SWolfgang Denk 129*a53002f4SWolfgang Denk Activities other than copying, distribution and modification are not 130*a53002f4SWolfgang Denkcovered by this License; they are outside its scope. The act of 131*a53002f4SWolfgang Denkrunning a program using the Library is not restricted, and output from 132*a53002f4SWolfgang Denksuch a program is covered only if its contents constitute a work based 133*a53002f4SWolfgang Denkon the Library (independent of the use of the Library in a tool for 134*a53002f4SWolfgang Denkwriting it). Whether that is true depends on what the Library does 135*a53002f4SWolfgang Denkand what the program that uses the Library does. 136*a53002f4SWolfgang Denk 137*a53002f4SWolfgang Denk 1. You may copy and distribute verbatim copies of the Library's 138*a53002f4SWolfgang Denkcomplete source code as you receive it, in any medium, provided that 139*a53002f4SWolfgang Denkyou conspicuously and appropriately publish on each copy an 140*a53002f4SWolfgang Denkappropriate copyright notice and disclaimer of warranty; keep intact 141*a53002f4SWolfgang Denkall the notices that refer to this License and to the absence of any 142*a53002f4SWolfgang Denkwarranty; and distribute a copy of this License along with the 143*a53002f4SWolfgang DenkLibrary. 144*a53002f4SWolfgang Denk 145*a53002f4SWolfgang Denk You may charge a fee for the physical act of transferring a copy, 146*a53002f4SWolfgang Denkand you may at your option offer warranty protection in exchange for a 147*a53002f4SWolfgang Denkfee. 148*a53002f4SWolfgang Denk 149*a53002f4SWolfgang Denk 2. You may modify your copy or copies of the Library or any portion 150*a53002f4SWolfgang Denkof it, thus forming a work based on the Library, and copy and 151*a53002f4SWolfgang Denkdistribute such modifications or work under the terms of Section 1 152*a53002f4SWolfgang Denkabove, provided that you also meet all of these conditions: 153*a53002f4SWolfgang Denk 154*a53002f4SWolfgang Denk a) The modified work must itself be a software library. 155*a53002f4SWolfgang Denk 156*a53002f4SWolfgang Denk b) You must cause the files modified to carry prominent notices 157*a53002f4SWolfgang Denk stating that you changed the files and the date of any change. 158*a53002f4SWolfgang Denk 159*a53002f4SWolfgang Denk c) You must cause the whole of the work to be licensed at no 160*a53002f4SWolfgang Denk charge to all third parties under the terms of this License. 161*a53002f4SWolfgang Denk 162*a53002f4SWolfgang Denk d) If a facility in the modified Library refers to a function or a 163*a53002f4SWolfgang Denk table of data to be supplied by an application program that uses 164*a53002f4SWolfgang Denk the facility, other than as an argument passed when the facility 165*a53002f4SWolfgang Denk is invoked, then you must make a good faith effort to ensure that, 166*a53002f4SWolfgang Denk in the event an application does not supply such function or 167*a53002f4SWolfgang Denk table, the facility still operates, and performs whatever part of 168*a53002f4SWolfgang Denk its purpose remains meaningful. 169*a53002f4SWolfgang Denk 170*a53002f4SWolfgang Denk (For example, a function in a library to compute square roots has 171*a53002f4SWolfgang Denk a purpose that is entirely well-defined independent of the 172*a53002f4SWolfgang Denk application. Therefore, Subsection 2d requires that any 173*a53002f4SWolfgang Denk application-supplied function or table used by this function must 174*a53002f4SWolfgang Denk be optional: if the application does not supply it, the square 175*a53002f4SWolfgang Denk root function must still compute square roots.) 176*a53002f4SWolfgang Denk 177*a53002f4SWolfgang DenkThese requirements apply to the modified work as a whole. If 178*a53002f4SWolfgang Denkidentifiable sections of that work are not derived from the Library, 179*a53002f4SWolfgang Denkand can be reasonably considered independent and separate works in 180*a53002f4SWolfgang Denkthemselves, then this License, and its terms, do not apply to those 181*a53002f4SWolfgang Denksections when you distribute them as separate works. But when you 182*a53002f4SWolfgang Denkdistribute the same sections as part of a whole which is a work based 183*a53002f4SWolfgang Denkon the Library, the distribution of the whole must be on the terms of 184*a53002f4SWolfgang Denkthis License, whose permissions for other licensees extend to the 185*a53002f4SWolfgang Denkentire whole, and thus to each and every part regardless of who wrote 186*a53002f4SWolfgang Denkit. 187*a53002f4SWolfgang Denk 188*a53002f4SWolfgang DenkThus, it is not the intent of this section to claim rights or contest 189*a53002f4SWolfgang Denkyour rights to work written entirely by you; rather, the intent is to 190*a53002f4SWolfgang Denkexercise the right to control the distribution of derivative or 191*a53002f4SWolfgang Denkcollective works based on the Library. 192*a53002f4SWolfgang Denk 193*a53002f4SWolfgang DenkIn addition, mere aggregation of another work not based on the Library 194*a53002f4SWolfgang Denkwith the Library (or with a work based on the Library) on a volume of 195*a53002f4SWolfgang Denka storage or distribution medium does not bring the other work under 196*a53002f4SWolfgang Denkthe scope of this License. 197*a53002f4SWolfgang Denk 198*a53002f4SWolfgang Denk 3. You may opt to apply the terms of the ordinary GNU General Public 199*a53002f4SWolfgang DenkLicense instead of this License to a given copy of the Library. To do 200*a53002f4SWolfgang Denkthis, you must alter all the notices that refer to this License, so 201*a53002f4SWolfgang Denkthat they refer to the ordinary GNU General Public License, version 2, 202*a53002f4SWolfgang Denkinstead of to this License. (If a newer version than version 2 of the 203*a53002f4SWolfgang Denkordinary GNU General Public License has appeared, then you can specify 204*a53002f4SWolfgang Denkthat version instead if you wish.) Do not make any other change in 205*a53002f4SWolfgang Denkthese notices. 206*a53002f4SWolfgang Denk 207*a53002f4SWolfgang Denk Once this change is made in a given copy, it is irreversible for 208*a53002f4SWolfgang Denkthat copy, so the ordinary GNU General Public License applies to all 209*a53002f4SWolfgang Denksubsequent copies and derivative works made from that copy. 210*a53002f4SWolfgang Denk 211*a53002f4SWolfgang Denk This option is useful when you wish to copy part of the code of 212*a53002f4SWolfgang Denkthe Library into a program that is not a library. 213*a53002f4SWolfgang Denk 214*a53002f4SWolfgang Denk 4. You may copy and distribute the Library (or a portion or 215*a53002f4SWolfgang Denkderivative of it, under Section 2) in object code or executable form 216*a53002f4SWolfgang Denkunder the terms of Sections 1 and 2 above provided that you accompany 217*a53002f4SWolfgang Denkit with the complete corresponding machine-readable source code, which 218*a53002f4SWolfgang Denkmust be distributed under the terms of Sections 1 and 2 above on a 219*a53002f4SWolfgang Denkmedium customarily used for software interchange. 220*a53002f4SWolfgang Denk 221*a53002f4SWolfgang Denk If distribution of object code is made by offering access to copy 222*a53002f4SWolfgang Denkfrom a designated place, then offering equivalent access to copy the 223*a53002f4SWolfgang Denksource code from the same place satisfies the requirement to 224*a53002f4SWolfgang Denkdistribute the source code, even though third parties are not 225*a53002f4SWolfgang Denkcompelled to copy the source along with the object code. 226*a53002f4SWolfgang Denk 227*a53002f4SWolfgang Denk 5. A program that contains no derivative of any portion of the 228*a53002f4SWolfgang DenkLibrary, but is designed to work with the Library by being compiled or 229*a53002f4SWolfgang Denklinked with it, is called a "work that uses the Library". Such a 230*a53002f4SWolfgang Denkwork, in isolation, is not a derivative work of the Library, and 231*a53002f4SWolfgang Denktherefore falls outside the scope of this License. 232*a53002f4SWolfgang Denk 233*a53002f4SWolfgang Denk However, linking a "work that uses the Library" with the Library 234*a53002f4SWolfgang Denkcreates an executable that is a derivative of the Library (because it 235*a53002f4SWolfgang Denkcontains portions of the Library), rather than a "work that uses the 236*a53002f4SWolfgang Denklibrary". The executable is therefore covered by this License. 237*a53002f4SWolfgang DenkSection 6 states terms for distribution of such executables. 238*a53002f4SWolfgang Denk 239*a53002f4SWolfgang Denk When a "work that uses the Library" uses material from a header file 240*a53002f4SWolfgang Denkthat is part of the Library, the object code for the work may be a 241*a53002f4SWolfgang Denkderivative work of the Library even though the source code is not. 242*a53002f4SWolfgang DenkWhether this is true is especially significant if the work can be 243*a53002f4SWolfgang Denklinked without the Library, or if the work is itself a library. The 244*a53002f4SWolfgang Denkthreshold for this to be true is not precisely defined by law. 245*a53002f4SWolfgang Denk 246*a53002f4SWolfgang Denk If such an object file uses only numerical parameters, data 247*a53002f4SWolfgang Denkstructure layouts and accessors, and small macros and small inline 248*a53002f4SWolfgang Denkfunctions (ten lines or less in length), then the use of the object 249*a53002f4SWolfgang Denkfile is unrestricted, regardless of whether it is legally a derivative 250*a53002f4SWolfgang Denkwork. (Executables containing this object code plus portions of the 251*a53002f4SWolfgang DenkLibrary will still fall under Section 6.) 252*a53002f4SWolfgang Denk 253*a53002f4SWolfgang Denk Otherwise, if the work is a derivative of the Library, you may 254*a53002f4SWolfgang Denkdistribute the object code for the work under the terms of Section 6. 255*a53002f4SWolfgang DenkAny executables containing that work also fall under Section 6, 256*a53002f4SWolfgang Denkwhether or not they are linked directly with the Library itself. 257*a53002f4SWolfgang Denk 258*a53002f4SWolfgang Denk 6. As an exception to the Sections above, you may also compile or 259*a53002f4SWolfgang Denklink a "work that uses the Library" with the Library to produce a 260*a53002f4SWolfgang Denkwork containing portions of the Library, and distribute that work 261*a53002f4SWolfgang Denkunder terms of your choice, provided that the terms permit 262*a53002f4SWolfgang Denkmodification of the work for the customer's own use and reverse 263*a53002f4SWolfgang Denkengineering for debugging such modifications. 264*a53002f4SWolfgang Denk 265*a53002f4SWolfgang Denk You must give prominent notice with each copy of the work that the 266*a53002f4SWolfgang DenkLibrary is used in it and that the Library and its use are covered by 267*a53002f4SWolfgang Denkthis License. You must supply a copy of this License. If the work 268*a53002f4SWolfgang Denkduring execution displays copyright notices, you must include the 269*a53002f4SWolfgang Denkcopyright notice for the Library among them, as well as a reference 270*a53002f4SWolfgang Denkdirecting the user to the copy of this License. Also, you must do one 271*a53002f4SWolfgang Denkof these things: 272*a53002f4SWolfgang Denk 273*a53002f4SWolfgang Denk a) Accompany the work with the complete corresponding 274*a53002f4SWolfgang Denk machine-readable source code for the Library including whatever 275*a53002f4SWolfgang Denk changes were used in the work (which must be distributed under 276*a53002f4SWolfgang Denk Sections 1 and 2 above); and, if the work is an executable linked 277*a53002f4SWolfgang Denk with the Library, with the complete machine-readable "work that 278*a53002f4SWolfgang Denk uses the Library", as object code and/or source code, so that the 279*a53002f4SWolfgang Denk user can modify the Library and then relink to produce a modified 280*a53002f4SWolfgang Denk executable containing the modified Library. (It is understood 281*a53002f4SWolfgang Denk that the user who changes the contents of definitions files in the 282*a53002f4SWolfgang Denk Library will not necessarily be able to recompile the application 283*a53002f4SWolfgang Denk to use the modified definitions.) 284*a53002f4SWolfgang Denk 285*a53002f4SWolfgang Denk b) Accompany the work with a written offer, valid for at 286*a53002f4SWolfgang Denk least three years, to give the same user the materials 287*a53002f4SWolfgang Denk specified in Subsection 6a, above, for a charge no more 288*a53002f4SWolfgang Denk than the cost of performing this distribution. 289*a53002f4SWolfgang Denk 290*a53002f4SWolfgang Denk c) If distribution of the work is made by offering access to copy 291*a53002f4SWolfgang Denk from a designated place, offer equivalent access to copy the above 292*a53002f4SWolfgang Denk specified materials from the same place. 293*a53002f4SWolfgang Denk 294*a53002f4SWolfgang Denk d) Verify that the user has already received a copy of these 295*a53002f4SWolfgang Denk materials or that you have already sent this user a copy. 296*a53002f4SWolfgang Denk 297*a53002f4SWolfgang Denk For an executable, the required form of the "work that uses the 298*a53002f4SWolfgang DenkLibrary" must include any data and utility programs needed for 299*a53002f4SWolfgang Denkreproducing the executable from it. However, as a special exception, 300*a53002f4SWolfgang Denkthe source code distributed need not include anything that is normally 301*a53002f4SWolfgang Denkdistributed (in either source or binary form) with the major 302*a53002f4SWolfgang Denkcomponents (compiler, kernel, and so on) of the operating system on 303*a53002f4SWolfgang Denkwhich the executable runs, unless that component itself accompanies 304*a53002f4SWolfgang Denkthe executable. 305*a53002f4SWolfgang Denk 306*a53002f4SWolfgang Denk It may happen that this requirement contradicts the license 307*a53002f4SWolfgang Denkrestrictions of other proprietary libraries that do not normally 308*a53002f4SWolfgang Denkaccompany the operating system. Such a contradiction means you cannot 309*a53002f4SWolfgang Denkuse both them and the Library together in an executable that you 310*a53002f4SWolfgang Denkdistribute. 311*a53002f4SWolfgang Denk 312*a53002f4SWolfgang Denk 7. You may place library facilities that are a work based on the 313*a53002f4SWolfgang DenkLibrary side-by-side in a single library together with other library 314*a53002f4SWolfgang Denkfacilities not covered by this License, and distribute such a combined 315*a53002f4SWolfgang Denklibrary, provided that the separate distribution of the work based on 316*a53002f4SWolfgang Denkthe Library and of the other library facilities is otherwise 317*a53002f4SWolfgang Denkpermitted, and provided that you do these two things: 318*a53002f4SWolfgang Denk 319*a53002f4SWolfgang Denk a) Accompany the combined library with a copy of the same work 320*a53002f4SWolfgang Denk based on the Library, uncombined with any other library 321*a53002f4SWolfgang Denk facilities. This must be distributed under the terms of the 322*a53002f4SWolfgang Denk Sections above. 323*a53002f4SWolfgang Denk 324*a53002f4SWolfgang Denk b) Give prominent notice with the combined library of the fact 325*a53002f4SWolfgang Denk that part of it is a work based on the Library, and explaining 326*a53002f4SWolfgang Denk where to find the accompanying uncombined form of the same work. 327*a53002f4SWolfgang Denk 328*a53002f4SWolfgang Denk 8. You may not copy, modify, sublicense, link with, or distribute 329*a53002f4SWolfgang Denkthe Library except as expressly provided under this License. Any 330*a53002f4SWolfgang Denkattempt otherwise to copy, modify, sublicense, link with, or 331*a53002f4SWolfgang Denkdistribute the Library is void, and will automatically terminate your 332*a53002f4SWolfgang Denkrights under this License. However, parties who have received copies, 333*a53002f4SWolfgang Denkor rights, from you under this License will not have their licenses 334*a53002f4SWolfgang Denkterminated so long as such parties remain in full compliance. 335*a53002f4SWolfgang Denk 336*a53002f4SWolfgang Denk 9. You are not required to accept this License, since you have not 337*a53002f4SWolfgang Denksigned it. However, nothing else grants you permission to modify or 338*a53002f4SWolfgang Denkdistribute the Library or its derivative works. These actions are 339*a53002f4SWolfgang Denkprohibited by law if you do not accept this License. Therefore, by 340*a53002f4SWolfgang Denkmodifying or distributing the Library (or any work based on the 341*a53002f4SWolfgang DenkLibrary), you indicate your acceptance of this License to do so, and 342*a53002f4SWolfgang Denkall its terms and conditions for copying, distributing or modifying 343*a53002f4SWolfgang Denkthe Library or works based on it. 344*a53002f4SWolfgang Denk 345*a53002f4SWolfgang Denk 10. Each time you redistribute the Library (or any work based on the 346*a53002f4SWolfgang DenkLibrary), the recipient automatically receives a license from the 347*a53002f4SWolfgang Denkoriginal licensor to copy, distribute, link with or modify the Library 348*a53002f4SWolfgang Denksubject to these terms and conditions. You may not impose any further 349*a53002f4SWolfgang Denkrestrictions on the recipients' exercise of the rights granted herein. 350*a53002f4SWolfgang DenkYou are not responsible for enforcing compliance by third parties to 351*a53002f4SWolfgang Denkthis License. 352*a53002f4SWolfgang Denk 353*a53002f4SWolfgang Denk 11. If, as a consequence of a court judgment or allegation of patent 354*a53002f4SWolfgang Denkinfringement or for any other reason (not limited to patent issues), 355*a53002f4SWolfgang Denkconditions are imposed on you (whether by court order, agreement or 356*a53002f4SWolfgang Denkotherwise) that contradict the conditions of this License, they do not 357*a53002f4SWolfgang Denkexcuse you from the conditions of this License. If you cannot 358*a53002f4SWolfgang Denkdistribute so as to satisfy simultaneously your obligations under this 359*a53002f4SWolfgang DenkLicense and any other pertinent obligations, then as a consequence you 360*a53002f4SWolfgang Denkmay not distribute the Library at all. For example, if a patent 361*a53002f4SWolfgang Denklicense would not permit royalty-free redistribution of the Library by 362*a53002f4SWolfgang Denkall those who receive copies directly or indirectly through you, then 363*a53002f4SWolfgang Denkthe only way you could satisfy both it and this License would be to 364*a53002f4SWolfgang Denkrefrain entirely from distribution of the Library. 365*a53002f4SWolfgang Denk 366*a53002f4SWolfgang DenkIf any portion of this section is held invalid or unenforceable under any 367*a53002f4SWolfgang Denkparticular circumstance, the balance of the section is intended to apply, 368*a53002f4SWolfgang Denkand the section as a whole is intended to apply in other circumstances. 369*a53002f4SWolfgang Denk 370*a53002f4SWolfgang DenkIt is not the purpose of this section to induce you to infringe any 371*a53002f4SWolfgang Denkpatents or other property right claims or to contest validity of any 372*a53002f4SWolfgang Denksuch claims; this section has the sole purpose of protecting the 373*a53002f4SWolfgang Denkintegrity of the free software distribution system which is 374*a53002f4SWolfgang Denkimplemented by public license practices. Many people have made 375*a53002f4SWolfgang Denkgenerous contributions to the wide range of software distributed 376*a53002f4SWolfgang Denkthrough that system in reliance on consistent application of that 377*a53002f4SWolfgang Denksystem; it is up to the author/donor to decide if he or she is willing 378*a53002f4SWolfgang Denkto distribute software through any other system and a licensee cannot 379*a53002f4SWolfgang Denkimpose that choice. 380*a53002f4SWolfgang Denk 381*a53002f4SWolfgang DenkThis section is intended to make thoroughly clear what is believed to 382*a53002f4SWolfgang Denkbe a consequence of the rest of this License. 383*a53002f4SWolfgang Denk 384*a53002f4SWolfgang Denk 12. If the distribution and/or use of the Library is restricted in 385*a53002f4SWolfgang Denkcertain countries either by patents or by copyrighted interfaces, the 386*a53002f4SWolfgang Denkoriginal copyright holder who places the Library under this License may add 387*a53002f4SWolfgang Denkan explicit geographical distribution limitation excluding those countries, 388*a53002f4SWolfgang Denkso that distribution is permitted only in or among countries not thus 389*a53002f4SWolfgang Denkexcluded. In such case, this License incorporates the limitation as if 390*a53002f4SWolfgang Denkwritten in the body of this License. 391*a53002f4SWolfgang Denk 392*a53002f4SWolfgang Denk 13. The Free Software Foundation may publish revised and/or new 393*a53002f4SWolfgang Denkversions of the Library General Public License from time to time. 394*a53002f4SWolfgang DenkSuch new versions will be similar in spirit to the present version, 395*a53002f4SWolfgang Denkbut may differ in detail to address new problems or concerns. 396*a53002f4SWolfgang Denk 397*a53002f4SWolfgang DenkEach version is given a distinguishing version number. If the Library 398*a53002f4SWolfgang Denkspecifies a version number of this License which applies to it and 399*a53002f4SWolfgang Denk"any later version", you have the option of following the terms and 400*a53002f4SWolfgang Denkconditions either of that version or of any later version published by 401*a53002f4SWolfgang Denkthe Free Software Foundation. If the Library does not specify a 402*a53002f4SWolfgang Denklicense version number, you may choose any version ever published by 403*a53002f4SWolfgang Denkthe Free Software Foundation. 404*a53002f4SWolfgang Denk 405*a53002f4SWolfgang Denk 14. If you wish to incorporate parts of the Library into other free 406*a53002f4SWolfgang Denkprograms whose distribution conditions are incompatible with these, 407*a53002f4SWolfgang Denkwrite to the author to ask for permission. For software which is 408*a53002f4SWolfgang Denkcopyrighted by the Free Software Foundation, write to the Free 409*a53002f4SWolfgang DenkSoftware Foundation; we sometimes make exceptions for this. Our 410*a53002f4SWolfgang Denkdecision will be guided by the two goals of preserving the free status 411*a53002f4SWolfgang Denkof all derivatives of our free software and of promoting the sharing 412*a53002f4SWolfgang Denkand reuse of software generally. 413*a53002f4SWolfgang Denk 414*a53002f4SWolfgang Denk NO WARRANTY 415*a53002f4SWolfgang Denk 416*a53002f4SWolfgang Denk 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 417*a53002f4SWolfgang DenkWARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 418*a53002f4SWolfgang DenkEXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 419*a53002f4SWolfgang DenkOTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 420*a53002f4SWolfgang DenkKIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 421*a53002f4SWolfgang DenkIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 422*a53002f4SWolfgang DenkPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 423*a53002f4SWolfgang DenkLIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 424*a53002f4SWolfgang DenkTHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 425*a53002f4SWolfgang Denk 426*a53002f4SWolfgang Denk 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 427*a53002f4SWolfgang DenkWRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 428*a53002f4SWolfgang DenkAND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 429*a53002f4SWolfgang DenkFOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 430*a53002f4SWolfgang DenkCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 431*a53002f4SWolfgang DenkLIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 432*a53002f4SWolfgang DenkRENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 433*a53002f4SWolfgang DenkFAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 434*a53002f4SWolfgang DenkSUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 435*a53002f4SWolfgang DenkDAMAGES. 436*a53002f4SWolfgang Denk 437*a53002f4SWolfgang Denk END OF TERMS AND CONDITIONS 438*a53002f4SWolfgang Denk 439*a53002f4SWolfgang Denk How to Apply These Terms to Your New Libraries 440*a53002f4SWolfgang Denk 441*a53002f4SWolfgang Denk If you develop a new library, and you want it to be of the greatest 442*a53002f4SWolfgang Denkpossible use to the public, we recommend making it free software that 443*a53002f4SWolfgang Denkeveryone can redistribute and change. You can do so by permitting 444*a53002f4SWolfgang Denkredistribution under these terms (or, alternatively, under the terms of the 445*a53002f4SWolfgang Denkordinary General Public License). 446*a53002f4SWolfgang Denk 447*a53002f4SWolfgang Denk To apply these terms, attach the following notices to the library. It is 448*a53002f4SWolfgang Denksafest to attach them to the start of each source file to most effectively 449*a53002f4SWolfgang Denkconvey the exclusion of warranty; and each file should have at least the 450*a53002f4SWolfgang Denk"copyright" line and a pointer to where the full notice is found. 451*a53002f4SWolfgang Denk 452*a53002f4SWolfgang Denk <one line to give the library's name and a brief idea of what it does.> 453*a53002f4SWolfgang Denk Copyright (C) <year> <name of author> 454*a53002f4SWolfgang Denk 455*a53002f4SWolfgang Denk This library is free software; you can redistribute it and/or 456*a53002f4SWolfgang Denk modify it under the terms of the GNU Library General Public 457*a53002f4SWolfgang Denk License as published by the Free Software Foundation; either 458*a53002f4SWolfgang Denk version 2 of the License, or (at your option) any later version. 459*a53002f4SWolfgang Denk 460*a53002f4SWolfgang Denk This library is distributed in the hope that it will be useful, 461*a53002f4SWolfgang Denk but WITHOUT ANY WARRANTY; without even the implied warranty of 462*a53002f4SWolfgang Denk MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 463*a53002f4SWolfgang Denk Library General Public License for more details. 464*a53002f4SWolfgang Denk 465*a53002f4SWolfgang Denk You should have received a copy of the GNU Library General Public 466*a53002f4SWolfgang Denk License along with this library; if not, write to the Free Software 467*a53002f4SWolfgang Denk Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 468*a53002f4SWolfgang Denk 469*a53002f4SWolfgang DenkAlso add information on how to contact you by electronic and paper mail. 470*a53002f4SWolfgang Denk 471*a53002f4SWolfgang DenkYou should also get your employer (if you work as a programmer) or your 472*a53002f4SWolfgang Denkschool, if any, to sign a "copyright disclaimer" for the library, if 473*a53002f4SWolfgang Denknecessary. Here is a sample; alter the names: 474*a53002f4SWolfgang Denk 475*a53002f4SWolfgang Denk Yoyodyne, Inc., hereby disclaims all copyright interest in the 476*a53002f4SWolfgang Denk library `Frob' (a library for tweaking knobs) written by James Random Hacker. 477*a53002f4SWolfgang Denk 478*a53002f4SWolfgang Denk <signature of Ty Coon>, 1 April 1990 479*a53002f4SWolfgang Denk Ty Coon, President of Vice 480*a53002f4SWolfgang Denk 481*a53002f4SWolfgang DenkThat's all there is to it! 482