1*8164186cSedwardlab GNU GENERAL PUBLIC LICENSE 2*8164186cSedwardlab Version 2, June 1991 3*8164186cSedwardlab 4*8164186cSedwardlab Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5*8164186cSedwardlab 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6*8164186cSedwardlab Everyone is permitted to copy and distribute verbatim copies 7*8164186cSedwardlab of this license document, but changing it is not allowed. 8*8164186cSedwardlab 9*8164186cSedwardlab Preamble 10*8164186cSedwardlab 11*8164186cSedwardlab The licenses for most software are designed to take away your 12*8164186cSedwardlabfreedom to share and change it. By contrast, the GNU General Public 13*8164186cSedwardlabLicense is intended to guarantee your freedom to share and change free 14*8164186cSedwardlabsoftware--to make sure the software is free for all its users. This 15*8164186cSedwardlabGeneral Public License applies to most of the Free Software 16*8164186cSedwardlabFoundation's software and to any other program whose authors commit to 17*8164186cSedwardlabusing it. (Some other Free Software Foundation software is covered by 18*8164186cSedwardlabthe GNU Lesser General Public License instead.) You can apply it to 19*8164186cSedwardlabyour programs, too. 20*8164186cSedwardlab 21*8164186cSedwardlab When we speak of free software, we are referring to freedom, not 22*8164186cSedwardlabprice. Our General Public Licenses are designed to make sure that you 23*8164186cSedwardlabhave the freedom to distribute copies of free software (and charge for 24*8164186cSedwardlabthis service if you wish), that you receive source code or can get it 25*8164186cSedwardlabif you want it, that you can change the software or use pieces of it 26*8164186cSedwardlabin new free programs; and that you know you can do these things. 27*8164186cSedwardlab 28*8164186cSedwardlab To protect your rights, we need to make restrictions that forbid 29*8164186cSedwardlabanyone to deny you these rights or to ask you to surrender the rights. 30*8164186cSedwardlabThese restrictions translate to certain responsibilities for you if you 31*8164186cSedwardlabdistribute copies of the software, or if you modify it. 32*8164186cSedwardlab 33*8164186cSedwardlab For example, if you distribute copies of such a program, whether 34*8164186cSedwardlabgratis or for a fee, you must give the recipients all the rights that 35*8164186cSedwardlabyou have. You must make sure that they, too, receive or can get the 36*8164186cSedwardlabsource code. And you must show them these terms so they know their 37*8164186cSedwardlabrights. 38*8164186cSedwardlab 39*8164186cSedwardlab We protect your rights with two steps: (1) copyright the software, and 40*8164186cSedwardlab(2) offer you this license which gives you legal permission to copy, 41*8164186cSedwardlabdistribute and/or modify the software. 42*8164186cSedwardlab 43*8164186cSedwardlab Also, for each author's protection and ours, we want to make certain 44*8164186cSedwardlabthat everyone understands that there is no warranty for this free 45*8164186cSedwardlabsoftware. If the software is modified by someone else and passed on, we 46*8164186cSedwardlabwant its recipients to know that what they have is not the original, so 47*8164186cSedwardlabthat any problems introduced by others will not reflect on the original 48*8164186cSedwardlabauthors' reputations. 49*8164186cSedwardlab 50*8164186cSedwardlab Finally, any free program is threatened constantly by software 51*8164186cSedwardlabpatents. We wish to avoid the danger that redistributors of a free 52*8164186cSedwardlabprogram will individually obtain patent licenses, in effect making the 53*8164186cSedwardlabprogram proprietary. To prevent this, we have made it clear that any 54*8164186cSedwardlabpatent must be licensed for everyone's free use or not licensed at all. 55*8164186cSedwardlab 56*8164186cSedwardlab The precise terms and conditions for copying, distribution and 57*8164186cSedwardlabmodification follow. 58*8164186cSedwardlab 59*8164186cSedwardlab GNU GENERAL PUBLIC LICENSE 60*8164186cSedwardlab TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61*8164186cSedwardlab 62*8164186cSedwardlab 0. This License applies to any program or other work which contains 63*8164186cSedwardlaba notice placed by the copyright holder saying it may be distributed 64*8164186cSedwardlabunder the terms of this General Public License. The "Program", below, 65*8164186cSedwardlabrefers to any such program or work, and a "work based on the Program" 66*8164186cSedwardlabmeans either the Program or any derivative work under copyright law: 67*8164186cSedwardlabthat is to say, a work containing the Program or a portion of it, 68*8164186cSedwardlabeither verbatim or with modifications and/or translated into another 69*8164186cSedwardlablanguage. (Hereinafter, translation is included without limitation in 70*8164186cSedwardlabthe term "modification".) Each licensee is addressed as "you". 71*8164186cSedwardlab 72*8164186cSedwardlabActivities other than copying, distribution and modification are not 73*8164186cSedwardlabcovered by this License; they are outside its scope. The act of 74*8164186cSedwardlabrunning the Program is not restricted, and the output from the Program 75*8164186cSedwardlabis covered only if its contents constitute a work based on the 76*8164186cSedwardlabProgram (independent of having been made by running the Program). 77*8164186cSedwardlabWhether that is true depends on what the Program does. 78*8164186cSedwardlab 79*8164186cSedwardlab 1. You may copy and distribute verbatim copies of the Program's 80*8164186cSedwardlabsource code as you receive it, in any medium, provided that you 81*8164186cSedwardlabconspicuously and appropriately publish on each copy an appropriate 82*8164186cSedwardlabcopyright notice and disclaimer of warranty; keep intact all the 83*8164186cSedwardlabnotices that refer to this License and to the absence of any warranty; 84*8164186cSedwardlaband give any other recipients of the Program a copy of this License 85*8164186cSedwardlabalong with the Program. 86*8164186cSedwardlab 87*8164186cSedwardlabYou may charge a fee for the physical act of transferring a copy, and 88*8164186cSedwardlabyou may at your option offer warranty protection in exchange for a fee. 89*8164186cSedwardlab 90*8164186cSedwardlab 2. You may modify your copy or copies of the Program or any portion 91*8164186cSedwardlabof it, thus forming a work based on the Program, and copy and 92*8164186cSedwardlabdistribute such modifications or work under the terms of Section 1 93*8164186cSedwardlababove, provided that you also meet all of these conditions: 94*8164186cSedwardlab 95*8164186cSedwardlab a) You must cause the modified files to carry prominent notices 96*8164186cSedwardlab stating that you changed the files and the date of any change. 97*8164186cSedwardlab 98*8164186cSedwardlab b) You must cause any work that you distribute or publish, that in 99*8164186cSedwardlab whole or in part contains or is derived from the Program or any 100*8164186cSedwardlab part thereof, to be licensed as a whole at no charge to all third 101*8164186cSedwardlab parties under the terms of this License. 102*8164186cSedwardlab 103*8164186cSedwardlab c) If the modified program normally reads commands interactively 104*8164186cSedwardlab when run, you must cause it, when started running for such 105*8164186cSedwardlab interactive use in the most ordinary way, to print or display an 106*8164186cSedwardlab announcement including an appropriate copyright notice and a 107*8164186cSedwardlab notice that there is no warranty (or else, saying that you provide 108*8164186cSedwardlab a warranty) and that users may redistribute the program under 109*8164186cSedwardlab these conditions, and telling the user how to view a copy of this 110*8164186cSedwardlab License. (Exception: if the Program itself is interactive but 111*8164186cSedwardlab does not normally print such an announcement, your work based on 112*8164186cSedwardlab the Program is not required to print an announcement.) 113*8164186cSedwardlab 114*8164186cSedwardlabThese requirements apply to the modified work as a whole. If 115*8164186cSedwardlabidentifiable sections of that work are not derived from the Program, 116*8164186cSedwardlaband can be reasonably considered independent and separate works in 117*8164186cSedwardlabthemselves, then this License, and its terms, do not apply to those 118*8164186cSedwardlabsections when you distribute them as separate works. But when you 119*8164186cSedwardlabdistribute the same sections as part of a whole which is a work based 120*8164186cSedwardlabon the Program, the distribution of the whole must be on the terms of 121*8164186cSedwardlabthis License, whose permissions for other licensees extend to the 122*8164186cSedwardlabentire whole, and thus to each and every part regardless of who wrote it. 123*8164186cSedwardlab 124*8164186cSedwardlabThus, it is not the intent of this section to claim rights or contest 125*8164186cSedwardlabyour rights to work written entirely by you; rather, the intent is to 126*8164186cSedwardlabexercise the right to control the distribution of derivative or 127*8164186cSedwardlabcollective works based on the Program. 128*8164186cSedwardlab 129*8164186cSedwardlabIn addition, mere aggregation of another work not based on the Program 130*8164186cSedwardlabwith the Program (or with a work based on the Program) on a volume of 131*8164186cSedwardlaba storage or distribution medium does not bring the other work under 132*8164186cSedwardlabthe scope of this License. 133*8164186cSedwardlab 134*8164186cSedwardlab 3. You may copy and distribute the Program (or a work based on it, 135*8164186cSedwardlabunder Section 2) in object code or executable form under the terms of 136*8164186cSedwardlabSections 1 and 2 above provided that you also do one of the following: 137*8164186cSedwardlab 138*8164186cSedwardlab a) Accompany it with the complete corresponding machine-readable 139*8164186cSedwardlab source code, which must be distributed under the terms of Sections 140*8164186cSedwardlab 1 and 2 above on a medium customarily used for software interchange; or, 141*8164186cSedwardlab 142*8164186cSedwardlab b) Accompany it with a written offer, valid for at least three 143*8164186cSedwardlab years, to give any third party, for a charge no more than your 144*8164186cSedwardlab cost of physically performing source distribution, a complete 145*8164186cSedwardlab machine-readable copy of the corresponding source code, to be 146*8164186cSedwardlab distributed under the terms of Sections 1 and 2 above on a medium 147*8164186cSedwardlab customarily used for software interchange; or, 148*8164186cSedwardlab 149*8164186cSedwardlab c) Accompany it with the information you received as to the offer 150*8164186cSedwardlab to distribute corresponding source code. (This alternative is 151*8164186cSedwardlab allowed only for noncommercial distribution and only if you 152*8164186cSedwardlab received the program in object code or executable form with such 153*8164186cSedwardlab an offer, in accord with Subsection b above.) 154*8164186cSedwardlab 155*8164186cSedwardlabThe source code for a work means the preferred form of the work for 156*8164186cSedwardlabmaking modifications to it. For an executable work, complete source 157*8164186cSedwardlabcode means all the source code for all modules it contains, plus any 158*8164186cSedwardlabassociated interface definition files, plus the scripts used to 159*8164186cSedwardlabcontrol compilation and installation of the executable. However, as a 160*8164186cSedwardlabspecial exception, the source code distributed need not include 161*8164186cSedwardlabanything that is normally distributed (in either source or binary 162*8164186cSedwardlabform) with the major components (compiler, kernel, and so on) of the 163*8164186cSedwardlaboperating system on which the executable runs, unless that component 164*8164186cSedwardlabitself accompanies the executable. 165*8164186cSedwardlab 166*8164186cSedwardlabIf distribution of executable or object code is made by offering 167*8164186cSedwardlabaccess to copy from a designated place, then offering equivalent 168*8164186cSedwardlabaccess to copy the source code from the same place counts as 169*8164186cSedwardlabdistribution of the source code, even though third parties are not 170*8164186cSedwardlabcompelled to copy the source along with the object code. 171*8164186cSedwardlab 172*8164186cSedwardlab 4. You may not copy, modify, sublicense, or distribute the Program 173*8164186cSedwardlabexcept as expressly provided under this License. Any attempt 174*8164186cSedwardlabotherwise to copy, modify, sublicense or distribute the Program is 175*8164186cSedwardlabvoid, and will automatically terminate your rights under this License. 176*8164186cSedwardlabHowever, parties who have received copies, or rights, from you under 177*8164186cSedwardlabthis License will not have their licenses terminated so long as such 178*8164186cSedwardlabparties remain in full compliance. 179*8164186cSedwardlab 180*8164186cSedwardlab 5. You are not required to accept this License, since you have not 181*8164186cSedwardlabsigned it. However, nothing else grants you permission to modify or 182*8164186cSedwardlabdistribute the Program or its derivative works. These actions are 183*8164186cSedwardlabprohibited by law if you do not accept this License. Therefore, by 184*8164186cSedwardlabmodifying or distributing the Program (or any work based on the 185*8164186cSedwardlabProgram), you indicate your acceptance of this License to do so, and 186*8164186cSedwardlaball its terms and conditions for copying, distributing or modifying 187*8164186cSedwardlabthe Program or works based on it. 188*8164186cSedwardlab 189*8164186cSedwardlab 6. Each time you redistribute the Program (or any work based on the 190*8164186cSedwardlabProgram), the recipient automatically receives a license from the 191*8164186cSedwardlaboriginal licensor to copy, distribute or modify the Program subject to 192*8164186cSedwardlabthese terms and conditions. You may not impose any further 193*8164186cSedwardlabrestrictions on the recipients' exercise of the rights granted herein. 194*8164186cSedwardlabYou are not responsible for enforcing compliance by third parties to 195*8164186cSedwardlabthis License. 196*8164186cSedwardlab 197*8164186cSedwardlab 7. If, as a consequence of a court judgment or allegation of patent 198*8164186cSedwardlabinfringement or for any other reason (not limited to patent issues), 199*8164186cSedwardlabconditions are imposed on you (whether by court order, agreement or 200*8164186cSedwardlabotherwise) that contradict the conditions of this License, they do not 201*8164186cSedwardlabexcuse you from the conditions of this License. If you cannot 202*8164186cSedwardlabdistribute so as to satisfy simultaneously your obligations under this 203*8164186cSedwardlabLicense and any other pertinent obligations, then as a consequence you 204*8164186cSedwardlabmay not distribute the Program at all. For example, if a patent 205*8164186cSedwardlablicense would not permit royalty-free redistribution of the Program by 206*8164186cSedwardlaball those who receive copies directly or indirectly through you, then 207*8164186cSedwardlabthe only way you could satisfy both it and this License would be to 208*8164186cSedwardlabrefrain entirely from distribution of the Program. 209*8164186cSedwardlab 210*8164186cSedwardlabIf any portion of this section is held invalid or unenforceable under 211*8164186cSedwardlabany particular circumstance, the balance of the section is intended to 212*8164186cSedwardlabapply and the section as a whole is intended to apply in other 213*8164186cSedwardlabcircumstances. 214*8164186cSedwardlab 215*8164186cSedwardlabIt is not the purpose of this section to induce you to infringe any 216*8164186cSedwardlabpatents or other property right claims or to contest validity of any 217*8164186cSedwardlabsuch claims; this section has the sole purpose of protecting the 218*8164186cSedwardlabintegrity of the free software distribution system, which is 219*8164186cSedwardlabimplemented by public license practices. Many people have made 220*8164186cSedwardlabgenerous contributions to the wide range of software distributed 221*8164186cSedwardlabthrough that system in reliance on consistent application of that 222*8164186cSedwardlabsystem; it is up to the author/donor to decide if he or she is willing 223*8164186cSedwardlabto distribute software through any other system and a licensee cannot 224*8164186cSedwardlabimpose that choice. 225*8164186cSedwardlab 226*8164186cSedwardlabThis section is intended to make thoroughly clear what is believed to 227*8164186cSedwardlabbe a consequence of the rest of this License. 228*8164186cSedwardlab 229*8164186cSedwardlab 8. If the distribution and/or use of the Program is restricted in 230*8164186cSedwardlabcertain countries either by patents or by copyrighted interfaces, the 231*8164186cSedwardlaboriginal copyright holder who places the Program under this License 232*8164186cSedwardlabmay add an explicit geographical distribution limitation excluding 233*8164186cSedwardlabthose countries, so that distribution is permitted only in or among 234*8164186cSedwardlabcountries not thus excluded. In such case, this License incorporates 235*8164186cSedwardlabthe limitation as if written in the body of this License. 236*8164186cSedwardlab 237*8164186cSedwardlab 9. The Free Software Foundation may publish revised and/or new versions 238*8164186cSedwardlabof the General Public License from time to time. Such new versions will 239*8164186cSedwardlabbe similar in spirit to the present version, but may differ in detail to 240*8164186cSedwardlabaddress new problems or concerns. 241*8164186cSedwardlab 242*8164186cSedwardlabEach version is given a distinguishing version number. If the Program 243*8164186cSedwardlabspecifies a version number of this License which applies to it and "any 244*8164186cSedwardlablater version", you have the option of following the terms and conditions 245*8164186cSedwardlabeither of that version or of any later version published by the Free 246*8164186cSedwardlabSoftware Foundation. If the Program does not specify a version number of 247*8164186cSedwardlabthis License, you may choose any version ever published by the Free Software 248*8164186cSedwardlabFoundation. 249*8164186cSedwardlab 250*8164186cSedwardlab 10. If you wish to incorporate parts of the Program into other free 251*8164186cSedwardlabprograms whose distribution conditions are different, write to the author 252*8164186cSedwardlabto ask for permission. For software which is copyrighted by the Free 253*8164186cSedwardlabSoftware Foundation, write to the Free Software Foundation; we sometimes 254*8164186cSedwardlabmake exceptions for this. Our decision will be guided by the two goals 255*8164186cSedwardlabof preserving the free status of all derivatives of our free software and 256*8164186cSedwardlabof promoting the sharing and reuse of software generally. 257*8164186cSedwardlab 258*8164186cSedwardlab NO WARRANTY 259*8164186cSedwardlab 260*8164186cSedwardlab 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261*8164186cSedwardlabFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262*8164186cSedwardlabOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263*8164186cSedwardlabPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264*8164186cSedwardlabOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265*8164186cSedwardlabMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266*8164186cSedwardlabTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267*8164186cSedwardlabPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268*8164186cSedwardlabREPAIR OR CORRECTION. 269*8164186cSedwardlab 270*8164186cSedwardlab 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271*8164186cSedwardlabWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272*8164186cSedwardlabREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273*8164186cSedwardlabINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274*8164186cSedwardlabOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275*8164186cSedwardlabTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276*8164186cSedwardlabYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277*8164186cSedwardlabPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278*8164186cSedwardlabPOSSIBILITY OF SUCH DAMAGES. 279*8164186cSedwardlab 280*8164186cSedwardlab END OF TERMS AND CONDITIONS 281*8164186cSedwardlab 282*8164186cSedwardlab How to Apply These Terms to Your New Programs 283*8164186cSedwardlab 284*8164186cSedwardlab If you develop a new program, and you want it to be of the greatest 285*8164186cSedwardlabpossible use to the public, the best way to achieve this is to make it 286*8164186cSedwardlabfree software which everyone can redistribute and change under these terms. 287*8164186cSedwardlab 288*8164186cSedwardlab To do so, attach the following notices to the program. It is safest 289*8164186cSedwardlabto attach them to the start of each source file to most effectively 290*8164186cSedwardlabconvey the exclusion of warranty; and each file should have at least 291*8164186cSedwardlabthe "copyright" line and a pointer to where the full notice is found. 292*8164186cSedwardlab 293*8164186cSedwardlab <one line to give the program's name and a brief idea of what it does.> 294*8164186cSedwardlab Copyright (C) <year> <name of author> 295*8164186cSedwardlab 296*8164186cSedwardlab This program is free software; you can redistribute it and/or modify 297*8164186cSedwardlab it under the terms of the GNU General Public License as published by 298*8164186cSedwardlab the Free Software Foundation; either version 2 of the License, or 299*8164186cSedwardlab (at your option) any later version. 300*8164186cSedwardlab 301*8164186cSedwardlab This program is distributed in the hope that it will be useful, 302*8164186cSedwardlab but WITHOUT ANY WARRANTY; without even the implied warranty of 303*8164186cSedwardlab MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304*8164186cSedwardlab GNU General Public License for more details. 305*8164186cSedwardlab 306*8164186cSedwardlab You should have received a copy of the GNU General Public License along 307*8164186cSedwardlab with this program; if not, write to the Free Software Foundation, Inc., 308*8164186cSedwardlab 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309*8164186cSedwardlab 310*8164186cSedwardlabAlso add information on how to contact you by electronic and paper mail. 311*8164186cSedwardlab 312*8164186cSedwardlabIf the program is interactive, make it output a short notice like this 313*8164186cSedwardlabwhen it starts in an interactive mode: 314*8164186cSedwardlab 315*8164186cSedwardlab Gnomovision version 69, Copyright (C) year name of author 316*8164186cSedwardlab Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317*8164186cSedwardlab This is free software, and you are welcome to redistribute it 318*8164186cSedwardlab under certain conditions; type `show c' for details. 319*8164186cSedwardlab 320*8164186cSedwardlabThe hypothetical commands `show w' and `show c' should show the appropriate 321*8164186cSedwardlabparts of the General Public License. Of course, the commands you use may 322*8164186cSedwardlabbe called something other than `show w' and `show c'; they could even be 323*8164186cSedwardlabmouse-clicks or menu items--whatever suits your program. 324*8164186cSedwardlab 325*8164186cSedwardlabYou should also get your employer (if you work as a programmer) or your 326*8164186cSedwardlabschool, if any, to sign a "copyright disclaimer" for the program, if 327*8164186cSedwardlabnecessary. Here is a sample; alter the names: 328*8164186cSedwardlab 329*8164186cSedwardlab Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330*8164186cSedwardlab `Gnomovision' (which makes passes at compilers) written by James Hacker. 331*8164186cSedwardlab 332*8164186cSedwardlab <signature of Ty Coon>, 1 April 1989 333*8164186cSedwardlab Ty Coon, President of Vice 334*8164186cSedwardlab 335*8164186cSedwardlabThis General Public License does not permit incorporating your program into 336*8164186cSedwardlabproprietary programs. If your program is a subroutine library, you may 337*8164186cSedwardlabconsider it more useful to permit linking proprietary applications with the 338*8164186cSedwardlablibrary. If this is what you want to do, use the GNU Lesser General 339*8164186cSedwardlabPublic License instead of this License. 340