{,l,a}gpl-*.{tex,texi}: Proper typeset versions of the licences.
[cfd] / lgpl-2.0.tex
1 % \iffalse <meta-comment>
2 %
3 % The GNU Library General Public License as a LaTeX section
4 %
5 % (c) 1989, 1991 Free Software Foundation, Inc.
6 % LaTeX markup and minor formatting changes by Mark Wooding
7 %
8
9 % --- Chapter heading ---
10 %
11 % We don't know whether this ought to be a section or a chapter. Easy.
12 % We'll see if chapters are possible.
13 %
14 % \fi
15
16 \begingroup
17 \makeatletter
18
19 \edef\next#1#2#3{\relax
20 \ifx\chapter\@@undefined
21 \ifx\documentclass\@notprerr#2\else#3\fi
22 \else#1\fi
23 }
24
25 \expandafter\endgroup\next
26 {
27 \let\gpltoplevel\chapter
28 \let\gplsec\section
29 \let\gplend\endinput
30 }{
31 \let\gpltoplevel\section
32 \let\gplsec\subsection
33 \let\gplend\endinput
34 }{
35 \documentclass[11pt]{article}
36 \def\gpltoplevel#1{%
37 \vspace*{1in}%
38 \hbox to\hsize{\hfil\LARGE\bfseries#1\hfil}%
39 \vspace{1in}%
40 }
41 \let\gplsec\section
42 \def\gplend{\end{document}}
43 \advance\textwidth1in
44 \advance\oddsidemargin-.5in
45 \sloppy
46 \begin{document}
47 }
48
49 %^^A-------------------------------------------------------------------------
50 \gpltoplevel{The GNU Library General Public License}
51
52 The following is the text of the GNU Library General Public License, under
53 the terms of which this software is distributed.
54
55 \vspace{12pt}
56
57 \begin{center}
58 \textbf{GNU LIBRARY GENERAL PUBLIC LICENSE} \\
59 Version 2, June 1991
60 \end{center}
61
62 \begin{center}
63 {\parindent 0in
64
65 Copyright \copyright\ 1991 Free Software Foundation, Inc.
66
67 \bigskip
68
69 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
70
71 \bigskip
72
73 Everyone is permitted to copy and distribute verbatim copies
74 of this license document, but changing it is not allowed.
75 }
76 \end{center}
77
78 \begin{center}
79 {\bf\large Preamble}
80 \end{center}
81
82
83 The licenses for most software are designed to take away your freedom to
84 share and change it. By contrast, the GNU General Public Licenses are
85 intended to guarantee your freedom to share and change free software--to
86 make sure the software is free for all its users.
87
88 This license, the Library General Public License, applies to some specially
89 designated Free Software Foundation software, and to any other libraries
90 whose authors decide to use it. You can use it for your libraries, too.
91
92 When we speak of free software, we are referring to freedom, not price. Our
93 General Public Licenses are designed to make sure that you have the freedom
94 to distribute copies of free software (and charge for this service if you
95 wish), that you receive source code or can get it if you want it, that you
96 can change the software or use pieces of it in new free programs; and that
97 you know you can do these things.
98
99 To protect your rights, we need to make restrictions that forbid anyone to
100 deny you these rights or to ask you to surrender the rights. These
101 restrictions translate to certain responsibilities for you if you distribute
102 copies of the library, or if you modify it.
103
104 For example, if you distribute copies of the library, whether gratis or for a
105 fee, you must give the recipients all the rights that we gave you. You must
106 make sure that they, too, receive or can get the source code. If you link a
107 program with the library, you must provide complete object files to the
108 recipients so that they can relink them with the library, after making
109 changes to the library and recompiling it. And you must show them these
110 terms so they know their rights.
111
112 Our method of protecting your rights has two steps: (1) copyright the
113 library, and (2) offer you this license which gives you legal permission to
114 copy, distribute and/or modify the library.
115
116 Also, for each distributor's protection, we want to make certain that
117 everyone understands that there is no warranty for this free library. If the
118 library is modified by someone else and passed on, we want its recipients to
119 know that what they have is not the original version, so that any problems
120 introduced by others will not reflect on the original authors' reputations.
121
122 Finally, any free program is threatened constantly by software patents. We
123 wish to avoid the danger that companies distributing free software will
124 individually obtain patent licenses, thus in effect transforming the program
125 into proprietary software. To prevent this, we have made it clear that any
126 patent must be licensed for everyone's free use or not licensed at all.
127
128 Most GNU software, including some libraries, is covered by the ordinary GNU
129 General Public License, which was designed for utility programs. This
130 license, the GNU Library General Public License, applies to certain
131 designated libraries. This license is quite different from the ordinary one;
132 be sure to read it in full, and don't assume that anything in it is the same
133 as in the ordinary license.
134
135 The reason we have a separate public license for some libraries is that they
136 blur the distinction we usually make between modifying or adding to a program
137 and simply using it. Linking a program with a library, without changing the
138 library, is in some sense simply using the library, and is analogous to
139 running a utility program or application program. However, in a textual and
140 legal sense, the linked executable is a combined work, a derivative of the
141 original library, and the ordinary General Public License treats it as such.
142
143 Because of this blurred distinction, using the ordinary General Public
144 License for libraries did not effectively promote software sharing, because
145 most developers did not use the libraries. We concluded that weaker
146 conditions might promote sharing better.
147
148 However, unrestricted linking of non-free programs would deprive the users of
149 those programs of all benefit from the free status of the libraries
150 themselves. This Library General Public License is intended to permit
151 developers of non-free programs to use free libraries, while preserving your
152 freedom as a user of such programs to change the free libraries that are
153 incorporated in them. (We have not seen how to achieve this as regards
154 changes in header files, but we have achieved it as regards changes in the
155 actual functions of the Library.) The hope is that this will lead to faster
156 development of free libraries.
157
158 The precise terms and conditions for copying, distribution and modification
159 follow. Pay close attention to the difference between a ``work based on the
160 library'' and a ``work that uses the library''. The former contains code
161 derived from the library, while the latter only works together with the
162 library.
163
164 Note that it is possible for a library to be covered by the ordinary General
165 Public License rather than by this special one.
166
167 \begin{center}
168 {\Large \sc Terms and Conditions For Copying, Distribution and
169 Modification}
170 \end{center}
171
172
173 %\renewcommand{\theenumi}{\alpha{enumi}}
174 \begin{enumerate}
175
176 \addtocounter{enumi}{-1}
177
178 \item
179
180 This License Agreement applies to any software library which contains a
181 notice placed by the copyright holder or other authorized party saying it
182 may be distributed under the terms of this Library General Public License
183 (also called ``this License''). Each licensee is addressed as ``you''.
184
185 A ``library'' means a collection of software functions and/or data
186 prepared so as to be conveniently linked with application programs
187 (which use some of those functions and data) to form executables.
188
189 The ``Library'', below, refers to any such software library or work
190 which has been distributed under these terms. A ``work based on the
191 Library'' means either the Library or any derivative work under
192 copyright law: that is to say, a work containing the Library or a
193 portion of it, either verbatim or with modifications and/or translated
194 straightforwardly into another language. (Hereinafter, translation is
195 included without limitation in the term ``modification''.)
196
197 ``Source code'' for a work means the preferred form of the work for
198 making modifications to it. For a library, complete source code means
199 all the source code for all modules it contains, plus any associated
200 interface definition files, plus the scripts used to control
201 compilation and installation of the library.
202
203 Activities other than copying, distribution and modification are not
204 covered by this License; they are outside its scope. The act of
205 running a program using the Library is not restricted, and output from
206 such a program is covered only if its contents constitute a work based
207 on the Library (independent of the use of the Library in a tool for
208 writing it). Whether that is true depends on what the Library does and
209 what the program that uses the Library does.
210
211 \item You may copy and distribute verbatim copies of the Library's complete
212 source code as you receive it, in any medium, provided that you
213 conspicuously and appropriately publish on each copy an appropriate
214 copyright notice and disclaimer of warranty; keep intact all the notices
215 that refer to this License and to the absence of any warranty; and
216 distribute a copy of this License along with the Library.
217
218 You may charge a fee for the physical act of transferring a copy, and you
219 may at your option offer warranty protection in exchange for a fee.
220
221 \item
222
223 You may modify your copy or copies of the Library or any portion of it,
224 thus forming a work based on the Library, and copy and distribute such
225 modifications or work under the terms of Section 1 above, provided that you
226 also meet all of these conditions:
227
228 \begin{enumerate}
229
230 \item
231
232 The modified work must itself be a software library.
233
234 \item
235
236 You must cause the files modified to carry prominent notices stating that
237 you changed the files and the date of any change.
238
239 \item
240
241 You must cause the whole of the work to be licensed at no charge to all
242 third parties under the terms of this License.
243
244 \item
245
246 If a facility in the modified Library refers to a function or a table of
247 data to be supplied by an application program that uses the facility, other
248 than as an argument passed when the facility is invoked, then you must make
249 a good faith effort to ensure that, in the event an application does not
250 supply such function or table, the facility still operates, and performs
251 whatever part of its purpose remains meaningful.
252
253 (For example, a function in a library to compute square roots has a purpose
254 that is entirely well-defined independent of the application. Therefore,
255 Subsection 2d requires that any application-supplied function or table used
256 by this function must be optional: if the application does not supply it, the
257 square root function must still compute square roots.)
258
259 \end{enumerate}
260
261
262 These requirements apply to the modified work as a whole. If
263 identifiable sections of that work are not derived from the Library,
264 and can be reasonably considered independent and separate works in
265 themselves, then this License, and its terms, do not apply to those
266 sections when you distribute them as separate works. But when you
267 distribute the same sections as part of a whole which is a work based
268 on the Library, the distribution of the whole must be on the terms of
269 this License, whose permissions for other licensees extend to the
270 entire whole, and thus to each and every part regardless of who wrote it.
271
272 Thus, it is not the intent of this section to claim rights or contest
273 your rights to work written entirely by you; rather, the intent is to
274 exercise the right to control the distribution of derivative or
275 collective works based on the Library.
276
277 In addition, mere aggregation of another work not based on the Library
278 with the Library (or with a work based on the Library) on a volume of a
279 storage or distribution medium does not bring the other work under the
280 scope of this License.
281
282 \item
283 You may opt to apply the terms of the ordinary GNU General Public
284 License instead of this License to a given copy of the Library. To do
285 this, you must alter all the notices that refer to this License, so
286 that they refer to the ordinary GNU General Public License, version 2,
287 instead of to this License. (If a newer version than version 2 of the
288 ordinary GNU General Public License has appeared, then you can specify
289 that version instead if you wish.) Do not make any other change in
290 these notices.
291
292 Once this change is made in a given copy, it is irreversible for that
293 copy, so the ordinary GNU General Public License applies to all
294 subsequent copies and derivative works made from that copy.
295
296 This option is useful when you wish to copy part of the code of the
297 Library into a program that is not a library.
298
299 \item
300 You may copy and distribute the Library (or a portion or derivative of it,
301 under Section 2) in object code or executable form under the terms of
302 Sections 1 and 2 above provided that you accompany it with the complete
303 corresponding machine-readable
304 source code, which must be distributed under the terms of Sections
305 1 and 2 above on a medium customarily used for software interchange.
306
307 If distribution of object code is made by offering
308 access to copy from a designated place, then offering equivalent
309 access to copy the source code from the same place satisfies the requirement to
310 distribute the source code, even though third parties are not
311 compelled to copy the source along with the object code.
312
313 \item
314 A program that contains no derivative of any portion of the
315 Library, but is designed to work with the Library by being compiled or
316 linked with it, is called a ``work that uses the Library''. Such a
317 work, in isolation, is not a derivative work of the Library, and
318 therefore falls outside the scope of this License.
319
320 However, linking a ``work that uses the Library'' with the Library
321 creates an executable that is a derivative of the Library (because it
322 contains portions of the Library), rather than a ``work that uses the
323 library''. The executable is therefore covered by this License.
324 Section 6 states terms for distribution of such executables.
325
326 When a ``work that uses the Library'' uses material from a header file
327 that is part of the Library, the object code for the work may be a
328 derivative work of the Library even though the source code is not.
329 Whether this is true is especially significant if the work can be
330 linked without the Library, or if the work is itself a library. The
331 threshold for this to be true is not precisely defined by law.
332
333 If such an object file uses only numerical parameters, data structure
334 layouts and accessors, and small macros and small inline functions (ten
335 lines or less in length), then the use of the object file is
336 unrestricted, regardless of whether it is legally a derivative work.
337 (Executables containing this object code plus portions of the Library
338 will still fall under Section 6.)
339
340 Otherwise, if the work is a derivative of the Library, you may
341 distribute the object code for the work under the terms of Section 6.
342 Any executables containing that work also fall under Section 6, whether
343 or not they are linked directly with the Library itself.
344
345 \item
346
347 As an exception to the Sections above, you may also compile or
348 link a ``work that uses the Library'' with the Library to produce a
349 work containing portions of the Library, and distribute that work under
350 terms of your choice, provided that the terms permit modification of
351 the work for the customer's own use and reverse engineering for
352 debugging such modifications.
353
354 You must give prominent notice with each copy of the work that the
355 Library is used in it and that the Library and its use are covered by
356 this License. You must supply a copy of this License. If the work
357 during execution displays copyright notices, you must include the
358 copyright notice for the Library among them, as well as a reference
359 directing the user to the copy of this License. Also, you must do one
360 of these things:
361
362 \begin{enumerate}
363
364 \item
365
366 Accompany the work with the complete corresponding
367 machine-readable source code for the Library including whatever
368 changes were used in the work (which must be distributed under
369 Sections 1 and 2 above); and, if the work is an executable linked
370 with the Library, with the complete machine-readable ``work that
371 uses the Library'', as object code and/or source code, so that
372 the user can modify the Library and then relink to produce a
373 modified executable containing the modified Library. (It is
374 understood that the user who changes the contents of definitions
375 files in the Library will not necessarily be able to recompile
376 the application to use the modified definitions.)
377
378 \item
379
380 Accompany the work with a written offer, valid for at least three
381 years, to give the same user the materials specified in
382 Subsection 6a, above, for a charge no more than the cost of
383 performing this distribution.
384
385 \item
386
387 If distribution of the work is made by offering access to
388 copy from a designated place, offer equivalent access to copy the
389 above specified materials from the same place.
390
391 \item
392
393 Verify that the user has already received a copy of these
394 materials or that you have already sent this user a copy.
395
396 \end{enumerate}
397
398 For an executable, the required form of the ``work that uses the
399 Library'' must include any data and utility programs needed for
400 reproducing the executable from it. However, as a special exception,
401 the source code distributed need not include anything that is normally
402 distributed (in either source or binary form) with the major
403 components (compiler, kernel, and so on) of the operating system on
404 which the executable runs, unless that component itself accompanies
405 the executable.
406
407 It may happen that this requirement contradicts the license
408 restrictions of other proprietary libraries that do not normally
409 accompany the operating system. Such a contradiction means you cannot
410 use both them and the Library together in an executable that you
411 distribute.
412
413 \item
414
415 You may place library facilities that are a work based on the
416 Library side-by-side in a single library together with other library
417 facilities not covered by this License, and distribute such a combined
418 library, provided that the separate distribution of the work based on
419 the Library and of the other library facilities is otherwise
420 permitted, and provided that you do these two things:
421
422 \begin{enumerate}
423
424 \item
425 Accompany the combined library with a copy of the same work
426 based on the Library, uncombined with any other library
427 facilities. This must be distributed under the terms of the
428 Sections above.
429
430 \item
431 Give prominent notice with the combined library of the fact
432 that part of it is a work based on the Library, and explaining
433 where to find the accompanying uncombined form of the same work.
434
435 \end{enumerate}
436
437 \item
438
439 You may not copy, modify, sublicense, link with, or distribute the Library
440 except as expressly provided under this License. Any attempt otherwise
441 to copy, modify, sublicense, link with, or distribute the Library is
442 void, and will automatically terminate your rights under this License.
443 However, parties who have received copies, or rights, from you under
444 this License will not have their licenses terminated so long as such
445 parties remain in full compliance.
446
447 \item
448 You are not required to accept this License, since you have not
449 signed it. However, nothing else grants you permission to modify or
450 distribute the Library or its derivative works. These actions are
451 prohibited by law if you do not accept this License. Therefore, by
452 modifying or distributing the Library (or any work based on the
453 Library), you indicate your acceptance of this License to do so, and
454 all its terms and conditions for copying, distributing or modifying the
455 Library or works based on it.
456
457 \item
458
459 Each time you redistribute the Library (or any work based on the
460 Library), the recipient automatically receives a license from the
461 original licensor to copy, distribute, link with or modify the Library
462 subject to these terms and conditions. You may not impose any further
463 restrictions on the recipients' exercise of the rights granted herein.
464 You are not responsible for enforcing compliance by third parties to
465 this License.
466
467 \item
468 If, as a consequence of a court judgment or allegation of patent
469 infringement or for any other reason (not limited to patent issues),
470 conditions are imposed on you (whether by court order, agreement or
471 otherwise) that contradict the conditions of this License, they do not
472 excuse you from the conditions of this License. If you cannot
473 distribute so as to satisfy simultaneously your obligations under this
474 License and any other pertinent obligations, then as a consequence you
475 may not distribute the Library at all. For example, if a patent
476 license would not permit royalty-free redistribution of the Library by
477 all those who receive copies directly or indirectly through you, then
478 the only way you could satisfy both it and this License would be to
479 refrain entirely from distribution of the Library.
480
481 If any portion of this section is held invalid or unenforceable under
482 any particular circumstance, the balance of the section is intended to
483 apply, and the section as a whole is intended to apply in other
484 circumstances.
485
486 It is not the purpose of this section to induce you to infringe any
487 patents or other property right claims or to contest validity of any
488 such claims; this section has the sole purpose of protecting the
489 integrity of the free software distribution system which is
490 implemented by public license practices. Many people have made
491 generous contributions to the wide range of software distributed
492 through that system in reliance on consistent application of that
493 system; it is up to the author/donor to decide if he or she is willing
494 to distribute software through any other system and a licensee cannot impose
495 that choice.
496
497 This section is intended to make thoroughly clear what is believed to
498 be a consequence of the rest of this License.
499
500 \item
501 If the distribution and/or use of the Library is restricted in
502 certain countries either by patents or by copyrighted interfaces, the
503 original copyright holder who places the Library under this License
504 may add an explicit geographical distribution limitation excluding
505 those countries, so that distribution is permitted only in or among
506 countries not thus excluded. In such case, this License incorporates
507 the limitation as if written in the body of this License.
508
509 \item
510 The Free Software Foundation may publish revised and/or new versions
511 of the Library General Public License from time to time. Such new versions
512 will be similar in spirit to the present version, but may differ in detail to
513 address new problems or concerns.
514
515 Each version is given a distinguishing version number. If the Library
516 specifies a version number of this License which applies to it and ``any
517 later version'', you have the option of following the terms and conditions
518 either of that version or of any later version published by the Free
519 Software Foundation. If the Library does not specify a license version
520 number, you may choose any version ever published by the Free Software
521 Foundation.
522
523 \item
524 If you wish to incorporate parts of the Library into other free
525 programs whose distribution conditions are incompatible with these,
526 write to the author to ask for permission. For software which is
527 copyrighted by the Free Software Foundation, write to the Free Software
528 Foundation; we sometimes make exceptions for this. Our decision will
529 be guided by the two goals of preserving the free status of all
530 derivatives of our free software and of promoting the sharing and reuse
531 of software generally.
532
533 \begin{center}
534 {\Large\sc
535 No Warranty
536 }
537 \end{center}
538
539 \item
540 {\sc Because the Library is licensed free of charge, there is no warranty
541 for the Library, to the extent permitted by applicable law. Except when
542 otherwise stated in writing the copyright holders and/or other parties
543 provide the Library ``as is'' without warranty of any kind, either expressed
544 or implied, including, but not limited to, the implied warranties of
545 merchantability and fitness for a particular purpose. The entire risk as
546 to the quality and performance of the Library is with you. Should the
547 Library prove defective, you assume the cost of all necessary servicing,
548 repair or correction.}
549
550 \item
551 {\sc In no event unless required by applicable law or agreed to in writing
552 will any copyright holder, or any other party who may modify and/or
553 redistribute the Library as permitted above, be liable to you for damages,
554 including any general, special, incidental or consequential damages arising
555 out of the use or inability to use the Library (including but not limited
556 to loss of data or data being rendered inaccurate or losses sustained by
557 you or third parties or a failure of the Library to operate with any other
558 software), even if such holder or other party has been advised of the
559 possibility of such damages.}
560
561 \end{enumerate}
562
563
564 \begin{center}
565 {\Large\sc End of Terms and Conditions}
566 \end{center}
567
568
569 \pagebreak[2]
570
571 \section*{Appendix: How to Apply These Terms to Your New Libraries}
572
573 If you develop a new library, and you want it to be of the greatest possible
574 use to the public, we recommend making it free software that everyone can
575 redistribute and change. You can do so by permitting redistribution under
576 these terms (or, alternatively, under the terms of the ordinary General
577 Public License).
578
579 To apply these terms, attach the following notices to the library. It is
580 safest to attach them to the start of each source file to most effectively
581 convey the exclusion of warranty; and each file should have at least the
582 ``copyright'' line and a pointer to where the full notice is found.
583
584 \begin{verbatim}
585 <one line to give the library's name and a brief idea of what it does.>
586 Copyright (C) <year> <name of author>
587
588 This library is free software; you can redistribute it and/or
589 modify it under the terms of the GNU Library General Public
590 License as published by the Free Software Foundation; either
591 version 2 of the License, or (at your option) any later version.
592
593 This library is distributed in the hope that it will be useful,
594 but WITHOUT ANY WARRANTY; without even the implied warranty of
595 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
596 Library General Public License for more details.
597
598 You should have received a copy of the GNU Library General Public License
599 along with this library; if not, write to the Free Software Foundation,
600 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
601 \end{verbatim}
602
603 Also add information on how to contact you by electronic and paper mail.
604
605 You should also get your employer (if you work as a programmer) or your
606 school, if any, to sign a ``copyright disclaimer'' for the library, if
607 necessary. Here is a sample; alter the names:
608
609 \begin{verbatim}
610 Yoyodyne, Inc., hereby disclaims all copyright interest in the
611 library `Frob' (a library for tweaking knobs) written by James
612 Random Hacker.
613
614 <signature of Ty Coon>, 1 April 1990
615 Ty Coon, President of Vice
616 \end{verbatim}
617
618 That's all there is to it!
619
620 \gplend