1 2 Apache License 3 Version 2.0, January 2004 4 http://www.apache.org/licenses/ 5 6 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 8 1. Definitions. 9 10 "License" shall mean the terms and conditions for use, reproduction, 11 and distribution as defined by Sections 1 through 9 of this document. 12 13 "Licensor" shall mean the copyright owner or entity authorized by 14 the copyright owner that is granting the License. 15 16 "Legal Entity" shall mean the union of the acting entity and all 17 other entities that control, are controlled by, or are under common 18 control with that entity. For the purposes of this definition, 19 "control" means (i) the power, direct or indirect, to cause the 20 direction or management of such entity, whether by contract or 21 otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 outstanding shares, or (iii) beneficial ownership of such entity. 23 24 "You" (or "Your") shall mean an individual or Legal Entity 25 exercising permissions granted by this License. 26 27 "Source" form shall mean the preferred form for making modifications, 28 including but not limited to software source code, documentation 29 source, and configuration files. 30 31 "Object" form shall mean any form resulting from mechanical 32 transformation or translation of a Source form, including but 33 not limited to compiled object code, generated documentation, 34 and conversions to other media types. 35 36 "Work" shall mean the work of authorship, whether in Source or 37 Object form, made available under the License, as indicated by a 38 copyright notice that is included in or attached to the work 39 (an example is provided in the Appendix below). 40 41 "Derivative Works" shall mean any work, whether in Source or Object 42 form, that is based on (or derived from) the Work and for which the 43 editorial revisions, annotations, elaborations, or other modifications 44 represent, as a whole, an original work of authorship. For the purposes 45 of this License, Derivative Works shall not include works that remain 46 separable from, or merely link (or bind by name) to the interfaces of, 47 the Work and Derivative Works thereof. 48 49 "Contribution" shall mean any work of authorship, including 50 the original version of the Work and any modifications or additions 51 to that Work or Derivative Works thereof, that is intentionally 52 submitted to Licensor for inclusion in the Work by the copyright owner 53 or by an individual or Legal Entity authorized to submit on behalf of 54 the copyright owner. For the purposes of this definition, "submitted" 55 means any form of electronic, verbal, or written communication sent 56 to the Licensor or its representatives, including but not limited to 57 communication on electronic mailing lists, source code control systems, 58 and issue tracking systems that are managed by, or on behalf of, the 59 Licensor for the purpose of discussing and improving the Work, but 60 excluding communication that is conspicuously marked or otherwise 61 designated in writing by the copyright owner as "Not a Contribution." 62 63 "Contributor" shall mean Licensor and any individual or Legal Entity 64 on behalf of whom a Contribution has been received by Licensor and 65 subsequently incorporated within the Work. 66 67 2. Grant of Copyright License. Subject to the terms and conditions of 68 this License, each Contributor hereby grants to You a perpetual, 69 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 copyright license to reproduce, prepare Derivative Works of, 71 publicly display, publicly perform, sublicense, and distribute the 72 Work and such Derivative Works in Source or Object form. 73 74 3. Grant of Patent License. Subject to the terms and conditions of 75 this License, each Contributor hereby grants to You a perpetual, 76 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 (except as stated in this section) patent license to make, have made, 78 use, offer to sell, sell, import, and otherwise transfer the Work, 79 where such license applies only to those patent claims licensable 80 by such Contributor that are necessarily infringed by their 81 Contribution(s) alone or by combination of their Contribution(s) 82 with the Work to which such Contribution(s) was submitted. If You 83 institute patent litigation against any entity (including a 84 cross-claim or counterclaim in a lawsuit) alleging that the Work 85 or a Contribution incorporated within the Work constitutes direct 86 or contributory patent infringement, then any patent licenses 87 granted to You under this License for that Work shall terminate 88 as of the date such litigation is filed. 89 90 4. Redistribution. You may reproduce and distribute copies of the 91 Work or Derivative Works thereof in any medium, with or without 92 modifications, and in Source or Object form, provided that You 93 meet the following conditions: 94 95 (a) You must give any other recipients of the Work or 96 Derivative Works a copy of this License; and 97 98 (b) You must cause any modified files to carry prominent notices 99 stating that You changed the files; and 100 101 (c) You must retain, in the Source form of any Derivative Works 102 that You distribute, all copyright, patent, trademark, and 103 attribution notices from the Source form of the Work, 104 excluding those notices that do not pertain to any part of 105 the Derivative Works; and 106 107 (d) If the Work includes a "NOTICE" text file as part of its 108 distribution, then any Derivative Works that You distribute must 109 include a readable copy of the attribution notices contained 110 within such NOTICE file, excluding those notices that do not 111 pertain to any part of the Derivative Works, in at least one 112 of the following places: within a NOTICE text file distributed 113 as part of the Derivative Works; within the Source form or 114 documentation, if provided along with the Derivative Works; or, 115 within a display generated by the Derivative Works, if and 116 wherever such third-party notices normally appear. The contents 117 of the NOTICE file are for informational purposes only and 118 do not modify the License. You may add Your own attribution 119 notices within Derivative Works that You distribute, alongside 120 or as an addendum to the NOTICE text from the Work, provided 121 that such additional attribution notices cannot be construed 122 as modifying the License. 123 124 You may add Your own copyright statement to Your modifications and 125 may provide additional or different license terms and conditions 126 for use, reproduction, or distribution of Your modifications, or 127 for any such Derivative Works as a whole, provided Your use, 128 reproduction, and distribution of the Work otherwise complies with 129 the conditions stated in this License. 130 131 5. Submission of Contributions. Unless You explicitly state otherwise, 132 any Contribution intentionally submitted for inclusion in the Work 133 by You to the Licensor shall be under the terms and conditions of 134 this License, without any additional terms or conditions. 135 Notwithstanding the above, nothing herein shall supersede or modify 136 the terms of any separate license agreement you may have executed 137 with Licensor regarding such Contributions. 138 139 6. Trademarks. This License does not grant permission to use the trade 140 names, trademarks, service marks, or product names of the Licensor, 141 except as required for reasonable and customary use in describing the 142 origin of the Work and reproducing the content of the NOTICE file. 143 144 7. Disclaimer of Warranty. Unless required by applicable law or 145 agreed to in writing, Licensor provides the Work (and each 146 Contributor provides its Contributions) on an "AS IS" BASIS, 147 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 implied, including, without limitation, any warranties or conditions 149 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 PARTICULAR PURPOSE. You are solely responsible for determining the 151 appropriateness of using or redistributing the Work and assume any 152 risks associated with Your exercise of permissions under this License. 153 154 8. Limitation of Liability. In no event and under no legal theory, 155 whether in tort (including negligence), contract, or otherwise, 156 unless required by applicable law (such as deliberate and grossly 157 negligent acts) or agreed to in writing, shall any Contributor be 158 liable to You for damages, including any direct, indirect, special, 159 incidental, or consequential damages of any character arising as a 160 result of this License or out of the use or inability to use the 161 Work (including but not limited to damages for loss of goodwill, 162 work stoppage, computer failure or malfunction, or any and all 163 other commercial damages or losses), even if such Contributor 164 has been advised of the possibility of such damages. 165 166 9. Accepting Warranty or Additional Liability. While redistributing 167 the Work or Derivative Works thereof, You may choose to offer, 168 and charge a fee for, acceptance of support, warranty, indemnity, 169 or other liability obligations and/or rights consistent with this 170 License. However, in accepting such obligations, You may act only 171 on Your own behalf and on Your sole responsibility, not on behalf 172 of any other Contributor, and only if You agree to indemnify, 173 defend, and hold each Contributor harmless for any liability 174 incurred by, or claims asserted against, such Contributor by reason 175 of your accepting any such warranty or additional liability. 176 177 END OF TERMS AND CONDITIONS 178 179 APPENDIX: How to apply the Apache License to your work. 180 181 To apply the Apache License to your work, attach the following 182 boilerplate notice, with the fields enclosed by brackets "{}" 183 replaced with your own identifying information. (Don't include 184 the brackets!) The text should be enclosed in the appropriate 185 comment syntax for the file format. We also recommend that a 186 file or class name and description of purpose be included on the 187 same "printed page" as the copyright notice for easier 188 identification within third-party archives. 189 190 Copyright {yyyy} {name of copyright owner} 191 192 Licensed under the Apache License, Version 2.0 (the "License"); 193 you may not use this file except in compliance with the License. 194 You may obtain a copy of the License at 195 196 http://www.apache.org/licenses/LICENSE-2.0 197 198 Unless required by applicable law or agreed to in writing, software 199 distributed under the License is distributed on an "AS IS" BASIS, 200 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 See the License for the specific language governing permissions and 202 limitations under the License. 203 204 205 206============================================================================== 207Gradle Subcomponents: 208 209------------------------------------------------------------------------------ 210License for the slf4j package 211------------------------------------------------------------------------------ 212SLF4J License 213 214Copyright (c) 2004-2007 QOS.ch 215All rights reserved. 216 217Permission is hereby granted, free of charge, to any person obtaining 218a copy of this software and associated documentation files (the 219"Software"), to deal in the Software without restriction, including 220without limitation the rights to use, copy, modify, merge, publish, 221distribute, sublicense, and/or sell copies of the Software, and to 222permit persons to whom the Software is furnished to do so, subject to 223the following conditions: 224 225The above copyright notice and this permission notice shall be 226included in all copies or substantial portions of the Software. 227 228THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 229EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 230MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 231NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 232LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 233OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 234WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 235 236These terms are identical to those of the MIT License, also called the X License or the X11 License, 237which is a simple, permissive non-copyleft free software license. It is deemed compatible with virtually 238all types of licenses, commercial or otherwise. In particular, the Free Software Foundation has declared it 239compatible with GNU GPL. It is also known to be approved by the Apache Software Foundation as compatible 240with Apache Software License. 241 242 243------------------------------------------------------------------------------ 244License for the JUnit package 245------------------------------------------------------------------------------ 246THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC 247LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM 248CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. 249 2501. DEFINITIONS 251 252"Contribution" means: 253 254a) in the case of the initial Contributor, the initial code and 255documentation distributed under this Agreement, and 256 257b) in the case of each subsequent Contributor: 258 259i) changes to the Program, and 260 261ii) additions to the Program; 262 263where such changes and/or additions to the Program originate from and are 264distributed by that particular Contributor. A Contribution 'originates' from a 265Contributor if it was added to the Program by such Contributor itself or anyone 266acting on such Contributor's behalf. Contributions do not include additions to 267the Program which: (i) are separate modules of software distributed in 268conjunction with the Program under their own license agreement, and (ii) are not 269derivative works of the Program. 270 271"Contributor" means any person or entity that distributes the Program. 272 273"Licensed Patents " mean patent claims licensable by a Contributor which are 274necessarily infringed by the use or sale of its Contribution alone or when 275combined with the Program. 276 277"Program" means the Contributions distributed in accordance with this Agreement. 278 279"Recipient" means anyone who receives the Program under this Agreement, 280including all Contributors. 281 2822. GRANT OF RIGHTS 283 284a) Subject to the terms of this Agreement, each Contributor hereby grants 285Recipient a non-exclusive, worldwide, royalty-free copyright license to 286reproduce, prepare derivative works of, publicly display, publicly perform, 287distribute and sublicense the Contribution of such Contributor, if any, and such 288derivative works, in source code and object code form. 289 290b) Subject to the terms of this Agreement, each Contributor hereby grants 291Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed 292Patents to make, use, sell, offer to sell, import and otherwise transfer the 293Contribution of such Contributor, if any, in source code and object code form. 294This patent license shall apply to the combination of the Contribution and the 295Program if, at the time the Contribution is added by the Contributor, such 296addition of the Contribution causes such combination to be covered by the 297Licensed Patents. The patent license shall not apply to any other combinations 298which include the Contribution. No hardware per se is licensed hereunder. 299 300c) Recipient understands that although each Contributor grants the licenses 301to its Contributions set forth herein, no assurances are provided by any 302Contributor that the Program does not infringe the patent or other intellectual 303property rights of any other entity. Each Contributor disclaims any liability to 304Recipient for claims brought by any other entity based on infringement of 305intellectual property rights or otherwise. As a condition to exercising the 306rights and licenses granted hereunder, each Recipient hereby assumes sole 307responsibility to secure any other intellectual property rights needed, if any. 308For example, if a third party patent license is required to allow Recipient to 309distribute the Program, it is Recipient's responsibility to acquire that license 310before distributing the Program. 311 312d) Each Contributor represents that to its knowledge it has sufficient 313copyright rights in its Contribution, if any, to grant the copyright license set 314forth in this Agreement. 315 3163. REQUIREMENTS 317 318A Contributor may choose to distribute the Program in object code form under its 319own license agreement, provided that: 320 321a) it complies with the terms and conditions of this Agreement; and 322 323b) its license agreement: 324 325i) effectively disclaims on behalf of all Contributors all warranties and 326conditions, express and implied, including warranties or conditions of title and 327non-infringement, and implied warranties or conditions of merchantability and 328fitness for a particular purpose; 329 330ii) effectively excludes on behalf of all Contributors all liability for 331damages, including direct, indirect, special, incidental and consequential 332damages, such as lost profits; 333 334iii) states that any provisions which differ from this Agreement are offered 335by that Contributor alone and not by any other party; and 336 337iv) states that source code for the Program is available from such 338Contributor, and informs licensees how to obtain it in a reasonable manner on or 339through a medium customarily used for software exchange. 340 341When the Program is made available in source code form: 342 343a) it must be made available under this Agreement; and 344 345b) a copy of this Agreement must be included with each copy of the Program. 346 347Contributors may not remove or alter any copyright notices contained within the 348Program. 349 350Each Contributor must identify itself as the originator of its Contribution, if 351any, in a manner that reasonably allows subsequent Recipients to identify the 352originator of the Contribution. 353 3544. COMMERCIAL DISTRIBUTION 355 356Commercial distributors of software may accept certain responsibilities with 357respect to end users, business partners and the like. While this license is 358intended to facilitate the commercial use of the Program, the Contributor who 359includes the Program in a commercial product offering should do so in a manner 360which does not create potential liability for other Contributors. Therefore, if 361a Contributor includes the Program in a commercial product offering, such 362Contributor ("Commercial Contributor") hereby agrees to defend and indemnify 363every other Contributor ("Indemnified Contributor") against any losses, damages 364and costs (collectively "Losses") arising from claims, lawsuits and other legal 365actions brought by a third party against the Indemnified Contributor to the 366extent caused by the acts or omissions of such Commercial Contributor in 367connection with its distribution of the Program in a commercial product 368offering. The obligations in this section do not apply to any claims or Losses 369relating to any actual or alleged intellectual property infringement. In order 370to qualify, an Indemnified Contributor must: a) promptly notify the Commercial 371Contributor in writing of such claim, and b) allow the Commercial Contributor to 372control, and cooperate with the Commercial Contributor in, the defense and any 373related settlement negotiations. The Indemnified Contributor may participate in 374any such claim at its own expense. 375 376For example, a Contributor might include the Program in a commercial product 377offering, Product X. That Contributor is then a Commercial Contributor. If that 378Commercial Contributor then makes performance claims, or offers warranties 379related to Product X, those performance claims and warranties are such 380Commercial Contributor's responsibility alone. Under this section, the 381Commercial Contributor would have to defend claims against the other 382Contributors related to those performance claims and warranties, and if a court 383requires any other Contributor to pay any damages as a result, the Commercial 384Contributor must pay those damages. 385 3865. NO WARRANTY 387 388EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN 389"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR 390IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, 391NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each 392Recipient is solely responsible for determining the appropriateness of using and 393distributing the Program and assumes all risks associated with its exercise of 394rights under this Agreement, including but not limited to the risks and costs of 395program errors, compliance with applicable laws, damage to or loss of data, 396programs or equipment, and unavailability or interruption of operations. 397 3986. DISCLAIMER OF LIABILITY 399 400EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY 401CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, 402SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST 403PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 404STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 405OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS 406GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 407 4087. GENERAL 409 410If any provision of this Agreement is invalid or unenforceable under applicable 411law, it shall not affect the validity or enforceability of the remainder of the 412terms of this Agreement, and without further action by the parties hereto, such 413provision shall be reformed to the minimum extent necessary to make such 414provision valid and enforceable. 415 416If Recipient institutes patent litigation against a Contributor with respect to 417a patent applicable to software (including a cross-claim or counterclaim in a 418lawsuit), then any patent licenses granted by that Contributor to such Recipient 419under this Agreement shall terminate as of the date such litigation is filed. In 420addition, if Recipient institutes patent litigation against any entity 421(including a cross-claim or counterclaim in a lawsuit) alleging that the Program 422itself (excluding combinations of the Program with other software or hardware) 423infringes such Recipient's patent(s), then such Recipient's rights granted under 424Section 2(b) shall terminate as of the date such litigation is filed. 425 426All Recipient's rights under this Agreement shall terminate if it fails to 427comply with any of the material terms or conditions of this Agreement and does 428not cure such failure in a reasonable period of time after becoming aware of 429such noncompliance. If all Recipient's rights under this Agreement terminate, 430Recipient agrees to cease use and distribution of the Program as soon as 431reasonably practicable. However, Recipient's obligations under this Agreement 432and any licenses granted by Recipient relating to the Program shall continue and 433survive. 434 435Everyone is permitted to copy and distribute copies of this Agreement, but in 436order to avoid inconsistency the Agreement is copyrighted and may only be 437modified in the following manner. The Agreement Steward reserves the right to 438publish new versions (including revisions) of this Agreement from time to time. 439No one other than the Agreement Steward has the right to modify this Agreement. 440IBM is the initial Agreement Steward. IBM may assign the responsibility to serve 441as the Agreement Steward to a suitable separate entity. Each new version of the 442Agreement will be given a distinguishing version number. The Program (including 443Contributions) may always be distributed subject to the version of the Agreement 444under which it was received. In addition, after a new version of the Agreement 445is published, Contributor may elect to distribute the Program (including its 446Contributions) under the new version. Except as expressly stated in Sections 4472(a) and 2(b) above, Recipient receives no rights or licenses to the 448intellectual property of any Contributor under this Agreement, whether 449expressly, by implication, estoppel or otherwise. All rights in the Program not 450expressly granted under this Agreement are reserved. 451 452This Agreement is governed by the laws of the State of New York and the 453intellectual property laws of the United States of America. No party to this 454Agreement will bring a legal action under this Agreement more than one year 455after the cause of action arose. Each party waives its rights to a jury trial in 456any resulting litigation. 457 458------------------------------------------------------------------------------ 459License for the JCIFS package 460------------------------------------------------------------------------------ 461JCIFS License 462 463 GNU LESSER GENERAL PUBLIC LICENSE 464 Version 2.1, February 1999 465 466 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 467 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 468 Everyone is permitted to copy and distribute verbatim copies 469 of this license document, but changing it is not allowed. 470 471[This is the first released version of the Lesser GPL. It also counts 472 as the successor of the GNU Library Public License, version 2, hence 473 the version number 2.1.] 474 475 Preamble 476 477 The licenses for most software are designed to take away your 478freedom to share and change it. By contrast, the GNU General Public 479Licenses are intended to guarantee your freedom to share and change 480free software--to make sure the software is free for all its users. 481 482 This license, the Lesser General Public License, applies to some 483specially designated software packages--typically libraries--of the 484Free Software Foundation and other authors who decide to use it. You 485can use it too, but we suggest you first think carefully about whether 486this license or the ordinary General Public License is the better 487strategy to use in any particular case, based on the explanations below. 488 489 When we speak of free software, we are referring to freedom of use, 490not price. Our General Public Licenses are designed to make sure that 491you have the freedom to distribute copies of free software (and charge 492for this service if you wish); that you receive source code or can get 493it if you want it; that you can change the software and use pieces of 494it in new free programs; and that you are informed that you can do 495these things. 496 497 To protect your rights, we need to make restrictions that forbid 498distributors to deny you these rights or to ask you to surrender these 499rights. These restrictions translate to certain responsibilities for 500you if you distribute copies of the library or if you modify it. 501 502 For example, if you distribute copies of the library, whether gratis 503or for a fee, you must give the recipients all the rights that we gave 504you. You must make sure that they, too, receive or can get the source 505code. If you link other code with the library, you must provide 506complete object files to the recipients, so that they can relink them 507with the library after making changes to the library and recompiling 508it. And you must show them these terms so they know their rights. 509 510 We protect your rights with a two-step method: (1) we copyright the 511library, and (2) we offer you this license, which gives you legal 512permission to copy, distribute and/or modify the library. 513 514 To protect each distributor, we want to make it very clear that 515there is no warranty for the free library. Also, if the library is 516modified by someone else and passed on, the recipients should know 517that what they have is not the original version, so that the original 518author's reputation will not be affected by problems that might be 519introduced by others. 520 521 Finally, software patents pose a constant threat to the existence of 522any free program. We wish to make sure that a company cannot 523effectively restrict the users of a free program by obtaining a 524restrictive license from a patent holder. Therefore, we insist that 525any patent license obtained for a version of the library must be 526consistent with the full freedom of use specified in this license. 527 528 Most GNU software, including some libraries, is covered by the 529ordinary GNU General Public License. This license, the GNU Lesser 530General Public License, applies to certain designated libraries, and 531is quite different from the ordinary General Public License. We use 532this license for certain libraries in order to permit linking those 533libraries into non-free programs. 534 535 When a program is linked with a library, whether statically or using 536a shared library, the combination of the two is legally speaking a 537combined work, a derivative of the original library. The ordinary 538General Public License therefore permits such linking only if the 539entire combination fits its criteria of freedom. The Lesser General 540Public License permits more lax criteria for linking other code with 541the library. 542 543 We call this license the "Lesser" General Public License because it 544does Less to protect the user's freedom than the ordinary General 545Public License. It also provides other free software developers Less 546of an advantage over competing non-free programs. These disadvantages 547are the reason we use the ordinary General Public License for many 548libraries. However, the Lesser license provides advantages in certain 549special circumstances. 550 551 For example, on rare occasions, there may be a special need to 552encourage the widest possible use of a certain library, so that it becomes 553a de-facto standard. To achieve this, non-free programs must be 554allowed to use the library. A more frequent case is that a free 555library does the same job as widely used non-free libraries. In this 556case, there is little to gain by limiting the free library to free 557software only, so we use the Lesser General Public License. 558 559 In other cases, permission to use a particular library in non-free 560programs enables a greater number of people to use a large body of 561free software. For example, permission to use the GNU C Library in 562non-free programs enables many more people to use the whole GNU 563operating system, as well as its variant, the GNU/Linux operating 564system. 565 566 Although the Lesser General Public License is Less protective of the 567users' freedom, it does ensure that the user of a program that is 568linked with the Library has the freedom and the wherewithal to run 569that program using a modified version of the Library. 570 571 The precise terms and conditions for copying, distribution and 572modification follow. Pay close attention to the difference between a 573"work based on the library" and a "work that uses the library". The 574former contains code derived from the library, whereas the latter must 575be combined with the library in order to run. 576 577 GNU LESSER GENERAL PUBLIC LICENSE 578 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 579 580 0. This License Agreement applies to any software library or other 581program which contains a notice placed by the copyright holder or 582other authorized party saying it may be distributed under the terms of 583this Lesser General Public License (also called "this License"). 584Each licensee is addressed as "you". 585 586 A "library" means a collection of software functions and/or data 587prepared so as to be conveniently linked with application programs 588(which use some of those functions and data) to form executables. 589 590 The "Library", below, refers to any such software library or work 591which has been distributed under these terms. A "work based on the 592Library" means either the Library or any derivative work under 593copyright law: that is to say, a work containing the Library or a 594portion of it, either verbatim or with modifications and/or translated 595straightforwardly into another language. (Hereinafter, translation is 596included without limitation in the term "modification".) 597 598 "Source code" for a work means the preferred form of the work for 599making modifications to it. For a library, complete source code means 600all the source code for all modules it contains, plus any associated 601interface definition files, plus the scripts used to control compilation 602and installation of the library. 603 604 Activities other than copying, distribution and modification are not 605covered by this License; they are outside its scope. The act of 606running a program using the Library is not restricted, and output from 607such a program is covered only if its contents constitute a work based 608on the Library (independent of the use of the Library in a tool for 609writing it). Whether that is true depends on what the Library does 610and what the program that uses the Library does. 611 612 1. You may copy and distribute verbatim copies of the Library's 613complete source code as you receive it, in any medium, provided that 614you conspicuously and appropriately publish on each copy an 615appropriate copyright notice and disclaimer of warranty; keep intact 616all the notices that refer to this License and to the absence of any 617warranty; and distribute a copy of this License along with the 618Library. 619 620 You may charge a fee for the physical act of transferring a copy, 621and you may at your option offer warranty protection in exchange for a 622fee. 623 624 2. You may modify your copy or copies of the Library or any portion 625of it, thus forming a work based on the Library, and copy and 626distribute such modifications or work under the terms of Section 1 627above, provided that you also meet all of these conditions: 628 629 a) The modified work must itself be a software library. 630 631 b) You must cause the files modified to carry prominent notices 632 stating that you changed the files and the date of any change. 633 634 c) You must cause the whole of the work to be licensed at no 635 charge to all third parties under the terms of this License. 636 637 d) If a facility in the modified Library refers to a function or a 638 table of data to be supplied by an application program that uses 639 the facility, other than as an argument passed when the facility 640 is invoked, then you must make a good faith effort to ensure that, 641 in the event an application does not supply such function or 642 table, the facility still operates, and performs whatever part of 643 its purpose remains meaningful. 644 645 (For example, a function in a library to compute square roots has 646 a purpose that is entirely well-defined independent of the 647 application. Therefore, Subsection 2d requires that any 648 application-supplied function or table used by this function must 649 be optional: if the application does not supply it, the square 650 root function must still compute square roots.) 651 652These requirements apply to the modified work as a whole. If 653identifiable sections of that work are not derived from the Library, 654and can be reasonably considered independent and separate works in 655themselves, then this License, and its terms, do not apply to those 656sections when you distribute them as separate works. But when you 657distribute the same sections as part of a whole which is a work based 658on the Library, the distribution of the whole must be on the terms of 659this License, whose permissions for other licensees extend to the 660entire whole, and thus to each and every part regardless of who wrote 661it. 662 663Thus, it is not the intent of this section to claim rights or contest 664your rights to work written entirely by you; rather, the intent is to 665exercise the right to control the distribution of derivative or 666collective works based on the Library. 667 668In addition, mere aggregation of another work not based on the Library 669with the Library (or with a work based on the Library) on a volume of 670a storage or distribution medium does not bring the other work under 671the scope of this License. 672 673 3. You may opt to apply the terms of the ordinary GNU General Public 674License instead of this License to a given copy of the Library. To do 675this, you must alter all the notices that refer to this License, so 676that they refer to the ordinary GNU General Public License, version 2, 677instead of to this License. (If a newer version than version 2 of the 678ordinary GNU General Public License has appeared, then you can specify 679that version instead if you wish.) Do not make any other change in 680these notices. 681 682 Once this change is made in a given copy, it is irreversible for 683that copy, so the ordinary GNU General Public License applies to all 684subsequent copies and derivative works made from that copy. 685 686 This option is useful when you wish to copy part of the code of 687the Library into a program that is not a library. 688 689 4. You may copy and distribute the Library (or a portion or 690derivative of it, under Section 2) in object code or executable form 691under the terms of Sections 1 and 2 above provided that you accompany 692it with the complete corresponding machine-readable source code, which 693must be distributed under the terms of Sections 1 and 2 above on a 694medium customarily used for software interchange. 695 696 If distribution of object code is made by offering access to copy 697from a designated place, then offering equivalent access to copy the 698source code from the same place satisfies the requirement to 699distribute the source code, even though third parties are not 700compelled to copy the source along with the object code. 701 702 5. A program that contains no derivative of any portion of the 703Library, but is designed to work with the Library by being compiled or 704linked with it, is called a "work that uses the Library". Such a 705work, in isolation, is not a derivative work of the Library, and 706therefore falls outside the scope of this License. 707 708 However, linking a "work that uses the Library" with the Library 709creates an executable that is a derivative of the Library (because it 710contains portions of the Library), rather than a "work that uses the 711library". The executable is therefore covered by this License. 712Section 6 states terms for distribution of such executables. 713 714 When a "work that uses the Library" uses material from a header file 715that is part of the Library, the object code for the work may be a 716derivative work of the Library even though the source code is not. 717Whether this is true is especially significant if the work can be 718linked without the Library, or if the work is itself a library. The 719threshold for this to be true is not precisely defined by law. 720 721 If such an object file uses only numerical parameters, data 722structure layouts and accessors, and small macros and small inline 723functions (ten lines or less in length), then the use of the object 724file is unrestricted, regardless of whether it is legally a derivative 725work. (Executables containing this object code plus portions of the 726Library will still fall under Section 6.) 727 728 Otherwise, if the work is a derivative of the Library, you may 729distribute the object code for the work under the terms of Section 6. 730Any executables containing that work also fall under Section 6, 731whether or not they are linked directly with the Library itself. 732 733 6. As an exception to the Sections above, you may also combine or 734link a "work that uses the Library" with the Library to produce a 735work containing portions of the Library, and distribute that work 736under terms of your choice, provided that the terms permit 737modification of the work for the customer's own use and reverse 738engineering for debugging such modifications. 739 740 You must give prominent notice with each copy of the work that the 741Library is used in it and that the Library and its use are covered by 742this License. You must supply a copy of this License. If the work 743during execution displays copyright notices, you must include the 744copyright notice for the Library among them, as well as a reference 745directing the user to the copy of this License. Also, you must do one 746of these things: 747 748 a) Accompany the work with the complete corresponding 749 machine-readable source code for the Library including whatever 750 changes were used in the work (which must be distributed under 751 Sections 1 and 2 above); and, if the work is an executable linked 752 with the Library, with the complete machine-readable "work that 753 uses the Library", as object code and/or source code, so that the 754 user can modify the Library and then relink to produce a modified 755 executable containing the modified Library. (It is understood 756 that the user who changes the contents of definitions files in the 757 Library will not necessarily be able to recompile the application 758 to use the modified definitions.) 759 760 b) Use a suitable shared library mechanism for linking with the 761 Library. A suitable mechanism is one that (1) uses at run time a 762 copy of the library already present on the user's computer system, 763 rather than copying library functions into the executable, and (2) 764 will operate properly with a modified version of the library, if 765 the user installs one, as long as the modified version is 766 interface-compatible with the version that the work was made with. 767 768 c) Accompany the work with a written offer, valid for at 769 least three years, to give the same user the materials 770 specified in Subsection 6a, above, for a charge no more 771 than the cost of performing this distribution. 772 773 d) If distribution of the work is made by offering access to copy 774 from a designated place, offer equivalent access to copy the above 775 specified materials from the same place. 776 777 e) Verify that the user has already received a copy of these 778 materials or that you have already sent this user a copy. 779 780 For an executable, the required form of the "work that uses the 781Library" must include any data and utility programs needed for 782reproducing the executable from it. However, as a special exception, 783the materials to be distributed need not include anything that is 784normally distributed (in either source or binary form) with the major 785components (compiler, kernel, and so on) of the operating system on 786which the executable runs, unless that component itself accompanies 787the executable. 788 789 It may happen that this requirement contradicts the license 790restrictions of other proprietary libraries that do not normally 791accompany the operating system. Such a contradiction means you cannot 792use both them and the Library together in an executable that you 793distribute. 794 795 7. You may place library facilities that are a work based on the 796Library side-by-side in a single library together with other library 797facilities not covered by this License, and distribute such a combined 798library, provided that the separate distribution of the work based on 799the Library and of the other library facilities is otherwise 800permitted, and provided that you do these two things: 801 802 a) Accompany the combined library with a copy of the same work 803 based on the Library, uncombined with any other library 804 facilities. This must be distributed under the terms of the 805 Sections above. 806 807 b) Give prominent notice with the combined library of the fact 808 that part of it is a work based on the Library, and explaining 809 where to find the accompanying uncombined form of the same work. 810 811 8. You may not copy, modify, sublicense, link with, or distribute 812the Library except as expressly provided under this License. Any 813attempt otherwise to copy, modify, sublicense, link with, or 814distribute the Library is void, and will automatically terminate your 815rights under this License. However, parties who have received copies, 816or rights, from you under this License will not have their licenses 817terminated so long as such parties remain in full compliance. 818 819 9. You are not required to accept this License, since you have not 820signed it. However, nothing else grants you permission to modify or 821distribute the Library or its derivative works. These actions are 822prohibited by law if you do not accept this License. Therefore, by 823modifying or distributing the Library (or any work based on the 824Library), you indicate your acceptance of this License to do so, and 825all its terms and conditions for copying, distributing or modifying 826the Library or works based on it. 827 828 10. Each time you redistribute the Library (or any work based on the 829Library), the recipient automatically receives a license from the 830original licensor to copy, distribute, link with or modify the Library 831subject to these terms and conditions. You may not impose any further 832restrictions on the recipients' exercise of the rights granted herein. 833You are not responsible for enforcing compliance by third parties with 834this License. 835 836 11. If, as a consequence of a court judgment or allegation of patent 837infringement or for any other reason (not limited to patent issues), 838conditions are imposed on you (whether by court order, agreement or 839otherwise) that contradict the conditions of this License, they do not 840excuse you from the conditions of this License. If you cannot 841distribute so as to satisfy simultaneously your obligations under this 842License and any other pertinent obligations, then as a consequence you 843may not distribute the Library at all. For example, if a patent 844license would not permit royalty-free redistribution of the Library by 845all those who receive copies directly or indirectly through you, then 846the only way you could satisfy both it and this License would be to 847refrain entirely from distribution of the Library. 848 849If any portion of this section is held invalid or unenforceable under any 850particular circumstance, the balance of the section is intended to apply, 851and the section as a whole is intended to apply in other circumstances. 852 853It is not the purpose of this section to induce you to infringe any 854patents or other property right claims or to contest validity of any 855such claims; this section has the sole purpose of protecting the 856integrity of the free software distribution system which is 857implemented by public license practices. Many people have made 858generous contributions to the wide range of software distributed 859through that system in reliance on consistent application of that 860system; it is up to the author/donor to decide if he or she is willing 861to distribute software through any other system and a licensee cannot 862impose that choice. 863 864This section is intended to make thoroughly clear what is believed to 865be a consequence of the rest of this License. 866 867 12. If the distribution and/or use of the Library is restricted in 868certain countries either by patents or by copyrighted interfaces, the 869original copyright holder who places the Library under this License may add 870an explicit geographical distribution limitation excluding those countries, 871so that distribution is permitted only in or among countries not thus 872excluded. In such case, this License incorporates the limitation as if 873written in the body of this License. 874 875 13. The Free Software Foundation may publish revised and/or new 876versions of the Lesser General Public License from time to time. 877Such new versions will be similar in spirit to the present version, 878but may differ in detail to address new problems or concerns. 879 880Each version is given a distinguishing version number. If the Library 881specifies a version number of this License which applies to it and 882"any later version", you have the option of following the terms and 883conditions either of that version or of any later version published by 884the Free Software Foundation. If the Library does not specify a 885license version number, you may choose any version ever published by 886the Free Software Foundation. 887 888 14. If you wish to incorporate parts of the Library into other free 889programs whose distribution conditions are incompatible with these, 890write to the author to ask for permission. For software which is 891copyrighted by the Free Software Foundation, write to the Free 892Software Foundation; we sometimes make exceptions for this. Our 893decision will be guided by the two goals of preserving the free status 894of all derivatives of our free software and of promoting the sharing 895and reuse of software generally. 896 897 NO WARRANTY 898 899 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 900WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 901EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 902OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 903KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 904IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 905PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 906LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 907THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 908 909 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 910WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 911AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 912FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 913CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 914LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 915RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 916FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 917SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 918DAMAGES. 919 920 END OF TERMS AND CONDITIONS 921 922 How to Apply These Terms to Your New Libraries 923 924 If you develop a new library, and you want it to be of the greatest 925possible use to the public, we recommend making it free software that 926everyone can redistribute and change. You can do so by permitting 927redistribution under these terms (or, alternatively, under the terms of the 928ordinary General Public License). 929 930 To apply these terms, attach the following notices to the library. It is 931safest to attach them to the start of each source file to most effectively 932convey the exclusion of warranty; and each file should have at least the 933"copyright" line and a pointer to where the full notice is found. 934 935 <one line to give the library's name and a brief idea of what it does.> 936 Copyright (C) <year> <name of author> 937 938 This library is free software; you can redistribute it and/or 939 modify it under the terms of the GNU Lesser General Public 940 License as published by the Free Software Foundation; either 941 version 2.1 of the License, or (at your option) any later version. 942 943 This library is distributed in the hope that it will be useful, 944 but WITHOUT ANY WARRANTY; without even the implied warranty of 945 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 946 Lesser General Public License for more details. 947 948 You should have received a copy of the GNU Lesser General Public 949 License along with this library; if not, write to the Free Software 950 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 951 952Also add information on how to contact you by electronic and paper mail. 953 954You should also get your employer (if you work as a programmer) or your 955school, if any, to sign a "copyright disclaimer" for the library, if 956necessary. Here is a sample; alter the names: 957 958 Yoyodyne, Inc., hereby disclaims all copyright interest in the 959 library `Frob' (a library for tweaking knobs) written by James Random Hacker. 960 961 <signature of Ty Coon>, 1 April 1990 962 Ty Coon, President of Vice 963 964That's all there is to it! 965