1*75fd0b74Schristos GNU GENERAL PUBLIC LICENSE 2*75fd0b74Schristos Version 2, June 1991 3*75fd0b74Schristos 4*75fd0b74Schristos Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5*75fd0b74Schristos 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6*75fd0b74Schristos Everyone is permitted to copy and distribute verbatim copies 7*75fd0b74Schristos of this license document, but changing it is not allowed. 8*75fd0b74Schristos 9*75fd0b74Schristos Preamble 10*75fd0b74Schristos 11*75fd0b74Schristos The licenses for most software are designed to take away your 12*75fd0b74Schristosfreedom to share and change it. By contrast, the GNU General Public 13*75fd0b74SchristosLicense is intended to guarantee your freedom to share and change free 14*75fd0b74Schristossoftware--to make sure the software is free for all its users. This 15*75fd0b74SchristosGeneral Public License applies to most of the Free Software 16*75fd0b74SchristosFoundation's software and to any other program whose authors commit to 17*75fd0b74Schristosusing it. (Some other Free Software Foundation software is covered by 18*75fd0b74Schristosthe GNU Library General Public License instead.) You can apply it to 19*75fd0b74Schristosyour programs, too. 20*75fd0b74Schristos 21*75fd0b74Schristos When we speak of free software, we are referring to freedom, not 22*75fd0b74Schristosprice. Our General Public Licenses are designed to make sure that you 23*75fd0b74Schristoshave the freedom to distribute copies of free software (and charge for 24*75fd0b74Schristosthis service if you wish), that you receive source code or can get it 25*75fd0b74Schristosif you want it, that you can change the software or use pieces of it 26*75fd0b74Schristosin new free programs; and that you know you can do these things. 27*75fd0b74Schristos 28*75fd0b74Schristos To protect your rights, we need to make restrictions that forbid 29*75fd0b74Schristosanyone to deny you these rights or to ask you to surrender the rights. 30*75fd0b74SchristosThese restrictions translate to certain responsibilities for you if you 31*75fd0b74Schristosdistribute copies of the software, or if you modify it. 32*75fd0b74Schristos 33*75fd0b74Schristos For example, if you distribute copies of such a program, whether 34*75fd0b74Schristosgratis or for a fee, you must give the recipients all the rights that 35*75fd0b74Schristosyou have. You must make sure that they, too, receive or can get the 36*75fd0b74Schristossource code. And you must show them these terms so they know their 37*75fd0b74Schristosrights. 38*75fd0b74Schristos 39*75fd0b74Schristos We protect your rights with two steps: (1) copyright the software, and 40*75fd0b74Schristos(2) offer you this license which gives you legal permission to copy, 41*75fd0b74Schristosdistribute and/or modify the software. 42*75fd0b74Schristos 43*75fd0b74Schristos Also, for each author's protection and ours, we want to make certain 44*75fd0b74Schristosthat everyone understands that there is no warranty for this free 45*75fd0b74Schristossoftware. If the software is modified by someone else and passed on, we 46*75fd0b74Schristoswant its recipients to know that what they have is not the original, so 47*75fd0b74Schristosthat any problems introduced by others will not reflect on the original 48*75fd0b74Schristosauthors' reputations. 49*75fd0b74Schristos 50*75fd0b74Schristos Finally, any free program is threatened constantly by software 51*75fd0b74Schristospatents. We wish to avoid the danger that redistributors of a free 52*75fd0b74Schristosprogram will individually obtain patent licenses, in effect making the 53*75fd0b74Schristosprogram proprietary. To prevent this, we have made it clear that any 54*75fd0b74Schristospatent must be licensed for everyone's free use or not licensed at all. 55*75fd0b74Schristos 56*75fd0b74Schristos The precise terms and conditions for copying, distribution and 57*75fd0b74Schristosmodification follow. 58*75fd0b74Schristos 59*75fd0b74Schristos GNU GENERAL PUBLIC LICENSE 60*75fd0b74Schristos TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61*75fd0b74Schristos 62*75fd0b74Schristos 0. This License applies to any program or other work which contains 63*75fd0b74Schristosa notice placed by the copyright holder saying it may be distributed 64*75fd0b74Schristosunder the terms of this General Public License. The "Program", below, 65*75fd0b74Schristosrefers to any such program or work, and a "work based on the Program" 66*75fd0b74Schristosmeans either the Program or any derivative work under copyright law: 67*75fd0b74Schristosthat is to say, a work containing the Program or a portion of it, 68*75fd0b74Schristoseither verbatim or with modifications and/or translated into another 69*75fd0b74Schristoslanguage. (Hereinafter, translation is included without limitation in 70*75fd0b74Schristosthe term "modification".) Each licensee is addressed as "you". 71*75fd0b74Schristos 72*75fd0b74SchristosActivities other than copying, distribution and modification are not 73*75fd0b74Schristoscovered by this License; they are outside its scope. The act of 74*75fd0b74Schristosrunning the Program is not restricted, and the output from the Program 75*75fd0b74Schristosis covered only if its contents constitute a work based on the 76*75fd0b74SchristosProgram (independent of having been made by running the Program). 77*75fd0b74SchristosWhether that is true depends on what the Program does. 78*75fd0b74Schristos 79*75fd0b74Schristos 1. You may copy and distribute verbatim copies of the Program's 80*75fd0b74Schristossource code as you receive it, in any medium, provided that you 81*75fd0b74Schristosconspicuously and appropriately publish on each copy an appropriate 82*75fd0b74Schristoscopyright notice and disclaimer of warranty; keep intact all the 83*75fd0b74Schristosnotices that refer to this License and to the absence of any warranty; 84*75fd0b74Schristosand give any other recipients of the Program a copy of this License 85*75fd0b74Schristosalong with the Program. 86*75fd0b74Schristos 87*75fd0b74SchristosYou may charge a fee for the physical act of transferring a copy, and 88*75fd0b74Schristosyou may at your option offer warranty protection in exchange for a fee. 89*75fd0b74Schristos 90*75fd0b74Schristos 2. You may modify your copy or copies of the Program or any portion 91*75fd0b74Schristosof it, thus forming a work based on the Program, and copy and 92*75fd0b74Schristosdistribute such modifications or work under the terms of Section 1 93*75fd0b74Schristosabove, provided that you also meet all of these conditions: 94*75fd0b74Schristos 95*75fd0b74Schristos a) You must cause the modified files to carry prominent notices 96*75fd0b74Schristos stating that you changed the files and the date of any change. 97*75fd0b74Schristos 98*75fd0b74Schristos b) You must cause any work that you distribute or publish, that in 99*75fd0b74Schristos whole or in part contains or is derived from the Program or any 100*75fd0b74Schristos part thereof, to be licensed as a whole at no charge to all third 101*75fd0b74Schristos parties under the terms of this License. 102*75fd0b74Schristos 103*75fd0b74Schristos c) If the modified program normally reads commands interactively 104*75fd0b74Schristos when run, you must cause it, when started running for such 105*75fd0b74Schristos interactive use in the most ordinary way, to print or display an 106*75fd0b74Schristos announcement including an appropriate copyright notice and a 107*75fd0b74Schristos notice that there is no warranty (or else, saying that you provide 108*75fd0b74Schristos a warranty) and that users may redistribute the program under 109*75fd0b74Schristos these conditions, and telling the user how to view a copy of this 110*75fd0b74Schristos License. (Exception: if the Program itself is interactive but 111*75fd0b74Schristos does not normally print such an announcement, your work based on 112*75fd0b74Schristos the Program is not required to print an announcement.) 113*75fd0b74Schristos 114*75fd0b74SchristosThese requirements apply to the modified work as a whole. If 115*75fd0b74Schristosidentifiable sections of that work are not derived from the Program, 116*75fd0b74Schristosand can be reasonably considered independent and separate works in 117*75fd0b74Schristosthemselves, then this License, and its terms, do not apply to those 118*75fd0b74Schristossections when you distribute them as separate works. But when you 119*75fd0b74Schristosdistribute the same sections as part of a whole which is a work based 120*75fd0b74Schristoson the Program, the distribution of the whole must be on the terms of 121*75fd0b74Schristosthis License, whose permissions for other licensees extend to the 122*75fd0b74Schristosentire whole, and thus to each and every part regardless of who wrote it. 123*75fd0b74Schristos 124*75fd0b74SchristosThus, it is not the intent of this section to claim rights or contest 125*75fd0b74Schristosyour rights to work written entirely by you; rather, the intent is to 126*75fd0b74Schristosexercise the right to control the distribution of derivative or 127*75fd0b74Schristoscollective works based on the Program. 128*75fd0b74Schristos 129*75fd0b74SchristosIn addition, mere aggregation of another work not based on the Program 130*75fd0b74Schristoswith the Program (or with a work based on the Program) on a volume of 131*75fd0b74Schristosa storage or distribution medium does not bring the other work under 132*75fd0b74Schristosthe scope of this License. 133*75fd0b74Schristos 134*75fd0b74Schristos 3. You may copy and distribute the Program (or a work based on it, 135*75fd0b74Schristosunder Section 2) in object code or executable form under the terms of 136*75fd0b74SchristosSections 1 and 2 above provided that you also do one of the following: 137*75fd0b74Schristos 138*75fd0b74Schristos a) Accompany it with the complete corresponding machine-readable 139*75fd0b74Schristos source code, which must be distributed under the terms of Sections 140*75fd0b74Schristos 1 and 2 above on a medium customarily used for software interchange; or, 141*75fd0b74Schristos 142*75fd0b74Schristos b) Accompany it with a written offer, valid for at least three 143*75fd0b74Schristos years, to give any third party, for a charge no more than your 144*75fd0b74Schristos cost of physically performing source distribution, a complete 145*75fd0b74Schristos machine-readable copy of the corresponding source code, to be 146*75fd0b74Schristos distributed under the terms of Sections 1 and 2 above on a medium 147*75fd0b74Schristos customarily used for software interchange; or, 148*75fd0b74Schristos 149*75fd0b74Schristos c) Accompany it with the information you received as to the offer 150*75fd0b74Schristos to distribute corresponding source code. (This alternative is 151*75fd0b74Schristos allowed only for noncommercial distribution and only if you 152*75fd0b74Schristos received the program in object code or executable form with such 153*75fd0b74Schristos an offer, in accord with Subsection b above.) 154*75fd0b74Schristos 155*75fd0b74SchristosThe source code for a work means the preferred form of the work for 156*75fd0b74Schristosmaking modifications to it. For an executable work, complete source 157*75fd0b74Schristoscode means all the source code for all modules it contains, plus any 158*75fd0b74Schristosassociated interface definition files, plus the scripts used to 159*75fd0b74Schristoscontrol compilation and installation of the executable. However, as a 160*75fd0b74Schristosspecial exception, the source code distributed need not include 161*75fd0b74Schristosanything that is normally distributed (in either source or binary 162*75fd0b74Schristosform) with the major components (compiler, kernel, and so on) of the 163*75fd0b74Schristosoperating system on which the executable runs, unless that component 164*75fd0b74Schristositself accompanies the executable. 165*75fd0b74Schristos 166*75fd0b74SchristosIf distribution of executable or object code is made by offering 167*75fd0b74Schristosaccess to copy from a designated place, then offering equivalent 168*75fd0b74Schristosaccess to copy the source code from the same place counts as 169*75fd0b74Schristosdistribution of the source code, even though third parties are not 170*75fd0b74Schristoscompelled to copy the source along with the object code. 171*75fd0b74Schristos 172*75fd0b74Schristos 4. You may not copy, modify, sublicense, or distribute the Program 173*75fd0b74Schristosexcept as expressly provided under this License. Any attempt 174*75fd0b74Schristosotherwise to copy, modify, sublicense or distribute the Program is 175*75fd0b74Schristosvoid, and will automatically terminate your rights under this License. 176*75fd0b74SchristosHowever, parties who have received copies, or rights, from you under 177*75fd0b74Schristosthis License will not have their licenses terminated so long as such 178*75fd0b74Schristosparties remain in full compliance. 179*75fd0b74Schristos 180*75fd0b74Schristos 5. You are not required to accept this License, since you have not 181*75fd0b74Schristossigned it. However, nothing else grants you permission to modify or 182*75fd0b74Schristosdistribute the Program or its derivative works. These actions are 183*75fd0b74Schristosprohibited by law if you do not accept this License. Therefore, by 184*75fd0b74Schristosmodifying or distributing the Program (or any work based on the 185*75fd0b74SchristosProgram), you indicate your acceptance of this License to do so, and 186*75fd0b74Schristosall its terms and conditions for copying, distributing or modifying 187*75fd0b74Schristosthe Program or works based on it. 188*75fd0b74Schristos 189*75fd0b74Schristos 6. Each time you redistribute the Program (or any work based on the 190*75fd0b74SchristosProgram), the recipient automatically receives a license from the 191*75fd0b74Schristosoriginal licensor to copy, distribute or modify the Program subject to 192*75fd0b74Schristosthese terms and conditions. You may not impose any further 193*75fd0b74Schristosrestrictions on the recipients' exercise of the rights granted herein. 194*75fd0b74SchristosYou are not responsible for enforcing compliance by third parties to 195*75fd0b74Schristosthis License. 196*75fd0b74Schristos 197*75fd0b74Schristos 7. If, as a consequence of a court judgment or allegation of patent 198*75fd0b74Schristosinfringement or for any other reason (not limited to patent issues), 199*75fd0b74Schristosconditions are imposed on you (whether by court order, agreement or 200*75fd0b74Schristosotherwise) that contradict the conditions of this License, they do not 201*75fd0b74Schristosexcuse you from the conditions of this License. If you cannot 202*75fd0b74Schristosdistribute so as to satisfy simultaneously your obligations under this 203*75fd0b74SchristosLicense and any other pertinent obligations, then as a consequence you 204*75fd0b74Schristosmay not distribute the Program at all. For example, if a patent 205*75fd0b74Schristoslicense would not permit royalty-free redistribution of the Program by 206*75fd0b74Schristosall those who receive copies directly or indirectly through you, then 207*75fd0b74Schristosthe only way you could satisfy both it and this License would be to 208*75fd0b74Schristosrefrain entirely from distribution of the Program. 209*75fd0b74Schristos 210*75fd0b74SchristosIf any portion of this section is held invalid or unenforceable under 211*75fd0b74Schristosany particular circumstance, the balance of the section is intended to 212*75fd0b74Schristosapply and the section as a whole is intended to apply in other 213*75fd0b74Schristoscircumstances. 214*75fd0b74Schristos 215*75fd0b74SchristosIt is not the purpose of this section to induce you to infringe any 216*75fd0b74Schristospatents or other property right claims or to contest validity of any 217*75fd0b74Schristossuch claims; this section has the sole purpose of protecting the 218*75fd0b74Schristosintegrity of the free software distribution system, which is 219*75fd0b74Schristosimplemented by public license practices. Many people have made 220*75fd0b74Schristosgenerous contributions to the wide range of software distributed 221*75fd0b74Schristosthrough that system in reliance on consistent application of that 222*75fd0b74Schristossystem; it is up to the author/donor to decide if he or she is willing 223*75fd0b74Schristosto distribute software through any other system and a licensee cannot 224*75fd0b74Schristosimpose that choice. 225*75fd0b74Schristos 226*75fd0b74SchristosThis section is intended to make thoroughly clear what is believed to 227*75fd0b74Schristosbe a consequence of the rest of this License. 228*75fd0b74Schristos 229*75fd0b74Schristos 8. If the distribution and/or use of the Program is restricted in 230*75fd0b74Schristoscertain countries either by patents or by copyrighted interfaces, the 231*75fd0b74Schristosoriginal copyright holder who places the Program under this License 232*75fd0b74Schristosmay add an explicit geographical distribution limitation excluding 233*75fd0b74Schristosthose countries, so that distribution is permitted only in or among 234*75fd0b74Schristoscountries not thus excluded. In such case, this License incorporates 235*75fd0b74Schristosthe limitation as if written in the body of this License. 236*75fd0b74Schristos 237*75fd0b74Schristos 9. The Free Software Foundation may publish revised and/or new versions 238*75fd0b74Schristosof the General Public License from time to time. Such new versions will 239*75fd0b74Schristosbe similar in spirit to the present version, but may differ in detail to 240*75fd0b74Schristosaddress new problems or concerns. 241*75fd0b74Schristos 242*75fd0b74SchristosEach version is given a distinguishing version number. If the Program 243*75fd0b74Schristosspecifies a version number of this License which applies to it and "any 244*75fd0b74Schristoslater version", you have the option of following the terms and conditions 245*75fd0b74Schristoseither of that version or of any later version published by the Free 246*75fd0b74SchristosSoftware Foundation. If the Program does not specify a version number of 247*75fd0b74Schristosthis License, you may choose any version ever published by the Free Software 248*75fd0b74SchristosFoundation. 249*75fd0b74Schristos 250*75fd0b74Schristos 10. If you wish to incorporate parts of the Program into other free 251*75fd0b74Schristosprograms whose distribution conditions are different, write to the author 252*75fd0b74Schristosto ask for permission. For software which is copyrighted by the Free 253*75fd0b74SchristosSoftware Foundation, write to the Free Software Foundation; we sometimes 254*75fd0b74Schristosmake exceptions for this. Our decision will be guided by the two goals 255*75fd0b74Schristosof preserving the free status of all derivatives of our free software and 256*75fd0b74Schristosof promoting the sharing and reuse of software generally. 257*75fd0b74Schristos 258*75fd0b74Schristos NO WARRANTY 259*75fd0b74Schristos 260*75fd0b74Schristos 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261*75fd0b74SchristosFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262*75fd0b74SchristosOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263*75fd0b74SchristosPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264*75fd0b74SchristosOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265*75fd0b74SchristosMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266*75fd0b74SchristosTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267*75fd0b74SchristosPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268*75fd0b74SchristosREPAIR OR CORRECTION. 269*75fd0b74Schristos 270*75fd0b74Schristos 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271*75fd0b74SchristosWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272*75fd0b74SchristosREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273*75fd0b74SchristosINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274*75fd0b74SchristosOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275*75fd0b74SchristosTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276*75fd0b74SchristosYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277*75fd0b74SchristosPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278*75fd0b74SchristosPOSSIBILITY OF SUCH DAMAGES. 279*75fd0b74Schristos 280*75fd0b74Schristos END OF TERMS AND CONDITIONS 281*75fd0b74Schristos 282*75fd0b74Schristos How to Apply These Terms to Your New Programs 283*75fd0b74Schristos 284*75fd0b74Schristos If you develop a new program, and you want it to be of the greatest 285*75fd0b74Schristospossible use to the public, the best way to achieve this is to make it 286*75fd0b74Schristosfree software which everyone can redistribute and change under these terms. 287*75fd0b74Schristos 288*75fd0b74Schristos To do so, attach the following notices to the program. It is safest 289*75fd0b74Schristosto attach them to the start of each source file to most effectively 290*75fd0b74Schristosconvey the exclusion of warranty; and each file should have at least 291*75fd0b74Schristosthe "copyright" line and a pointer to where the full notice is found. 292*75fd0b74Schristos 293*75fd0b74Schristos <one line to give the program's name and a brief idea of what it does.> 294*75fd0b74Schristos Copyright (C) <year> <name of author> 295*75fd0b74Schristos 296*75fd0b74Schristos This program is free software; you can redistribute it and/or modify 297*75fd0b74Schristos it under the terms of the GNU General Public License as published by 298*75fd0b74Schristos the Free Software Foundation; either version 2 of the License, or 299*75fd0b74Schristos (at your option) any later version. 300*75fd0b74Schristos 301*75fd0b74Schristos This program is distributed in the hope that it will be useful, 302*75fd0b74Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 303*75fd0b74Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304*75fd0b74Schristos GNU General Public License for more details. 305*75fd0b74Schristos 306*75fd0b74Schristos You should have received a copy of the GNU General Public License 307*75fd0b74Schristos along with this program; if not, write to the Free Software 308*75fd0b74Schristos Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 309*75fd0b74Schristos 310*75fd0b74Schristos 311*75fd0b74SchristosAlso add information on how to contact you by electronic and paper mail. 312*75fd0b74Schristos 313*75fd0b74SchristosIf the program is interactive, make it output a short notice like this 314*75fd0b74Schristoswhen it starts in an interactive mode: 315*75fd0b74Schristos 316*75fd0b74Schristos Gnomovision version 69, Copyright (C) year name of author 317*75fd0b74Schristos Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 318*75fd0b74Schristos This is free software, and you are welcome to redistribute it 319*75fd0b74Schristos under certain conditions; type `show c' for details. 320*75fd0b74Schristos 321*75fd0b74SchristosThe hypothetical commands `show w' and `show c' should show the appropriate 322*75fd0b74Schristosparts of the General Public License. Of course, the commands you use may 323*75fd0b74Schristosbe called something other than `show w' and `show c'; they could even be 324*75fd0b74Schristosmouse-clicks or menu items--whatever suits your program. 325*75fd0b74Schristos 326*75fd0b74SchristosYou should also get your employer (if you work as a programmer) or your 327*75fd0b74Schristosschool, if any, to sign a "copyright disclaimer" for the program, if 328*75fd0b74Schristosnecessary. Here is a sample; alter the names: 329*75fd0b74Schristos 330*75fd0b74Schristos Yoyodyne, Inc., hereby disclaims all copyright interest in the program 331*75fd0b74Schristos `Gnomovision' (which makes passes at compilers) written by James Hacker. 332*75fd0b74Schristos 333*75fd0b74Schristos <signature of Ty Coon>, 1 April 1989 334*75fd0b74Schristos Ty Coon, President of Vice 335*75fd0b74Schristos 336*75fd0b74SchristosThis General Public License does not permit incorporating your program into 337*75fd0b74Schristosproprietary programs. If your program is a subroutine library, you may 338*75fd0b74Schristosconsider it more useful to permit linking proprietary applications with the 339*75fd0b74Schristoslibrary. If this is what you want to do, use the GNU Library General 340*75fd0b74SchristosPublic License instead of this License. 341