LICENSE 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845
  1. GNU GENERAL PUBLIC LICENSE
  2. Version 2, June 1991
  3. Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  4. 675 Mass Ave, Cambridge, MA 02139, USA
  5. Everyone is permitted to copy and distribute verbatim copies
  6. of this license document, but changing it is not allowed.
  7. Preamble
  8. The licenses for most software are designed to take away your
  9. freedom to share and change it. By contrast, the GNU General Public
  10. License is intended to guarantee your freedom to share and change free
  11. software--to make sure the software is free for all its users. This
  12. General Public License applies to most of the Free Software
  13. Foundation's software and to any other program whose authors commit to
  14. using it. (Some other Free Software Foundation software is covered by
  15. the GNU Library General Public License instead.) You can apply it to
  16. your programs, too.
  17. When we speak of free software, we are referring to freedom, not
  18. price. Our General Public Licenses are designed to make sure that you
  19. have the freedom to distribute copies of free software (and charge for
  20. this service if you wish), that you receive source code or can get it
  21. if you want it, that you can change the software or use pieces of it
  22. in new free programs; and that you know you can do these things.
  23. To protect your rights, we need to make restrictions that forbid
  24. anyone to deny you these rights or to ask you to surrender the rights.
  25. These restrictions translate to certain responsibilities for you if you
  26. distribute copies of the software, or if you modify it.
  27. For example, if you distribute copies of such a program, whether
  28. gratis or for a fee, you must give the recipients all the rights that
  29. you have. You must make sure that they, too, receive or can get the
  30. source code. And you must show them these terms so they know their
  31. rights.
  32. We protect your rights with two steps: (1) copyright the software, and
  33. (2) offer you this license which gives you legal permission to copy,
  34. distribute and/or modify the software.
  35. Also, for each author's protection and ours, we want to make certain
  36. that everyone understands that there is no warranty for this free
  37. software. If the software is modified by someone else and passed on, we
  38. want its recipients to know that what they have is not the original, so
  39. that any problems introduced by others will not reflect on the original
  40. authors' reputations.
  41. Finally, any free program is threatened constantly by software
  42. patents. We wish to avoid the danger that redistributors of a free
  43. program will individually obtain patent licenses, in effect making the
  44. program proprietary. To prevent this, we have made it clear that any
  45. patent must be licensed for everyone's free use or not licensed at all.
  46. The precise terms and conditions for copying, distribution and
  47. modification follow.
  48. GNU GENERAL PUBLIC LICENSE
  49. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  50. 0. This License applies to any program or other work which contains
  51. a notice placed by the copyright holder saying it may be distributed
  52. under the terms of this General Public License. The "Program", below,
  53. refers to any such program or work, and a "work based on the Program"
  54. means either the Program or any derivative work under copyright law:
  55. that is to say, a work containing the Program or a portion of it,
  56. either verbatim or with modifications and/or translated into another
  57. language. (Hereinafter, translation is included without limitation in
  58. the term "modification".) Each licensee is addressed as "you".
  59. Activities other than copying, distribution and modification are not
  60. covered by this License; they are outside its scope. The act of
  61. running the Program is not restricted, and the output from the Program
  62. is covered only if its contents constitute a work based on the
  63. Program (independent of having been made by running the Program).
  64. Whether that is true depends on what the Program does.
  65. 1. You may copy and distribute verbatim copies of the Program's
  66. source code as you receive it, in any medium, provided that you
  67. conspicuously and appropriately publish on each copy an appropriate
  68. copyright notice and disclaimer of warranty; keep intact all the
  69. notices that refer to this License and to the absence of any warranty;
  70. and give any other recipients of the Program a copy of this License
  71. along with the Program.
  72. You may charge a fee for the physical act of transferring a copy, and
  73. you may at your option offer warranty protection in exchange for a fee.
  74. 2. You may modify your copy or copies of the Program or any portion
  75. of it, thus forming a work based on the Program, and copy and
  76. distribute such modifications or work under the terms of Section 1
  77. above, provided that you also meet all of these conditions:
  78. a) You must cause the modified files to carry prominent notices
  79. stating that you changed the files and the date of any change.
  80. b) You must cause any work that you distribute or publish, that in
  81. whole or in part contains or is derived from the Program or any
  82. part thereof, to be licensed as a whole at no charge to all third
  83. parties under the terms of this License.
  84. c) If the modified program normally reads commands interactively
  85. when run, you must cause it, when started running for such
  86. interactive use in the most ordinary way, to print or display an
  87. announcement including an appropriate copyright notice and a
  88. notice that there is no warranty (or else, saying that you provide
  89. a warranty) and that users may redistribute the program under
  90. these conditions, and telling the user how to view a copy of this
  91. License. (Exception: if the Program itself is interactive but
  92. does not normally print such an announcement, your work based on
  93. the Program is not required to print an announcement.)
  94. These requirements apply to the modified work as a whole. If
  95. identifiable sections of that work are not derived from the Program,
  96. and can be reasonably considered independent and separate works in
  97. themselves, then this License, and its terms, do not apply to those
  98. sections when you distribute them as separate works. But when you
  99. distribute the same sections as part of a whole which is a work based
  100. on the Program, the distribution of the whole must be on the terms of
  101. this License, whose permissions for other licensees extend to the
  102. entire whole, and thus to each and every part regardless of who wrote it.
  103. Thus, it is not the intent of this section to claim rights or contest
  104. your rights to work written entirely by you; rather, the intent is to
  105. exercise the right to control the distribution of derivative or
  106. collective works based on the Program.
  107. In addition, mere aggregation of another work not based on the Program
  108. with the Program (or with a work based on the Program) on a volume of
  109. a storage or distribution medium does not bring the other work under
  110. the scope of this License.
  111. 3. You may copy and distribute the Program (or a work based on it,
  112. under Section 2) in object code or executable form under the terms of
  113. Sections 1 and 2 above provided that you also do one of the following:
  114. a) Accompany it with the complete corresponding machine-readable
  115. source code, which must be distributed under the terms of Sections
  116. 1 and 2 above on a medium customarily used for software interchange; or,
  117. b) Accompany it with a written offer, valid for at least three
  118. years, to give any third party, for a charge no more than your
  119. cost of physically performing source distribution, a complete
  120. machine-readable copy of the corresponding source code, to be
  121. distributed under the terms of Sections 1 and 2 above on a medium
  122. customarily used for software interchange; or,
  123. c) Accompany it with the information you received as to the offer
  124. to distribute corresponding source code. (This alternative is
  125. allowed only for noncommercial distribution and only if you
  126. received the program in object code or executable form with such
  127. an offer, in accord with Subsection b above.)
  128. The source code for a work means the preferred form of the work for
  129. making modifications to it. For an executable work, complete source
  130. code means all the source code for all modules it contains, plus any
  131. associated interface definition files, plus the scripts used to
  132. control compilation and installation of the executable. However, as a
  133. special exception, the source code distributed need not include
  134. anything that is normally distributed (in either source or binary
  135. form) with the major components (compiler, kernel, and so on) of the
  136. operating system on which the executable runs, unless that component
  137. itself accompanies the executable.
  138. If distribution of executable or object code is made by offering
  139. access to copy from a designated place, then offering equivalent
  140. access to copy the source code from the same place counts as
  141. distribution of the source code, even though third parties are not
  142. compelled to copy the source along with the object code.
  143. 4. You may not copy, modify, sublicense, or distribute the Program
  144. except as expressly provided under this License. Any attempt
  145. otherwise to copy, modify, sublicense or distribute the Program is
  146. void, and will automatically terminate your rights under this License.
  147. However, parties who have received copies, or rights, from you under
  148. this License will not have their licenses terminated so long as such
  149. parties remain in full compliance.
  150. 5. You are not required to accept this License, since you have not
  151. signed it. However, nothing else grants you permission to modify or
  152. distribute the Program or its derivative works. These actions are
  153. prohibited by law if you do not accept this License. Therefore, by
  154. modifying or distributing the Program (or any work based on the
  155. Program), you indicate your acceptance of this License to do so, and
  156. all its terms and conditions for copying, distributing or modifying
  157. the Program or works based on it.
  158. 6. Each time you redistribute the Program (or any work based on the
  159. Program), the recipient automatically receives a license from the
  160. original licensor to copy, distribute or modify the Program subject to
  161. these terms and conditions. You may not impose any further
  162. restrictions on the recipients' exercise of the rights granted herein.
  163. You are not responsible for enforcing compliance by third parties to
  164. this License.
  165. 7. If, as a consequence of a court judgment or allegation of patent
  166. infringement or for any other reason (not limited to patent issues),
  167. conditions are imposed on you (whether by court order, agreement or
  168. otherwise) that contradict the conditions of this License, they do not
  169. excuse you from the conditions of this License. If you cannot
  170. distribute so as to satisfy simultaneously your obligations under this
  171. License and any other pertinent obligations, then as a consequence you
  172. may not distribute the Program at all. For example, if a patent
  173. license would not permit royalty-free redistribution of the Program by
  174. all those who receive copies directly or indirectly through you, then
  175. the only way you could satisfy both it and this License would be to
  176. refrain entirely from distribution of the Program.
  177. If any portion of this section is held invalid or unenforceable under
  178. any particular circumstance, the balance of the section is intended to
  179. apply and the section as a whole is intended to apply in other
  180. circumstances.
  181. It is not the purpose of this section to induce you to infringe any
  182. patents or other property right claims or to contest validity of any
  183. such claims; this section has the sole purpose of protecting the
  184. integrity of the free software distribution system, which is
  185. implemented by public license practices. Many people have made
  186. generous contributions to the wide range of software distributed
  187. through that system in reliance on consistent application of that
  188. system; it is up to the author/donor to decide if he or she is willing
  189. to distribute software through any other system and a licensee cannot
  190. impose that choice.
  191. This section is intended to make thoroughly clear what is believed to
  192. be a consequence of the rest of this License.
  193. 8. If the distribution and/or use of the Program is restricted in
  194. certain countries either by patents or by copyrighted interfaces, the
  195. original copyright holder who places the Program under this License
  196. may add an explicit geographical distribution limitation excluding
  197. those countries, so that distribution is permitted only in or among
  198. countries not thus excluded. In such case, this License incorporates
  199. the limitation as if written in the body of this License.
  200. 9. The Free Software Foundation may publish revised and/or new versions
  201. of the General Public License from time to time. Such new versions will
  202. be similar in spirit to the present version, but may differ in detail to
  203. address new problems or concerns.
  204. Each version is given a distinguishing version number. If the Program
  205. specifies a version number of this License which applies to it and "any
  206. later version", you have the option of following the terms and conditions
  207. either of that version or of any later version published by the Free
  208. Software Foundation. If the Program does not specify a version number of
  209. this License, you may choose any version ever published by the Free Software
  210. Foundation.
  211. 10. If you wish to incorporate parts of the Program into other free
  212. programs whose distribution conditions are different, write to the author
  213. to ask for permission. For software which is copyrighted by the Free
  214. Software Foundation, write to the Free Software Foundation; we sometimes
  215. make exceptions for this. Our decision will be guided by the two goals
  216. of preserving the free status of all derivatives of our free software and
  217. of promoting the sharing and reuse of software generally.
  218. NO WARRANTY
  219. 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  220. FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
  221. OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
  222. PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
  223. OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  224. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
  225. TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
  226. PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
  227. REPAIR OR CORRECTION.
  228. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  229. WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  230. REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
  231. INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
  232. OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
  233. TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
  234. YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  235. PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
  236. POSSIBILITY OF SUCH DAMAGES.
  237. END OF TERMS AND CONDITIONS
  238. Appendix: How to Apply These Terms to Your New Programs
  239. If you develop a new program, and you want it to be of the greatest
  240. possible use to the public, the best way to achieve this is to make it
  241. free software which everyone can redistribute and change under these terms.
  242. To do so, attach the following notices to the program. It is safest
  243. to attach them to the start of each source file to most effectively
  244. convey the exclusion of warranty; and each file should have at least
  245. the "copyright" line and a pointer to where the full notice is found.
  246. <one line to give the program's name and a brief idea of what it does.>
  247. Copyright (C) 19yy <name of author>
  248. This program is free software; you can redistribute it and/or modify
  249. it under the terms of the GNU General Public License as published by
  250. the Free Software Foundation; either version 2 of the License, or
  251. (at your option) any later version.
  252. This program is distributed in the hope that it will be useful,
  253. but WITHOUT ANY WARRANTY; without even the implied warranty of
  254. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  255. GNU General Public License for more details.
  256. You should have received a copy of the GNU General Public License
  257. along with this program; if not, write to the Free Software
  258. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  259. Also add information on how to contact you by electronic and paper mail.
  260. If the program is interactive, make it output a short notice like this
  261. when it starts in an interactive mode:
  262. Gnomovision version 69, Copyright (C) 19yy name of author
  263. Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  264. This is free software, and you are welcome to redistribute it
  265. under certain conditions; type `show c' for details.
  266. The hypothetical commands `show w' and `show c' should show the appropriate
  267. parts of the General Public License. Of course, the commands you use may
  268. be called something other than `show w' and `show c'; they could even be
  269. mouse-clicks or menu items--whatever suits your program.
  270. You should also get your employer (if you work as a programmer) or your
  271. school, if any, to sign a "copyright disclaimer" for the program, if
  272. necessary. Here is a sample; alter the names:
  273. Yoyodyne, Inc., hereby disclaims all copyright interest in the program
  274. `Gnomovision' (which makes passes at compilers) written by James Hacker.
  275. <signature of Ty Coon>, 1 April 1989
  276. Ty Coon, President of Vice
  277. This General Public License does not permit incorporating your program into
  278. proprietary programs. If your program is a subroutine library, you may
  279. consider it more useful to permit linking proprietary applications with the
  280. library. If this is what you want to do, use the GNU Library General
  281. Public License instead of this License.
  282. -------------------------------------------------------------------------
  283. GNU LESSER GENERAL PUBLIC LICENSE
  284. Version 2.1, February 1999
  285. Copyright (C) 1991, 1999 Free Software Foundation, Inc.
  286. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  287. Everyone is permitted to copy and distribute verbatim copies
  288. of this license document, but changing it is not allowed.
  289. [This is the first released version of the Lesser GPL. It also counts
  290. as the successor of the GNU Library Public License, version 2, hence
  291. the version number 2.1.]
  292. Preamble
  293. The licenses for most software are designed to take away your
  294. freedom to share and change it. By contrast, the GNU General Public
  295. Licenses are intended to guarantee your freedom to share and change
  296. free software--to make sure the software is free for all its users.
  297. This license, the Lesser General Public License, applies to some
  298. specially designated software packages--typically libraries--of the
  299. Free Software Foundation and other authors who decide to use it. You
  300. can use it too, but we suggest you first think carefully about whether
  301. this license or the ordinary General Public License is the better
  302. strategy to use in any particular case, based on the explanations below.
  303. When we speak of free software, we are referring to freedom of use,
  304. not price. Our General Public Licenses are designed to make sure that
  305. you have the freedom to distribute copies of free software (and charge
  306. for this service if you wish); that you receive source code or can get
  307. it if you want it; that you can change the software and use pieces of
  308. it in new free programs; and that you are informed that you can do
  309. these things.
  310. To protect your rights, we need to make restrictions that forbid
  311. distributors to deny you these rights or to ask you to surrender these
  312. rights. These restrictions translate to certain responsibilities for
  313. you if you distribute copies of the library or if you modify it.
  314. For example, if you distribute copies of the library, whether gratis
  315. or for a fee, you must give the recipients all the rights that we gave
  316. you. You must make sure that they, too, receive or can get the source
  317. code. If you link other code with the library, you must provide
  318. complete object files to the recipients, so that they can relink them
  319. with the library after making changes to the library and recompiling
  320. it. And you must show them these terms so they know their rights.
  321. We protect your rights with a two-step method: (1) we copyright the
  322. library, and (2) we offer you this license, which gives you legal
  323. permission to copy, distribute and/or modify the library.
  324. To protect each distributor, we want to make it very clear that
  325. there is no warranty for the free library. Also, if the library is
  326. modified by someone else and passed on, the recipients should know
  327. that what they have is not the original version, so that the original
  328. author's reputation will not be affected by problems that might be
  329. introduced by others.
  330. Finally, software patents pose a constant threat to the existence of
  331. any free program. We wish to make sure that a company cannot
  332. effectively restrict the users of a free program by obtaining a
  333. restrictive license from a patent holder. Therefore, we insist that
  334. any patent license obtained for a version of the library must be
  335. consistent with the full freedom of use specified in this license.
  336. Most GNU software, including some libraries, is covered by the
  337. ordinary GNU General Public License. This license, the GNU Lesser
  338. General Public License, applies to certain designated libraries, and
  339. is quite different from the ordinary General Public License. We use
  340. this license for certain libraries in order to permit linking those
  341. libraries into non-free programs.
  342. When a program is linked with a library, whether statically or using
  343. a shared library, the combination of the two is legally speaking a
  344. combined work, a derivative of the original library. The ordinary
  345. General Public License therefore permits such linking only if the
  346. entire combination fits its criteria of freedom. The Lesser General
  347. Public License permits more lax criteria for linking other code with
  348. the library.
  349. We call this license the "Lesser" General Public License because it
  350. does Less to protect the user's freedom than the ordinary General
  351. Public License. It also provides other free software developers Less
  352. of an advantage over competing non-free programs. These disadvantages
  353. are the reason we use the ordinary General Public License for many
  354. libraries. However, the Lesser license provides advantages in certain
  355. special circumstances.
  356. For example, on rare occasions, there may be a special need to
  357. encourage the widest possible use of a certain library, so that it becomes
  358. a de-facto standard. To achieve this, non-free programs must be
  359. allowed to use the library. A more frequent case is that a free
  360. library does the same job as widely used non-free libraries. In this
  361. case, there is little to gain by limiting the free library to free
  362. software only, so we use the Lesser General Public License.
  363. In other cases, permission to use a particular library in non-free
  364. programs enables a greater number of people to use a large body of
  365. free software. For example, permission to use the GNU C Library in
  366. non-free programs enables many more people to use the whole GNU
  367. operating system, as well as its variant, the GNU/Linux operating
  368. system.
  369. Although the Lesser General Public License is Less protective of the
  370. users' freedom, it does ensure that the user of a program that is
  371. linked with the Library has the freedom and the wherewithal to run
  372. that program using a modified version of the Library.
  373. The precise terms and conditions for copying, distribution and
  374. modification follow. Pay close attention to the difference between a
  375. "work based on the library" and a "work that uses the library". The
  376. former contains code derived from the library, whereas the latter must
  377. be combined with the library in order to run.
  378. GNU LESSER GENERAL PUBLIC LICENSE
  379. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  380. 0. This License Agreement applies to any software library or other
  381. program which contains a notice placed by the copyright holder or
  382. other authorized party saying it may be distributed under the terms of
  383. this Lesser General Public License (also called "this License").
  384. Each licensee is addressed as "you".
  385. A "library" means a collection of software functions and/or data
  386. prepared so as to be conveniently linked with application programs
  387. (which use some of those functions and data) to form executables.
  388. The "Library", below, refers to any such software library or work
  389. which has been distributed under these terms. A "work based on the
  390. Library" means either the Library or any derivative work under
  391. copyright law: that is to say, a work containing the Library or a
  392. portion of it, either verbatim or with modifications and/or translated
  393. straightforwardly into another language. (Hereinafter, translation is
  394. included without limitation in the term "modification".)
  395. "Source code" for a work means the preferred form of the work for
  396. making modifications to it. For a library, complete source code means
  397. all the source code for all modules it contains, plus any associated
  398. interface definition files, plus the scripts used to control compilation
  399. and installation of the library.
  400. Activities other than copying, distribution and modification are not
  401. covered by this License; they are outside its scope. The act of
  402. running a program using the Library is not restricted, and output from
  403. such a program is covered only if its contents constitute a work based
  404. on the Library (independent of the use of the Library in a tool for
  405. writing it). Whether that is true depends on what the Library does
  406. and what the program that uses the Library does.
  407. 1. You may copy and distribute verbatim copies of the Library's
  408. complete source code as you receive it, in any medium, provided that
  409. you conspicuously and appropriately publish on each copy an
  410. appropriate copyright notice and disclaimer of warranty; keep intact
  411. all the notices that refer to this License and to the absence of any
  412. warranty; and distribute a copy of this License along with the
  413. Library.
  414. You may charge a fee for the physical act of transferring a copy,
  415. and you may at your option offer warranty protection in exchange for a
  416. fee.
  417. 2. You may modify your copy or copies of the Library or any portion
  418. of it, thus forming a work based on the Library, and copy and
  419. distribute such modifications or work under the terms of Section 1
  420. above, provided that you also meet all of these conditions:
  421. a) The modified work must itself be a software library.
  422. b) You must cause the files modified to carry prominent notices
  423. stating that you changed the files and the date of any change.
  424. c) You must cause the whole of the work to be licensed at no
  425. charge to all third parties under the terms of this License.
  426. d) If a facility in the modified Library refers to a function or a
  427. table of data to be supplied by an application program that uses
  428. the facility, other than as an argument passed when the facility
  429. is invoked, then you must make a good faith effort to ensure that,
  430. in the event an application does not supply such function or
  431. table, the facility still operates, and performs whatever part of
  432. its purpose remains meaningful.
  433. (For example, a function in a library to compute square roots has
  434. a purpose that is entirely well-defined independent of the
  435. application. Therefore, Subsection 2d requires that any
  436. application-supplied function or table used by this function must
  437. be optional: if the application does not supply it, the square
  438. root function must still compute square roots.)
  439. These requirements apply to the modified work as a whole. If
  440. identifiable sections of that work are not derived from the Library,
  441. and can be reasonably considered independent and separate works in
  442. themselves, then this License, and its terms, do not apply to those
  443. sections when you distribute them as separate works. But when you
  444. distribute the same sections as part of a whole which is a work based
  445. on the Library, the distribution of the whole must be on the terms of
  446. this License, whose permissions for other licensees extend to the
  447. entire whole, and thus to each and every part regardless of who wrote
  448. it.
  449. Thus, it is not the intent of this section to claim rights or contest
  450. your rights to work written entirely by you; rather, the intent is to
  451. exercise the right to control the distribution of derivative or
  452. collective works based on the Library.
  453. In addition, mere aggregation of another work not based on the Library
  454. with the Library (or with a work based on the Library) on a volume of
  455. a storage or distribution medium does not bring the other work under
  456. the scope of this License.
  457. 3. You may opt to apply the terms of the ordinary GNU General Public
  458. License instead of this License to a given copy of the Library. To do
  459. this, you must alter all the notices that refer to this License, so
  460. that they refer to the ordinary GNU General Public License, version 2,
  461. instead of to this License. (If a newer version than version 2 of the
  462. ordinary GNU General Public License has appeared, then you can specify
  463. that version instead if you wish.) Do not make any other change in
  464. these notices.
  465. Once this change is made in a given copy, it is irreversible for
  466. that copy, so the ordinary GNU General Public License applies to all
  467. subsequent copies and derivative works made from that copy.
  468. This option is useful when you wish to copy part of the code of
  469. the Library into a program that is not a library.
  470. 4. You may copy and distribute the Library (or a portion or
  471. derivative of it, under Section 2) in object code or executable form
  472. under the terms of Sections 1 and 2 above provided that you accompany
  473. it with the complete corresponding machine-readable source code, which
  474. must be distributed under the terms of Sections 1 and 2 above on a
  475. medium customarily used for software interchange.
  476. If distribution of object code is made by offering access to copy
  477. from a designated place, then offering equivalent access to copy the
  478. source code from the same place satisfies the requirement to
  479. distribute the source code, even though third parties are not
  480. compelled to copy the source along with the object code.
  481. 5. A program that contains no derivative of any portion of the
  482. Library, but is designed to work with the Library by being compiled or
  483. linked with it, is called a "work that uses the Library". Such a
  484. work, in isolation, is not a derivative work of the Library, and
  485. therefore falls outside the scope of this License.
  486. However, linking a "work that uses the Library" with the Library
  487. creates an executable that is a derivative of the Library (because it
  488. contains portions of the Library), rather than a "work that uses the
  489. library". The executable is therefore covered by this License.
  490. Section 6 states terms for distribution of such executables.
  491. When a "work that uses the Library" uses material from a header file
  492. that is part of the Library, the object code for the work may be a
  493. derivative work of the Library even though the source code is not.
  494. Whether this is true is especially significant if the work can be
  495. linked without the Library, or if the work is itself a library. The
  496. threshold for this to be true is not precisely defined by law.
  497. If such an object file uses only numerical parameters, data
  498. structure layouts and accessors, and small macros and small inline
  499. functions (ten lines or less in length), then the use of the object
  500. file is unrestricted, regardless of whether it is legally a derivative
  501. work. (Executables containing this object code plus portions of the
  502. Library will still fall under Section 6.)
  503. Otherwise, if the work is a derivative of the Library, you may
  504. distribute the object code for the work under the terms of Section 6.
  505. Any executables containing that work also fall under Section 6,
  506. whether or not they are linked directly with the Library itself.
  507. 6. As an exception to the Sections above, you may also combine or
  508. link a "work that uses the Library" with the Library to produce a
  509. work containing portions of the Library, and distribute that work
  510. under terms of your choice, provided that the terms permit
  511. modification of the work for the customer's own use and reverse
  512. engineering for debugging such modifications.
  513. You must give prominent notice with each copy of the work that the
  514. Library is used in it and that the Library and its use are covered by
  515. this License. You must supply a copy of this License. If the work
  516. during execution displays copyright notices, you must include the
  517. copyright notice for the Library among them, as well as a reference
  518. directing the user to the copy of this License. Also, you must do one
  519. of these things:
  520. a) Accompany the work with the complete corresponding
  521. machine-readable source code for the Library including whatever
  522. changes were used in the work (which must be distributed under
  523. Sections 1 and 2 above); and, if the work is an executable linked
  524. with the Library, with the complete machine-readable "work that
  525. uses the Library", as object code and/or source code, so that the
  526. user can modify the Library and then relink to produce a modified
  527. executable containing the modified Library. (It is understood
  528. that the user who changes the contents of definitions files in the
  529. Library will not necessarily be able to recompile the application
  530. to use the modified definitions.)
  531. b) Use a suitable shared library mechanism for linking with the
  532. Library. A suitable mechanism is one that (1) uses at run time a
  533. copy of the library already present on the user's computer system,
  534. rather than copying library functions into the executable, and (2)
  535. will operate properly with a modified version of the library, if
  536. the user installs one, as long as the modified version is
  537. interface-compatible with the version that the work was made with.
  538. c) Accompany the work with a written offer, valid for at
  539. least three years, to give the same user the materials
  540. specified in Subsection 6a, above, for a charge no more
  541. than the cost of performing this distribution.
  542. d) If distribution of the work is made by offering access to copy
  543. from a designated place, offer equivalent access to copy the above
  544. specified materials from the same place.
  545. e) Verify that the user has already received a copy of these
  546. materials or that you have already sent this user a copy.
  547. For an executable, the required form of the "work that uses the
  548. Library" must include any data and utility programs needed for
  549. reproducing the executable from it. However, as a special exception,
  550. the materials to be distributed need not include anything that is
  551. normally distributed (in either source or binary form) with the major
  552. components (compiler, kernel, and so on) of the operating system on
  553. which the executable runs, unless that component itself accompanies
  554. the executable.
  555. It may happen that this requirement contradicts the license
  556. restrictions of other proprietary libraries that do not normally
  557. accompany the operating system. Such a contradiction means you cannot
  558. use both them and the Library together in an executable that you
  559. distribute.
  560. 7. You may place library facilities that are a work based on the
  561. Library side-by-side in a single library together with other library
  562. facilities not covered by this License, and distribute such a combined
  563. library, provided that the separate distribution of the work based on
  564. the Library and of the other library facilities is otherwise
  565. permitted, and provided that you do these two things:
  566. a) Accompany the combined library with a copy of the same work
  567. based on the Library, uncombined with any other library
  568. facilities. This must be distributed under the terms of the
  569. Sections above.
  570. b) Give prominent notice with the combined library of the fact
  571. that part of it is a work based on the Library, and explaining
  572. where to find the accompanying uncombined form of the same work.
  573. 8. You may not copy, modify, sublicense, link with, or distribute
  574. the Library except as expressly provided under this License. Any
  575. attempt otherwise to copy, modify, sublicense, link with, or
  576. distribute the Library is void, and will automatically terminate your
  577. rights under this License. However, parties who have received copies,
  578. or rights, from you under this License will not have their licenses
  579. terminated so long as such parties remain in full compliance.
  580. 9. You are not required to accept this License, since you have not
  581. signed it. However, nothing else grants you permission to modify or
  582. distribute the Library or its derivative works. These actions are
  583. prohibited by law if you do not accept this License. Therefore, by
  584. modifying or distributing the Library (or any work based on the
  585. Library), you indicate your acceptance of this License to do so, and
  586. all its terms and conditions for copying, distributing or modifying
  587. the Library or works based on it.
  588. 10. Each time you redistribute the Library (or any work based on the
  589. Library), the recipient automatically receives a license from the
  590. original licensor to copy, distribute, link with or modify the Library
  591. subject to these terms and conditions. You may not impose any further
  592. restrictions on the recipients' exercise of the rights granted herein.
  593. You are not responsible for enforcing compliance by third parties with
  594. this License.
  595. 11. If, as a consequence of a court judgment or allegation of patent
  596. infringement or for any other reason (not limited to patent issues),
  597. conditions are imposed on you (whether by court order, agreement or
  598. otherwise) that contradict the conditions of this License, they do not
  599. excuse you from the conditions of this License. If you cannot
  600. distribute so as to satisfy simultaneously your obligations under this
  601. License and any other pertinent obligations, then as a consequence you
  602. may not distribute the Library at all. For example, if a patent
  603. license would not permit royalty-free redistribution of the Library by
  604. all those who receive copies directly or indirectly through you, then
  605. the only way you could satisfy both it and this License would be to
  606. refrain entirely from distribution of the Library.
  607. If any portion of this section is held invalid or unenforceable under any
  608. particular circumstance, the balance of the section is intended to apply,
  609. and the section as a whole is intended to apply in other circumstances.
  610. It is not the purpose of this section to induce you to infringe any
  611. patents or other property right claims or to contest validity of any
  612. such claims; this section has the sole purpose of protecting the
  613. integrity of the free software distribution system which is
  614. implemented by public license practices. Many people have made
  615. generous contributions to the wide range of software distributed
  616. through that system in reliance on consistent application of that
  617. system; it is up to the author/donor to decide if he or she is willing
  618. to distribute software through any other system and a licensee cannot
  619. impose that choice.
  620. This section is intended to make thoroughly clear what is believed to
  621. be a consequence of the rest of this License.
  622. 12. If the distribution and/or use of the Library is restricted in
  623. certain countries either by patents or by copyrighted interfaces, the
  624. original copyright holder who places the Library under this License may add
  625. an explicit geographical distribution limitation excluding those countries,
  626. so that distribution is permitted only in or among countries not thus
  627. excluded. In such case, this License incorporates the limitation as if
  628. written in the body of this License.
  629. 13. The Free Software Foundation may publish revised and/or new
  630. versions of the Lesser General Public License from time to time.
  631. Such new versions will be similar in spirit to the present version,
  632. but may differ in detail to address new problems or concerns.
  633. Each version is given a distinguishing version number. If the Library
  634. specifies a version number of this License which applies to it and
  635. "any later version", you have the option of following the terms and
  636. conditions either of that version or of any later version published by
  637. the Free Software Foundation. If the Library does not specify a
  638. license version number, you may choose any version ever published by
  639. the Free Software Foundation.
  640. 14. If you wish to incorporate parts of the Library into other free
  641. programs whose distribution conditions are incompatible with these,
  642. write to the author to ask for permission. For software which is
  643. copyrighted by the Free Software Foundation, write to the Free
  644. Software Foundation; we sometimes make exceptions for this. Our
  645. decision will be guided by the two goals of preserving the free status
  646. of all derivatives of our free software and of promoting the sharing
  647. and reuse of software generally.
  648. NO WARRANTY
  649. 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
  650. WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
  651. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
  652. OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
  653. KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
  654. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  655. PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
  656. LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
  657. THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
  658. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  659. WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
  660. AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
  661. FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
  662. CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
  663. LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
  664. RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
  665. FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
  666. SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
  667. DAMAGES.
  668. END OF TERMS AND CONDITIONS
  669. How to Apply These Terms to Your New Libraries
  670. If you develop a new library, and you want it to be of the greatest
  671. possible use to the public, we recommend making it free software that
  672. everyone can redistribute and change. You can do so by permitting
  673. redistribution under these terms (or, alternatively, under the terms of the
  674. ordinary General Public License).
  675. To apply these terms, attach the following notices to the library. It is
  676. safest to attach them to the start of each source file to most effectively
  677. convey the exclusion of warranty; and each file should have at least the
  678. "copyright" line and a pointer to where the full notice is found.
  679. <one line to give the library's name and a brief idea of what it does.>
  680. Copyright (C) <year> <name of author>
  681. This library is free software; you can redistribute it and/or
  682. modify it under the terms of the GNU Lesser General Public
  683. License as published by the Free Software Foundation; either
  684. version 2.1 of the License, or (at your option) any later version.
  685. This library is distributed in the hope that it will be useful,
  686. but WITHOUT ANY WARRANTY; without even the implied warranty of
  687. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  688. Lesser General Public License for more details.
  689. You should have received a copy of the GNU Lesser General Public
  690. License along with this library; if not, write to the Free Software
  691. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  692. Also add information on how to contact you by electronic and paper mail.
  693. You should also get your employer (if you work as a programmer) or your
  694. school, if any, to sign a "copyright disclaimer" for the library, if
  695. necessary. Here is a sample; alter the names:
  696. Yoyodyne, Inc., hereby disclaims all copyright interest in the
  697. library `Frob' (a library for tweaking knobs) written by James Random Hacker.
  698. <signature of Ty Coon>, 1 April 1990
  699. Ty Coon, President of Vice
  700. That's all there is to it!