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