1116525Sru GNU GENERAL PUBLIC LICENSE 2116525Sru Version 2, June 1991 321495Sjmacd 4116525Sru Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5116525Sru 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 6116525Sru Everyone is permitted to copy and distribute verbatim copies 7116525Sru of this license document, but changing it is not allowed. 821495Sjmacd 9116525Sru Preamble 1021495Sjmacd 11116525Sru The licenses for most software are designed to take away your 12116525Srufreedom to share and change it. By contrast, the GNU General Public 13116525SruLicense is intended to guarantee your freedom to share and change free 14116525Srusoftware--to make sure the software is free for all its users. This 15116525SruGeneral Public License applies to most of the Free Software 16116525SruFoundation's software and to any other program whose authors commit to 17116525Sruusing it. (Some other Free Software Foundation software is covered by 18116525Sruthe GNU Library General Public License instead.) You can apply it to 19116525Sruyour programs, too. 20116525Sru 21116525Sru When we speak of free software, we are referring to freedom, not 22116525Sruprice. Our General Public Licenses are designed to make sure that you 23116525Sruhave the freedom to distribute copies of free software (and charge for 24116525Sruthis service if you wish), that you receive source code or can get it 25116525Sruif you want it, that you can change the software or use pieces of it 26116525Sruin new free programs; and that you know you can do these things. 27116525Sru 28116525Sru To protect your rights, we need to make restrictions that forbid 29116525Sruanyone to deny you these rights or to ask you to surrender the rights. 30116525SruThese restrictions translate to certain responsibilities for you if you 31116525Srudistribute copies of the software, or if you modify it. 32116525Sru 33116525Sru For example, if you distribute copies of such a program, whether 34116525Srugratis or for a fee, you must give the recipients all the rights that 35116525Sruyou have. You must make sure that they, too, receive or can get the 36116525Srusource code. And you must show them these terms so they know their 37116525Srurights. 38116525Sru 39116525Sru We protect your rights with two steps: (1) copyright the software, and 40116525Sru(2) offer you this license which gives you legal permission to copy, 41116525Srudistribute and/or modify the software. 42116525Sru 43116525Sru Also, for each author's protection and ours, we want to make certain 44116525Sruthat everyone understands that there is no warranty for this free 45116525Srusoftware. If the software is modified by someone else and passed on, we 46116525Sruwant its recipients to know that what they have is not the original, so 47116525Sruthat any problems introduced by others will not reflect on the original 48116525Sruauthors' reputations. 49116525Sru 50116525Sru Finally, any free program is threatened constantly by software 51116525Srupatents. We wish to avoid the danger that redistributors of a free 52116525Sruprogram will individually obtain patent licenses, in effect making the 53116525Sruprogram proprietary. To prevent this, we have made it clear that any 54116525Srupatent must be licensed for everyone's free use or not licensed at all. 55116525Sru 56116525Sru The precise terms and conditions for copying, distribution and 57116525Srumodification follow. 58116525Sru 59116525Sru GNU GENERAL PUBLIC LICENSE 60116525Sru TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61116525Sru 62116525Sru 0. This License applies to any program or other work which contains 63116525Srua notice placed by the copyright holder saying it may be distributed 64116525Sruunder the terms of this General Public License. The "Program", below, 65116525Srurefers to any such program or work, and a "work based on the Program" 66116525Srumeans either the Program or any derivative work under copyright law: 67116525Sruthat is to say, a work containing the Program or a portion of it, 68116525Srueither verbatim or with modifications and/or translated into another 69116525Srulanguage. (Hereinafter, translation is included without limitation in 70116525Sruthe term "modification".) Each licensee is addressed as "you". 71116525Sru 72116525SruActivities other than copying, distribution and modification are not 73116525Srucovered by this License; they are outside its scope. The act of 74116525Srurunning the Program is not restricted, and the output from the Program 75116525Sruis covered only if its contents constitute a work based on the 76116525SruProgram (independent of having been made by running the Program). 77116525SruWhether that is true depends on what the Program does. 78116525Sru 79116525Sru 1. You may copy and distribute verbatim copies of the Program's 80116525Srusource code as you receive it, in any medium, provided that you 81116525Sruconspicuously and appropriately publish on each copy an appropriate 82116525Srucopyright notice and disclaimer of warranty; keep intact all the 83116525Srunotices that refer to this License and to the absence of any warranty; 84116525Sruand give any other recipients of the Program a copy of this License 85116525Srualong with the Program. 86116525Sru 87116525SruYou may charge a fee for the physical act of transferring a copy, and 88116525Sruyou may at your option offer warranty protection in exchange for a fee. 89116525Sru 90116525Sru 2. You may modify your copy or copies of the Program or any portion 91116525Sruof it, thus forming a work based on the Program, and copy and 92116525Srudistribute such modifications or work under the terms of Section 1 93116525Sruabove, provided that you also meet all of these conditions: 94116525Sru 95116525Sru a) You must cause the modified files to carry prominent notices 96116525Sru stating that you changed the files and the date of any change. 97116525Sru 98116525Sru b) You must cause any work that you distribute or publish, that in 99116525Sru whole or in part contains or is derived from the Program or any 100116525Sru part thereof, to be licensed as a whole at no charge to all third 101116525Sru parties under the terms of this License. 102116525Sru 103116525Sru c) If the modified program normally reads commands interactively 104116525Sru when run, you must cause it, when started running for such 105116525Sru interactive use in the most ordinary way, to print or display an 106116525Sru announcement including an appropriate copyright notice and a 107116525Sru notice that there is no warranty (or else, saying that you provide 108116525Sru a warranty) and that users may redistribute the program under 109116525Sru these conditions, and telling the user how to view a copy of this 110116525Sru License. (Exception: if the Program itself is interactive but 111116525Sru does not normally print such an announcement, your work based on 112116525Sru the Program is not required to print an announcement.) 113116525Sru 114116525SruThese requirements apply to the modified work as a whole. If 115116525Sruidentifiable sections of that work are not derived from the Program, 116116525Sruand can be reasonably considered independent and separate works in 117116525Sruthemselves, then this License, and its terms, do not apply to those 118116525Srusections when you distribute them as separate works. But when you 119116525Srudistribute the same sections as part of a whole which is a work based 120116525Sruon the Program, the distribution of the whole must be on the terms of 121116525Sruthis License, whose permissions for other licensees extend to the 122116525Sruentire whole, and thus to each and every part regardless of who wrote it. 123116525Sru 124116525SruThus, it is not the intent of this section to claim rights or contest 125116525Sruyour rights to work written entirely by you; rather, the intent is to 126116525Sruexercise the right to control the distribution of derivative or 127116525Srucollective works based on the Program. 128116525Sru 129116525SruIn addition, mere aggregation of another work not based on the Program 130116525Sruwith the Program (or with a work based on the Program) on a volume of 131116525Srua storage or distribution medium does not bring the other work under 132116525Sruthe scope of this License. 133116525Sru 134116525Sru 3. You may copy and distribute the Program (or a work based on it, 135116525Sruunder Section 2) in object code or executable form under the terms of 136116525SruSections 1 and 2 above provided that you also do one of the following: 137116525Sru 138116525Sru a) Accompany it with the complete corresponding machine-readable 139116525Sru source code, which must be distributed under the terms of Sections 140116525Sru 1 and 2 above on a medium customarily used for software interchange; or, 141116525Sru 142116525Sru b) Accompany it with a written offer, valid for at least three 143116525Sru years, to give any third party, for a charge no more than your 144116525Sru cost of physically performing source distribution, a complete 145116525Sru machine-readable copy of the corresponding source code, to be 146116525Sru distributed under the terms of Sections 1 and 2 above on a medium 147116525Sru customarily used for software interchange; or, 148116525Sru 149116525Sru c) Accompany it with the information you received as to the offer 150116525Sru to distribute corresponding source code. (This alternative is 151116525Sru allowed only for noncommercial distribution and only if you 152116525Sru received the program in object code or executable form with such 153116525Sru an offer, in accord with Subsection b above.) 154116525Sru 155116525SruThe source code for a work means the preferred form of the work for 156116525Srumaking modifications to it. For an executable work, complete source 157116525Srucode means all the source code for all modules it contains, plus any 158116525Sruassociated interface definition files, plus the scripts used to 159116525Srucontrol compilation and installation of the executable. However, as a 160116525Sruspecial exception, the source code distributed need not include 161116525Sruanything that is normally distributed (in either source or binary 162116525Sruform) with the major components (compiler, kernel, and so on) of the 163116525Sruoperating system on which the executable runs, unless that component 164116525Sruitself accompanies the executable. 165116525Sru 166116525SruIf distribution of executable or object code is made by offering 167116525Sruaccess to copy from a designated place, then offering equivalent 168116525Sruaccess to copy the source code from the same place counts as 169116525Srudistribution of the source code, even though third parties are not 170116525Srucompelled to copy the source along with the object code. 171116525Sru 172116525Sru 4. You may not copy, modify, sublicense, or distribute the Program 173116525Sruexcept as expressly provided under this License. Any attempt 174116525Sruotherwise to copy, modify, sublicense or distribute the Program is 175116525Sruvoid, and will automatically terminate your rights under this License. 176116525SruHowever, parties who have received copies, or rights, from you under 177116525Sruthis License will not have their licenses terminated so long as such 178116525Sruparties remain in full compliance. 179116525Sru 180116525Sru 5. You are not required to accept this License, since you have not 181116525Srusigned it. However, nothing else grants you permission to modify or 182116525Srudistribute the Program or its derivative works. These actions are 183116525Sruprohibited by law if you do not accept this License. Therefore, by 184116525Srumodifying or distributing the Program (or any work based on the 185116525SruProgram), you indicate your acceptance of this License to do so, and 186116525Sruall its terms and conditions for copying, distributing or modifying 187116525Sruthe Program or works based on it. 188116525Sru 189116525Sru 6. Each time you redistribute the Program (or any work based on the 190116525SruProgram), the recipient automatically receives a license from the 191116525Sruoriginal licensor to copy, distribute or modify the Program subject to 192116525Sruthese terms and conditions. You may not impose any further 193116525Srurestrictions on the recipients' exercise of the rights granted herein. 194116525SruYou are not responsible for enforcing compliance by third parties to 195116525Sruthis License. 196116525Sru 197116525Sru 7. If, as a consequence of a court judgment or allegation of patent 198116525Sruinfringement or for any other reason (not limited to patent issues), 199116525Sruconditions are imposed on you (whether by court order, agreement or 200116525Sruotherwise) that contradict the conditions of this License, they do not 201116525Sruexcuse you from the conditions of this License. If you cannot 202116525Srudistribute so as to satisfy simultaneously your obligations under this 203116525SruLicense and any other pertinent obligations, then as a consequence you 204116525Srumay not distribute the Program at all. For example, if a patent 205116525Srulicense would not permit royalty-free redistribution of the Program by 206116525Sruall those who receive copies directly or indirectly through you, then 207116525Sruthe only way you could satisfy both it and this License would be to 208116525Srurefrain entirely from distribution of the Program. 209116525Sru 210116525SruIf any portion of this section is held invalid or unenforceable under 211116525Sruany particular circumstance, the balance of the section is intended to 212116525Sruapply and the section as a whole is intended to apply in other 213116525Srucircumstances. 214116525Sru 215116525SruIt is not the purpose of this section to induce you to infringe any 216116525Srupatents or other property right claims or to contest validity of any 217116525Srusuch claims; this section has the sole purpose of protecting the 218116525Sruintegrity of the free software distribution system, which is 219116525Sruimplemented by public license practices. Many people have made 220116525Srugenerous contributions to the wide range of software distributed 221116525Sruthrough that system in reliance on consistent application of that 222116525Srusystem; it is up to the author/donor to decide if he or she is willing 223116525Sruto distribute software through any other system and a licensee cannot 224116525Sruimpose that choice. 225116525Sru 226116525SruThis section is intended to make thoroughly clear what is believed to 227116525Srube a consequence of the rest of this License. 228116525Sru 229116525Sru 8. If the distribution and/or use of the Program is restricted in 230116525Srucertain countries either by patents or by copyrighted interfaces, the 231116525Sruoriginal copyright holder who places the Program under this License 232116525Srumay add an explicit geographical distribution limitation excluding 233116525Sruthose countries, so that distribution is permitted only in or among 234116525Srucountries not thus excluded. In such case, this License incorporates 235116525Sruthe limitation as if written in the body of this License. 236116525Sru 237116525Sru 9. The Free Software Foundation may publish revised and/or new versions 238116525Sruof the General Public License from time to time. Such new versions will 239116525Srube similar in spirit to the present version, but may differ in detail to 240116525Sruaddress new problems or concerns. 241116525Sru 242116525SruEach version is given a distinguishing version number. If the Program 243116525Sruspecifies a version number of this License which applies to it and "any 244116525Srulater version", you have the option of following the terms and conditions 245116525Srueither of that version or of any later version published by the Free 246116525SruSoftware Foundation. If the Program does not specify a version number of 247116525Sruthis License, you may choose any version ever published by the Free Software 248116525SruFoundation. 249116525Sru 250116525Sru 10. If you wish to incorporate parts of the Program into other free 251116525Sruprograms whose distribution conditions are different, write to the author 252116525Sruto ask for permission. For software which is copyrighted by the Free 253116525SruSoftware Foundation, write to the Free Software Foundation; we sometimes 254116525Srumake exceptions for this. Our decision will be guided by the two goals 255116525Sruof preserving the free status of all derivatives of our free software and 256116525Sruof promoting the sharing and reuse of software generally. 257116525Sru 258116525Sru NO WARRANTY 259116525Sru 260116525Sru 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261116525SruFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262116525SruOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263116525SruPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264116525SruOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265116525SruMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266116525SruTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267116525SruPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268116525SruREPAIR OR CORRECTION. 269116525Sru 270116525Sru 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271116525SruWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272116525SruREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273116525SruINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274116525SruOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275116525SruTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276116525SruYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277116525SruPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278116525SruPOSSIBILITY OF SUCH DAMAGES. 279116525Sru 280116525Sru END OF TERMS AND CONDITIONS 281116525Sru 282116525Sru How to Apply These Terms to Your New Programs 283116525Sru 284116525Sru If you develop a new program, and you want it to be of the greatest 285116525Srupossible use to the public, the best way to achieve this is to make it 286116525Srufree software which everyone can redistribute and change under these terms. 287116525Sru 288116525Sru To do so, attach the following notices to the program. It is safest 289116525Sruto attach them to the start of each source file to most effectively 290116525Sruconvey the exclusion of warranty; and each file should have at least 291116525Sruthe "copyright" line and a pointer to where the full notice is found. 292116525Sru 293116525Sru <one line to give the program's name and a brief idea of what it does.> 294116525Sru Copyright (C) <year> <name of author> 295116525Sru 296116525Sru This program is free software; you can redistribute it and/or modify 297116525Sru it under the terms of the GNU General Public License as published by 298116525Sru the Free Software Foundation; either version 2 of the License, or 299116525Sru (at your option) any later version. 300116525Sru 301116525Sru This program is distributed in the hope that it will be useful, 302116525Sru but WITHOUT ANY WARRANTY; without even the implied warranty of 303116525Sru MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304116525Sru GNU General Public License for more details. 305116525Sru 306116525Sru You should have received a copy of the GNU General Public License 307116525Sru along with this program; if not, write to the Free Software 308116525Sru Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 309116525Sru 310116525Sru 311116525SruAlso add information on how to contact you by electronic and paper mail. 312116525Sru 313116525SruIf the program is interactive, make it output a short notice like this 314116525Sruwhen it starts in an interactive mode: 315116525Sru 316116525Sru Gnomovision version 69, Copyright (C) year name of author 317116525Sru Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 318116525Sru This is free software, and you are welcome to redistribute it 319116525Sru under certain conditions; type `show c' for details. 320116525Sru 321116525SruThe hypothetical commands `show w' and `show c' should show the appropriate 322116525Sruparts of the General Public License. Of course, the commands you use may 323116525Srube called something other than `show w' and `show c'; they could even be 324116525Srumouse-clicks or menu items--whatever suits your program. 325116525Sru 326116525SruYou should also get your employer (if you work as a programmer) or your 327116525Sruschool, if any, to sign a "copyright disclaimer" for the program, if 328116525Srunecessary. Here is a sample; alter the names: 329116525Sru 330116525Sru Yoyodyne, Inc., hereby disclaims all copyright interest in the program 331116525Sru `Gnomovision' (which makes passes at compilers) written by James Hacker. 332116525Sru 333116525Sru <signature of Ty Coon>, 1 April 1989 334116525Sru Ty Coon, President of Vice 335116525Sru 336116525SruThis General Public License does not permit incorporating your program into 337116525Sruproprietary programs. If your program is a subroutine library, you may 338116525Sruconsider it more useful to permit linking proprietary applications with the 339116525Srulibrary. If this is what you want to do, use the GNU Library General 340116525SruPublic License instead of this License. 341