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