]> git.ipfire.org Git - thirdparty/cups.git/blame - doc/help/license.html
Load cups into easysw/current.
[thirdparty/cups.git] / doc / help / license.html
CommitLineData
ef416fc2 1<HTML>
4744bd90 2<!-- SECTION: Getting Started -->
ef416fc2 3<HEAD>
4744bd90 4 <TITLE>Software License Agreement</TITLE>
ef416fc2 5</HEAD>
4744bd90 6<BODY>
ef416fc2 7
b86bc4cf 8<P ALIGN="CENTER">Copyright 1997-2007 by Easy Software Products<BR>
ef416fc2 944141 AIRPORT VIEW DR STE 204<BR>
10HOLLYWOOD, MARYLAND 20636 USA<BR>
11<BR>
12Voice: +1.301.373.9600<BR>
13Email: <A HREF="mailto:cups-info@cups.org">cups-info@cups.org</A><BR>
14WWW: <A HREF="http://www.cups.org">http://www.cups.org</A>
15
4744bd90 16<H2 CLASS="title"><A NAME="INTRO">Introduction</A></H2>
ef416fc2 17
18<P>The Common UNIX Printing System<SUP>TM</SUP>,
19("CUPS<SUP>TM</SUP>"), is provided under the GNU General Public
20License ("GPL") and GNU Library General Public License ("LGPL"),
21Version 2, with exceptions for Apple operating systems and the
22OpenSSL toolkit. A copy of the exceptions and licenses follow
4744bd90 23this introduction.</P>
ef416fc2 24
26d47ec6 25<P>The GNU LGPL applies to the CUPS and CUPS Imaging libraries
26located in the "cups" and "filter" subdirectories of the CUPS
27source distribution and in the "cups" include directory and
28library files in the binary distributions. The GNU GPL applies to
29the remainder of the CUPS distribution, including the "pdftops"
30filter which is based upon Xpdf.</P>
ef416fc2 31
32<P>For those not familiar with the GNU GPL, the license basically
4744bd90 33allows you to:</P>
ef416fc2 34
35<UL>
36
37 <LI>Use the CUPS software at no charge.</LI>
38
39 <LI>Distribute verbatim copies of the software in source
40 or binary form.</LI>
41
42 <LI>Sell verbatim copies of the software for a media
43 fee, or sell support for the software.</LI>
44
ef416fc2 45</UL>
46
4744bd90 47<P>What this license <EM>does not</EM> allow you to do is make
ef416fc2 48changes or add features to CUPS and then sell a binary
4744bd90 49distribution without source code. You must provide source for any
26d47ec6 50changes or additions to the software, and all code must be
51provided under the GPL or LGPL as appropriate. The only
4744bd90 52exceptions to this are the portions of the CUPS software covered
53by the Apple operating system license exceptions outlined later
54in this license agreement.</P>
ef416fc2 55
56<P>The GNU LGPL relaxes the "link-to" restriction, allowing you
26d47ec6 57to develop applications that use the CUPS and CUPS Imaging
58libraries under other licenses and/or conditions as appropriate
59for your application, driver, or filter.</P>
ef416fc2 60
4744bd90 61
62<H2 CLASS="title"><A NAME="EXCEPTIONS">License Exceptions</A></H2>
ef416fc2 63
64<P>In addition, as the copyright holder of CUPS, Easy Software
4744bd90 65Products grants the following special exceptions:</P>
ef416fc2 66
67<OL>
68
69 <LI><B>Apple Operating System Development License
70 Exception</B>;
71
72 <OL TYPE="a">
73
74 <LI>Software that is developed by any person or
75 entity for an Apple Operating System ("Apple
76 OS-Developed Software"), including but not
77 limited to Apple and third party printer
78 drivers, filters, and backends for an Apple
79 Operating System, that is linked to the CUPS
80 imaging library or based on any sample filters
81 or backends provided with CUPS shall not be
82 considered to be a derivative work or collective
83 work based on the CUPS program and is exempt
84 from the mandatory source code release clauses
85 of the GNU GPL. You may therefore distribute
86 linked combinations of the CUPS imaging library
87 with Apple OS-Developed Software without
88 releasing the source code of the Apple
89 OS-Developed Software. You may also use sample
90 filters and backends provided with CUPS to
91 develop Apple OS-Developed Software without
92 releasing the source code of the Apple
93 OS-Developed Software.</LI>
94
95 <LI>An Apple Operating System means any
96 operating system software developed and/or
97 marketed by Apple Computer, Inc., including but
98 not limited to all existing releases and
99 versions of Apple's Darwin, Mac OS X, and Mac OS
100 X Server products and all follow-on releases and
101 future versions thereof.</LI>
102
103 <LI>This exception is only available for Apple
104 OS-Developed Software and does not apply to
105 software that is distributed for use on other
106 operating systems.</LI>
107
108 <LI>All CUPS software that falls under this
109 license exception have the following text at the
110 top of each source file:
111
112 <BLOCKQUOTE>This file is subject to the Apple
113 OS-Developed Software
114 exception.</BLOCKQUOTE></LI>
115
116 </OL>
117
118 <LI><B>OpenSSL Toolkit License Exception</B>;
119
120 <OL TYPE="a">
121
122 <LI>Easy Software Products explicitly allows the
123 compilation and distribution of the CUPS
124 software with the OpenSSL Toolkit.</LI>
125
126 </OL>
127
128</OL>
129
130<P>No developer is required to provide these exceptions in a
4744bd90 131derived work.</P>
132
ef416fc2 133
f7deaa1a 134<H2 CLASS="title"><A NAME="KERBEROS">Kerberos Support Code</A></H2>
135
136<P>The Kerberos support code ("KSC") is copyright 2006 by Jelmer
137Vernooij and is provided 'as-is', without any express or implied
138warranty. In no event will the author or Easy Software Products
139be held liable for any damages arising from the use of the
140KSC.</P>
141
142<P>Sources files containing KSC have the following text at the top
143of each source file:</P>
144
145<BLOCKQUOTE>This file contains Kerberos support code, copyright
1462006 by Jelmer Vernooij.</BLOCKQUOTE>
147
148<P>The KSC copyright and license apply <EM>only</EM> to
149Kerberos-related feature code in CUPS. Such code is typically
150conditionally compiled based on the present of the
151<TT>HAVE_GSSAPI</TT> preprocessor definition.</P>
152
153<P>Permission is granted to anyone to use the KSC for any
154purpose, including commercial applications, and to alter it and
155redistribute it freely, subject to the following
156restrictions:</P>
157
158<OL>
159
160 <LI>The origin of the KSC must not be misrepresented; you
161 must not claim that you wrote the original software. If
162 you use the KSC in a product, an acknowledgment in the
163 product documentation would be appreciated but is not
164 required.</LI>
165
166 <LI>Altered source versions must be plainly marked as
167 such, and must not be misrepresented as being the
168 original software.</LI>
169
170 <LI>This notice may not be removed or altered from any
171 source distribution.</LI>
172
173</OL>
174
175
4744bd90 176<H2 CLASS="title"><A NAME="TRADEMARKS">Trademarks</A></H2>
ef416fc2 177
178<P>Easy Software Products has trademarked the Common UNIX
4744bd90 179Printing System, CUPS, and CUPS logo. You may use these names and
180logos in any direct port or binary distribution of CUPS. Please
181contact Easy Software Products for written permission to use them
182in derivative products. Our intention is to protect the value of
183these trademarks and ensure that any derivative product meets the
184same high-quality standards as the original.</P>
ef416fc2 185
4744bd90 186
187<H2 CLASS="title"><A NAME="BINARY">Binary Distribution Rights</A></H2>
ef416fc2 188
189<P>Easy Software Products also sells rights to the CUPS source
190code under a binary distribution license for vendors that are
26d47ec6 191unable to release source code for their additions and
4744bd90 192modifications to CUPS under the GNU GPL and LGPL. For information
193please contact us at the address shown above.</P>
ef416fc2 194
195<P>The Common UNIX Printing System provides a "pdftops" filter
196that is based on the Xpdf software. For binary distribution
4744bd90 197licensing of this software, please contact:</P>
ef416fc2 198
199<BLOCKQUOTE>
200Derek B. Noonburg<BR>
4744bd90 201Email: <A HREF="mailto:derekn@glyphandcog.com">derekn@glyphandcog.com</A><BR>
202WWW: <A HREF="http://www.glyphandcog.com/">http://www.glyphandcog.com/</A>
ef416fc2 203</BLOCKQUOTE>
204
ef416fc2 205
4744bd90 206<H2 CLASS="title"><A NAME="SUPPORT">Support</A></H2>
207
208<P>Easy Software Products sells software support for CUPS as well
209as a commercial printing product based on CUPS called ESP Print
210Pro. You can find out more at our web site:</P>
ef416fc2 211
212<UL><PRE>
213<A HREF="http://www.easysw.com/">http://www.easysw.com/</A>
214</PRE></UL>
215
4744bd90 216
217<H2 CLASS="title"><A NAME="GPL">GNU GENERAL PUBLIC LICENSE</A></H2>
ef416fc2 218
219<P>Version 2, June 1991
220
221<PRE>
222Copyright 1989, 1991 Free Software Foundation, Inc.
22359 Temple Place, Suite 330, Boston, MA 02111-1307 USA
224
225Everyone is permitted to copy and distribute verbatim
226copies of this license document, but changing it is not allowed.
227</PRE>
228
4744bd90 229<H3>Preamble</H3>
ef416fc2 230
231<P>The licenses for most software are designed to take away your
232freedom to share and change it. By contrast, the GNU General Public
233License is intended to guarantee your freedom to share and change free
234software--to make sure the software is free for all its users. This
235General Public License applies to most of the Free Software
236Foundation's software and to any other program whose authors commit to
237using it. (Some other Free Software Foundation software is covered by
238the GNU Library General Public License instead.) You can apply it to
239your programs, too.
240
241<P>When we speak of free software, we are referring to freedom, not
242price. Our General Public Licenses are designed to make sure that you
243have the freedom to distribute copies of free software (and charge for
244this service if you wish), that you receive source code or can get it
245if you want it, that you can change the software or use pieces of it
246in new free programs; and that you know you can do these things.
247
248<P>To protect your rights, we need to make restrictions that forbid
249anyone to deny you these rights or to ask you to surrender the rights.
250These restrictions translate to certain responsibilities for you if you
251distribute copies of the software, or if you modify it.
252
253<P>For example, if you distribute copies of such a program, whether
254gratis or for a fee, you must give the recipients all the rights that
255you have. You must make sure that they, too, receive or can get the
256source code. And you must show them these terms so they know their
257rights.
258
259<P>We protect your rights with two steps: (1) copyright the software, and
260(2) offer you this license which gives you legal permission to copy,
261distribute and/or modify the software.
262
263<P>Also, for each author's protection and ours, we want to make certain
264that everyone understands that there is no warranty for this free
265software. If the software is modified by someone else and passed on, we
266want its recipients to know that what they have is not the original, so
267that any problems introduced by others will not reflect on the original
268authors' reputations.
269
270<P>Finally, any free program is threatened constantly by software
271patents. We wish to avoid the danger that redistributors of a free
272program will individually obtain patent licenses, in effect making the
273program proprietary. To prevent this, we have made it clear that any
274patent must be licensed for everyone's free use or not licensed at all.
275
276<P>The precise terms and conditions for copying, distribution and
277modification follow.
278
4744bd90 279<H3>GNU GENERAL PUBLIC LICENSE<BR>
280TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</H3>
ef416fc2 281
282<OL START="0">
283
284<LI>This License applies to any program or other work which contains
285a notice placed by the copyright holder saying it may be distributed
286under the terms of this General Public License. The "Program", below,
287refers to any such program or work, and a "work based on the Program"
288means either the Program or any derivative work under copyright law:
289that is to say, a work containing the Program or a portion of it,
290either verbatim or with modifications and/or translated into another
291language. (Hereinafter, translation is included without limitation in
292the term "modification".) Each licensee is addressed as "you".
293
294<P>Activities other than copying, distribution and modification are not
295covered by this License; they are outside its scope. The act of
296running the Program is not restricted, and the output from the Program
297is covered only if its contents constitute a work based on the
298Program (independent of having been made by running the Program).
299Whether that is true depends on what the Program does.
300
301<LI>You may copy and distribute verbatim copies of the Program's
302source code as you receive it, in any medium, provided that you
303conspicuously and appropriately publish on each copy an appropriate
304copyright notice and disclaimer of warranty; keep intact all the
305notices that refer to this License and to the absence of any warranty;
306and give any other recipients of the Program a copy of this License
307along with the Program.
308
309<P>You may charge a fee for the physical act of transferring a copy, and
310you may at your option offer warranty protection in exchange for a fee.
311
312<LI>You may modify your copy or copies of the Program or any portion
313of it, thus forming a work based on the Program, and copy and
314distribute such modifications or work under the terms of Section 1
315above, provided that you also meet all of these conditions:
316
317<OL TYPE="a">
318
319<LI>You must cause the modified files to carry prominent notices
320stating that you changed the files and the date of any change.
321
322<LI>You must cause any work that you distribute or publish, that in
323whole or in part contains or is derived from the Program or any
324part thereof, to be licensed as a whole at no charge to all third
325parties under the terms of this License.
326
327<LI>if the modified program normally reads commands interactively
328when run, you must cause it, when started running for such
329interactive use in the most ordinary way, to print or display an
330announcement including an appropriate copyright notice and a
331notice that there is no warranty (or else, saying that you provide
332a warranty) and that users may redistribute the program under
333these conditions, and telling the user how to view a copy of this
334License. (Exception: if the Program itself is interactive but
335does not normally print such an announcement, your work based on
336the Program is not required to print an announcement.)
337
338</OL>
339
340<P>These requirements apply to the modified work as a whole. If
341identifiable sections of that work are not derived from the Program,
342and can be reasonably considered independent and separate works in
343themselves, then this License, and its terms, do not apply to those
344sections when you distribute them as separate works. But when you
345distribute the same sections as part of a whole which is a work based
346on the Program, the distribution of the whole must be on the terms of
347this License, whose permissions for other licensees extend to the
348entire whole, and thus to each and every part regardless of who wrote it.
349
350<P>Thus, it is not the intent of this section to claim rights or contest
351your rights to work written entirely by you; rather, the intent is to
352exercise the right to control the distribution of derivative or
353collective works based on the Program.
354
355<P>In addition, mere aggregation of another work not based on the Program
356with the Program (or with a work based on the Program) on a volume of
357a storage or distribution medium does not bring the other work under
358the scope of this License.
359
360<LI>You may copy and distribute the Program (or a work based on it,
361under Section 2) in object code or executable form under the terms of
362Sections 1 and 2 above provided that you also do one of the following:
363
364<OL TYPE="a">
365
366<LI>Accompany it with the complete corresponding machine-readable
367source code, which must be distributed under the terms of Sections
3681 and 2 above on a medium customarily used for software interchange; or,
369
370<LI>Accompany it with a written offer, valid for at least three
371years, to give any third party, for a charge no more than your
372cost of physically performing source distribution, a complete
373machine-readable copy of the corresponding source code, to be
374distributed under the terms of Sections 1 and 2 above on a medium
375customarily used for software interchange; or,
376
377<LI>Accompany it with the information you received as to the offer
378to distribute corresponding source code. (This alternative is
379allowed only for noncommercial distribution and only if you
380received the program in object code or executable form with such
381an offer, in accord with Subsection b above.)
382
383</OL>
384
385<P>The source code for a work means the preferred form of the work for
386making modifications to it. For an executable work, complete source
387code means all the source code for all modules it contains, plus any
388associated interface definition files, plus the scripts used to
389control compilation and installation of the executable. However, as a
390special exception, the source code distributed need not include
391anything that is normally distributed (in either source or binary
392form) with the major components (compiler, kernel, and so on) of the
393operating system on which the executable runs, unless that component
394itself accompanies the executable.
395
396<P>If distribution of executable or object code is made by offering
397access to copy from a designated place, then offering equivalent
398access to copy the source code from the same place counts as
399distribution of the source code, even though third parties are not
400compelled to copy the source along with the object code.
401
402<LI>You may not copy, modify, sublicense, or distribute the Program
403except as expressly provided under this License. Any attempt
404otherwise to copy, modify, sublicense or distribute the Program is
405void, and will automatically terminate your rights under this License.
406However, parties who have received copies, or rights, from you under
407this License will not have their licenses terminated so long as such
408parties remain in full compliance.
409
410<LI>You are not required to accept this License, since you have not
411signed it. However, nothing else grants you permission to modify or
412distribute the Program or its derivative works. These actions are
413prohibited by law if you do not accept this License. Therefore, by
414modifying or distributing the Program (or any work based on the
415Program), you indicate your acceptance of this License to do so, and
416all its terms and conditions for copying, distributing or modifying
417the Program or works based on it.
418
419<LI>Each time you redistribute the Program (or any work based on the
420Program), the recipient automatically receives a license from the
421original licensor to copy, distribute or modify the Program subject to
422these terms and conditions. You may not impose any further
423restrictions on the recipients' exercise of the rights granted herein.
424You are not responsible for enforcing compliance by third parties to
425this License.
426
427<LI>If, as a consequence of a court judgment or allegation of patent
428infringement or for any other reason (not limited to patent issues),
429conditions are imposed on you (whether by court order, agreement or
430otherwise) that contradict the conditions of this License, they do not
431excuse you from the conditions of this License. If you cannot
432distribute so as to satisfy simultaneously your obligations under this
433License and any other pertinent obligations, then as a consequence you
434may not distribute the Program at all. For example, if a patent
435license would not permit royalty-free redistribution of the Program by
436all those who receive copies directly or indirectly through you, then
437the only way you could satisfy both it and this License would be to
438refrain entirely from distribution of the Program.
439
440<P>If any portion of this section is held invalid or unenforceable under
441any particular circumstance, the balance of the section is intended to
442apply and the section as a whole is intended to apply in other
443circumstances.
444
445<P>It is not the purpose of this section to induce you to infringe any
446patents or other property right claims or to contest validity of any
447such claims; this section has the sole purpose of protecting the
448integrity of the free software distribution system, which is
449implemented by public license practices. Many people have made
450generous contributions to the wide range of software distributed
451through that system in reliance on consistent application of that
452system; it is up to the author/donor to decide if he or she is willing
453to distribute software through any other system and a licensee cannot
454impose that choice.
455
456<P>This section is intended to make thoroughly clear what is believed to
457be a consequence of the rest of this License.
458
459<LI>If the distribution and/or use of the Program is restricted in
460certain countries either by patents or by copyrighted interfaces, the
461original copyright holder who places the Program under this License
462may add an explicit geographical distribution limitation excluding
463those countries, so that distribution is permitted only in or among
464countries not thus excluded. In such case, this License incorporates
465the limitation as if written in the body of this License.
466
467<LI>The Free Software Foundation may publish revised and/or new versions
468of the General Public License from time to time. Such new versions will
469be similar in spirit to the present version, but may differ in detail to
470address new problems or concerns.
471
472<P>Each version is given a distinguishing version number. If the Program
473specifies a version number of this License which applies to it and "any
474later version", you have the option of following the terms and conditions
475either of that version or of any later version published by the Free
476Software Foundation. If the Program does not specify a version number of
477this License, you may choose any version ever published by the Free Software
478Foundation.
479
480<LI>If you wish to incorporate parts of the Program into other free
481programs whose distribution conditions are different, write to the author
482to ask for permission. For software which is copyrighted by the Free
483Software Foundation, write to the Free Software Foundation; we sometimes
484make exceptions for this. Our decision will be guided by the two goals
485of preserving the free status of all derivatives of our free software and
486of promoting the sharing and reuse of software generally.
487
488</OL>
489
4744bd90 490<H3>NO WARRANTY</H3>
ef416fc2 491
492<OL START="11">
493
494<LI>BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
495FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
496OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
497PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
498OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
499MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
500TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
501PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
502REPAIR OR CORRECTION.
503
504<LI>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
505WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
506REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
507INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
508OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
509TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
510YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
511PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
512POSSIBILITY OF SUCH DAMAGES.
513
514</OL>
515
4744bd90 516<H3>END OF TERMS AND CONDITIONS</H3>
ef416fc2 517
4744bd90 518<H3>How to Apply These Terms to Your New Programs</H3>
ef416fc2 519
520<P>If you develop a new program, and you want it to be of the greatest
521possible use to the public, the best way to achieve this is to make it
522free software which everyone can redistribute and change under these terms.
523
524<P>To do so, attach the following notices to the program. It is safest
525to attach them to the start of each source file to most effectively
526convey the exclusion of warranty; and each file should have at least
527the "copyright" line and a pointer to where the full notice is found.
528
529<PRE>
530<VAR>one line to give the program's name and an idea of what it does.</VAR>
531Copyright (C) <VAR>yyyy</VAR> <VAR>name of author</VAR>
532
533This program is free software; you can redistribute it and/or
534modify it under the terms of the GNU General Public License
535as published by the Free Software Foundation; either version 2
536of the License, or (at your option) any later version.
537
538This program is distributed in the hope that it will be useful,
539but WITHOUT ANY WARRANTY; without even the implied warranty of
540MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
541GNU General Public License for more details.
542
543You should have received a copy of the GNU General Public License
544along with this program; if not, write to the Free Software
545Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
546</PRE>
547
548<P>Also add information on how to contact you by electronic and paper mail.
549
550<P>If the program is interactive, make it output a short notice like this
551when it starts in an interactive mode:
552
553<PRE>
554Gnomovision version 69, Copyright (C) <VAR>year</VAR> <VAR>name of author</VAR>
555Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
556type `show w'. This is free software, and you are welcome
557to redistribute it under certain conditions; type `show c'
558for details.
559</PRE>
560
561<P>The hypothetical commands <SAMP>`show w'</SAMP> and <SAMP>`show c'</SAMP> should show
562the appropriate parts of the General Public License. Of course, the
563commands you use may be called something other than <SAMP>`show w'</SAMP> and
564<SAMP>`show c'</SAMP>; they could even be mouse-clicks or menu items--whatever
565suits your program.
566
567<P>You should also get your employer (if you work as a programmer) or your
568school, if any, to sign a "copyright disclaimer" for the program, if
569necessary. Here is a sample; alter the names:
570
571<PRE>
572Yoyodyne, Inc., hereby disclaims all copyright
573interest in the program `Gnomovision'
574(which makes passes at compilers) written
575by James Hacker.
576
577<VAR>signature of Ty Coon</VAR>, 1 April 1989
578Ty Coon, President of Vice
579</PRE>
580
4744bd90 581<H2 CLASS="title"><A NAME="LGPL">GNU LIBRARY GENERAL PUBLIC LICENSE</A></H2>
ef416fc2 582
583<P>Version 2, June 1991
584
585<PRE>
586Copyright (C) 1991 Free Software Foundation, Inc.
58759 Temple Place - Suite 330, Boston, MA 02111-1307, USA
588Everyone is permitted to copy and distribute verbatim copies
589of this license document, but changing it is not allowed.
590
591[This is the first released version of the library GPL. It is
592 numbered 2 because it goes with version 2 of the ordinary GPL.]
593</PRE>
594
4744bd90 595<H3>Preamble</H3>
ef416fc2 596
597<P>The licenses for most software are designed to take away your
598freedom to share and change it. By contrast, the GNU General Public
599Licenses are intended to guarantee your freedom to share and change
600free software--to make sure the software is free for all its users.
601
602<P>This license, the Library General Public License, applies to some
603specially designated Free Software Foundation software, and to any
604other libraries whose authors decide to use it. You can use it for
605your libraries, too.
606
607<P>When we speak of free software, we are referring to freedom, not
608price. Our General Public Licenses are designed to make sure that you
609have the freedom to distribute copies of free software (and charge for
610this service if you wish), that you receive source code or can get it
611if you want it, that you can change the software or use pieces of it
612in new free programs; and that you know you can do these things.
613
614<P>To protect your rights, we need to make restrictions that forbid
615anyone to deny you these rights or to ask you to surrender the rights.
616These restrictions translate to certain responsibilities for you if
617you distribute copies of the library, or if you modify it.
618
619<P>For example, if you distribute copies of the library, whether gratis
620or for a fee, you must give the recipients all the rights that we gave
621you. You must make sure that they, too, receive or can get the source
622code. If you link a program with the library, you must provide
623complete object files to the recipients so that they can relink them
624with the library, after making changes to the library and recompiling
625it. And you must show them these terms so they know their rights.
626
627<P>Our method of protecting your rights has two steps: (1) copyright
628the library, and (2) offer you this license which gives you legal
629permission to copy, distribute and/or modify the library.
630
631<P>Also, for each distributor's protection, we want to make certain
632that everyone understands that there is no warranty for this free
633library. If the library is modified by someone else and passed on, we
634want its recipients to know that what they have is not the original
635version, so that any problems introduced by others will not reflect on
636the original authors' reputations.
637
638<P>Finally, any free program is threatened constantly by software
639patents. We wish to avoid the danger that companies distributing free
640software will individually obtain patent licenses, thus in effect
641transforming the program into proprietary software. To prevent this,
642we have made it clear that any patent must be licensed for everyone's
643free use or not licensed at all.
644
645<P>Most GNU software, including some libraries, is covered by the ordinary
646GNU General Public License, which was designed for utility programs. This
647license, the GNU Library General Public License, applies to certain
648designated libraries. This license is quite different from the ordinary
649one; be sure to read it in full, and don't assume that anything in it is
650the same as in the ordinary license.
651
652<P>The reason we have a separate public license for some libraries is that
653they blur the distinction we usually make between modifying or adding to a
654program and simply using it. Linking a program with a library, without
655changing the library, is in some sense simply using the library, and is
656analogous to running a utility program or application program. However, in
657a textual and legal sense, the linked executable is a combined work, a
658derivative of the original library, and the ordinary General Public License
659treats it as such.
660
661<P>Because of this blurred distinction, using the ordinary General
662Public License for libraries did not effectively promote software
663sharing, because most developers did not use the libraries. We
664concluded that weaker conditions might promote sharing better.
665
666<P>However, unrestricted linking of non-free programs would deprive the
667users of those programs of all benefit from the free status of the
668libraries themselves. This Library General Public License is intended to
669permit developers of non-free programs to use free libraries, while
670preserving your freedom as a user of such programs to change the free
671libraries that are incorporated in them. (We have not seen how to achieve
672this as regards changes in header files, but we have achieved it as regards
673changes in the actual functions of the Library.) The hope is that this
674will lead to faster development of free libraries.
675
676<P>The precise terms and conditions for copying, distribution and
677modification follow. Pay close attention to the difference between a
678"work based on the library" and a "work that uses the library". The
679former contains code derived from the library, while the latter only
680works together with the library.
681
682<P>Note that it is possible for a library to be covered by the ordinary
683General Public License rather than by this special one.
684
4744bd90 685<H3>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</H3>
ef416fc2 686
687<P><STRONG>0.</STRONG>
688This License Agreement applies to any software library which
689contains a notice placed by the copyright holder or other authorized
690party saying it may be distributed under the terms of this Library
691General Public License (also called "this License"). Each licensee is
692addressed as "you".
693
694<P>A "library" means a collection of software functions and/or data
695prepared so as to be conveniently linked with application programs
696(which use some of those functions and data) to form executables.
697
698<P>The "Library", below, refers to any such software library or work
699which has been distributed under these terms. A "work based on the
700Library" means either the Library or any derivative work under
701copyright law: that is to say, a work containing the Library or a
702portion of it, either verbatim or with modifications and/or translated
703straightforwardly into another language. (Hereinafter, translation is
704included without limitation in the term "modification".)
705
706<P>"Source code" for a work means the preferred form of the work for
707making modifications to it. For a library, complete source code means
708all the source code for all modules it contains, plus any associated
709interface definition files, plus the scripts used to control compilation
710and installation of the library.
711
712<P>Activities other than copying, distribution and modification are not
713covered by this License; they are outside its scope. The act of
714running a program using the Library is not restricted, and output from
715such a program is covered only if its contents constitute a work based
716on the Library (independent of the use of the Library in a tool for
717writing it). Whether that is true depends on what the Library does
718and what the program that uses the Library does.
719
720<P><STRONG>1.</STRONG>
721You may copy and distribute verbatim copies of the Library's
722complete source code as you receive it, in any medium, provided that
723you conspicuously and appropriately publish on each copy an
724appropriate copyright notice and disclaimer of warranty; keep intact
725all the notices that refer to this License and to the absence of any
726warranty; and distribute a copy of this License along with the
727Library.
728
729<P>You may charge a fee for the physical act of transferring a copy,
730and you may at your option offer warranty protection in exchange for a
731fee.
732
733<P><STRONG>2.</STRONG>
734You may modify your copy or copies of the Library or any portion
735of it, thus forming a work based on the Library, and copy and
736distribute such modifications or work under the terms of Section 1
737above, provided that you also meet all of these conditions:
738
739<OL TYPE="a">
740
741 <LI>The modified work must itself be a software library.
742
743 <P>
744 <LI>You must cause the files modified to carry prominent notices
745 stating that you changed the files and the date of any change.
746
747 <P>
748 <LI>You must cause the whole of the work to be licensed at no
749 charge to all third parties under the terms of this License.
750
751 <P>
752 <LI>If a facility in the modified Library refers to a function or a
753 table of data to be supplied by an application program that uses
754 the facility, other than as an argument passed when the facility
755 is invoked, then you must make a good faith effort to ensure that,
756 in the event an application does not supply such function or
757 table, the facility still operates, and performs whatever part of
758 its purpose remains meaningful.
759
760 <P>(For example, a function in a library to compute square roots has
761 a purpose that is entirely well-defined independent of the
762 application. Therefore, Subsection 2d requires that any
763 application-supplied function or table used by this function must
764 be optional: if the application does not supply it, the square
765 root function must still compute square roots.)
766
767</OL>
768
769<P>These requirements apply to the modified work as a whole. If
770identifiable sections of that work are not derived from the Library,
771and can be reasonably considered independent and separate works in
772themselves, then this License, and its terms, do not apply to those
773sections when you distribute them as separate works. But when you
774distribute the same sections as part of a whole which is a work based
775on the Library, the distribution of the whole must be on the terms of
776this License, whose permissions for other licensees extend to the
777entire whole, and thus to each and every part regardless of who wrote
778it.
779
780<P>Thus, it is not the intent of this section to claim rights or contest
781your rights to work written entirely by you; rather, the intent is to
782exercise the right to control the distribution of derivative or
783collective works based on the Library.
784
785<P>In addition, mere aggregation of another work not based on the Library
786with the Library (or with a work based on the Library) on a volume of
787a storage or distribution medium does not bring the other work under
788the scope of this License.
789
790<P><STRONG>3.</STRONG>
791You may opt to apply the terms of the ordinary GNU General Public
792License instead of this License to a given copy of the Library. To do
793this, you must alter all the notices that refer to this License, so
794that they refer to the ordinary GNU General Public License, version 2,
795instead of to this License. (If a newer version than version 2 of the
796ordinary GNU General Public License has appeared, then you can specify
797that version instead if you wish.) Do not make any other change in
798these notices.
799
800<P>Once this change is made in a given copy, it is irreversible for
801that copy, so the ordinary GNU General Public License applies to all
802subsequent copies and derivative works made from that copy.
803
804<P>This option is useful when you wish to copy part of the code of
805the Library into a program that is not a library.
806
807<P><STRONG>4.</STRONG>
808You may copy and distribute the Library (or a portion or
809derivative of it, under Section 2) in object code or executable form
810under the terms of Sections 1 and 2 above provided that you accompany
811it with the complete corresponding machine-readable source code, which
812must be distributed under the terms of Sections 1 and 2 above on a
813medium customarily used for software interchange.
814
815<P>If distribution of object code is made by offering access to copy
816from a designated place, then offering equivalent access to copy the
817source code from the same place satisfies the requirement to
818distribute the source code, even though third parties are not
819compelled to copy the source along with the object code.
820
821<P><STRONG>5.</STRONG>
822A program that contains no derivative of any portion of the
823Library, but is designed to work with the Library by being compiled or
824linked with it, is called a "work that uses the Library". Such a
825work, in isolation, is not a derivative work of the Library, and
826therefore falls outside the scope of this License.
827
828<P>However, linking a "work that uses the Library" with the Library
829creates an executable that is a derivative of the Library (because it
830contains portions of the Library), rather than a "work that uses the
831library". The executable is therefore covered by this License.
832Section 6 states terms for distribution of such executables.
833
834<P>When a "work that uses the Library" uses material from a header file
835that is part of the Library, the object code for the work may be a
836derivative work of the Library even though the source code is not.
837Whether this is true is especially significant if the work can be
838linked without the Library, or if the work is itself a library. The
839threshold for this to be true is not precisely defined by law.
840
841<P>If such an object file uses only numerical parameters, data
842structure layouts and accessors, and small macros and small inline
843functions (ten lines or less in length), then the use of the object
844file is unrestricted, regardless of whether it is legally a derivative
845work. (Executables containing this object code plus portions of the
846Library will still fall under Section 6.)
847
848<P>Otherwise, if the work is a derivative of the Library, you may
849distribute the object code for the work under the terms of Section 6.
850Any executables containing that work also fall under Section 6,
851whether or not they are linked directly with the Library itself.
852
853<P><STRONG>6.</STRONG>
854As an exception to the Sections above, you may also compile or
855link a "work that uses the Library" with the Library to produce a
856work containing portions of the Library, and distribute that work
857under terms of your choice, provided that the terms permit
858modification of the work for the customer's own use and reverse
859engineering for debugging such modifications.
860
861<P>You must give prominent notice with each copy of the work that the
862Library is used in it and that the Library and its use are covered by
863this License. You must supply a copy of this License. If the work
864during execution displays copyright notices, you must include the
865copyright notice for the Library among them, as well as a reference
866directing the user to the copy of this License. Also, you must do one
867of these things:
868
869<OL TYPE="a">
870
871 <LI>Accompany the work with the complete corresponding
872 machine-readable source code for the Library including whatever
873 changes were used in the work (which must be distributed under
874 Sections 1 and 2 above); and, if the work is an executable linked
875 with the Library, with the complete machine-readable "work that
876 uses the Library", as object code and/or source code, so that the
877 user can modify the Library and then relink to produce a modified
878 executable containing the modified Library. (It is understood
879 that the user who changes the contents of definitions files in the
880 Library will not necessarily be able to recompile the application
881 to use the modified definitions.)
882
883 <P>
884 <LI>Accompany the work with a written offer, valid for at
885 least three years, to give the same user the materials
886 specified in Subsection 6a, above, for a charge no more
887 than the cost of performing this distribution.
888
889 <P>
890 <LI>If distribution of the work is made by offering access to copy
891 from a designated place, offer equivalent access to copy the above
892 specified materials from the same place.
893
894 <P>
895 <LI>Verify that the user has already received a copy of these
896 materials or that you have already sent this user a copy.
897
898</OL>
899
900<P>For an executable, the required form of the "work that uses the
901Library" must include any data and utility programs needed for
902reproducing the executable from it. However, as a special exception,
903the source code distributed need not include anything that is normally
904distributed (in either source or binary form) with the major
905components (compiler, kernel, and so on) of the operating system on
906which the executable runs, unless that component itself accompanies
907the executable.
908
909<P>It may happen that this requirement contradicts the license
910restrictions of other proprietary libraries that do not normally
911accompany the operating system. Such a contradiction means you cannot
912use both them and the Library together in an executable that you
913distribute.
914
915<P><STRONG>7.</STRONG>
916You may place library facilities that are a work based on the
917Library side-by-side in a single library together with other library
918facilities not covered by this License, and distribute such a combined
919library, provided that the separate distribution of the work based on
920the Library and of the other library facilities is otherwise
921permitted, and provided that you do these two things:
922
923<OL TYPE="a">
924
925 <LI>Accompany the combined library with a copy of the same work
926 based on the Library, uncombined with any other library
927 facilities. This must be distributed under the terms of the
928 Sections above.
929
930 <P>
931 <LI>Give prominent notice with the combined library of the fact
932 that part of it is a work based on the Library, and explaining
933 where to find the accompanying uncombined form of the same work.
934
935</OL>
936
937<P><STRONG>8.</STRONG>
938You may not copy, modify, sublicense, link with, or distribute
939the Library except as expressly provided under this License. Any
940attempt otherwise to copy, modify, sublicense, link with, or
941distribute the Library is void, and will automatically terminate your
942rights under this License. However, parties who have received copies,
943or rights, from you under this License will not have their licenses
944terminated so long as such parties remain in full compliance.
945
946<P><STRONG>9.</STRONG>
947You are not required to accept this License, since you have not
948signed it. However, nothing else grants you permission to modify or
949distribute the Library or its derivative works. These actions are
950prohibited by law if you do not accept this License. Therefore, by
951modifying or distributing the Library (or any work based on the
952Library), you indicate your acceptance of this License to do so, and
953all its terms and conditions for copying, distributing or modifying
954the Library or works based on it.
955
956<P><STRONG>10.</STRONG>
957Each time you redistribute the Library (or any work based on the
958Library), the recipient automatically receives a license from the
959original licensor to copy, distribute, link with or modify the Library
960subject to these terms and conditions. You may not impose any further
961restrictions on the recipients' exercise of the rights granted herein.
962You are not responsible for enforcing compliance by third parties to
963this License.
964
965<P><STRONG>11.</STRONG>
966If, as a consequence of a court judgment or allegation of patent
967infringement or for any other reason (not limited to patent issues),
968conditions are imposed on you (whether by court order, agreement or
969otherwise) that contradict the conditions of this License, they do not
970excuse you from the conditions of this License. If you cannot
971distribute so as to satisfy simultaneously your obligations under this
972License and any other pertinent obligations, then as a consequence you
973may not distribute the Library at all. For example, if a patent
974license would not permit royalty-free redistribution of the Library by
975all those who receive copies directly or indirectly through you, then
976the only way you could satisfy both it and this License would be to
977refrain entirely from distribution of the Library.
978
979<P>If any portion of this section is held invalid or unenforceable under any
980particular circumstance, the balance of the section is intended to apply,
981and the section as a whole is intended to apply in other circumstances.
982
983<P>It is not the purpose of this section to induce you to infringe any
984patents or other property right claims or to contest validity of any
985such claims; this section has the sole purpose of protecting the
986integrity of the free software distribution system which is
987implemented by public license practices. Many people have made
988generous contributions to the wide range of software distributed
989through that system in reliance on consistent application of that
990system; it is up to the author/donor to decide if he or she is willing
991to distribute software through any other system and a licensee cannot
992impose that choice.
993
994<P>This section is intended to make thoroughly clear what is believed to
995be a consequence of the rest of this License.
996
997<P><STRONG>12.</STRONG>
998If the distribution and/or use of the Library is restricted in
999certain countries either by patents or by copyrighted interfaces, the
1000original copyright holder who places the Library under this License may add
1001an explicit geographical distribution limitation excluding those countries,
1002so that distribution is permitted only in or among countries not thus
1003excluded. In such case, this License incorporates the limitation as if
1004written in the body of this License.
1005
1006<P><STRONG>13.</STRONG>
1007The Free Software Foundation may publish revised and/or new
1008versions of the Library General Public License from time to time.
1009Such new versions will be similar in spirit to the present version,
1010but may differ in detail to address new problems or concerns.
1011
1012<P>Each version is given a distinguishing version number. If the Library
1013specifies a version number of this License which applies to it and
1014"any later version", you have the option of following the terms and
1015conditions either of that version or of any later version published by
1016the Free Software Foundation. If the Library does not specify a
1017license version number, you may choose any version ever published by
1018the Free Software Foundation.
1019
1020<P><STRONG>14.</STRONG>
1021If you wish to incorporate parts of the Library into other free
1022programs whose distribution conditions are incompatible with these,
1023write to the author to ask for permission. For software which is
1024copyrighted by the Free Software Foundation, write to the Free
1025Software Foundation; we sometimes make exceptions for this. Our
1026decision will be guided by the two goals of preserving the free status
1027of all derivatives of our free software and of promoting the sharing
1028and reuse of software generally.
1029
1030<P><STRONG>NO WARRANTY</STRONG>
1031
1032<P><STRONG>15.</STRONG>
1033BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
1034WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
1035EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
1036OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
1037KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
1038IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1039PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
1040LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
1041THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
1042
1043<P><STRONG>16.</STRONG>
1044IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
1045WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
1046AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
1047FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
1048CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
1049LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
1050RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
1051FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
1052SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
1053DAMAGES.
1054
4744bd90 1055<H3>END OF TERMS AND CONDITIONS</H3>
ef416fc2 1056
4744bd90 1057<H3>How to Apply These Terms to Your New Libraries</H3>
ef416fc2 1058
1059<P>If you develop a new library, and you want it to be of the greatest
1060possible use to the public, we recommend making it free software that
1061everyone can redistribute and change. You can do so by permitting
1062redistribution under these terms (or, alternatively, under the terms of the
1063ordinary General Public License).
1064
1065<P>To apply these terms, attach the following notices to the library. It is
1066safest to attach them to the start of each source file to most effectively
1067convey the exclusion of warranty; and each file should have at least the
1068"copyright" line and a pointer to where the full notice is found.
1069
1070<PRE>
1071<VAR>one line to give the library's name and an idea of what it does.</VAR>
1072Copyright (C) <VAR>year</VAR> <VAR>name of author</VAR>
1073
1074This library is free software; you can redistribute it and/or
1075modify it under the terms of the GNU Lesser General Public
1076License as published by the Free Software Foundation; either
1077version 2.1 of the License, or (at your option) any later version.
1078
1079This library is distributed in the hope that it will be useful,
1080but WITHOUT ANY WARRANTY; without even the implied warranty of
1081MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1082Lesser General Public License for more details.
1083
1084You should have received a copy of the GNU Lesser General Public
1085License along with this library; if not, write to the Free Software
1086Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1087</PRE>
1088
1089<P>Also add information on how to contact you by electronic and paper mail.
1090
1091<P>You should also get your employer (if you work as a programmer) or your
1092school, if any, to sign a "copyright disclaimer" for the library, if
1093necessary. Here is a sample; alter the names:
1094
1095<PRE>
1096Yoyodyne, Inc., hereby disclaims all copyright interest in
1097the library `Frob' (a library for tweaking knobs) written
1098by James Random Hacker.
1099
1100<VAR>signature of Ty Coon</VAR>, 1 April 1990
1101Ty Coon, President of Vice
1102</PRE>
1103
1104<P>That's all there is to it!
1105
1106</BODY>
1107</HTML>