LGPL-2.1-or-later.txt 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. GNU LESSER GENERAL PUBLIC LICENSE
  2. Version 2.1, February 1999
  3. Copyright (C) 1991, 1999 Free Software Foundation, Inc.
  4. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  5. Everyone is permitted to copy and distribute verbatim copies of this license
  6. document, but changing it is not allowed.
  7. [This is the first released version of the Lesser GPL. It also counts as the
  8. successor of the GNU Library Public License, version 2, hence the version
  9. number 2.1.]
  10. Preamble
  11. The licenses for most software are designed to take away your freedom to share
  12. and change it. By contrast, the GNU General Public Licenses are intended to
  13. guarantee your freedom to share and change free software--to make sure the
  14. software is free for all its users.
  15. This license, the Lesser General Public License, applies to some specially
  16. designated software packages--typically libraries--of the Free Software Foundation
  17. and other authors who decide to use it. You can use it too, but we suggest
  18. you first think carefully about whether this license or the ordinary General
  19. Public License is the better strategy to use in any particular case, based
  20. on the explanations below.
  21. When we speak of free software, we are referring to freedom of use, not price.
  22. Our General Public Licenses are designed to make sure that you have the freedom
  23. to distribute copies of free software (and charge for this service if you
  24. wish); that you receive source code or can get it if you want it; that you
  25. can change the software and use pieces of it in new free programs; and that
  26. you are informed that you can do these things.
  27. To protect your rights, we need to make restrictions that forbid distributors
  28. to deny you these rights or to ask you to surrender these rights. These restrictions
  29. translate to certain responsibilities for you if you distribute copies of
  30. the library or if you modify it.
  31. For example, if you distribute copies of the library, whether gratis or for
  32. a fee, you must give the recipients all the rights that we gave you. You must
  33. make sure that they, too, receive or can get the source code. If you link
  34. other code with the library, you must provide complete object files to the
  35. recipients, so that they can relink them with the library after making changes
  36. to the library and recompiling it. And you must show them these terms so they
  37. know their rights.
  38. We protect your rights with a two-step method: (1) we copyright the library,
  39. and (2) we offer you this license, which gives you legal permission to copy,
  40. distribute and/or modify the library.
  41. To protect each distributor, we want to make it very clear that there is no
  42. warranty for the free library. Also, if the library is modified by someone
  43. else and passed on, the recipients should know that what they have is not
  44. the original version, so that the original author's reputation will not be
  45. affected by problems that might be introduced by others.
  46. Finally, software patents pose a constant threat to the existence of any free
  47. program. We wish to make sure that a company cannot effectively restrict the
  48. users of a free program by obtaining a restrictive license from a patent holder.
  49. Therefore, we insist that any patent license obtained for a version of the
  50. library must be consistent with the full freedom of use specified in this
  51. license.
  52. Most GNU software, including some libraries, is covered by the ordinary GNU
  53. General Public License. This license, the GNU Lesser General Public License,
  54. applies to certain designated libraries, and is quite different from the ordinary
  55. General Public License. We use this license for certain libraries in order
  56. to permit linking those libraries into non-free programs.
  57. When a program is linked with a library, whether statically or using a shared
  58. library, the combination of the two is legally speaking a combined work, a
  59. derivative of the original library. The ordinary General Public License therefore
  60. permits such linking only if the entire combination fits its criteria of freedom.
  61. The Lesser General Public License permits more lax criteria for linking other
  62. code with the library.
  63. We call this license the "Lesser" General Public License because it does Less
  64. to protect the user's freedom than the ordinary General Public License. It
  65. also provides other free software developers Less of an advantage over competing
  66. non-free programs. These disadvantages are the reason we use the ordinary
  67. General Public License for many libraries. However, the Lesser license provides
  68. advantages in certain special circumstances.
  69. For example, on rare occasions, there may be a special need to encourage the
  70. widest possible use of a certain library, so that it becomes a de-facto standard.
  71. To achieve this, non-free programs must be allowed to use the library. A more
  72. frequent case is that a free library does the same job as widely used non-free
  73. libraries. In this case, there is little to gain by limiting the free library
  74. to free software only, so we use the Lesser General Public License.
  75. In other cases, permission to use a particular library in non-free programs
  76. enables a greater number of people to use a large body of free software. For
  77. example, permission to use the GNU C Library in non-free programs enables
  78. many more people to use the whole GNU operating system, as well as its variant,
  79. the GNU/Linux operating system.
  80. Although the Lesser General Public License is Less protective of the users'
  81. freedom, it does ensure that the user of a program that is linked with the
  82. Library has the freedom and the wherewithal to run that program using a modified
  83. version of the Library.
  84. The precise terms and conditions for copying, distribution and modification
  85. follow. Pay close attention to the difference between a "work based on the
  86. library" and a "work that uses the library". The former contains code derived
  87. from the library, whereas the latter must be combined with the library in
  88. order to run.
  89. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  90. 0. This License Agreement applies to any software library or other program
  91. which contains a notice placed by the copyright holder or other authorized
  92. party saying it may be distributed under the terms of this Lesser General
  93. Public License (also called "this License"). Each licensee is addressed as
  94. "you".
  95. A "library" means a collection of software functions and/or data prepared
  96. so as to be conveniently linked with application programs (which use some
  97. of those functions and data) to form executables.
  98. The "Library", below, refers to any such software library or work which has
  99. been distributed under these terms. A "work based on the Library" means either
  100. the Library or any derivative work under copyright law: that is to say, a
  101. work containing the Library or a portion of it, either verbatim or with modifications
  102. and/or translated straightforwardly into another language. (Hereinafter, translation
  103. is included without limitation in the term "modification".)
  104. "Source code" for a work means the preferred form of the work for making modifications
  105. to it. For a library, complete source code means all the source code for all
  106. modules it contains, plus any associated interface definition files, plus
  107. the scripts used to control compilation and installation of the library.
  108. Activities other than copying, distribution and modification are not covered
  109. by this License; they are outside its scope. The act of running a program
  110. using the Library is not restricted, and output from such a program is covered
  111. only if its contents constitute a work based on the Library (independent of
  112. the use of the Library in a tool for writing it). Whether that is true depends
  113. on what the Library does and what the program that uses the Library does.
  114. 1. You may copy and distribute verbatim copies of the Library's complete source
  115. code as you receive it, in any medium, provided that you conspicuously and
  116. appropriately publish on each copy an appropriate copyright notice and disclaimer
  117. of warranty; keep intact all the notices that refer to this License and to
  118. the absence of any warranty; and distribute a copy of this License along with
  119. the Library.
  120. You may charge a fee for the physical act of transferring a copy, and you
  121. may at your option offer warranty protection in exchange for a fee.
  122. 2. You may modify your copy or copies of the Library or any portion of it,
  123. thus forming a work based on the Library, and copy and distribute such modifications
  124. or work under the terms of Section 1 above, provided that you also meet all
  125. of these conditions:
  126. a) The modified work must itself be a software library.
  127. b) You must cause the files modified to carry prominent notices stating that
  128. you changed the files and the date of any change.
  129. c) You must cause the whole of the work to be licensed at no charge to all
  130. third parties under the terms of this License.
  131. d) If a facility in the modified Library refers to a function or a table of
  132. data to be supplied by an application program that uses the facility, other
  133. than as an argument passed when the facility is invoked, then you must make
  134. a good faith effort to ensure that, in the event an application does not supply
  135. such function or table, the facility still operates, and performs whatever
  136. part of its purpose remains meaningful.
  137. (For example, a function in a library to compute square roots has a purpose
  138. that is entirely well-defined independent of the application. Therefore, Subsection
  139. 2d requires that any application-supplied function or table used by this function
  140. must be optional: if the application does not supply it, the square root function
  141. must still compute square roots.)
  142. These requirements apply to the modified work as a whole. If identifiable
  143. sections of that work are not derived from the Library, and can be reasonably
  144. considered independent and separate works in themselves, then this License,
  145. and its terms, do not apply to those sections when you distribute them as
  146. separate works. But when you distribute the same sections as part of a whole
  147. which is a work based on the Library, the distribution of the whole must be
  148. on the terms of this License, whose permissions for other licensees extend
  149. to the entire whole, and thus to each and every part regardless of who wrote
  150. it.
  151. Thus, it is not the intent of this section to claim rights or contest your
  152. rights to work written entirely by you; rather, the intent is to exercise
  153. the right to control the distribution of derivative or collective works based
  154. on the Library.
  155. In addition, mere aggregation of another work not based on the Library with
  156. the Library (or with a work based on the Library) on a volume of a storage
  157. or distribution medium does not bring the other work under the scope of this
  158. License.
  159. 3. You may opt to apply the terms of the ordinary GNU General Public License
  160. instead of this License to a given copy of the Library. To do this, you must
  161. alter all the notices that refer to this License, so that they refer to the
  162. ordinary GNU General Public License, version 2, instead of to this License.
  163. (If a newer version than version 2 of the ordinary GNU General Public License
  164. has appeared, then you can specify that version instead if you wish.) Do not
  165. make any other change in these notices.
  166. Once this change is made in a given copy, it is irreversible for that copy,
  167. so the ordinary GNU General Public License applies to all subsequent copies
  168. and derivative works made from that copy.
  169. This option is useful when you wish to copy part of the code of the Library
  170. into a program that is not a library.
  171. 4. You may copy and distribute the Library (or a portion or derivative of
  172. it, under Section 2) in object code or executable form under the terms of
  173. Sections 1 and 2 above provided that you accompany it with the complete corresponding
  174. machine-readable source code, which must be distributed under the terms of
  175. Sections 1 and 2 above on a medium customarily used for software interchange.
  176. If distribution of object code is made by offering access to copy from a designated
  177. place, then offering equivalent access to copy the source code from the same
  178. place satisfies the requirement to distribute the source code, even though
  179. third parties are not compelled to copy the source along with the object code.
  180. 5. A program that contains no derivative of any portion of the Library, but
  181. is designed to work with the Library by being compiled or linked with it,
  182. is called a "work that uses the Library". Such a work, in isolation, is not
  183. a derivative work of the Library, and therefore falls outside the scope of
  184. this License.
  185. However, linking a "work that uses the Library" with the Library creates an
  186. executable that is a derivative of the Library (because it contains portions
  187. of the Library), rather than a "work that uses the library". The executable
  188. is therefore covered by this License. Section 6 states terms for distribution
  189. of such executables.
  190. When a "work that uses the Library" uses material from a header file that
  191. is part of the Library, the object code for the work may be a derivative work
  192. of the Library even though the source code is not. Whether this is true is
  193. especially significant if the work can be linked without the Library, or if
  194. the work is itself a library. The threshold for this to be true is not precisely
  195. defined by law.
  196. If such an object file uses only numerical parameters, data structure layouts
  197. and accessors, and small macros and small inline functions (ten lines or less
  198. in length), then the use of the object file is unrestricted, regardless of
  199. whether it is legally a derivative work. (Executables containing this object
  200. code plus portions of the Library will still fall under Section 6.)
  201. Otherwise, if the work is a derivative of the Library, you may distribute
  202. the object code for the work under the terms of Section 6. Any executables
  203. containing that work also fall under Section 6, whether or not they are linked
  204. directly with the Library itself.
  205. 6. As an exception to the Sections above, you may also combine or link a "work
  206. that uses the Library" with the Library to produce a work containing portions
  207. of the Library, and distribute that work under terms of your choice, provided
  208. that the terms permit modification of the work for the customer's own use
  209. and reverse engineering for debugging such modifications.
  210. You must give prominent notice with each copy of the work that the Library
  211. is used in it and that the Library and its use are covered by this License.
  212. You must supply a copy of this License. If the work during execution displays
  213. copyright notices, you must include the copyright notice for the Library among
  214. them, as well as a reference directing the user to the copy of this License.
  215. Also, you must do one of these things:
  216. a) Accompany the work with the complete corresponding machine-readable source
  217. code for the Library including whatever changes were used in the work (which
  218. must be distributed under Sections 1 and 2 above); and, if the work is an
  219. executable linked with the Library, with the complete machine-readable "work
  220. that uses the Library", as object code and/or source code, so that the user
  221. can modify the Library and then relink to produce a modified executable containing
  222. the modified Library. (It is understood that the user who changes the contents
  223. of definitions files in the Library will not necessarily be able to recompile
  224. the application to use the modified definitions.)
  225. b) Use a suitable shared library mechanism for linking with the Library. A
  226. suitable mechanism is one that (1) uses at run time a copy of the library
  227. already present on the user's computer system, rather than copying library
  228. functions into the executable, and (2) will operate properly with a modified
  229. version of the library, if the user installs one, as long as the modified
  230. version is interface-compatible with the version that the work was made with.
  231. c) Accompany the work with a written offer, valid for at least three years,
  232. to give the same user the materials specified in Subsection 6a, above, for
  233. a charge no more than the cost of performing this distribution.
  234. d) If distribution of the work is made by offering access to copy from a designated
  235. place, offer equivalent access to copy the above specified materials from
  236. the same place.
  237. e) Verify that the user has already received a copy of these materials or
  238. that you have already sent this user a copy.
  239. For an executable, the required form of the "work that uses the Library" must
  240. include any data and utility programs needed for reproducing the executable
  241. from it. However, as a special exception, the materials to be distributed
  242. need not include anything that is normally distributed (in either source or
  243. binary form) with the major components (compiler, kernel, and so on) of the
  244. operating system on which the executable runs, unless that component itself
  245. accompanies the executable.
  246. It may happen that this requirement contradicts the license restrictions of
  247. other proprietary libraries that do not normally accompany the operating system.
  248. Such a contradiction means you cannot use both them and the Library together
  249. in an executable that you distribute.
  250. 7. You may place library facilities that are a work based on the Library side-by-side
  251. in a single library together with other library facilities not covered by
  252. this License, and distribute such a combined library, provided that the separate
  253. distribution of the work based on the Library and of the other library facilities
  254. is otherwise permitted, and provided that you do these two things:
  255. a) Accompany the combined library with a copy of the same work based on the
  256. Library, uncombined with any other library facilities. This must be distributed
  257. under the terms of the Sections above.
  258. b) Give prominent notice with the combined library of the fact that part of
  259. it is a work based on the Library, and explaining where to find the accompanying
  260. uncombined form of the same work.
  261. 8. You may not copy, modify, sublicense, link with, or distribute the Library
  262. except as expressly provided under this License. Any attempt otherwise to
  263. copy, modify, sublicense, link with, or distribute the Library is void, and
  264. will automatically terminate your rights under this License. However, parties
  265. who have received copies, or rights, from you under this License will not
  266. have their licenses terminated so long as such parties remain in full compliance.
  267. 9. You are not required to accept this License, since you have not signed
  268. it. However, nothing else grants you permission to modify or distribute the
  269. Library or its derivative works. These actions are prohibited by law if you
  270. do not accept this License. Therefore, by modifying or distributing the Library
  271. (or any work based on the Library), you indicate your acceptance of this License
  272. to do so, and all its terms and conditions for copying, distributing or modifying
  273. the Library or works based on it.
  274. 10. Each time you redistribute the Library (or any work based on the Library),
  275. the recipient automatically receives a license from the original licensor
  276. to copy, distribute, link with or modify the Library subject to these terms
  277. and conditions. You may not impose any further restrictions on the recipients'
  278. exercise of the rights granted herein. You are not responsible for enforcing
  279. compliance by third parties with this License.
  280. 11. If, as a consequence of a court judgment or allegation of patent infringement
  281. or for any other reason (not limited to patent issues), conditions are imposed
  282. on you (whether by court order, agreement or otherwise) that contradict the
  283. conditions of this License, they do not excuse you from the conditions of
  284. this License. If you cannot distribute so as to satisfy simultaneously your
  285. obligations under this License and any other pertinent obligations, then as
  286. a consequence you may not distribute the Library at all. For example, if a
  287. patent license would not permit royalty-free redistribution of the Library
  288. by all those who receive copies directly or indirectly through you, then the
  289. only way you could satisfy both it and this License would be to refrain entirely
  290. from distribution of the Library.
  291. If any portion of this section is held invalid or unenforceable under any
  292. particular circumstance, the balance of the section is intended to apply,
  293. and the section as a whole is intended to apply in other circumstances.
  294. It is not the purpose of this section to induce you to infringe any patents
  295. or other property right claims or to contest validity of any such claims;
  296. this section has the sole purpose of protecting the integrity of the free
  297. software distribution system which is implemented by public license practices.
  298. Many people have made generous contributions to the wide range of software
  299. distributed through that system in reliance on consistent application of that
  300. system; it is up to the author/donor to decide if he or she is willing to
  301. distribute software through any other system and a licensee cannot impose
  302. that choice.
  303. This section is intended to make thoroughly clear what is believed to be a
  304. consequence of the rest of this License.
  305. 12. If the distribution and/or use of the Library is restricted in certain
  306. countries either by patents or by copyrighted interfaces, the original copyright
  307. holder who places the Library under this License may add an explicit geographical
  308. distribution limitation excluding those countries, so that distribution is
  309. permitted only in or among countries not thus excluded. In such case, this
  310. License incorporates the limitation as if written in the body of this License.
  311. 13. The Free Software Foundation may publish revised and/or new versions of
  312. the Lesser General Public License from time to time. Such new versions will
  313. be similar in spirit to the present version, but may differ in detail to address
  314. new problems or concerns.
  315. Each version is given a distinguishing version number. If the Library specifies
  316. a version number of this License which applies to it and "any later version",
  317. you have the option of following the terms and conditions either of that version
  318. or of any later version published by the Free Software Foundation. If the
  319. Library does not specify a license version number, you may choose any version
  320. ever published by the Free Software Foundation.
  321. 14. If you wish to incorporate parts of the Library into other free programs
  322. whose distribution conditions are incompatible with these, write to the author
  323. to ask for permission. For software which is copyrighted by the Free Software
  324. Foundation, write to the Free Software Foundation; we sometimes make exceptions
  325. for this. Our decision will be guided by the two goals of preserving the free
  326. status of all derivatives of our free software and of promoting the sharing
  327. and reuse of software generally.
  328. NO WARRANTY
  329. 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR
  330. THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE
  331. STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY
  332. "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
  333. BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  334. FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
  335. OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
  336. THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
  337. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  338. WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE
  339. THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
  340. GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE
  341. OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA
  342. OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES
  343. OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH
  344. HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  345. END OF TERMS AND CONDITIONS
  346. How to Apply These Terms to Your New Libraries
  347. If you develop a new library, and you want it to be of the greatest possible
  348. use to the public, we recommend making it free software that everyone can
  349. redistribute and change. You can do so by permitting redistribution under
  350. these terms (or, alternatively, under the terms of the ordinary General Public
  351. License).
  352. To apply these terms, attach the following notices to the library. It is safest
  353. to attach them to the start of each source file to most effectively convey
  354. the exclusion of warranty; and each file should have at least the "copyright"
  355. line and a pointer to where the full notice is found.
  356. <one line to give the library's name and an idea of what it does.>
  357. Copyright (C) <year> <name of author>
  358. This library is free software; you can redistribute it and/or modify it under
  359. the terms of the GNU Lesser General Public License as published by the Free
  360. Software Foundation; either version 2.1 of the License, or (at your option)
  361. any later version.
  362. This library is distributed in the hope that it will be useful, but WITHOUT
  363. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  364. FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  365. details.
  366. You should have received a copy of the GNU Lesser General Public License along
  367. with this library; if not, write to the Free Software Foundation, Inc., 51
  368. Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  369. Also add information on how to contact you by electronic and paper mail.
  370. You should also get your employer (if you work as a programmer) or your school,
  371. if any, to sign a "copyright disclaimer" for the library, if necessary. Here
  372. is a sample; alter the names:
  373. Yoyodyne, Inc., hereby disclaims all copyright interest in
  374. the library `Frob' (a library for tweaking knobs) written
  375. by James Random Hacker.
  376. < signature of Ty Coon > , 1 April 1990
  377. Ty Coon, President of Vice
  378. That's all there is to it!