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