1*726f9a93Slogin GNU GENERAL PUBLIC LICENSE 2*726f9a93Slogin Version 2, June 1991 3*726f9a93Slogin 4*726f9a93Slogin Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5*726f9a93Slogin 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6*726f9a93Slogin Everyone is permitted to copy and distribute verbatim copies 7*726f9a93Slogin of this license document, but changing it is not allowed. 8*726f9a93Slogin 9*726f9a93Slogin Preamble 10*726f9a93Slogin 11*726f9a93Slogin The licenses for most software are designed to take away your 12*726f9a93Sloginfreedom to share and change it. By contrast, the GNU General Public 13*726f9a93SloginLicense is intended to guarantee your freedom to share and change free 14*726f9a93Sloginsoftware--to make sure the software is free for all its users. This 15*726f9a93SloginGeneral Public License applies to most of the Free Software 16*726f9a93SloginFoundation's software and to any other program whose authors commit to 17*726f9a93Sloginusing it. (Some other Free Software Foundation software is covered by 18*726f9a93Sloginthe GNU Lesser General Public License instead.) You can apply it to 19*726f9a93Sloginyour programs, too. 20*726f9a93Slogin 21*726f9a93Slogin When we speak of free software, we are referring to freedom, not 22*726f9a93Sloginprice. Our General Public Licenses are designed to make sure that you 23*726f9a93Sloginhave the freedom to distribute copies of free software (and charge for 24*726f9a93Sloginthis service if you wish), that you receive source code or can get it 25*726f9a93Sloginif you want it, that you can change the software or use pieces of it 26*726f9a93Sloginin new free programs; and that you know you can do these things. 27*726f9a93Slogin 28*726f9a93Slogin To protect your rights, we need to make restrictions that forbid 29*726f9a93Sloginanyone to deny you these rights or to ask you to surrender the rights. 30*726f9a93SloginThese restrictions translate to certain responsibilities for you if you 31*726f9a93Slogindistribute copies of the software, or if you modify it. 32*726f9a93Slogin 33*726f9a93Slogin For example, if you distribute copies of such a program, whether 34*726f9a93Slogingratis or for a fee, you must give the recipients all the rights that 35*726f9a93Sloginyou have. You must make sure that they, too, receive or can get the 36*726f9a93Sloginsource code. And you must show them these terms so they know their 37*726f9a93Sloginrights. 38*726f9a93Slogin 39*726f9a93Slogin We protect your rights with two steps: (1) copyright the software, and 40*726f9a93Slogin(2) offer you this license which gives you legal permission to copy, 41*726f9a93Slogindistribute and/or modify the software. 42*726f9a93Slogin 43*726f9a93Slogin Also, for each author's protection and ours, we want to make certain 44*726f9a93Sloginthat everyone understands that there is no warranty for this free 45*726f9a93Sloginsoftware. If the software is modified by someone else and passed on, we 46*726f9a93Sloginwant its recipients to know that what they have is not the original, so 47*726f9a93Sloginthat any problems introduced by others will not reflect on the original 48*726f9a93Sloginauthors' reputations. 49*726f9a93Slogin 50*726f9a93Slogin Finally, any free program is threatened constantly by software 51*726f9a93Sloginpatents. We wish to avoid the danger that redistributors of a free 52*726f9a93Sloginprogram will individually obtain patent licenses, in effect making the 53*726f9a93Sloginprogram proprietary. To prevent this, we have made it clear that any 54*726f9a93Sloginpatent must be licensed for everyone's free use or not licensed at all. 55*726f9a93Slogin 56*726f9a93Slogin The precise terms and conditions for copying, distribution and 57*726f9a93Sloginmodification follow. 58*726f9a93Slogin 59*726f9a93Slogin GNU GENERAL PUBLIC LICENSE 60*726f9a93Slogin TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61*726f9a93Slogin 62*726f9a93Slogin 0. This License applies to any program or other work which contains 63*726f9a93Slogina notice placed by the copyright holder saying it may be distributed 64*726f9a93Sloginunder the terms of this General Public License. The "Program", below, 65*726f9a93Sloginrefers to any such program or work, and a "work based on the Program" 66*726f9a93Sloginmeans either the Program or any derivative work under copyright law: 67*726f9a93Sloginthat is to say, a work containing the Program or a portion of it, 68*726f9a93Slogineither verbatim or with modifications and/or translated into another 69*726f9a93Sloginlanguage. (Hereinafter, translation is included without limitation in 70*726f9a93Sloginthe term "modification".) Each licensee is addressed as "you". 71*726f9a93Slogin 72*726f9a93SloginActivities other than copying, distribution and modification are not 73*726f9a93Slogincovered by this License; they are outside its scope. The act of 74*726f9a93Sloginrunning the Program is not restricted, and the output from the Program 75*726f9a93Sloginis covered only if its contents constitute a work based on the 76*726f9a93SloginProgram (independent of having been made by running the Program). 77*726f9a93SloginWhether that is true depends on what the Program does. 78*726f9a93Slogin 79*726f9a93Slogin 1. You may copy and distribute verbatim copies of the Program's 80*726f9a93Sloginsource code as you receive it, in any medium, provided that you 81*726f9a93Sloginconspicuously and appropriately publish on each copy an appropriate 82*726f9a93Slogincopyright notice and disclaimer of warranty; keep intact all the 83*726f9a93Sloginnotices that refer to this License and to the absence of any warranty; 84*726f9a93Sloginand give any other recipients of the Program a copy of this License 85*726f9a93Sloginalong with the Program. 86*726f9a93Slogin 87*726f9a93SloginYou may charge a fee for the physical act of transferring a copy, and 88*726f9a93Sloginyou may at your option offer warranty protection in exchange for a fee. 89*726f9a93Slogin 90*726f9a93Slogin 2. You may modify your copy or copies of the Program or any portion 91*726f9a93Sloginof it, thus forming a work based on the Program, and copy and 92*726f9a93Slogindistribute such modifications or work under the terms of Section 1 93*726f9a93Sloginabove, provided that you also meet all of these conditions: 94*726f9a93Slogin 95*726f9a93Slogin a) You must cause the modified files to carry prominent notices 96*726f9a93Slogin stating that you changed the files and the date of any change. 97*726f9a93Slogin 98*726f9a93Slogin b) You must cause any work that you distribute or publish, that in 99*726f9a93Slogin whole or in part contains or is derived from the Program or any 100*726f9a93Slogin part thereof, to be licensed as a whole at no charge to all third 101*726f9a93Slogin parties under the terms of this License. 102*726f9a93Slogin 103*726f9a93Slogin c) If the modified program normally reads commands interactively 104*726f9a93Slogin when run, you must cause it, when started running for such 105*726f9a93Slogin interactive use in the most ordinary way, to print or display an 106*726f9a93Slogin announcement including an appropriate copyright notice and a 107*726f9a93Slogin notice that there is no warranty (or else, saying that you provide 108*726f9a93Slogin a warranty) and that users may redistribute the program under 109*726f9a93Slogin these conditions, and telling the user how to view a copy of this 110*726f9a93Slogin License. (Exception: if the Program itself is interactive but 111*726f9a93Slogin does not normally print such an announcement, your work based on 112*726f9a93Slogin the Program is not required to print an announcement.) 113*726f9a93Slogin 114*726f9a93SloginThese requirements apply to the modified work as a whole. If 115*726f9a93Sloginidentifiable sections of that work are not derived from the Program, 116*726f9a93Sloginand can be reasonably considered independent and separate works in 117*726f9a93Sloginthemselves, then this License, and its terms, do not apply to those 118*726f9a93Sloginsections when you distribute them as separate works. But when you 119*726f9a93Slogindistribute the same sections as part of a whole which is a work based 120*726f9a93Sloginon the Program, the distribution of the whole must be on the terms of 121*726f9a93Sloginthis License, whose permissions for other licensees extend to the 122*726f9a93Sloginentire whole, and thus to each and every part regardless of who wrote it. 123*726f9a93Slogin 124*726f9a93SloginThus, it is not the intent of this section to claim rights or contest 125*726f9a93Sloginyour rights to work written entirely by you; rather, the intent is to 126*726f9a93Sloginexercise the right to control the distribution of derivative or 127*726f9a93Slogincollective works based on the Program. 128*726f9a93Slogin 129*726f9a93SloginIn addition, mere aggregation of another work not based on the Program 130*726f9a93Sloginwith the Program (or with a work based on the Program) on a volume of 131*726f9a93Slogina storage or distribution medium does not bring the other work under 132*726f9a93Sloginthe scope of this License. 133*726f9a93Slogin 134*726f9a93Slogin 3. You may copy and distribute the Program (or a work based on it, 135*726f9a93Sloginunder Section 2) in object code or executable form under the terms of 136*726f9a93SloginSections 1 and 2 above provided that you also do one of the following: 137*726f9a93Slogin 138*726f9a93Slogin a) Accompany it with the complete corresponding machine-readable 139*726f9a93Slogin source code, which must be distributed under the terms of Sections 140*726f9a93Slogin 1 and 2 above on a medium customarily used for software interchange; or, 141*726f9a93Slogin 142*726f9a93Slogin b) Accompany it with a written offer, valid for at least three 143*726f9a93Slogin years, to give any third party, for a charge no more than your 144*726f9a93Slogin cost of physically performing source distribution, a complete 145*726f9a93Slogin machine-readable copy of the corresponding source code, to be 146*726f9a93Slogin distributed under the terms of Sections 1 and 2 above on a medium 147*726f9a93Slogin customarily used for software interchange; or, 148*726f9a93Slogin 149*726f9a93Slogin c) Accompany it with the information you received as to the offer 150*726f9a93Slogin to distribute corresponding source code. (This alternative is 151*726f9a93Slogin allowed only for noncommercial distribution and only if you 152*726f9a93Slogin received the program in object code or executable form with such 153*726f9a93Slogin an offer, in accord with Subsection b above.) 154*726f9a93Slogin 155*726f9a93SloginThe source code for a work means the preferred form of the work for 156*726f9a93Sloginmaking modifications to it. For an executable work, complete source 157*726f9a93Slogincode means all the source code for all modules it contains, plus any 158*726f9a93Sloginassociated interface definition files, plus the scripts used to 159*726f9a93Slogincontrol compilation and installation of the executable. However, as a 160*726f9a93Sloginspecial exception, the source code distributed need not include 161*726f9a93Sloginanything that is normally distributed (in either source or binary 162*726f9a93Sloginform) with the major components (compiler, kernel, and so on) of the 163*726f9a93Sloginoperating system on which the executable runs, unless that component 164*726f9a93Sloginitself accompanies the executable. 165*726f9a93Slogin 166*726f9a93SloginIf distribution of executable or object code is made by offering 167*726f9a93Sloginaccess to copy from a designated place, then offering equivalent 168*726f9a93Sloginaccess to copy the source code from the same place counts as 169*726f9a93Slogindistribution of the source code, even though third parties are not 170*726f9a93Slogincompelled to copy the source along with the object code. 171*726f9a93Slogin 172*726f9a93Slogin 4. You may not copy, modify, sublicense, or distribute the Program 173*726f9a93Sloginexcept as expressly provided under this License. Any attempt 174*726f9a93Sloginotherwise to copy, modify, sublicense or distribute the Program is 175*726f9a93Sloginvoid, and will automatically terminate your rights under this License. 176*726f9a93SloginHowever, parties who have received copies, or rights, from you under 177*726f9a93Sloginthis License will not have their licenses terminated so long as such 178*726f9a93Sloginparties remain in full compliance. 179*726f9a93Slogin 180*726f9a93Slogin 5. You are not required to accept this License, since you have not 181*726f9a93Sloginsigned it. However, nothing else grants you permission to modify or 182*726f9a93Slogindistribute the Program or its derivative works. These actions are 183*726f9a93Sloginprohibited by law if you do not accept this License. Therefore, by 184*726f9a93Sloginmodifying or distributing the Program (or any work based on the 185*726f9a93SloginProgram), you indicate your acceptance of this License to do so, and 186*726f9a93Sloginall its terms and conditions for copying, distributing or modifying 187*726f9a93Sloginthe Program or works based on it. 188*726f9a93Slogin 189*726f9a93Slogin 6. Each time you redistribute the Program (or any work based on the 190*726f9a93SloginProgram), the recipient automatically receives a license from the 191*726f9a93Sloginoriginal licensor to copy, distribute or modify the Program subject to 192*726f9a93Sloginthese terms and conditions. You may not impose any further 193*726f9a93Sloginrestrictions on the recipients' exercise of the rights granted herein. 194*726f9a93SloginYou are not responsible for enforcing compliance by third parties to 195*726f9a93Sloginthis License. 196*726f9a93Slogin 197*726f9a93Slogin 7. If, as a consequence of a court judgment or allegation of patent 198*726f9a93Slogininfringement or for any other reason (not limited to patent issues), 199*726f9a93Sloginconditions are imposed on you (whether by court order, agreement or 200*726f9a93Sloginotherwise) that contradict the conditions of this License, they do not 201*726f9a93Sloginexcuse you from the conditions of this License. If you cannot 202*726f9a93Slogindistribute so as to satisfy simultaneously your obligations under this 203*726f9a93SloginLicense and any other pertinent obligations, then as a consequence you 204*726f9a93Sloginmay not distribute the Program at all. For example, if a patent 205*726f9a93Sloginlicense would not permit royalty-free redistribution of the Program by 206*726f9a93Sloginall those who receive copies directly or indirectly through you, then 207*726f9a93Sloginthe only way you could satisfy both it and this License would be to 208*726f9a93Sloginrefrain entirely from distribution of the Program. 209*726f9a93Slogin 210*726f9a93SloginIf any portion of this section is held invalid or unenforceable under 211*726f9a93Sloginany particular circumstance, the balance of the section is intended to 212*726f9a93Sloginapply and the section as a whole is intended to apply in other 213*726f9a93Slogincircumstances. 214*726f9a93Slogin 215*726f9a93SloginIt is not the purpose of this section to induce you to infringe any 216*726f9a93Sloginpatents or other property right claims or to contest validity of any 217*726f9a93Sloginsuch claims; this section has the sole purpose of protecting the 218*726f9a93Sloginintegrity of the free software distribution system, which is 219*726f9a93Sloginimplemented by public license practices. Many people have made 220*726f9a93Slogingenerous contributions to the wide range of software distributed 221*726f9a93Sloginthrough that system in reliance on consistent application of that 222*726f9a93Sloginsystem; it is up to the author/donor to decide if he or she is willing 223*726f9a93Sloginto distribute software through any other system and a licensee cannot 224*726f9a93Sloginimpose that choice. 225*726f9a93Slogin 226*726f9a93SloginThis section is intended to make thoroughly clear what is believed to 227*726f9a93Sloginbe a consequence of the rest of this License. 228*726f9a93Slogin 229*726f9a93Slogin 8. If the distribution and/or use of the Program is restricted in 230*726f9a93Slogincertain countries either by patents or by copyrighted interfaces, the 231*726f9a93Sloginoriginal copyright holder who places the Program under this License 232*726f9a93Sloginmay add an explicit geographical distribution limitation excluding 233*726f9a93Sloginthose countries, so that distribution is permitted only in or among 234*726f9a93Slogincountries not thus excluded. In such case, this License incorporates 235*726f9a93Sloginthe limitation as if written in the body of this License. 236*726f9a93Slogin 237*726f9a93Slogin 9. The Free Software Foundation may publish revised and/or new versions 238*726f9a93Sloginof the General Public License from time to time. Such new versions will 239*726f9a93Sloginbe similar in spirit to the present version, but may differ in detail to 240*726f9a93Sloginaddress new problems or concerns. 241*726f9a93Slogin 242*726f9a93SloginEach version is given a distinguishing version number. If the Program 243*726f9a93Sloginspecifies a version number of this License which applies to it and "any 244*726f9a93Sloginlater version", you have the option of following the terms and conditions 245*726f9a93Slogineither of that version or of any later version published by the Free 246*726f9a93SloginSoftware Foundation. If the Program does not specify a version number of 247*726f9a93Sloginthis License, you may choose any version ever published by the Free Software 248*726f9a93SloginFoundation. 249*726f9a93Slogin 250*726f9a93Slogin 10. If you wish to incorporate parts of the Program into other free 251*726f9a93Sloginprograms whose distribution conditions are different, write to the author 252*726f9a93Sloginto ask for permission. For software which is copyrighted by the Free 253*726f9a93SloginSoftware Foundation, write to the Free Software Foundation; we sometimes 254*726f9a93Sloginmake exceptions for this. Our decision will be guided by the two goals 255*726f9a93Sloginof preserving the free status of all derivatives of our free software and 256*726f9a93Sloginof promoting the sharing and reuse of software generally. 257*726f9a93Slogin 258*726f9a93Slogin NO WARRANTY 259*726f9a93Slogin 260*726f9a93Slogin 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261*726f9a93SloginFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262*726f9a93SloginOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263*726f9a93SloginPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264*726f9a93SloginOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265*726f9a93SloginMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266*726f9a93SloginTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267*726f9a93SloginPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268*726f9a93SloginREPAIR OR CORRECTION. 269*726f9a93Slogin 270*726f9a93Slogin 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271*726f9a93SloginWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272*726f9a93SloginREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273*726f9a93SloginINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274*726f9a93SloginOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275*726f9a93SloginTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276*726f9a93SloginYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277*726f9a93SloginPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278*726f9a93SloginPOSSIBILITY OF SUCH DAMAGES. 279*726f9a93Slogin 280*726f9a93Slogin END OF TERMS AND CONDITIONS 281*726f9a93Slogin 282*726f9a93Slogin How to Apply These Terms to Your New Programs 283*726f9a93Slogin 284*726f9a93Slogin If you develop a new program, and you want it to be of the greatest 285*726f9a93Sloginpossible use to the public, the best way to achieve this is to make it 286*726f9a93Sloginfree software which everyone can redistribute and change under these terms. 287*726f9a93Slogin 288*726f9a93Slogin To do so, attach the following notices to the program. It is safest 289*726f9a93Sloginto attach them to the start of each source file to most effectively 290*726f9a93Sloginconvey the exclusion of warranty; and each file should have at least 291*726f9a93Sloginthe "copyright" line and a pointer to where the full notice is found. 292*726f9a93Slogin 293*726f9a93Slogin <one line to give the program's name and a brief idea of what it does.> 294*726f9a93Slogin Copyright (C) <year> <name of author> 295*726f9a93Slogin 296*726f9a93Slogin This program is free software; you can redistribute it and/or modify 297*726f9a93Slogin it under the terms of the GNU General Public License as published by 298*726f9a93Slogin the Free Software Foundation; either version 2 of the License, or 299*726f9a93Slogin (at your option) any later version. 300*726f9a93Slogin 301*726f9a93Slogin This program is distributed in the hope that it will be useful, 302*726f9a93Slogin but WITHOUT ANY WARRANTY; without even the implied warranty of 303*726f9a93Slogin MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304*726f9a93Slogin GNU General Public License for more details. 305*726f9a93Slogin 306*726f9a93Slogin You should have received a copy of the GNU General Public License along 307*726f9a93Slogin with this program; if not, write to the Free Software Foundation, Inc., 308*726f9a93Slogin 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309*726f9a93Slogin 310*726f9a93SloginAlso add information on how to contact you by electronic and paper mail. 311*726f9a93Slogin 312*726f9a93SloginIf the program is interactive, make it output a short notice like this 313*726f9a93Sloginwhen it starts in an interactive mode: 314*726f9a93Slogin 315*726f9a93Slogin Gnomovision version 69, Copyright (C) year name of author 316*726f9a93Slogin Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317*726f9a93Slogin This is free software, and you are welcome to redistribute it 318*726f9a93Slogin under certain conditions; type `show c' for details. 319*726f9a93Slogin 320*726f9a93SloginThe hypothetical commands `show w' and `show c' should show the appropriate 321*726f9a93Sloginparts of the General Public License. Of course, the commands you use may 322*726f9a93Sloginbe called something other than `show w' and `show c'; they could even be 323*726f9a93Sloginmouse-clicks or menu items--whatever suits your program. 324*726f9a93Slogin 325*726f9a93SloginYou should also get your employer (if you work as a programmer) or your 326*726f9a93Sloginschool, if any, to sign a "copyright disclaimer" for the program, if 327*726f9a93Sloginnecessary. Here is a sample; alter the names: 328*726f9a93Slogin 329*726f9a93Slogin Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330*726f9a93Slogin `Gnomovision' (which makes passes at compilers) written by James Hacker. 331*726f9a93Slogin 332*726f9a93Slogin <signature of Ty Coon>, 1 April 1989 333*726f9a93Slogin Ty Coon, President of Vice 334*726f9a93Slogin 335*726f9a93SloginThis General Public License does not permit incorporating your program into 336*726f9a93Sloginproprietary programs. If your program is a subroutine library, you may 337*726f9a93Sloginconsider it more useful to permit linking proprietary applications with the 338*726f9a93Sloginlibrary. If this is what you want to do, use the GNU Lesser General 339*726f9a93SloginPublic License instead of this License. 340