1*f3f0262cSandi GNU GENERAL PUBLIC LICENSE 2*f3f0262cSandi Version 2, June 1991 3*f3f0262cSandi 4*f3f0262cSandi Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5*f3f0262cSandi 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 6*f3f0262cSandi Everyone is permitted to copy and distribute verbatim copies 7*f3f0262cSandi of this license document, but changing it is not allowed. 8*f3f0262cSandi 9*f3f0262cSandi Preamble 10*f3f0262cSandi 11*f3f0262cSandi The licenses for most software are designed to take away your 12*f3f0262cSandifreedom to share and change it. By contrast, the GNU General Public 13*f3f0262cSandiLicense is intended to guarantee your freedom to share and change free 14*f3f0262cSandisoftware--to make sure the software is free for all its users. This 15*f3f0262cSandiGeneral Public License applies to most of the Free Software 16*f3f0262cSandiFoundation's software and to any other program whose authors commit to 17*f3f0262cSandiusing it. (Some other Free Software Foundation software is covered by 18*f3f0262cSandithe GNU Library General Public License instead.) You can apply it to 19*f3f0262cSandiyour programs, too. 20*f3f0262cSandi 21*f3f0262cSandi When we speak of free software, we are referring to freedom, not 22*f3f0262cSandiprice. Our General Public Licenses are designed to make sure that you 23*f3f0262cSandihave the freedom to distribute copies of free software (and charge for 24*f3f0262cSandithis service if you wish), that you receive source code or can get it 25*f3f0262cSandiif you want it, that you can change the software or use pieces of it 26*f3f0262cSandiin new free programs; and that you know you can do these things. 27*f3f0262cSandi 28*f3f0262cSandi To protect your rights, we need to make restrictions that forbid 29*f3f0262cSandianyone to deny you these rights or to ask you to surrender the rights. 30*f3f0262cSandiThese restrictions translate to certain responsibilities for you if you 31*f3f0262cSandidistribute copies of the software, or if you modify it. 32*f3f0262cSandi 33*f3f0262cSandi For example, if you distribute copies of such a program, whether 34*f3f0262cSandigratis or for a fee, you must give the recipients all the rights that 35*f3f0262cSandiyou have. You must make sure that they, too, receive or can get the 36*f3f0262cSandisource code. And you must show them these terms so they know their 37*f3f0262cSandirights. 38*f3f0262cSandi 39*f3f0262cSandi We protect your rights with two steps: (1) copyright the software, and 40*f3f0262cSandi(2) offer you this license which gives you legal permission to copy, 41*f3f0262cSandidistribute and/or modify the software. 42*f3f0262cSandi 43*f3f0262cSandi Also, for each author's protection and ours, we want to make certain 44*f3f0262cSandithat everyone understands that there is no warranty for this free 45*f3f0262cSandisoftware. If the software is modified by someone else and passed on, we 46*f3f0262cSandiwant its recipients to know that what they have is not the original, so 47*f3f0262cSandithat any problems introduced by others will not reflect on the original 48*f3f0262cSandiauthors' reputations. 49*f3f0262cSandi 50*f3f0262cSandi Finally, any free program is threatened constantly by software 51*f3f0262cSandipatents. We wish to avoid the danger that redistributors of a free 52*f3f0262cSandiprogram will individually obtain patent licenses, in effect making the 53*f3f0262cSandiprogram proprietary. To prevent this, we have made it clear that any 54*f3f0262cSandipatent must be licensed for everyone's free use or not licensed at all. 55*f3f0262cSandi 56*f3f0262cSandi The precise terms and conditions for copying, distribution and 57*f3f0262cSandimodification follow. 58*f3f0262cSandi 59*f3f0262cSandi GNU GENERAL PUBLIC LICENSE 60*f3f0262cSandi TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61*f3f0262cSandi 62*f3f0262cSandi 0. This License applies to any program or other work which contains 63*f3f0262cSandia notice placed by the copyright holder saying it may be distributed 64*f3f0262cSandiunder the terms of this General Public License. The "Program", below, 65*f3f0262cSandirefers to any such program or work, and a "work based on the Program" 66*f3f0262cSandimeans either the Program or any derivative work under copyright law: 67*f3f0262cSandithat is to say, a work containing the Program or a portion of it, 68*f3f0262cSandieither verbatim or with modifications and/or translated into another 69*f3f0262cSandilanguage. (Hereinafter, translation is included without limitation in 70*f3f0262cSandithe term "modification".) Each licensee is addressed as "you". 71*f3f0262cSandi 72*f3f0262cSandiActivities other than copying, distribution and modification are not 73*f3f0262cSandicovered by this License; they are outside its scope. The act of 74*f3f0262cSandirunning the Program is not restricted, and the output from the Program 75*f3f0262cSandiis covered only if its contents constitute a work based on the 76*f3f0262cSandiProgram (independent of having been made by running the Program). 77*f3f0262cSandiWhether that is true depends on what the Program does. 78*f3f0262cSandi 79*f3f0262cSandi 1. You may copy and distribute verbatim copies of the Program's 80*f3f0262cSandisource code as you receive it, in any medium, provided that you 81*f3f0262cSandiconspicuously and appropriately publish on each copy an appropriate 82*f3f0262cSandicopyright notice and disclaimer of warranty; keep intact all the 83*f3f0262cSandinotices that refer to this License and to the absence of any warranty; 84*f3f0262cSandiand give any other recipients of the Program a copy of this License 85*f3f0262cSandialong with the Program. 86*f3f0262cSandi 87*f3f0262cSandiYou may charge a fee for the physical act of transferring a copy, and 88*f3f0262cSandiyou may at your option offer warranty protection in exchange for a fee. 89*f3f0262cSandi 90*f3f0262cSandi 2. You may modify your copy or copies of the Program or any portion 91*f3f0262cSandiof it, thus forming a work based on the Program, and copy and 92*f3f0262cSandidistribute such modifications or work under the terms of Section 1 93*f3f0262cSandiabove, provided that you also meet all of these conditions: 94*f3f0262cSandi 95*f3f0262cSandi a) You must cause the modified files to carry prominent notices 96*f3f0262cSandi stating that you changed the files and the date of any change. 97*f3f0262cSandi 98*f3f0262cSandi b) You must cause any work that you distribute or publish, that in 99*f3f0262cSandi whole or in part contains or is derived from the Program or any 100*f3f0262cSandi part thereof, to be licensed as a whole at no charge to all third 101*f3f0262cSandi parties under the terms of this License. 102*f3f0262cSandi 103*f3f0262cSandi c) If the modified program normally reads commands interactively 104*f3f0262cSandi when run, you must cause it, when started running for such 105*f3f0262cSandi interactive use in the most ordinary way, to print or display an 106*f3f0262cSandi announcement including an appropriate copyright notice and a 107*f3f0262cSandi notice that there is no warranty (or else, saying that you provide 108*f3f0262cSandi a warranty) and that users may redistribute the program under 109*f3f0262cSandi these conditions, and telling the user how to view a copy of this 110*f3f0262cSandi License. (Exception: if the Program itself is interactive but 111*f3f0262cSandi does not normally print such an announcement, your work based on 112*f3f0262cSandi the Program is not required to print an announcement.) 113*f3f0262cSandi 114*f3f0262cSandiThese requirements apply to the modified work as a whole. If 115*f3f0262cSandiidentifiable sections of that work are not derived from the Program, 116*f3f0262cSandiand can be reasonably considered independent and separate works in 117*f3f0262cSandithemselves, then this License, and its terms, do not apply to those 118*f3f0262cSandisections when you distribute them as separate works. But when you 119*f3f0262cSandidistribute the same sections as part of a whole which is a work based 120*f3f0262cSandion the Program, the distribution of the whole must be on the terms of 121*f3f0262cSandithis License, whose permissions for other licensees extend to the 122*f3f0262cSandientire whole, and thus to each and every part regardless of who wrote it. 123*f3f0262cSandi 124*f3f0262cSandiThus, it is not the intent of this section to claim rights or contest 125*f3f0262cSandiyour rights to work written entirely by you; rather, the intent is to 126*f3f0262cSandiexercise the right to control the distribution of derivative or 127*f3f0262cSandicollective works based on the Program. 128*f3f0262cSandi 129*f3f0262cSandiIn addition, mere aggregation of another work not based on the Program 130*f3f0262cSandiwith the Program (or with a work based on the Program) on a volume of 131*f3f0262cSandia storage or distribution medium does not bring the other work under 132*f3f0262cSandithe scope of this License. 133*f3f0262cSandi 134*f3f0262cSandi 3. You may copy and distribute the Program (or a work based on it, 135*f3f0262cSandiunder Section 2) in object code or executable form under the terms of 136*f3f0262cSandiSections 1 and 2 above provided that you also do one of the following: 137*f3f0262cSandi 138*f3f0262cSandi a) Accompany it with the complete corresponding machine-readable 139*f3f0262cSandi source code, which must be distributed under the terms of Sections 140*f3f0262cSandi 1 and 2 above on a medium customarily used for software interchange; or, 141*f3f0262cSandi 142*f3f0262cSandi b) Accompany it with a written offer, valid for at least three 143*f3f0262cSandi years, to give any third party, for a charge no more than your 144*f3f0262cSandi cost of physically performing source distribution, a complete 145*f3f0262cSandi machine-readable copy of the corresponding source code, to be 146*f3f0262cSandi distributed under the terms of Sections 1 and 2 above on a medium 147*f3f0262cSandi customarily used for software interchange; or, 148*f3f0262cSandi 149*f3f0262cSandi c) Accompany it with the information you received as to the offer 150*f3f0262cSandi to distribute corresponding source code. (This alternative is 151*f3f0262cSandi allowed only for noncommercial distribution and only if you 152*f3f0262cSandi received the program in object code or executable form with such 153*f3f0262cSandi an offer, in accord with Subsection b above.) 154*f3f0262cSandi 155*f3f0262cSandiThe source code for a work means the preferred form of the work for 156*f3f0262cSandimaking modifications to it. For an executable work, complete source 157*f3f0262cSandicode means all the source code for all modules it contains, plus any 158*f3f0262cSandiassociated interface definition files, plus the scripts used to 159*f3f0262cSandicontrol compilation and installation of the executable. However, as a 160*f3f0262cSandispecial exception, the source code distributed need not include 161*f3f0262cSandianything that is normally distributed (in either source or binary 162*f3f0262cSandiform) with the major components (compiler, kernel, and so on) of the 163*f3f0262cSandioperating system on which the executable runs, unless that component 164*f3f0262cSandiitself accompanies the executable. 165*f3f0262cSandi 166*f3f0262cSandiIf distribution of executable or object code is made by offering 167*f3f0262cSandiaccess to copy from a designated place, then offering equivalent 168*f3f0262cSandiaccess to copy the source code from the same place counts as 169*f3f0262cSandidistribution of the source code, even though third parties are not 170*f3f0262cSandicompelled to copy the source along with the object code. 171*f3f0262cSandi 172*f3f0262cSandi 4. You may not copy, modify, sublicense, or distribute the Program 173*f3f0262cSandiexcept as expressly provided under this License. Any attempt 174*f3f0262cSandiotherwise to copy, modify, sublicense or distribute the Program is 175*f3f0262cSandivoid, and will automatically terminate your rights under this License. 176*f3f0262cSandiHowever, parties who have received copies, or rights, from you under 177*f3f0262cSandithis License will not have their licenses terminated so long as such 178*f3f0262cSandiparties remain in full compliance. 179*f3f0262cSandi 180*f3f0262cSandi 5. You are not required to accept this License, since you have not 181*f3f0262cSandisigned it. However, nothing else grants you permission to modify or 182*f3f0262cSandidistribute the Program or its derivative works. These actions are 183*f3f0262cSandiprohibited by law if you do not accept this License. Therefore, by 184*f3f0262cSandimodifying or distributing the Program (or any work based on the 185*f3f0262cSandiProgram), you indicate your acceptance of this License to do so, and 186*f3f0262cSandiall its terms and conditions for copying, distributing or modifying 187*f3f0262cSandithe Program or works based on it. 188*f3f0262cSandi 189*f3f0262cSandi 6. Each time you redistribute the Program (or any work based on the 190*f3f0262cSandiProgram), the recipient automatically receives a license from the 191*f3f0262cSandioriginal licensor to copy, distribute or modify the Program subject to 192*f3f0262cSandithese terms and conditions. You may not impose any further 193*f3f0262cSandirestrictions on the recipients' exercise of the rights granted herein. 194*f3f0262cSandiYou are not responsible for enforcing compliance by third parties to 195*f3f0262cSandithis License. 196*f3f0262cSandi 197*f3f0262cSandi 7. If, as a consequence of a court judgment or allegation of patent 198*f3f0262cSandiinfringement or for any other reason (not limited to patent issues), 199*f3f0262cSandiconditions are imposed on you (whether by court order, agreement or 200*f3f0262cSandiotherwise) that contradict the conditions of this License, they do not 201*f3f0262cSandiexcuse you from the conditions of this License. If you cannot 202*f3f0262cSandidistribute so as to satisfy simultaneously your obligations under this 203*f3f0262cSandiLicense and any other pertinent obligations, then as a consequence you 204*f3f0262cSandimay not distribute the Program at all. For example, if a patent 205*f3f0262cSandilicense would not permit royalty-free redistribution of the Program by 206*f3f0262cSandiall those who receive copies directly or indirectly through you, then 207*f3f0262cSandithe only way you could satisfy both it and this License would be to 208*f3f0262cSandirefrain entirely from distribution of the Program. 209*f3f0262cSandi 210*f3f0262cSandiIf any portion of this section is held invalid or unenforceable under 211*f3f0262cSandiany particular circumstance, the balance of the section is intended to 212*f3f0262cSandiapply and the section as a whole is intended to apply in other 213*f3f0262cSandicircumstances. 214*f3f0262cSandi 215*f3f0262cSandiIt is not the purpose of this section to induce you to infringe any 216*f3f0262cSandipatents or other property right claims or to contest validity of any 217*f3f0262cSandisuch claims; this section has the sole purpose of protecting the 218*f3f0262cSandiintegrity of the free software distribution system, which is 219*f3f0262cSandiimplemented by public license practices. Many people have made 220*f3f0262cSandigenerous contributions to the wide range of software distributed 221*f3f0262cSandithrough that system in reliance on consistent application of that 222*f3f0262cSandisystem; it is up to the author/donor to decide if he or she is willing 223*f3f0262cSandito distribute software through any other system and a licensee cannot 224*f3f0262cSandiimpose that choice. 225*f3f0262cSandi 226*f3f0262cSandiThis section is intended to make thoroughly clear what is believed to 227*f3f0262cSandibe a consequence of the rest of this License. 228*f3f0262cSandi 229*f3f0262cSandi 8. If the distribution and/or use of the Program is restricted in 230*f3f0262cSandicertain countries either by patents or by copyrighted interfaces, the 231*f3f0262cSandioriginal copyright holder who places the Program under this License 232*f3f0262cSandimay add an explicit geographical distribution limitation excluding 233*f3f0262cSandithose countries, so that distribution is permitted only in or among 234*f3f0262cSandicountries not thus excluded. In such case, this License incorporates 235*f3f0262cSandithe limitation as if written in the body of this License. 236*f3f0262cSandi 237*f3f0262cSandi 9. The Free Software Foundation may publish revised and/or new versions 238*f3f0262cSandiof the General Public License from time to time. Such new versions will 239*f3f0262cSandibe similar in spirit to the present version, but may differ in detail to 240*f3f0262cSandiaddress new problems or concerns. 241*f3f0262cSandi 242*f3f0262cSandiEach version is given a distinguishing version number. If the Program 243*f3f0262cSandispecifies a version number of this License which applies to it and "any 244*f3f0262cSandilater version", you have the option of following the terms and conditions 245*f3f0262cSandieither of that version or of any later version published by the Free 246*f3f0262cSandiSoftware Foundation. If the Program does not specify a version number of 247*f3f0262cSandithis License, you may choose any version ever published by the Free Software 248*f3f0262cSandiFoundation. 249*f3f0262cSandi 250*f3f0262cSandi 10. If you wish to incorporate parts of the Program into other free 251*f3f0262cSandiprograms whose distribution conditions are different, write to the author 252*f3f0262cSandito ask for permission. For software which is copyrighted by the Free 253*f3f0262cSandiSoftware Foundation, write to the Free Software Foundation; we sometimes 254*f3f0262cSandimake exceptions for this. Our decision will be guided by the two goals 255*f3f0262cSandiof preserving the free status of all derivatives of our free software and 256*f3f0262cSandiof promoting the sharing and reuse of software generally. 257*f3f0262cSandi 258*f3f0262cSandi NO WARRANTY 259*f3f0262cSandi 260*f3f0262cSandi 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261*f3f0262cSandiFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262*f3f0262cSandiOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263*f3f0262cSandiPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264*f3f0262cSandiOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265*f3f0262cSandiMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266*f3f0262cSandiTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267*f3f0262cSandiPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268*f3f0262cSandiREPAIR OR CORRECTION. 269*f3f0262cSandi 270*f3f0262cSandi 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271*f3f0262cSandiWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272*f3f0262cSandiREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273*f3f0262cSandiINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274*f3f0262cSandiOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275*f3f0262cSandiTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276*f3f0262cSandiYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277*f3f0262cSandiPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278*f3f0262cSandiPOSSIBILITY OF SUCH DAMAGES. 279*f3f0262cSandi 280*f3f0262cSandi END OF TERMS AND CONDITIONS 281*f3f0262cSandi 282*f3f0262cSandi How to Apply These Terms to Your New Programs 283*f3f0262cSandi 284*f3f0262cSandi If you develop a new program, and you want it to be of the greatest 285*f3f0262cSandipossible use to the public, the best way to achieve this is to make it 286*f3f0262cSandifree software which everyone can redistribute and change under these terms. 287*f3f0262cSandi 288*f3f0262cSandi To do so, attach the following notices to the program. It is safest 289*f3f0262cSandito attach them to the start of each source file to most effectively 290*f3f0262cSandiconvey the exclusion of warranty; and each file should have at least 291*f3f0262cSandithe "copyright" line and a pointer to where the full notice is found. 292*f3f0262cSandi 293*f3f0262cSandi <one line to give the program's name and a brief idea of what it does.> 294*f3f0262cSandi Copyright (C) <year> <name of author> 295*f3f0262cSandi 296*f3f0262cSandi This program is free software; you can redistribute it and/or modify 297*f3f0262cSandi it under the terms of the GNU General Public License as published by 298*f3f0262cSandi the Free Software Foundation; either version 2 of the License, or 299*f3f0262cSandi (at your option) any later version. 300*f3f0262cSandi 301*f3f0262cSandi This program is distributed in the hope that it will be useful, 302*f3f0262cSandi but WITHOUT ANY WARRANTY; without even the implied warranty of 303*f3f0262cSandi MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304*f3f0262cSandi GNU General Public License for more details. 305*f3f0262cSandi 306*f3f0262cSandi You should have received a copy of the GNU General Public License 307*f3f0262cSandi along with this program; if not, write to the Free Software 308*f3f0262cSandi Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 309*f3f0262cSandi 310*f3f0262cSandi 311*f3f0262cSandiAlso add information on how to contact you by electronic and paper mail. 312*f3f0262cSandi 313*f3f0262cSandiIf the program is interactive, make it output a short notice like this 314*f3f0262cSandiwhen it starts in an interactive mode: 315*f3f0262cSandi 316*f3f0262cSandi Gnomovision version 69, Copyright (C) year name of author 317*f3f0262cSandi Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 318*f3f0262cSandi This is free software, and you are welcome to redistribute it 319*f3f0262cSandi under certain conditions; type `show c' for details. 320*f3f0262cSandi 321*f3f0262cSandiThe hypothetical commands `show w' and `show c' should show the appropriate 322*f3f0262cSandiparts of the General Public License. Of course, the commands you use may 323*f3f0262cSandibe called something other than `show w' and `show c'; they could even be 324*f3f0262cSandimouse-clicks or menu items--whatever suits your program. 325*f3f0262cSandi 326*f3f0262cSandiYou should also get your employer (if you work as a programmer) or your 327*f3f0262cSandischool, if any, to sign a "copyright disclaimer" for the program, if 328*f3f0262cSandinecessary. Here is a sample; alter the names: 329*f3f0262cSandi 330*f3f0262cSandi Yoyodyne, Inc., hereby disclaims all copyright interest in the program 331*f3f0262cSandi `Gnomovision' (which makes passes at compilers) written by James Hacker. 332*f3f0262cSandi 333*f3f0262cSandi <signature of Ty Coon>, 1 April 1989 334*f3f0262cSandi Ty Coon, President of Vice 335*f3f0262cSandi 336*f3f0262cSandiThis General Public License does not permit incorporating your program into 337*f3f0262cSandiproprietary programs. If your program is a subroutine library, you may 338*f3f0262cSandiconsider it more useful to permit linking proprietary applications with the 339*f3f0262cSandilibrary. If this is what you want to do, use the GNU Library General 340*f3f0262cSandiPublic License instead of this License. 341