118099Spst		    GNU GENERAL PUBLIC LICENSE
218099Spst		       Version 2, June 1991
318099Spst
4151497Sru Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5151497Sru     51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
618099Spst Everyone is permitted to copy and distribute verbatim copies
718099Spst of this license document, but changing it is not allowed.
818099Spst
918099Spst			    Preamble
1018099Spst
1118099Spst  The licenses for most software are designed to take away your
1218099Spstfreedom to share and change it.  By contrast, the GNU General Public
1318099SpstLicense is intended to guarantee your freedom to share and change free
1418099Spstsoftware--to make sure the software is free for all its users.  This
1518099SpstGeneral Public License applies to most of the Free Software
1618099SpstFoundation's software and to any other program whose authors commit to
1718099Spstusing it.  (Some other Free Software Foundation software is covered by
1818099Spstthe GNU Library General Public License instead.)  You can apply it to
1918099Spstyour programs, too.
2018099Spst
2118099Spst  When we speak of free software, we are referring to freedom, not
2218099Spstprice.  Our General Public Licenses are designed to make sure that you
2318099Spsthave the freedom to distribute copies of free software (and charge for
2418099Spstthis service if you wish), that you receive source code or can get it
2518099Spstif you want it, that you can change the software or use pieces of it
2618099Spstin new free programs; and that you know you can do these things.
2718099Spst
2818099Spst  To protect your rights, we need to make restrictions that forbid
2918099Spstanyone to deny you these rights or to ask you to surrender the rights.
3018099SpstThese restrictions translate to certain responsibilities for you if you
3118099Spstdistribute copies of the software, or if you modify it.
3218099Spst
3318099Spst  For example, if you distribute copies of such a program, whether
3418099Spstgratis or for a fee, you must give the recipients all the rights that
3518099Spstyou have.  You must make sure that they, too, receive or can get the
3618099Spstsource code.  And you must show them these terms so they know their
3718099Spstrights.
3818099Spst
3918099Spst  We protect your rights with two steps: (1) copyright the software, and
4018099Spst(2) offer you this license which gives you legal permission to copy,
4118099Spstdistribute and/or modify the software.
4218099Spst
4318099Spst  Also, for each author's protection and ours, we want to make certain
4418099Spstthat everyone understands that there is no warranty for this free
4518099Spstsoftware.  If the software is modified by someone else and passed on, we
4618099Spstwant its recipients to know that what they have is not the original, so
4718099Spstthat any problems introduced by others will not reflect on the original
4818099Spstauthors' reputations.
4918099Spst
5018099Spst  Finally, any free program is threatened constantly by software
5118099Spstpatents.  We wish to avoid the danger that redistributors of a free
5218099Spstprogram will individually obtain patent licenses, in effect making the
5318099Spstprogram proprietary.  To prevent this, we have made it clear that any
5418099Spstpatent must be licensed for everyone's free use or not licensed at all.
5518099Spst
5618099Spst  The precise terms and conditions for copying, distribution and
5718099Spstmodification follow.
5818099Spst
5918099Spst		    GNU GENERAL PUBLIC LICENSE
6018099Spst   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
6118099Spst
6218099Spst  0. This License applies to any program or other work which contains
6318099Spsta notice placed by the copyright holder saying it may be distributed
6418099Spstunder the terms of this General Public License.  The "Program", below,
6518099Spstrefers to any such program or work, and a "work based on the Program"
6618099Spstmeans either the Program or any derivative work under copyright law:
6718099Spstthat is to say, a work containing the Program or a portion of it,
6818099Spsteither verbatim or with modifications and/or translated into another
6918099Spstlanguage.  (Hereinafter, translation is included without limitation in
7018099Spstthe term "modification".)  Each licensee is addressed as "you".
7118099Spst
7218099SpstActivities other than copying, distribution and modification are not
7318099Spstcovered by this License; they are outside its scope.  The act of
7418099Spstrunning the Program is not restricted, and the output from the Program
7518099Spstis covered only if its contents constitute a work based on the
7618099SpstProgram (independent of having been made by running the Program).
7718099SpstWhether that is true depends on what the Program does.
7818099Spst
7918099Spst  1. You may copy and distribute verbatim copies of the Program's
8018099Spstsource code as you receive it, in any medium, provided that you
8118099Spstconspicuously and appropriately publish on each copy an appropriate
8218099Spstcopyright notice and disclaimer of warranty; keep intact all the
8318099Spstnotices that refer to this License and to the absence of any warranty;
8418099Spstand give any other recipients of the Program a copy of this License
8518099Spstalong with the Program.
8618099Spst
8718099SpstYou may charge a fee for the physical act of transferring a copy, and
8818099Spstyou may at your option offer warranty protection in exchange for a fee.
8918099Spst
9018099Spst  2. You may modify your copy or copies of the Program or any portion
9118099Spstof it, thus forming a work based on the Program, and copy and
9218099Spstdistribute such modifications or work under the terms of Section 1
9318099Spstabove, provided that you also meet all of these conditions:
9418099Spst
9518099Spst    a) You must cause the modified files to carry prominent notices
9618099Spst    stating that you changed the files and the date of any change.
9718099Spst
9818099Spst    b) You must cause any work that you distribute or publish, that in
9918099Spst    whole or in part contains or is derived from the Program or any
10018099Spst    part thereof, to be licensed as a whole at no charge to all third
10118099Spst    parties under the terms of this License.
10218099Spst
10318099Spst    c) If the modified program normally reads commands interactively
10418099Spst    when run, you must cause it, when started running for such
10518099Spst    interactive use in the most ordinary way, to print or display an
10618099Spst    announcement including an appropriate copyright notice and a
10718099Spst    notice that there is no warranty (or else, saying that you provide
10818099Spst    a warranty) and that users may redistribute the program under
10918099Spst    these conditions, and telling the user how to view a copy of this
11018099Spst    License.  (Exception: if the Program itself is interactive but
11118099Spst    does not normally print such an announcement, your work based on
11218099Spst    the Program is not required to print an announcement.)
11318099Spst
11418099SpstThese requirements apply to the modified work as a whole.  If
11518099Spstidentifiable sections of that work are not derived from the Program,
11618099Spstand can be reasonably considered independent and separate works in
11718099Spstthemselves, then this License, and its terms, do not apply to those
11818099Spstsections when you distribute them as separate works.  But when you
11918099Spstdistribute the same sections as part of a whole which is a work based
12018099Spston the Program, the distribution of the whole must be on the terms of
12118099Spstthis License, whose permissions for other licensees extend to the
12218099Spstentire whole, and thus to each and every part regardless of who wrote it.
12318099Spst
12418099SpstThus, it is not the intent of this section to claim rights or contest
12518099Spstyour rights to work written entirely by you; rather, the intent is to
12618099Spstexercise the right to control the distribution of derivative or
12718099Spstcollective works based on the Program.
12818099Spst
12918099SpstIn addition, mere aggregation of another work not based on the Program
13018099Spstwith the Program (or with a work based on the Program) on a volume of
13118099Spsta storage or distribution medium does not bring the other work under
13218099Spstthe scope of this License.
13318099Spst
13418099Spst  3. You may copy and distribute the Program (or a work based on it,
13518099Spstunder Section 2) in object code or executable form under the terms of
13618099SpstSections 1 and 2 above provided that you also do one of the following:
13718099Spst
13818099Spst    a) Accompany it with the complete corresponding machine-readable
13918099Spst    source code, which must be distributed under the terms of Sections
14018099Spst    1 and 2 above on a medium customarily used for software interchange; or,
14118099Spst
14218099Spst    b) Accompany it with a written offer, valid for at least three
14318099Spst    years, to give any third party, for a charge no more than your
14418099Spst    cost of physically performing source distribution, a complete
14518099Spst    machine-readable copy of the corresponding source code, to be
14618099Spst    distributed under the terms of Sections 1 and 2 above on a medium
14718099Spst    customarily used for software interchange; or,
14818099Spst
14918099Spst    c) Accompany it with the information you received as to the offer
15018099Spst    to distribute corresponding source code.  (This alternative is
15118099Spst    allowed only for noncommercial distribution and only if you
15218099Spst    received the program in object code or executable form with such
15318099Spst    an offer, in accord with Subsection b above.)
15418099Spst
15518099SpstThe source code for a work means the preferred form of the work for
15618099Spstmaking modifications to it.  For an executable work, complete source
15718099Spstcode means all the source code for all modules it contains, plus any
15818099Spstassociated interface definition files, plus the scripts used to
15918099Spstcontrol compilation and installation of the executable.  However, as a
16018099Spstspecial exception, the source code distributed need not include
16118099Spstanything that is normally distributed (in either source or binary
16218099Spstform) with the major components (compiler, kernel, and so on) of the
16318099Spstoperating system on which the executable runs, unless that component
16418099Spstitself accompanies the executable.
16518099Spst
16618099SpstIf distribution of executable or object code is made by offering
16718099Spstaccess to copy from a designated place, then offering equivalent
16818099Spstaccess to copy the source code from the same place counts as
16918099Spstdistribution of the source code, even though third parties are not
17018099Spstcompelled to copy the source along with the object code.
17118099Spst
17218099Spst  4. You may not copy, modify, sublicense, or distribute the Program
17318099Spstexcept as expressly provided under this License.  Any attempt
17418099Spstotherwise to copy, modify, sublicense or distribute the Program is
17518099Spstvoid, and will automatically terminate your rights under this License.
17618099SpstHowever, parties who have received copies, or rights, from you under
17718099Spstthis License will not have their licenses terminated so long as such
17818099Spstparties remain in full compliance.
17918099Spst
18018099Spst  5. You are not required to accept this License, since you have not
18118099Spstsigned it.  However, nothing else grants you permission to modify or
18218099Spstdistribute the Program or its derivative works.  These actions are
18318099Spstprohibited by law if you do not accept this License.  Therefore, by
18418099Spstmodifying or distributing the Program (or any work based on the
18518099SpstProgram), you indicate your acceptance of this License to do so, and
18618099Spstall its terms and conditions for copying, distributing or modifying
18718099Spstthe Program or works based on it.
18818099Spst
18918099Spst  6. Each time you redistribute the Program (or any work based on the
19018099SpstProgram), the recipient automatically receives a license from the
19118099Spstoriginal licensor to copy, distribute or modify the Program subject to
19218099Spstthese terms and conditions.  You may not impose any further
19318099Spstrestrictions on the recipients' exercise of the rights granted herein.
19418099SpstYou are not responsible for enforcing compliance by third parties to
19518099Spstthis License.
19618099Spst
19718099Spst  7. If, as a consequence of a court judgment or allegation of patent
19818099Spstinfringement or for any other reason (not limited to patent issues),
19918099Spstconditions are imposed on you (whether by court order, agreement or
20018099Spstotherwise) that contradict the conditions of this License, they do not
20118099Spstexcuse you from the conditions of this License.  If you cannot
20218099Spstdistribute so as to satisfy simultaneously your obligations under this
20318099SpstLicense and any other pertinent obligations, then as a consequence you
20418099Spstmay not distribute the Program at all.  For example, if a patent
20518099Spstlicense would not permit royalty-free redistribution of the Program by
20618099Spstall those who receive copies directly or indirectly through you, then
20718099Spstthe only way you could satisfy both it and this License would be to
20818099Spstrefrain entirely from distribution of the Program.
20918099Spst
21018099SpstIf any portion of this section is held invalid or unenforceable under
21118099Spstany particular circumstance, the balance of the section is intended to
21218099Spstapply and the section as a whole is intended to apply in other
21318099Spstcircumstances.
21418099Spst
21518099SpstIt is not the purpose of this section to induce you to infringe any
21618099Spstpatents or other property right claims or to contest validity of any
21718099Spstsuch claims; this section has the sole purpose of protecting the
21818099Spstintegrity of the free software distribution system, which is
21918099Spstimplemented by public license practices.  Many people have made
22018099Spstgenerous contributions to the wide range of software distributed
22118099Spstthrough that system in reliance on consistent application of that
22218099Spstsystem; it is up to the author/donor to decide if he or she is willing
22318099Spstto distribute software through any other system and a licensee cannot
22418099Spstimpose that choice.
22518099Spst
22618099SpstThis section is intended to make thoroughly clear what is believed to
22718099Spstbe a consequence of the rest of this License.
22818099Spst
22918099Spst  8. If the distribution and/or use of the Program is restricted in
23018099Spstcertain countries either by patents or by copyrighted interfaces, the
23118099Spstoriginal copyright holder who places the Program under this License
23218099Spstmay add an explicit geographical distribution limitation excluding
23318099Spstthose countries, so that distribution is permitted only in or among
23418099Spstcountries not thus excluded.  In such case, this License incorporates
23518099Spstthe limitation as if written in the body of this License.
23618099Spst
23718099Spst  9. The Free Software Foundation may publish revised and/or new versions
23818099Spstof the General Public License from time to time.  Such new versions will
23918099Spstbe similar in spirit to the present version, but may differ in detail to
24018099Spstaddress new problems or concerns.
24118099Spst
24218099SpstEach version is given a distinguishing version number.  If the Program
24318099Spstspecifies a version number of this License which applies to it and "any
24418099Spstlater version", you have the option of following the terms and conditions
24518099Spsteither of that version or of any later version published by the Free
24618099SpstSoftware Foundation.  If the Program does not specify a version number of
24718099Spstthis License, you may choose any version ever published by the Free Software
24818099SpstFoundation.
24918099Spst
25018099Spst  10. If you wish to incorporate parts of the Program into other free
25118099Spstprograms whose distribution conditions are different, write to the author
25218099Spstto ask for permission.  For software which is copyrighted by the Free
25318099SpstSoftware Foundation, write to the Free Software Foundation; we sometimes
25418099Spstmake exceptions for this.  Our decision will be guided by the two goals
25518099Spstof preserving the free status of all derivatives of our free software and
25618099Spstof promoting the sharing and reuse of software generally.
25718099Spst
25818099Spst			    NO WARRANTY
25918099Spst
26018099Spst  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
26118099SpstFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
26218099SpstOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
26318099SpstPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
26418099SpstOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
26518099SpstMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
26618099SpstTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
26718099SpstPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
26818099SpstREPAIR OR CORRECTION.
26918099Spst
27018099Spst  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
27118099SpstWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
27218099SpstREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
27318099SpstINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
27418099SpstOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
27518099SpstTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
27618099SpstYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
27718099SpstPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
27818099SpstPOSSIBILITY OF SUCH DAMAGES.
27918099Spst
28018099Spst		     END OF TERMS AND CONDITIONS
28118099Spst
282151497Sru	    How to Apply These Terms to Your New Programs
28318099Spst
28418099Spst  If you develop a new program, and you want it to be of the greatest
28518099Spstpossible use to the public, the best way to achieve this is to make it
28618099Spstfree software which everyone can redistribute and change under these terms.
28718099Spst
28818099Spst  To do so, attach the following notices to the program.  It is safest
28918099Spstto attach them to the start of each source file to most effectively
29018099Spstconvey the exclusion of warranty; and each file should have at least
29118099Spstthe "copyright" line and a pointer to where the full notice is found.
29218099Spst
29318099Spst    <one line to give the program's name and a brief idea of what it does.>
294151497Sru    Copyright (C) <year>  <name of author>
29518099Spst
29618099Spst    This program is free software; you can redistribute it and/or modify
29718099Spst    it under the terms of the GNU General Public License as published by
29818099Spst    the Free Software Foundation; either version 2 of the License, or
29918099Spst    (at your option) any later version.
30018099Spst
30118099Spst    This program is distributed in the hope that it will be useful,
30218099Spst    but WITHOUT ANY WARRANTY; without even the implied warranty of
30318099Spst    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30418099Spst    GNU General Public License for more details.
30518099Spst
30618099Spst    You should have received a copy of the GNU General Public License
30718099Spst    along with this program; if not, write to the Free Software
308151497Sru    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
30918099Spst
310151497Sru
31118099SpstAlso add information on how to contact you by electronic and paper mail.
31218099Spst
31318099SpstIf the program is interactive, make it output a short notice like this
31418099Spstwhen it starts in an interactive mode:
31518099Spst
316151497Sru    Gnomovision version 69, Copyright (C) year  name of author
31718099Spst    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
31818099Spst    This is free software, and you are welcome to redistribute it
31918099Spst    under certain conditions; type `show c' for details.
32018099Spst
32118099SpstThe hypothetical commands `show w' and `show c' should show the appropriate
32218099Spstparts of the General Public License.  Of course, the commands you use may
32318099Spstbe called something other than `show w' and `show c'; they could even be
32418099Spstmouse-clicks or menu items--whatever suits your program.
32518099Spst
32618099SpstYou should also get your employer (if you work as a programmer) or your
32718099Spstschool, if any, to sign a "copyright disclaimer" for the program, if
32818099Spstnecessary.  Here is a sample; alter the names:
32918099Spst
33018099Spst  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
33118099Spst  `Gnomovision' (which makes passes at compilers) written by James Hacker.
33218099Spst
33318099Spst  <signature of Ty Coon>, 1 April 1989
33418099Spst  Ty Coon, President of Vice
33518099Spst
33618099SpstThis General Public License does not permit incorporating your program into
33718099Spstproprietary programs.  If your program is a subroutine library, you may
33818099Spstconsider it more useful to permit linking proprietary applications with the
33918099Spstlibrary.  If this is what you want to do, use the GNU Library General
34018099SpstPublic License instead of this License.
341