(|l)gpl-2.[01].tex: Remove the `\renewcommand{\theenumi}...' comments.
[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 \begin{enumerate}
174
175 \addtocounter{enumi}{-1}
176
177 \item
178
179 This License Agreement applies to any software library which contains a
180 notice placed by the copyright holder or other authorized party saying it
181 may be distributed under the terms of this Library General Public License
182 (also called ``this License''). Each licensee is addressed as ``you''.
183
184 A ``library'' means a collection of software functions and/or data
185 prepared so as to be conveniently linked with application programs
186 (which use some of those functions and data) to form executables.
187
188 The ``Library'', below, refers to any such software library or work
189 which has been distributed under these terms. A ``work based on the
190 Library'' means either the Library or any derivative work under
191 copyright law: that is to say, a work containing the Library or a
192 portion of it, either verbatim or with modifications and/or translated
193 straightforwardly into another language. (Hereinafter, translation is
194 included without limitation in the term ``modification''.)
195
196 ``Source code'' for a work means the preferred form of the work for
197 making modifications to it. For a library, complete source code means
198 all the source code for all modules it contains, plus any associated
199 interface definition files, plus the scripts used to control
200 compilation and installation of the library.
201
202 Activities other than copying, distribution and modification are not
203 covered by this License; they are outside its scope. The act of
204 running a program using the Library is not restricted, and output from
205 such a program is covered only if its contents constitute a work based
206 on the Library (independent of the use of the Library in a tool for
207 writing it). Whether that is true depends on what the Library does and
208 what the program that uses the Library does.
209
210 \item You may copy and distribute verbatim copies of the Library's complete
211 source code as you receive it, in any medium, provided that you
212 conspicuously and appropriately publish on each copy an appropriate
213 copyright notice and disclaimer of warranty; keep intact all the notices
214 that refer to this License and to the absence of any warranty; and
215 distribute a copy of this License along with the Library.
216
217 You may charge a fee for the physical act of transferring a copy, and you
218 may at your option offer warranty protection in exchange for a fee.
219
220 \item
221
222 You may modify your copy or copies of the Library or any portion of it,
223 thus forming a work based on the Library, and copy and distribute such
224 modifications or work under the terms of Section 1 above, provided that you
225 also meet all of these conditions:
226
227 \begin{enumerate}
228
229 \item
230
231 The modified work must itself be a software library.
232
233 \item
234
235 You must cause the files modified to carry prominent notices stating that
236 you changed the files and the date of any change.
237
238 \item
239
240 You must cause the whole of the work to be licensed at no charge to all
241 third parties under the terms of this License.
242
243 \item
244
245 If a facility in the modified Library refers to a function or a table of
246 data to be supplied by an application program that uses the facility, other
247 than as an argument passed when the facility is invoked, then you must make
248 a good faith effort to ensure that, in the event an application does not
249 supply such function or table, the facility still operates, and performs
250 whatever part of its purpose remains meaningful.
251
252 (For example, a function in a library to compute square roots has a purpose
253 that is entirely well-defined independent of the application. Therefore,
254 Subsection 2d requires that any application-supplied function or table used
255 by this function must be optional: if the application does not supply it, the
256 square root function must still compute square roots.)
257
258 \end{enumerate}
259
260
261 These requirements apply to the modified work as a whole. If
262 identifiable sections of that work are not derived from the Library,
263 and can be reasonably considered independent and separate works in
264 themselves, then this License, and its terms, do not apply to those
265 sections when you distribute them as separate works. But when you
266 distribute the same sections as part of a whole which is a work based
267 on the Library, the distribution of the whole must be on the terms of
268 this License, whose permissions for other licensees extend to the
269 entire whole, and thus to each and every part regardless of who wrote it.
270
271 Thus, it is not the intent of this section to claim rights or contest
272 your rights to work written entirely by you; rather, the intent is to
273 exercise the right to control the distribution of derivative or
274 collective works based on the Library.
275
276 In addition, mere aggregation of another work not based on the Library
277 with the Library (or with a work based on the Library) on a volume of a
278 storage or distribution medium does not bring the other work under the
279 scope of this License.
280
281 \item
282 You may opt to apply the terms of the ordinary GNU General Public
283 License instead of this License to a given copy of the Library. To do
284 this, you must alter all the notices that refer to this License, so
285 that they refer to the ordinary GNU General Public License, version 2,
286 instead of to this License. (If a newer version than version 2 of the
287 ordinary GNU General Public License has appeared, then you can specify
288 that version instead if you wish.) Do not make any other change in
289 these notices.
290
291 Once this change is made in a given copy, it is irreversible for that
292 copy, so the ordinary GNU General Public License applies to all
293 subsequent copies and derivative works made from that copy.
294
295 This option is useful when you wish to copy part of the code of the
296 Library into a program that is not a library.
297
298 \item
299 You may copy and distribute the Library (or a portion or derivative of it,
300 under Section 2) in object code or executable form under the terms of
301 Sections 1 and 2 above provided that you accompany it with the complete
302 corresponding machine-readable
303 source code, which must be distributed under the terms of Sections
304 1 and 2 above on a medium customarily used for software interchange.
305
306 If distribution of object code is made by offering
307 access to copy from a designated place, then offering equivalent
308 access to copy the source code from the same place satisfies the requirement to
309 distribute the source code, even though third parties are not
310 compelled to copy the source along with the object code.
311
312 \item
313 A program that contains no derivative of any portion of the
314 Library, but is designed to work with the Library by being compiled or
315 linked with it, is called a ``work that uses the Library''. Such a
316 work, in isolation, is not a derivative work of the Library, and
317 therefore falls outside the scope of this License.
318
319 However, linking a ``work that uses the Library'' with the Library
320 creates an executable that is a derivative of the Library (because it
321 contains portions of the Library), rather than a ``work that uses the
322 library''. The executable is therefore covered by this License.
323 Section 6 states terms for distribution of such executables.
324
325 When a ``work that uses the Library'' uses material from a header file
326 that is part of the Library, the object code for the work may be a
327 derivative work of the Library even though the source code is not.
328 Whether this is true is especially significant if the work can be
329 linked without the Library, or if the work is itself a library. The
330 threshold for this to be true is not precisely defined by law.
331
332 If such an object file uses only numerical parameters, data structure
333 layouts and accessors, and small macros and small inline functions (ten
334 lines or less in length), then the use of the object file is
335 unrestricted, regardless of whether it is legally a derivative work.
336 (Executables containing this object code plus portions of the Library
337 will still fall under Section 6.)
338
339 Otherwise, if the work is a derivative of the Library, you may
340 distribute the object code for the work under the terms of Section 6.
341 Any executables containing that work also fall under Section 6, whether
342 or not they are linked directly with the Library itself.
343
344 \item
345
346 As an exception to the Sections above, you may also compile or
347 link a ``work that uses the Library'' with the Library to produce a
348 work containing portions of the Library, and distribute that work under
349 terms of your choice, provided that the terms permit modification of
350 the work for the customer's own use and reverse engineering for
351 debugging such modifications.
352
353 You must give prominent notice with each copy of the work that the
354 Library is used in it and that the Library and its use are covered by
355 this License. You must supply a copy of this License. If the work
356 during execution displays copyright notices, you must include the
357 copyright notice for the Library among them, as well as a reference
358 directing the user to the copy of this License. Also, you must do one
359 of these things:
360
361 \begin{enumerate}
362
363 \item
364
365 Accompany the work with the complete corresponding
366 machine-readable source code for the Library including whatever
367 changes were used in the work (which must be distributed under
368 Sections 1 and 2 above); and, if the work is an executable linked
369 with the Library, with the complete machine-readable ``work that
370 uses the Library'', as object code and/or source code, so that
371 the user can modify the Library and then relink to produce a
372 modified executable containing the modified Library. (It is
373 understood that the user who changes the contents of definitions
374 files in the Library will not necessarily be able to recompile
375 the application to use the modified definitions.)
376
377 \item
378
379 Accompany the work with a written offer, valid for at least three
380 years, to give the same user the materials specified in
381 Subsection 6a, above, for a charge no more than the cost of
382 performing this distribution.
383
384 \item
385
386 If distribution of the work is made by offering access to
387 copy from a designated place, offer equivalent access to copy the
388 above specified materials from the same place.
389
390 \item
391
392 Verify that the user has already received a copy of these
393 materials or that you have already sent this user a copy.
394
395 \end{enumerate}
396
397 For an executable, the required form of the ``work that uses the
398 Library'' must include any data and utility programs needed for
399 reproducing the executable from it. However, as a special exception,
400 the source code distributed need not include anything that is normally
401 distributed (in either source or binary form) with the major
402 components (compiler, kernel, and so on) of the operating system on
403 which the executable runs, unless that component itself accompanies
404 the executable.
405
406 It may happen that this requirement contradicts the license
407 restrictions of other proprietary libraries that do not normally
408 accompany the operating system. Such a contradiction means you cannot
409 use both them and the Library together in an executable that you
410 distribute.
411
412 \item
413
414 You may place library facilities that are a work based on the
415 Library side-by-side in a single library together with other library
416 facilities not covered by this License, and distribute such a combined
417 library, provided that the separate distribution of the work based on
418 the Library and of the other library facilities is otherwise
419 permitted, and provided that you do these two things:
420
421 \begin{enumerate}
422
423 \item
424 Accompany the combined library with a copy of the same work
425 based on the Library, uncombined with any other library
426 facilities. This must be distributed under the terms of the
427 Sections above.
428
429 \item
430 Give prominent notice with the combined library of the fact
431 that part of it is a work based on the Library, and explaining
432 where to find the accompanying uncombined form of the same work.
433
434 \end{enumerate}
435
436 \item
437
438 You may not copy, modify, sublicense, link with, or distribute the Library
439 except as expressly provided under this License. Any attempt otherwise
440 to copy, modify, sublicense, link with, or distribute the Library is
441 void, and will automatically terminate your rights under this License.
442 However, parties who have received copies, or rights, from you under
443 this License will not have their licenses terminated so long as such
444 parties remain in full compliance.
445
446 \item
447 You are not required to accept this License, since you have not
448 signed it. However, nothing else grants you permission to modify or
449 distribute the Library or its derivative works. These actions are
450 prohibited by law if you do not accept this License. Therefore, by
451 modifying or distributing the Library (or any work based on the
452 Library), you indicate your acceptance of this License to do so, and
453 all its terms and conditions for copying, distributing or modifying the
454 Library or works based on it.
455
456 \item
457
458 Each time you redistribute the Library (or any work based on the
459 Library), the recipient automatically receives a license from the
460 original licensor to copy, distribute, link with or modify the Library
461 subject to these terms and conditions. You may not impose any further
462 restrictions on the recipients' exercise of the rights granted herein.
463 You are not responsible for enforcing compliance by third parties to
464 this License.
465
466 \item
467 If, as a consequence of a court judgment or allegation of patent
468 infringement or for any other reason (not limited to patent issues),
469 conditions are imposed on you (whether by court order, agreement or
470 otherwise) that contradict the conditions of this License, they do not
471 excuse you from the conditions of this License. If you cannot
472 distribute so as to satisfy simultaneously your obligations under this
473 License and any other pertinent obligations, then as a consequence you
474 may not distribute the Library at all. For example, if a patent
475 license would not permit royalty-free redistribution of the Library by
476 all those who receive copies directly or indirectly through you, then
477 the only way you could satisfy both it and this License would be to
478 refrain entirely from distribution of the Library.
479
480 If any portion of this section is held invalid or unenforceable under
481 any particular circumstance, the balance of the section is intended to
482 apply, and the section as a whole is intended to apply in other
483 circumstances.
484
485 It is not the purpose of this section to induce you to infringe any
486 patents or other property right claims or to contest validity of any
487 such claims; this section has the sole purpose of protecting the
488 integrity of the free software distribution system which is
489 implemented by public license practices. Many people have made
490 generous contributions to the wide range of software distributed
491 through that system in reliance on consistent application of that
492 system; it is up to the author/donor to decide if he or she is willing
493 to distribute software through any other system and a licensee cannot impose
494 that choice.
495
496 This section is intended to make thoroughly clear what is believed to
497 be a consequence of the rest of this License.
498
499 \item
500 If the distribution and/or use of the Library is restricted in
501 certain countries either by patents or by copyrighted interfaces, the
502 original copyright holder who places the Library under this License
503 may add an explicit geographical distribution limitation excluding
504 those countries, so that distribution is permitted only in or among
505 countries not thus excluded. In such case, this License incorporates
506 the limitation as if written in the body of this License.
507
508 \item
509 The Free Software Foundation may publish revised and/or new versions
510 of the Library General Public License from time to time. Such new versions
511 will be similar in spirit to the present version, but may differ in detail to
512 address new problems or concerns.
513
514 Each version is given a distinguishing version number. If the Library
515 specifies a version number of this License which applies to it and ``any
516 later version'', you have the option of following the terms and conditions
517 either of that version or of any later version published by the Free
518 Software Foundation. If the Library does not specify a license version
519 number, you may choose any version ever published by the Free Software
520 Foundation.
521
522 \item
523 If you wish to incorporate parts of the Library into other free
524 programs whose distribution conditions are incompatible with these,
525 write to the author to ask for permission. For software which is
526 copyrighted by the Free Software Foundation, write to the Free Software
527 Foundation; we sometimes make exceptions for this. Our decision will
528 be guided by the two goals of preserving the free status of all
529 derivatives of our free software and of promoting the sharing and reuse
530 of software generally.
531
532 \begin{center}
533 {\Large\sc
534 No Warranty
535 }
536 \end{center}
537
538 \item
539 {\sc Because the Library is licensed free of charge, there is no warranty
540 for the Library, to the extent permitted by applicable law. Except when
541 otherwise stated in writing the copyright holders and/or other parties
542 provide the Library ``as is'' without warranty of any kind, either expressed
543 or implied, including, but not limited to, the implied warranties of
544 merchantability and fitness for a particular purpose. The entire risk as
545 to the quality and performance of the Library is with you. Should the
546 Library prove defective, you assume the cost of all necessary servicing,
547 repair or correction.}
548
549 \item
550 {\sc In no event unless required by applicable law or agreed to in writing
551 will any copyright holder, or any other party who may modify and/or
552 redistribute the Library as permitted above, be liable to you for damages,
553 including any general, special, incidental or consequential damages arising
554 out of the use or inability to use the Library (including but not limited
555 to loss of data or data being rendered inaccurate or losses sustained by
556 you or third parties or a failure of the Library to operate with any other
557 software), even if such holder or other party has been advised of the
558 possibility of such damages.}
559
560 \end{enumerate}
561
562
563 \begin{center}
564 {\Large\sc End of Terms and Conditions}
565 \end{center}
566
567
568 \pagebreak[2]
569
570 \section*{Appendix: How to Apply These Terms to Your New Libraries}
571
572 If you develop a new library, and you want it to be of the greatest possible
573 use to the public, we recommend making it free software that everyone can
574 redistribute and change. You can do so by permitting redistribution under
575 these terms (or, alternatively, under the terms of the ordinary General
576 Public License).
577
578 To apply these terms, attach the following notices to the library. It is
579 safest to attach them to the start of each source file to most effectively
580 convey the exclusion of warranty; and each file should have at least the
581 ``copyright'' line and a pointer to where the full notice is found.
582
583 \begin{verbatim}
584 <one line to give the library's name and a brief idea of what it does.>
585 Copyright (C) <year> <name of author>
586
587 This library is free software; you can redistribute it and/or
588 modify it under the terms of the GNU Library General Public
589 License as published by the Free Software Foundation; either
590 version 2 of the License, or (at your option) any later version.
591
592 This library is distributed in the hope that it will be useful,
593 but WITHOUT ANY WARRANTY; without even the implied warranty of
594 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
595 Library General Public License for more details.
596
597 You should have received a copy of the GNU Library General Public License
598 along with this library; if not, write to the Free Software Foundation,
599 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
600 \end{verbatim}
601
602 Also add information on how to contact you by electronic and paper mail.
603
604 You should also get your employer (if you work as a programmer) or your
605 school, if any, to sign a ``copyright disclaimer'' for the library, if
606 necessary. Here is a sample; alter the names:
607
608 \begin{verbatim}
609 Yoyodyne, Inc., hereby disclaims all copyright interest in the
610 library `Frob' (a library for tweaking knobs) written by James
611 Random Hacker.
612
613 <signature of Ty Coon>, 1 April 1990
614 Ty Coon, President of Vice
615 \end{verbatim}
616
617 That's all there is to it!
618
619 \gplend