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