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