1228068Sbapt@c This GPL is meant to be included from other files.
2228068Sbapt@c To format a standalone GPL, use license.texi.
3228068Sbapt
4228068Sbapt@center Version 2, June 1991
5228068Sbapt
6228068Sbapt@display
7228068SbaptCopyright @copyright{} 1989, 1991 Free Software Foundation, Inc.,
8228068Sbapt59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
9228068Sbapt
10228068SbaptEveryone is permitted to copy and distribute verbatim copies
11228068Sbaptof this license document, but changing it is not allowed.
12228068Sbapt@end display
13228068Sbapt
14228068Sbapt@unnumberedsec Preamble
15228068Sbapt
16228068Sbapt  The licenses for most software are designed to take away your
17228068Sbaptfreedom to share and change it.  By contrast, the GNU General Public
18228068SbaptLicense is intended to guarantee your freedom to share and change free
19228068Sbaptsoftware---to make sure the software is free for all its users.  This
20228068SbaptGeneral Public License applies to most of the Free Software
21228068SbaptFoundation's software and to any other program whose authors commit to
22228068Sbaptusing it.  (Some other Free Software Foundation software is covered by
23228068Sbaptthe GNU Library General Public License instead.)  You can apply it to
24228068Sbaptyour programs, too.
25228068Sbapt
26228068Sbapt  When we speak of free software, we are referring to freedom, not
27228068Sbaptprice.  Our General Public Licenses are designed to make sure that you
28228068Sbapthave the freedom to distribute copies of free software (and charge for
29228068Sbaptthis service if you wish), that you receive source code or can get it
30228068Sbaptif you want it, that you can change the software or use pieces of it
31228068Sbaptin new free programs; and that you know you can do these things.
32228068Sbapt
33228068Sbapt  To protect your rights, we need to make restrictions that forbid
34228068Sbaptanyone to deny you these rights or to ask you to surrender the rights.
35228068SbaptThese restrictions translate to certain responsibilities for you if you
36228068Sbaptdistribute copies of the software, or if you modify it.
37228068Sbapt
38228068Sbapt  For example, if you distribute copies of such a program, whether
39228068Sbaptgratis or for a fee, you must give the recipients all the rights that
40228068Sbaptyou have.  You must make sure that they, too, receive or can get the
41228068Sbaptsource code.  And you must show them these terms so they know their
42228068Sbaptrights.
43228068Sbapt
44228068Sbapt  We protect your rights with two steps: (1) copyright the software, and
45228068Sbapt(2) offer you this license which gives you legal permission to copy,
46228068Sbaptdistribute and/or modify the software.
47228068Sbapt
48228068Sbapt  Also, for each author's protection and ours, we want to make certain
49228068Sbaptthat everyone understands that there is no warranty for this free
50228068Sbaptsoftware.  If the software is modified by someone else and passed on, we
51228068Sbaptwant its recipients to know that what they have is not the original, so
52228068Sbaptthat any problems introduced by others will not reflect on the original
53228068Sbaptauthors' reputations.
54228068Sbapt
55228068Sbapt  Finally, any free program is threatened constantly by software
56228068Sbaptpatents.  We wish to avoid the danger that redistributors of a free
57228068Sbaptprogram will individually obtain patent licenses, in effect making the
58228068Sbaptprogram proprietary.  To prevent this, we have made it clear that any
59228068Sbaptpatent must be licensed for everyone's free use or not licensed at all.
60228068Sbapt
61228068Sbapt  The precise terms and conditions for copying, distribution and
62228068Sbaptmodification follow.
63228068Sbapt
64228068Sbapt@iftex
65228068Sbapt@unnumberedsec TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
66228068Sbapt@end iftex
67228068Sbapt@ifinfo
68228068Sbapt@center TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
69228068Sbapt@end ifinfo
70228068Sbapt
71228068Sbapt@enumerate 0
72228068Sbapt@item
73228068SbaptThis License applies to any program or other work which contains
74228068Sbapta notice placed by the copyright holder saying it may be distributed
75228068Sbaptunder the terms of this General Public License.  The ``Program'', below,
76228068Sbaptrefers to any such program or work, and a ``work based on the Program''
77228068Sbaptmeans either the Program or any derivative work under copyright law:
78228068Sbaptthat is to say, a work containing the Program or a portion of it,
79228068Sbapteither verbatim or with modifications and/or translated into another
80228068Sbaptlanguage.  (Hereinafter, translation is included without limitation in
81228068Sbaptthe term ``modification''.)  Each licensee is addressed as ``you''.
82228068Sbapt
83228068SbaptActivities other than copying, distribution and modification are not
84228068Sbaptcovered by this License; they are outside its scope.  The act of
85228068Sbaptrunning the Program is not restricted, and the output from the Program
86228068Sbaptis covered only if its contents constitute a work based on the
87228068SbaptProgram (independent of having been made by running the Program).
88228068SbaptWhether that is true depends on what the Program does.
89228068Sbapt
90228068Sbapt@item
91228068SbaptYou may copy and distribute verbatim copies of the Program's
92228068Sbaptsource code as you receive it, in any medium, provided that you
93228068Sbaptconspicuously and appropriately publish on each copy an appropriate
94228068Sbaptcopyright notice and disclaimer of warranty; keep intact all the
95228068Sbaptnotices that refer to this License and to the absence of any warranty;
96228068Sbaptand give any other recipients of the Program a copy of this License
97228068Sbaptalong with the Program.
98228068Sbapt
99228068SbaptYou may charge a fee for the physical act of transferring a copy, and
100228068Sbaptyou may at your option offer warranty protection in exchange for a fee.
101228068Sbapt
102228068Sbapt@item
103228068SbaptYou may modify your copy or copies of the Program or any portion
104228068Sbaptof it, thus forming a work based on the Program, and copy and
105228068Sbaptdistribute such modifications or work under the terms of Section 1
106228068Sbaptabove, provided that you also meet all of these conditions:
107228068Sbapt
108228068Sbapt@enumerate a
109228068Sbapt@item
110228068SbaptYou must cause the modified files to carry prominent notices
111228068Sbaptstating that you changed the files and the date of any change.
112228068Sbapt
113228068Sbapt@item
114228068SbaptYou must cause any work that you distribute or publish, that in
115228068Sbaptwhole or in part contains or is derived from the Program or any
116228068Sbaptpart thereof, to be licensed as a whole at no charge to all third
117228068Sbaptparties under the terms of this License.
118228068Sbapt
119228068Sbapt@item
120228068SbaptIf the modified program normally reads commands interactively
121228068Sbaptwhen run, you must cause it, when started running for such
122228068Sbaptinteractive use in the most ordinary way, to print or display an
123228068Sbaptannouncement including an appropriate copyright notice and a
124228068Sbaptnotice that there is no warranty (or else, saying that you provide
125228068Sbapta warranty) and that users may redistribute the program under
126228068Sbaptthese conditions, and telling the user how to view a copy of this
127228068SbaptLicense.  (Exception: if the Program itself is interactive but
128228068Sbaptdoes not normally print such an announcement, your work based on
129228068Sbaptthe Program is not required to print an announcement.)
130228068Sbapt@end enumerate
131228068Sbapt
132228068SbaptThese requirements apply to the modified work as a whole.  If
133228068Sbaptidentifiable sections of that work are not derived from the Program,
134228068Sbaptand can be reasonably considered independent and separate works in
135228068Sbaptthemselves, then this License, and its terms, do not apply to those
136228068Sbaptsections when you distribute them as separate works.  But when you
137228068Sbaptdistribute the same sections as part of a whole which is a work based
138228068Sbapton the Program, the distribution of the whole must be on the terms of
139228068Sbaptthis License, whose permissions for other licensees extend to the
140228068Sbaptentire whole, and thus to each and every part regardless of who wrote it.
141228068Sbapt
142228068SbaptThus, it is not the intent of this section to claim rights or contest
143228068Sbaptyour rights to work written entirely by you; rather, the intent is to
144228068Sbaptexercise the right to control the distribution of derivative or
145228068Sbaptcollective works based on the Program.
146228068Sbapt
147228068SbaptIn addition, mere aggregation of another work not based on the Program
148228068Sbaptwith the Program (or with a work based on the Program) on a volume of
149228068Sbapta storage or distribution medium does not bring the other work under
150228068Sbaptthe scope of this License.
151228068Sbapt
152228068Sbapt@item
153228068SbaptYou may copy and distribute the Program (or a work based on it,
154228068Sbaptunder Section 2) in object code or executable form under the terms of
155228068SbaptSections 1 and 2 above provided that you also do one of the following:
156228068Sbapt
157228068Sbapt@enumerate a
158228068Sbapt@item
159228068SbaptAccompany it with the complete corresponding machine-readable
160228068Sbaptsource code, which must be distributed under the terms of Sections
161228068Sbapt1 and 2 above on a medium customarily used for software interchange; or,
162228068Sbapt
163228068Sbapt@item
164228068SbaptAccompany it with a written offer, valid for at least three
165228068Sbaptyears, to give any third party, for a charge no more than your
166228068Sbaptcost of physically performing source distribution, a complete
167228068Sbaptmachine-readable copy of the corresponding source code, to be
168228068Sbaptdistributed under the terms of Sections 1 and 2 above on a medium
169228068Sbaptcustomarily used for software interchange; or,
170228068Sbapt
171228068Sbapt@item
172228068SbaptAccompany it with the information you received as to the offer
173228068Sbaptto distribute corresponding source code.  (This alternative is
174228068Sbaptallowed only for noncommercial distribution and only if you
175228068Sbaptreceived the program in object code or executable form with such
176228068Sbaptan offer, in accord with Subsection b above.)
177228068Sbapt@end enumerate
178228068Sbapt
179228068SbaptThe source code for a work means the preferred form of the work for
180228068Sbaptmaking modifications to it.  For an executable work, complete source
181228068Sbaptcode means all the source code for all modules it contains, plus any
182228068Sbaptassociated interface definition files, plus the scripts used to
183228068Sbaptcontrol compilation and installation of the executable.  However, as a
184228068Sbaptspecial exception, the source code distributed need not include
185228068Sbaptanything that is normally distributed (in either source or binary
186228068Sbaptform) with the major components (compiler, kernel, and so on) of the
187228068Sbaptoperating system on which the executable runs, unless that component
188228068Sbaptitself accompanies the executable.
189228068Sbapt
190228068SbaptIf distribution of executable or object code is made by offering
191228068Sbaptaccess to copy from a designated place, then offering equivalent
192228068Sbaptaccess to copy the source code from the same place counts as
193228068Sbaptdistribution of the source code, even though third parties are not
194228068Sbaptcompelled to copy the source along with the object code.
195228068Sbapt
196228068Sbapt@item
197228068SbaptYou may not copy, modify, sublicense, or distribute the Program
198228068Sbaptexcept as expressly provided under this License.  Any attempt
199228068Sbaptotherwise to copy, modify, sublicense or distribute the Program is
200228068Sbaptvoid, and will automatically terminate your rights under this License.
201228068SbaptHowever, parties who have received copies, or rights, from you under
202228068Sbaptthis License will not have their licenses terminated so long as such
203228068Sbaptparties remain in full compliance.
204228068Sbapt
205228068Sbapt@item
206228068SbaptYou are not required to accept this License, since you have not
207228068Sbaptsigned it.  However, nothing else grants you permission to modify or
208228068Sbaptdistribute the Program or its derivative works.  These actions are
209228068Sbaptprohibited by law if you do not accept this License.  Therefore, by
210228068Sbaptmodifying or distributing the Program (or any work based on the
211228068SbaptProgram), you indicate your acceptance of this License to do so, and
212228068Sbaptall its terms and conditions for copying, distributing or modifying
213228068Sbaptthe Program or works based on it.
214228068Sbapt
215228068Sbapt@item
216228068SbaptEach time you redistribute the Program (or any work based on the
217228068SbaptProgram), the recipient automatically receives a license from the
218228068Sbaptoriginal licensor to copy, distribute or modify the Program subject to
219228068Sbaptthese terms and conditions.  You may not impose any further
220228068Sbaptrestrictions on the recipients' exercise of the rights granted herein.
221228068SbaptYou are not responsible for enforcing compliance by third parties to
222228068Sbaptthis License.
223228068Sbapt
224228068Sbapt@item
225228068SbaptIf, as a consequence of a court judgment or allegation of patent
226228068Sbaptinfringement or for any other reason (not limited to patent issues),
227228068Sbaptconditions are imposed on you (whether by court order, agreement or
228228068Sbaptotherwise) that contradict the conditions of this License, they do not
229228068Sbaptexcuse you from the conditions of this License.  If you cannot
230228068Sbaptdistribute so as to satisfy simultaneously your obligations under this
231228068SbaptLicense and any other pertinent obligations, then as a consequence you
232228068Sbaptmay not distribute the Program at all.  For example, if a patent
233228068Sbaptlicense would not permit royalty-free redistribution of the Program by
234228068Sbaptall those who receive copies directly or indirectly through you, then
235228068Sbaptthe only way you could satisfy both it and this License would be to
236228068Sbaptrefrain entirely from distribution of the Program.
237228068Sbapt
238228068SbaptIf any portion of this section is held invalid or unenforceable under
239228068Sbaptany particular circumstance, the balance of the section is intended to
240228068Sbaptapply and the section as a whole is intended to apply in other
241228068Sbaptcircumstances.
242228068Sbapt
243228068SbaptIt is not the purpose of this section to induce you to infringe any
244228068Sbaptpatents or other property right claims or to contest validity of any
245228068Sbaptsuch claims; this section has the sole purpose of protecting the
246228068Sbaptintegrity of the free software distribution system, which is
247228068Sbaptimplemented by public license practices.  Many people have made
248228068Sbaptgenerous contributions to the wide range of software distributed
249228068Sbaptthrough that system in reliance on consistent application of that
250228068Sbaptsystem; it is up to the author/donor to decide if he or she is willing
251228068Sbaptto distribute software through any other system and a licensee cannot
252228068Sbaptimpose that choice.
253228068Sbapt
254228068SbaptThis section is intended to make thoroughly clear what is believed to
255228068Sbaptbe a consequence of the rest of this License.
256228068Sbapt
257228068Sbapt@item
258228068SbaptIf the distribution and/or use of the Program is restricted in
259228068Sbaptcertain countries either by patents or by copyrighted interfaces, the
260228068Sbaptoriginal copyright holder who places the Program under this License
261228068Sbaptmay add an explicit geographical distribution limitation excluding
262228068Sbaptthose countries, so that distribution is permitted only in or among
263228068Sbaptcountries not thus excluded.  In such case, this License incorporates
264228068Sbaptthe limitation as if written in the body of this License.
265228068Sbapt
266228068Sbapt@item
267228068SbaptThe Free Software Foundation may publish revised and/or new versions
268228068Sbaptof the General Public License from time to time.  Such new versions will
269228068Sbaptbe similar in spirit to the present version, but may differ in detail to
270228068Sbaptaddress new problems or concerns.
271228068Sbapt
272228068SbaptEach version is given a distinguishing version number.  If the Program
273228068Sbaptspecifies a version number of this License which applies to it and ``any
274228068Sbaptlater version'', you have the option of following the terms and conditions
275228068Sbapteither of that version or of any later version published by the Free
276228068SbaptSoftware Foundation.  If the Program does not specify a version number of
277228068Sbaptthis License, you may choose any version ever published by the Free Software
278228068SbaptFoundation.
279228068Sbapt
280228068Sbapt@item
281228068SbaptIf you wish to incorporate parts of the Program into other free
282228068Sbaptprograms whose distribution conditions are different, write to the author
283228068Sbaptto ask for permission.  For software which is copyrighted by the Free
284228068SbaptSoftware Foundation, write to the Free Software Foundation; we sometimes
285228068Sbaptmake exceptions for this.  Our decision will be guided by the two goals
286228068Sbaptof preserving the free status of all derivatives of our free software and
287228068Sbaptof promoting the sharing and reuse of software generally.
288228068Sbapt
289228068Sbapt@iftex
290228068Sbapt@vskip -@baselineskip
291228068Sbapt@vskip -@baselineskip
292228068Sbapt@heading NO WARRANTY
293228068Sbapt@end iftex
294228068Sbapt@ifinfo
295228068Sbapt@center NO WARRANTY
296228068Sbapt@end ifinfo
297228068Sbapt
298228068Sbapt@item
299228068SbaptBECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
300228068SbaptFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
301228068SbaptOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
302228068SbaptPROVIDE THE PROGRAM ``AS IS'' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
303228068SbaptOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
304228068SbaptMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
305228068SbaptTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
306228068SbaptPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
307228068SbaptREPAIR OR CORRECTION.
308228068Sbapt
309228068Sbapt@item
310228068SbaptIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
311228068SbaptWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
312228068SbaptREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
313228068SbaptINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
314228068SbaptOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
315228068SbaptTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
316228068SbaptYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
317228068SbaptPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
318228068SbaptPOSSIBILITY OF SUCH DAMAGES.
319228068Sbapt@end enumerate
320228068Sbapt
321228068Sbapt@iftex
322228068Sbapt@heading END OF TERMS AND CONDITIONS
323228068Sbapt@end iftex
324228068Sbapt@ifinfo
325228068Sbapt@center END OF TERMS AND CONDITIONS
326228068Sbapt@end ifinfo
327228068Sbapt
328228068Sbapt@page
329228068Sbapt@unnumberedsec How to Apply These Terms to Your New Programs
330228068Sbapt
331228068Sbapt  If you develop a new program, and you want it to be of the greatest
332228068Sbaptpossible use to the public, the best way to achieve this is to make it
333228068Sbaptfree software which everyone can redistribute and change under these terms.
334228068Sbapt
335228068Sbapt  To do so, attach the following notices to the program.  It is safest
336228068Sbaptto attach them to the start of each source file to most effectively
337228068Sbaptconvey the exclusion of warranty; and each file should have at least
338228068Sbaptthe ``copyright'' line and a pointer to where the full notice is found.
339228068Sbapt
340228068Sbapt@smallexample
341228068Sbapt@var{one line to give the program's name and an idea of what it does.}
342228068SbaptCopyright (C) @var{year}  @var{name of author}
343228068Sbapt
344228068SbaptThis program is free software; you can redistribute it and/or
345228068Sbaptmodify it under the terms of the GNU General Public License
346228068Sbaptas published by the Free Software Foundation; either version 2
347228068Sbaptof the License, or (at your option) any later version.
348228068Sbapt
349228068SbaptThis program is distributed in the hope that it will be useful,
350228068Sbaptbut WITHOUT ANY WARRANTY; without even the implied warranty of
351228068SbaptMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
352228068SbaptGNU General Public License for more details.
353228068Sbapt
354228068SbaptYou should have received a copy of the GNU General Public License
355228068Sbaptalong with this program; if not, write to the Free Software
356228068SbaptFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
357228068Sbapt@end smallexample
358228068Sbapt
359228068SbaptAlso add information on how to contact you by electronic and paper mail.
360228068Sbapt
361228068SbaptIf the program is interactive, make it output a short notice like this
362228068Sbaptwhen it starts in an interactive mode:
363228068Sbapt
364228068Sbapt@smallexample
365228068SbaptGnomovision version 69, Copyright (C) @var{year}  @var{name of author}
366228068SbaptGnomovision comes with ABSOLUTELY NO WARRANTY; for details
367228068Sbapttype `show w'.  This is free software, and you are welcome
368228068Sbaptto redistribute it under certain conditions; type `show c' 
369228068Sbaptfor details.
370228068Sbapt@end smallexample
371228068Sbapt
372228068SbaptThe hypothetical commands @samp{show w} and @samp{show c} should show
373228068Sbaptthe appropriate parts of the General Public License.  Of course, the
374228068Sbaptcommands you use may be called something other than @samp{show w} and
375228068Sbapt@samp{show c}; they could even be mouse-clicks or menu items---whatever
376228068Sbaptsuits your program.
377228068Sbapt
378228068SbaptYou should also get your employer (if you work as a programmer) or your
379228068Sbaptschool, if any, to sign a ``copyright disclaimer'' for the program, if
380228068Sbaptnecessary.  Here is a sample; alter the names:
381228068Sbapt
382228068Sbapt@example
383228068Sbapt@group
384228068SbaptYoyodyne, Inc., hereby disclaims all copyright
385228068Sbaptinterest in the program `Gnomovision'
386228068Sbapt(which makes passes at compilers) written 
387228068Sbaptby James Hacker.
388228068Sbapt
389228068Sbapt@var{signature of Ty Coon}, 1 April 1989
390228068SbaptTy Coon, President of Vice
391228068Sbapt@end group
392228068Sbapt@end example
393228068Sbapt
394228068SbaptThis General Public License does not permit incorporating your program into
395228068Sbaptproprietary programs.  If your program is a subroutine library, you may
396228068Sbaptconsider it more useful to permit linking proprietary applications with the
397228068Sbaptlibrary.  If this is what you want to do, use the GNU Library General
398228068SbaptPublic License instead of this License.
399