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