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