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