1*76af099aSliuyiGNU GENERAL PUBLIC LICENSE 2*76af099aSliuyi Version 2, June 1991 3*76af099aSliuyi 4*76af099aSliuyi Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5*76af099aSliuyi 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6*76af099aSliuyi Everyone is permitted to copy and distribute verbatim copies 7*76af099aSliuyi of this license document, but changing it is not allowed. 8*76af099aSliuyi 9*76af099aSliuyi Preamble 10*76af099aSliuyi 11*76af099aSliuyi The licenses for most software are designed to take away your 12*76af099aSliuyifreedom to share and change it. By contrast, the GNU General Public 13*76af099aSliuyiLicense is intended to guarantee your freedom to share and change free 14*76af099aSliuyisoftware--to make sure the software is free for all its users. This 15*76af099aSliuyiGeneral Public License applies to most of the Free Software 16*76af099aSliuyiFoundation's software and to any other program whose authors commit to 17*76af099aSliuyiusing it. (Some other Free Software Foundation software is covered by 18*76af099aSliuyithe GNU Lesser General Public License instead.) You can apply it to 19*76af099aSliuyiyour programs, too. 20*76af099aSliuyi 21*76af099aSliuyi When we speak of free software, we are referring to freedom, not 22*76af099aSliuyiprice. Our General Public Licenses are designed to make sure that you 23*76af099aSliuyihave the freedom to distribute copies of free software (and charge for 24*76af099aSliuyithis service if you wish), that you receive source code or can get it 25*76af099aSliuyiif you want it, that you can change the software or use pieces of it 26*76af099aSliuyiin new free programs; and that you know you can do these things. 27*76af099aSliuyi 28*76af099aSliuyi To protect your rights, we need to make restrictions that forbid 29*76af099aSliuyianyone to deny you these rights or to ask you to surrender the rights. 30*76af099aSliuyiThese restrictions translate to certain responsibilities for you if you 31*76af099aSliuyidistribute copies of the software, or if you modify it. 32*76af099aSliuyi 33*76af099aSliuyi For example, if you distribute copies of such a program, whether 34*76af099aSliuyigratis or for a fee, you must give the recipients all the rights that 35*76af099aSliuyiyou have. You must make sure that they, too, receive or can get the 36*76af099aSliuyisource code. And you must show them these terms so they know their 37*76af099aSliuyirights. 38*76af099aSliuyi 39*76af099aSliuyi We protect your rights with two steps: (1) copyright the software, and 40*76af099aSliuyi(2) offer you this license which gives you legal permission to copy, 41*76af099aSliuyidistribute and/or modify the software. 42*76af099aSliuyi 43*76af099aSliuyi Also, for each author's protection and ours, we want to make certain 44*76af099aSliuyithat everyone understands that there is no warranty for this free 45*76af099aSliuyisoftware. If the software is modified by someone else and passed on, we 46*76af099aSliuyiwant its recipients to know that what they have is not the original, so 47*76af099aSliuyithat any problems introduced by others will not reflect on the original 48*76af099aSliuyiauthors' reputations. 49*76af099aSliuyi 50*76af099aSliuyi Finally, any free program is threatened constantly by software 51*76af099aSliuyipatents. We wish to avoid the danger that redistributors of a free 52*76af099aSliuyiprogram will individually obtain patent licenses, in effect making the 53*76af099aSliuyiprogram proprietary. To prevent this, we have made it clear that any 54*76af099aSliuyipatent must be licensed for everyone's free use or not licensed at all. 55*76af099aSliuyi 56*76af099aSliuyi The precise terms and conditions for copying, distribution and 57*76af099aSliuyimodification follow. 58*76af099aSliuyi 59*76af099aSliuyi GNU GENERAL PUBLIC LICENSE 60*76af099aSliuyi TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61*76af099aSliuyi 62*76af099aSliuyi 0. This License applies to any program or other work which contains 63*76af099aSliuyia notice placed by the copyright holder saying it may be distributed 64*76af099aSliuyiunder the terms of this General Public License. The "Program", below, 65*76af099aSliuyirefers to any such program or work, and a "work based on the Program" 66*76af099aSliuyimeans either the Program or any derivative work under copyright law: 67*76af099aSliuyithat is to say, a work containing the Program or a portion of it, 68*76af099aSliuyieither verbatim or with modifications and/or translated into another 69*76af099aSliuyilanguage. (Hereinafter, translation is included without limitation in 70*76af099aSliuyithe term "modification".) Each licensee is addressed as "you". 71*76af099aSliuyi 72*76af099aSliuyiActivities other than copying, distribution and modification are not 73*76af099aSliuyicovered by this License; they are outside its scope. The act of 74*76af099aSliuyirunning the Program is not restricted, and the output from the Program 75*76af099aSliuyiis covered only if its contents constitute a work based on the 76*76af099aSliuyiProgram (independent of having been made by running the Program). 77*76af099aSliuyiWhether that is true depends on what the Program does. 78*76af099aSliuyi 79*76af099aSliuyi 1. You may copy and distribute verbatim copies of the Program's 80*76af099aSliuyisource code as you receive it, in any medium, provided that you 81*76af099aSliuyiconspicuously and appropriately publish on each copy an appropriate 82*76af099aSliuyicopyright notice and disclaimer of warranty; keep intact all the 83*76af099aSliuyinotices that refer to this License and to the absence of any warranty; 84*76af099aSliuyiand give any other recipients of the Program a copy of this License 85*76af099aSliuyialong with the Program. 86*76af099aSliuyi 87*76af099aSliuyiYou may charge a fee for the physical act of transferring a copy, and 88*76af099aSliuyiyou may at your option offer warranty protection in exchange for a fee. 89*76af099aSliuyi 90*76af099aSliuyi 2. You may modify your copy or copies of the Program or any portion 91*76af099aSliuyiof it, thus forming a work based on the Program, and copy and 92*76af099aSliuyidistribute such modifications or work under the terms of Section 1 93*76af099aSliuyiabove, provided that you also meet all of these conditions: 94*76af099aSliuyi 95*76af099aSliuyi a) You must cause the modified files to carry prominent notices 96*76af099aSliuyi stating that you changed the files and the date of any change. 97*76af099aSliuyi 98*76af099aSliuyi b) You must cause any work that you distribute or publish, that in 99*76af099aSliuyi whole or in part contains or is derived from the Program or any 100*76af099aSliuyi part thereof, to be licensed as a whole at no charge to all third 101*76af099aSliuyi parties under the terms of this License. 102*76af099aSliuyi 103*76af099aSliuyi c) If the modified program normally reads commands interactively 104*76af099aSliuyi when run, you must cause it, when started running for such 105*76af099aSliuyi interactive use in the most ordinary way, to print or display an 106*76af099aSliuyi announcement including an appropriate copyright notice and a 107*76af099aSliuyi notice that there is no warranty (or else, saying that you provide 108*76af099aSliuyi a warranty) and that users may redistribute the program under 109*76af099aSliuyi these conditions, and telling the user how to view a copy of this 110*76af099aSliuyi License. (Exception: if the Program itself is interactive but 111*76af099aSliuyi does not normally print such an announcement, your work based on 112*76af099aSliuyi the Program is not required to print an announcement.) 113*76af099aSliuyi 114*76af099aSliuyiThese requirements apply to the modified work as a whole. If 115*76af099aSliuyiidentifiable sections of that work are not derived from the Program, 116*76af099aSliuyiand can be reasonably considered independent and separate works in 117*76af099aSliuyithemselves, then this License, and its terms, do not apply to those 118*76af099aSliuyisections when you distribute them as separate works. But when you 119*76af099aSliuyidistribute the same sections as part of a whole which is a work based 120*76af099aSliuyion the Program, the distribution of the whole must be on the terms of 121*76af099aSliuyithis License, whose permissions for other licensees extend to the 122*76af099aSliuyientire whole, and thus to each and every part regardless of who wrote it. 123*76af099aSliuyi 124*76af099aSliuyiThus, it is not the intent of this section to claim rights or contest 125*76af099aSliuyiyour rights to work written entirely by you; rather, the intent is to 126*76af099aSliuyiexercise the right to control the distribution of derivative or 127*76af099aSliuyicollective works based on the Program. 128*76af099aSliuyi 129*76af099aSliuyiIn addition, mere aggregation of another work not based on the Program 130*76af099aSliuyiwith the Program (or with a work based on the Program) on a volume of 131*76af099aSliuyia storage or distribution medium does not bring the other work under 132*76af099aSliuyithe scope of this License. 133*76af099aSliuyi 134*76af099aSliuyi 3. You may copy and distribute the Program (or a work based on it, 135*76af099aSliuyiunder Section 2) in object code or executable form under the terms of 136*76af099aSliuyiSections 1 and 2 above provided that you also do one of the following: 137*76af099aSliuyi 138*76af099aSliuyi a) Accompany it with the complete corresponding machine-readable 139*76af099aSliuyi source code, which must be distributed under the terms of Sections 140*76af099aSliuyi 1 and 2 above on a medium customarily used for software interchange; or, 141*76af099aSliuyi 142*76af099aSliuyi b) Accompany it with a written offer, valid for at least three 143*76af099aSliuyi years, to give any third party, for a charge no more than your 144*76af099aSliuyi cost of physically performing source distribution, a complete 145*76af099aSliuyi machine-readable copy of the corresponding source code, to be 146*76af099aSliuyi distributed under the terms of Sections 1 and 2 above on a medium 147*76af099aSliuyi customarily used for software interchange; or, 148*76af099aSliuyi 149*76af099aSliuyi c) Accompany it with the information you received as to the offer 150*76af099aSliuyi to distribute corresponding source code. (This alternative is 151*76af099aSliuyi allowed only for noncommercial distribution and only if you 152*76af099aSliuyi received the program in object code or executable form with such 153*76af099aSliuyi an offer, in accord with Subsection b above.) 154*76af099aSliuyi 155*76af099aSliuyiThe source code for a work means the preferred form of the work for 156*76af099aSliuyimaking modifications to it. For an executable work, complete source 157*76af099aSliuyicode means all the source code for all modules it contains, plus any 158*76af099aSliuyiassociated interface definition files, plus the scripts used to 159*76af099aSliuyicontrol compilation and installation of the executable. However, as a 160*76af099aSliuyispecial exception, the source code distributed need not include 161*76af099aSliuyianything that is normally distributed (in either source or binary 162*76af099aSliuyiform) with the major components (compiler, kernel, and so on) of the 163*76af099aSliuyioperating system on which the executable runs, unless that component 164*76af099aSliuyiitself accompanies the executable. 165*76af099aSliuyi 166*76af099aSliuyiIf distribution of executable or object code is made by offering 167*76af099aSliuyiaccess to copy from a designated place, then offering equivalent 168*76af099aSliuyiaccess to copy the source code from the same place counts as 169*76af099aSliuyidistribution of the source code, even though third parties are not 170*76af099aSliuyicompelled to copy the source along with the object code. 171*76af099aSliuyi 172*76af099aSliuyi 4. You may not copy, modify, sublicense, or distribute the Program 173*76af099aSliuyiexcept as expressly provided under this License. Any attempt 174*76af099aSliuyiotherwise to copy, modify, sublicense or distribute the Program is 175*76af099aSliuyivoid, and will automatically terminate your rights under this License. 176*76af099aSliuyiHowever, parties who have received copies, or rights, from you under 177*76af099aSliuyithis License will not have their licenses terminated so long as such 178*76af099aSliuyiparties remain in full compliance. 179*76af099aSliuyi 180*76af099aSliuyi 5. You are not required to accept this License, since you have not 181*76af099aSliuyisigned it. However, nothing else grants you permission to modify or 182*76af099aSliuyidistribute the Program or its derivative works. These actions are 183*76af099aSliuyiprohibited by law if you do not accept this License. Therefore, by 184*76af099aSliuyimodifying or distributing the Program (or any work based on the 185*76af099aSliuyiProgram), you indicate your acceptance of this License to do so, and 186*76af099aSliuyiall its terms and conditions for copying, distributing or modifying 187*76af099aSliuyithe Program or works based on it. 188*76af099aSliuyi 189*76af099aSliuyi 6. Each time you redistribute the Program (or any work based on the 190*76af099aSliuyiProgram), the recipient automatically receives a license from the 191*76af099aSliuyioriginal licensor to copy, distribute or modify the Program subject to 192*76af099aSliuyithese terms and conditions. You may not impose any further 193*76af099aSliuyirestrictions on the recipients' exercise of the rights granted herein. 194*76af099aSliuyiYou are not responsible for enforcing compliance by third parties to 195*76af099aSliuyithis License. 196*76af099aSliuyi 197*76af099aSliuyi 7. If, as a consequence of a court judgment or allegation of patent 198*76af099aSliuyiinfringement or for any other reason (not limited to patent issues), 199*76af099aSliuyiconditions are imposed on you (whether by court order, agreement or 200*76af099aSliuyiotherwise) that contradict the conditions of this License, they do not 201*76af099aSliuyiexcuse you from the conditions of this License. If you cannot 202*76af099aSliuyidistribute so as to satisfy simultaneously your obligations under this 203*76af099aSliuyiLicense and any other pertinent obligations, then as a consequence you 204*76af099aSliuyimay not distribute the Program at all. For example, if a patent 205*76af099aSliuyilicense would not permit royalty-free redistribution of the Program by 206*76af099aSliuyiall those who receive copies directly or indirectly through you, then 207*76af099aSliuyithe only way you could satisfy both it and this License would be to 208*76af099aSliuyirefrain entirely from distribution of the Program. 209*76af099aSliuyi 210*76af099aSliuyiIf any portion of this section is held invalid or unenforceable under 211*76af099aSliuyiany particular circumstance, the balance of the section is intended to 212*76af099aSliuyiapply and the section as a whole is intended to apply in other 213*76af099aSliuyicircumstances. 214*76af099aSliuyi 215*76af099aSliuyiIt is not the purpose of this section to induce you to infringe any 216*76af099aSliuyipatents or other property right claims or to contest validity of any 217*76af099aSliuyisuch claims; this section has the sole purpose of protecting the 218*76af099aSliuyiintegrity of the free software distribution system, which is 219*76af099aSliuyiimplemented by public license practices. Many people have made 220*76af099aSliuyigenerous contributions to the wide range of software distributed 221*76af099aSliuyithrough that system in reliance on consistent application of that 222*76af099aSliuyisystem; it is up to the author/donor to decide if he or she is willing 223*76af099aSliuyito distribute software through any other system and a licensee cannot 224*76af099aSliuyiimpose that choice. 225*76af099aSliuyi 226*76af099aSliuyiThis section is intended to make thoroughly clear what is believed to 227*76af099aSliuyibe a consequence of the rest of this License. 228*76af099aSliuyi 229*76af099aSliuyi 8. If the distribution and/or use of the Program is restricted in 230*76af099aSliuyicertain countries either by patents or by copyrighted interfaces, the 231*76af099aSliuyioriginal copyright holder who places the Program under this License 232*76af099aSliuyimay add an explicit geographical distribution limitation excluding 233*76af099aSliuyithose countries, so that distribution is permitted only in or among 234*76af099aSliuyicountries not thus excluded. In such case, this License incorporates 235*76af099aSliuyithe limitation as if written in the body of this License. 236*76af099aSliuyi 237*76af099aSliuyi 9. The Free Software Foundation may publish revised and/or new versions 238*76af099aSliuyiof the General Public License from time to time. Such new versions will 239*76af099aSliuyibe similar in spirit to the present version, but may differ in detail to 240*76af099aSliuyiaddress new problems or concerns. 241*76af099aSliuyi 242*76af099aSliuyiEach version is given a distinguishing version number. If the Program 243*76af099aSliuyispecifies a version number of this License which applies to it and "any 244*76af099aSliuyilater version", you have the option of following the terms and conditions 245*76af099aSliuyieither of that version or of any later version published by the Free 246*76af099aSliuyiSoftware Foundation. If the Program does not specify a version number of 247*76af099aSliuyithis License, you may choose any version ever published by the Free Software 248*76af099aSliuyiFoundation. 249*76af099aSliuyi 250*76af099aSliuyi 10. If you wish to incorporate parts of the Program into other free 251*76af099aSliuyiprograms whose distribution conditions are different, write to the author 252*76af099aSliuyito ask for permission. For software which is copyrighted by the Free 253*76af099aSliuyiSoftware Foundation, write to the Free Software Foundation; we sometimes 254*76af099aSliuyimake exceptions for this. Our decision will be guided by the two goals 255*76af099aSliuyiof preserving the free status of all derivatives of our free software and 256*76af099aSliuyiof promoting the sharing and reuse of software generally. 257*76af099aSliuyi 258*76af099aSliuyi NO WARRANTY 259*76af099aSliuyi 260*76af099aSliuyi 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261*76af099aSliuyiFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262*76af099aSliuyiOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263*76af099aSliuyiPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264*76af099aSliuyiOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265*76af099aSliuyiMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266*76af099aSliuyiTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267*76af099aSliuyiPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268*76af099aSliuyiREPAIR OR CORRECTION. 269*76af099aSliuyi 270*76af099aSliuyi 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271*76af099aSliuyiWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272*76af099aSliuyiREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273*76af099aSliuyiINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274*76af099aSliuyiOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275*76af099aSliuyiTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276*76af099aSliuyiYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277*76af099aSliuyiPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278*76af099aSliuyiPOSSIBILITY OF SUCH DAMAGES. 279*76af099aSliuyi 280*76af099aSliuyi END OF TERMS AND CONDITIONS 281*76af099aSliuyi 282*76af099aSliuyi How to Apply These Terms to Your New Programs 283*76af099aSliuyi 284*76af099aSliuyi If you develop a new program, and you want it to be of the greatest 285*76af099aSliuyipossible use to the public, the best way to achieve this is to make it 286*76af099aSliuyifree software which everyone can redistribute and change under these terms. 287*76af099aSliuyi 288*76af099aSliuyi To do so, attach the following notices to the program. It is safest 289*76af099aSliuyito attach them to the start of each source file to most effectively 290*76af099aSliuyiconvey the exclusion of warranty; and each file should have at least 291*76af099aSliuyithe "copyright" line and a pointer to where the full notice is found. 292*76af099aSliuyi 293*76af099aSliuyi <one line to give the program's name and a brief idea of what it does.> 294*76af099aSliuyi Copyright (C) <year> <name of author> 295*76af099aSliuyi 296*76af099aSliuyi This program is free software; you can redistribute it and/or modify 297*76af099aSliuyi it under the terms of the GNU General Public License as published by 298*76af099aSliuyi the Free Software Foundation; either version 2 of the License, or 299*76af099aSliuyi (at your option) any later version. 300*76af099aSliuyi 301*76af099aSliuyi This program is distributed in the hope that it will be useful, 302*76af099aSliuyi but WITHOUT ANY WARRANTY; without even the implied warranty of 303*76af099aSliuyi MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304*76af099aSliuyi GNU General Public License for more details. 305*76af099aSliuyi 306*76af099aSliuyi You should have received a copy of the GNU General Public License along 307*76af099aSliuyi with this program; if not, write to the Free Software Foundation, Inc., 308*76af099aSliuyi 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309*76af099aSliuyi 310*76af099aSliuyiAlso add information on how to contact you by electronic and paper mail. 311*76af099aSliuyi 312*76af099aSliuyiIf the program is interactive, make it output a short notice like this 313*76af099aSliuyiwhen it starts in an interactive mode: 314*76af099aSliuyi 315*76af099aSliuyi Gnomovision version 69, Copyright (C) year name of author 316*76af099aSliuyi Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317*76af099aSliuyi This is free software, and you are welcome to redistribute it 318*76af099aSliuyi under certain conditions; type `show c' for details. 319*76af099aSliuyi 320*76af099aSliuyiThe hypothetical commands `show w' and `show c' should show the appropriate 321*76af099aSliuyiparts of the General Public License. Of course, the commands you use may 322*76af099aSliuyibe called something other than `show w' and `show c'; they could even be 323*76af099aSliuyimouse-clicks or menu items--whatever suits your program. 324*76af099aSliuyi 325*76af099aSliuyiYou should also get your employer (if you work as a programmer) or your 326*76af099aSliuyischool, if any, to sign a "copyright disclaimer" for the program, if 327*76af099aSliuyinecessary. Here is a sample; alter the names: 328*76af099aSliuyi 329*76af099aSliuyi Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330*76af099aSliuyi `Gnomovision' (which makes passes at compilers) written by James Hacker. 331*76af099aSliuyi 332*76af099aSliuyi <signature of Ty Coon>, 1 April 1989 333*76af099aSliuyi Ty Coon, President of Vice 334*76af099aSliuyi 335*76af099aSliuyiThis General Public License does not permit incorporating your program into 336*76af099aSliuyiproprietary programs. If your program is a subroutine library, you may 337*76af099aSliuyiconsider it more useful to permit linking proprietary applications with the 338*76af099aSliuyilibrary. If this is what you want to do, use the GNU Lesser General 339*76af099aSliuyiPublic License instead of this License.