duke@2: The GNU General Public License (GPL) duke@2: duke@2: Version 2, June 1991 duke@2: duke@2: Copyright (C) 1989, 1991 Free Software Foundation, Inc. duke@2: 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA duke@2: duke@2: Everyone is permitted to copy and distribute verbatim copies of this license duke@2: document, but changing it is not allowed. duke@2: duke@2: Preamble duke@2: duke@2: The licenses for most software are designed to take away your freedom to share duke@2: and change it. By contrast, the GNU General Public License is intended to duke@2: guarantee your freedom to share and change free software--to make sure the duke@2: software is free for all its users. This General Public License applies to duke@2: most of the Free Software Foundation's software and to any other program whose duke@2: authors commit to using it. (Some other Free Software Foundation software is duke@2: covered by the GNU Library General Public License instead.) You can apply it to duke@2: your programs, too. duke@2: duke@2: When we speak of free software, we are referring to freedom, not price. Our duke@2: General Public Licenses are designed to make sure that you have the freedom to duke@2: distribute copies of free software (and charge for this service if you wish), duke@2: that you receive source code or can get it if you want it, that you can change duke@2: the software or use pieces of it in new free programs; and that you know you duke@2: can do these things. duke@2: duke@2: To protect your rights, we need to make restrictions that forbid anyone to deny duke@2: you these rights or to ask you to surrender the rights. These restrictions duke@2: translate to certain responsibilities for you if you distribute copies of the duke@2: software, or if you modify it. duke@2: duke@2: For example, if you distribute copies of such a program, whether gratis or for duke@2: a fee, you must give the recipients all the rights that you have. You must duke@2: make sure that they, too, receive or can get the source code. And you must duke@2: show them these terms so they know their rights. duke@2: duke@2: We protect your rights with two steps: (1) copyright the software, and (2) duke@2: offer you this license which gives you legal permission to copy, distribute duke@2: and/or modify the software. duke@2: duke@2: Also, for each author's protection and ours, we want to make certain that duke@2: everyone understands that there is no warranty for this free software. If the duke@2: software is modified by someone else and passed on, we want its recipients to duke@2: know that what they have is not the original, so that any problems introduced duke@2: by others will not reflect on the original authors' reputations. duke@2: duke@2: Finally, any free program is threatened constantly by software patents. We duke@2: wish to avoid the danger that redistributors of a free program will duke@2: individually obtain patent licenses, in effect making the program proprietary. duke@2: To prevent this, we have made it clear that any patent must be licensed for duke@2: everyone's free use or not licensed at all. duke@2: duke@2: The precise terms and conditions for copying, distribution and modification duke@2: follow. duke@2: duke@2: TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION duke@2: duke@2: 0. This License applies to any program or other work which contains a notice duke@2: placed by the copyright holder saying it may be distributed under the terms of duke@2: this General Public License. The "Program", below, refers to any such program duke@2: or work, and a "work based on the Program" means either the Program or any duke@2: derivative work under copyright law: that is to say, a work containing the duke@2: Program or a portion of it, either verbatim or with modifications and/or duke@2: translated into another language. (Hereinafter, translation is included duke@2: without limitation in the term "modification".) Each licensee is addressed as duke@2: "you". duke@2: duke@2: Activities other than copying, distribution and modification are not covered by duke@2: this License; they are outside its scope. The act of running the Program is duke@2: not restricted, and the output from the Program is covered only if its contents duke@2: constitute a work based on the Program (independent of having been made by duke@2: running the Program). Whether that is true depends on what the Program does. duke@2: duke@2: 1. You may copy and distribute verbatim copies of the Program's source code as duke@2: you receive it, in any medium, provided that you conspicuously and duke@2: appropriately publish on each copy an appropriate copyright notice and duke@2: disclaimer of warranty; keep intact all the notices that refer to this License duke@2: and to the absence of any warranty; and give any other recipients of the duke@2: Program a copy of this License along with the Program. duke@2: duke@2: You may charge a fee for the physical act of transferring a copy, and you may duke@2: at your option offer warranty protection in exchange for a fee. duke@2: duke@2: 2. You may modify your copy or copies of the Program or any portion of it, thus duke@2: forming a work based on the Program, and copy and distribute such modifications duke@2: or work under the terms of Section 1 above, provided that you also meet all of duke@2: these conditions: duke@2: duke@2: a) You must cause the modified files to carry prominent notices stating duke@2: that you changed the files and the date of any change. duke@2: duke@2: b) You must cause any work that you distribute or publish, that in whole or duke@2: in part contains or is derived from the Program or any part thereof, to be duke@2: licensed as a whole at no charge to all third parties under the terms of duke@2: this License. duke@2: duke@2: c) If the modified program normally reads commands interactively when run, duke@2: you must cause it, when started running for such interactive use in the duke@2: most ordinary way, to print or display an announcement including an duke@2: appropriate copyright notice and a notice that there is no warranty (or duke@2: else, saying that you provide a warranty) and that users may redistribute duke@2: the program under these conditions, and telling the user how to view a copy duke@2: of this License. (Exception: if the Program itself is interactive but does duke@2: not normally print such an announcement, your work based on the Program is duke@2: not required to print an announcement.) duke@2: duke@2: These requirements apply to the modified work as a whole. If identifiable duke@2: sections of that work are not derived from the Program, and can be reasonably duke@2: considered independent and separate works in themselves, then this License, and duke@2: its terms, do not apply to those sections when you distribute them as separate duke@2: works. But when you distribute the same sections as part of a whole which is a duke@2: work based on the Program, the distribution of the whole must be on the terms duke@2: of this License, whose permissions for other licensees extend to the entire duke@2: whole, and thus to each and every part regardless of who wrote it. duke@2: duke@2: Thus, it is not the intent of this section to claim rights or contest your duke@2: rights to work written entirely by you; rather, the intent is to exercise the duke@2: right to control the distribution of derivative or collective works based on duke@2: the Program. duke@2: duke@2: In addition, mere aggregation of another work not based on the Program with the duke@2: Program (or with a work based on the Program) on a volume of a storage or duke@2: distribution medium does not bring the other work under the scope of this duke@2: License. duke@2: duke@2: 3. You may copy and distribute the Program (or a work based on it, under duke@2: Section 2) in object code or executable form under the terms of Sections 1 and duke@2: 2 above provided that you also do one of the following: duke@2: duke@2: a) Accompany it with the complete corresponding machine-readable source duke@2: code, which must be distributed under the terms of Sections 1 and 2 above duke@2: on a medium customarily used for software interchange; or, duke@2: duke@2: b) Accompany it with a written offer, valid for at least three years, to duke@2: give any third party, for a charge no more than your cost of physically duke@2: performing source distribution, a complete machine-readable copy of the duke@2: corresponding source code, to be distributed under the terms of Sections 1 duke@2: and 2 above on a medium customarily used for software interchange; or, duke@2: duke@2: c) Accompany it with the information you received as to the offer to duke@2: distribute corresponding source code. (This alternative is allowed only duke@2: for noncommercial distribution and only if you received the program in duke@2: object code or executable form with such an offer, in accord with duke@2: Subsection b above.) duke@2: duke@2: The source code for a work means the preferred form of the work for making duke@2: modifications to it. For an executable work, complete source code means all duke@2: the source code for all modules it contains, plus any associated interface duke@2: definition files, plus the scripts used to control compilation and installation duke@2: of the executable. However, as a special exception, the source code duke@2: distributed need not include anything that is normally distributed (in either duke@2: source or binary form) with the major components (compiler, kernel, and so on) duke@2: of the operating system on which the executable runs, unless that component duke@2: itself accompanies the executable. duke@2: duke@2: If distribution of executable or object code is made by offering access to copy duke@2: from a designated place, then offering equivalent access to copy the source duke@2: code from the same place counts as distribution of the source code, even though duke@2: third parties are not compelled to copy the source along with the object code. duke@2: duke@2: 4. You may not copy, modify, sublicense, or distribute the Program except as duke@2: expressly provided under this License. Any attempt otherwise to copy, modify, duke@2: sublicense or distribute the Program is void, and will automatically terminate duke@2: your rights under this License. However, parties who have received copies, or duke@2: rights, from you under this License will not have their licenses terminated so duke@2: long as such parties remain in full compliance. duke@2: duke@2: 5. You are not required to accept this License, since you have not signed it. duke@2: However, nothing else grants you permission to modify or distribute the Program duke@2: or its derivative works. These actions are prohibited by law if you do not duke@2: accept this License. Therefore, by modifying or distributing the Program (or duke@2: any work based on the Program), you indicate your acceptance of this License to duke@2: do so, and all its terms and conditions for copying, distributing or modifying duke@2: the Program or works based on it. duke@2: duke@2: 6. Each time you redistribute the Program (or any work based on the Program), duke@2: the recipient automatically receives a license from the original licensor to duke@2: copy, distribute or modify the Program subject to these terms and conditions. duke@2: You may not impose any further restrictions on the recipients' exercise of the duke@2: rights granted herein. You are not responsible for enforcing compliance by duke@2: third parties to this License. duke@2: duke@2: 7. If, as a consequence of a court judgment or allegation of patent duke@2: infringement or for any other reason (not limited to patent issues), conditions duke@2: are imposed on you (whether by court order, agreement or otherwise) that duke@2: contradict the conditions of this License, they do not excuse you from the duke@2: conditions of this License. If you cannot distribute so as to satisfy duke@2: simultaneously your obligations under this License and any other pertinent duke@2: obligations, then as a consequence you may not distribute the Program at all. duke@2: For example, if a patent license would not permit royalty-free redistribution duke@2: of the Program by all those who receive copies directly or indirectly through duke@2: you, then the only way you could satisfy both it and this License would be to duke@2: refrain entirely from distribution of the Program. duke@2: duke@2: If any portion of this section is held invalid or unenforceable under any duke@2: particular circumstance, the balance of the section is intended to apply and duke@2: the section as a whole is intended to apply in other circumstances. duke@2: duke@2: It is not the purpose of this section to induce you to infringe any patents or duke@2: other property right claims or to contest validity of any such claims; this duke@2: section has the sole purpose of protecting the integrity of the free software duke@2: distribution system, which is implemented by public license practices. Many duke@2: people have made generous contributions to the wide range of software duke@2: distributed through that system in reliance on consistent application of that duke@2: system; it is up to the author/donor to decide if he or she is willing to duke@2: distribute software through any other system and a licensee cannot impose that duke@2: choice. duke@2: duke@2: This section is intended to make thoroughly clear what is believed to be a duke@2: consequence of the rest of this License. duke@2: duke@2: 8. If the distribution and/or use of the Program is restricted in certain duke@2: countries either by patents or by copyrighted interfaces, the original duke@2: copyright holder who places the Program under this License may add an explicit duke@2: geographical distribution limitation excluding those countries, so that duke@2: distribution is permitted only in or among countries not thus excluded. In duke@2: such case, this License incorporates the limitation as if written in the body duke@2: of this License. duke@2: duke@2: 9. The Free Software Foundation may publish revised and/or new versions of the duke@2: General Public License from time to time. Such new versions will be similar in duke@2: spirit to the present version, but may differ in detail to address new problems duke@2: or concerns. duke@2: duke@2: Each version is given a distinguishing version number. If the Program duke@2: specifies a version number of this License which applies to it and "any later duke@2: version", you have the option of following the terms and conditions either of duke@2: that version or of any later version published by the Free Software Foundation. duke@2: If the Program does not specify a version number of this License, you may duke@2: choose any version ever published by the Free Software Foundation. duke@2: duke@2: 10. If you wish to incorporate parts of the Program into other free programs duke@2: whose distribution conditions are different, write to the author to ask for duke@2: permission. For software which is copyrighted by the Free Software Foundation, duke@2: write to the Free Software Foundation; we sometimes make exceptions for this. duke@2: Our decision will be guided by the two goals of preserving the free status of duke@2: all derivatives of our free software and of promoting the sharing and reuse of duke@2: software generally. duke@2: duke@2: NO WARRANTY duke@2: duke@2: 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR duke@2: THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE duke@2: STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE duke@2: PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, duke@2: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND duke@2: FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND duke@2: PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, duke@2: YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. duke@2: duke@2: 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL duke@2: ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE duke@2: PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY duke@2: GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR duke@2: INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA duke@2: BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A duke@2: FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER duke@2: OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. duke@2: duke@2: END OF TERMS AND CONDITIONS duke@2: duke@2: How to Apply These Terms to Your New Programs duke@2: duke@2: If you develop a new program, and you want it to be of the greatest possible duke@2: use to the public, the best way to achieve this is to make it free software duke@2: which everyone can redistribute and change under these terms. duke@2: duke@2: To do so, attach the following notices to the program. It is safest to attach duke@2: them to the start of each source file to most effectively convey the exclusion duke@2: of warranty; and each file should have at least the "copyright" line and a duke@2: pointer to where the full notice is found. duke@2: duke@2: One line to give the program's name and a brief idea of what it does. duke@2: duke@2: Copyright (C) duke@2: duke@2: This program is free software; you can redistribute it and/or modify it duke@2: under the terms of the GNU General Public License as published by the Free duke@2: Software Foundation; either version 2 of the License, or (at your option) duke@2: any later version. duke@2: duke@2: This program is distributed in the hope that it will be useful, but WITHOUT duke@2: ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or duke@2: FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for duke@2: more details. duke@2: duke@2: You should have received a copy of the GNU General Public License along duke@2: with this program; if not, write to the Free Software Foundation, Inc., 59 duke@2: Temple Place, Suite 330, Boston, MA 02111-1307 USA duke@2: duke@2: Also add information on how to contact you by electronic and paper mail. duke@2: duke@2: If the program is interactive, make it output a short notice like this when it duke@2: starts in an interactive mode: duke@2: duke@2: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes duke@2: with ABSOLUTELY NO WARRANTY; for details type 'show w'. This is free duke@2: software, and you are welcome to redistribute it under certain conditions; duke@2: type 'show c' for details. duke@2: duke@2: The hypothetical commands 'show w' and 'show c' should show the appropriate duke@2: parts of the General Public License. Of course, the commands you use may be duke@2: called something other than 'show w' and 'show c'; they could even be duke@2: mouse-clicks or menu items--whatever suits your program. duke@2: duke@2: You should also get your employer (if you work as a programmer) or your school, duke@2: if any, to sign a "copyright disclaimer" for the program, if necessary. Here duke@2: is a sample; alter the names: duke@2: duke@2: Yoyodyne, Inc., hereby disclaims all copyright interest in the program duke@2: 'Gnomovision' (which makes passes at compilers) written by James Hacker. duke@2: duke@2: signature of Ty Coon, 1 April 1989 duke@2: duke@2: Ty Coon, President of Vice duke@2: duke@2: This General Public License does not permit incorporating your program into duke@2: proprietary programs. If your program is a subroutine library, you may duke@2: consider it more useful to permit linking proprietary applications with the duke@2: library. If this is what you want to do, use the GNU Library General Public duke@2: License instead of this License. duke@2: duke@2: duke@2: "CLASSPATH" EXCEPTION TO THE GPL duke@2: ohair@309: Certain source files distributed by Oracle America and/or its affiliates are ohair@309: subject to the following clarification and special exception to the GPL, but ohair@309: only where Oracle has expressly included in the particular source file's header ohair@309: the words "Oracle designates this particular file as subject to the "Classpath" ohair@309: exception as provided by Oracle in the LICENSE file that accompanied this code." duke@2: duke@2: Linking this library statically or dynamically with other modules is making duke@2: a combined work based on this library. Thus, the terms and conditions of duke@2: the GNU General Public License cover the whole combination. duke@2: duke@2: As a special exception, the copyright holders of this library give you duke@2: permission to link this library with independent modules to produce an duke@2: executable, regardless of the license terms of these independent modules, duke@2: and to copy and distribute the resulting executable under terms of your duke@2: choice, provided that you also meet, for each linked independent module, duke@2: the terms and conditions of the license of that module. An independent duke@2: module is a module which is not derived from or based on this library. If duke@2: you modify this library, you may extend this exception to your version of duke@2: the library, but you are not obligated to do so. If you do not wish to do duke@2: so, delete this exception statement from your version.