1 GNU GENERAL PUBLIC LICENSE 2 Version 2, June 1991 3 4 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 6 Everyone is permitted to copy and distribute verbatim copies 7 of this license document, but changing it is not allowed. 8 9 Preamble 10 11 The licenses for most software are designed to take away your 12 freedom to share and change it. By contrast, the GNU General Public 13 License is intended to guarantee your freedom to share and change free 14 software--to make sure the software is free for all its users. This 15 General Public License applies to most of the Free Software 16 Foundation's software and to any other program whose authors commit to 17 using it. (Some other Free Software Foundation software is covered by 18 the GNU Library General Public License instead.) You can apply it to 19 your programs, too. 20 21 When we speak of free software, we are referring to freedom, not 22 price. Our General Public Licenses are designed to make sure that you 23 have the freedom to distribute copies of free software (and charge for 24 this service if you wish), that you receive source code or can get it 25 if you want it, that you can change the software or use pieces of it 26 in new free programs; and that you know you can do these things. 27 28 To protect your rights, we need to make restrictions that forbid 29 anyone to deny you these rights or to ask you to surrender the rights. 30 These restrictions translate to certain responsibilities for you if you 31 distribute copies of the software, or if you modify it. 32 33 For example, if you distribute copies of such a program, whether 34 gratis or for a fee, you must give the recipients all the rights that 35 you have. You must make sure that they, too, receive or can get the 36 source code. And you must show them these terms so they know their 37 rights. 38 39 We protect your rights with two steps: (1) copyright the software, and 40 (2) offer you this license which gives you legal permission to copy, 41 distribute and/or modify the software. 42 43 Also, for each author's protection and ours, we want to make certain 44 that everyone understands that there is no warranty for this free 45 software. If the software is modified by someone else and passed on, we 46 want its recipients to know that what they have is not the original, so 47 that any problems introduced by others will not reflect on the original 48 authors' reputations. 49 50 Finally, any free program is threatened constantly by software 51 patents. We wish to avoid the danger that redistributors of a free 52 program will individually obtain patent licenses, in effect making the 53 program proprietary. To prevent this, we have made it clear that any 54 patent must be licensed for everyone's free use or not licensed at all. 55 56 The precise terms and conditions for copying, distribution and 57 modification follow. 58 60 GNU GENERAL PUBLIC LICENSE 61 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 62 63 0. This License applies to any program or other work which contains 64 a notice placed by the copyright holder saying it may be distributed 65 under the terms of this General Public License. The "Program", below, 66 refers to any such program or work, and a "work based on the Program" 67 means either the Program or any derivative work under copyright law: 68 that is to say, a work containing the Program or a portion of it, 69 either verbatim or with modifications and/or translated into another 70 language. (Hereinafter, translation is included without limitation in 71 the term "modification".) Each licensee is addressed as "you". 72 73 Activities other than copying, distribution and modification are not 74 covered by this License; they are outside its scope. The act of 75 running the Program is not restricted, and the output from the Program 76 is covered only if its contents constitute a work based on the 77 Program (independent of having been made by running the Program). 78 Whether that is true depends on what the Program does. 79 80 1. You may copy and distribute verbatim copies of the Program's 81 source code as you receive it, in any medium, provided that you 82 conspicuously and appropriately publish on each copy an appropriate 83 copyright notice and disclaimer of warranty; keep intact all the 84 notices that refer to this License and to the absence of any warranty; 85 and give any other recipients of the Program a copy of this License 86 along with the Program. 87 88 You may charge a fee for the physical act of transferring a copy, and 89 you may at your option offer warranty protection in exchange for a fee. 90 91 2. You may modify your copy or copies of the Program or any portion 92 of it, thus forming a work based on the Program, and copy and 93 distribute such modifications or work under the terms of Section 1 94 above, provided that you also meet all of these conditions: 95 96 a) You must cause the modified files to carry prominent notices 97 stating that you changed the files and the date of any change. 98 99 b) You must cause any work that you distribute or publish, that in 100 whole or in part contains or is derived from the Program or any 101 part thereof, to be licensed as a whole at no charge to all third 102 parties under the terms of this License. 103 104 c) If the modified program normally reads commands interactively 105 when run, you must cause it, when started running for such 106 interactive use in the most ordinary way, to print or display an 107 announcement including an appropriate copyright notice and a 108 notice that there is no warranty (or else, saying that you provide 109 a warranty) and that users may redistribute the program under 110 these conditions, and telling the user how to view a copy of this 111 License. (Exception: if the Program itself is interactive but 112 does not normally print such an announcement, your work based on 113 the Program is not required to print an announcement.) 114 116 These requirements apply to the modified work as a whole. If 117 identifiable sections of that work are not derived from the Program, 118 and can be reasonably considered independent and separate works in 119 themselves, then this License, and its terms, do not apply to those 120 sections when you distribute them as separate works. But when you 121 distribute the same sections as part of a whole which is a work based 122 on the Program, the distribution of the whole must be on the terms of 123 this License, whose permissions for other licensees extend to the 124 entire whole, and thus to each and every part regardless of who wrote it. 125 126 Thus, it is not the intent of this section to claim rights or contest 127 your rights to work written entirely by you; rather, the intent is to 128 exercise the right to control the distribution of derivative or 129 collective works based on the Program. 130 131 In addition, mere aggregation of another work not based on the Program 132 with the Program (or with a work based on the Program) on a volume of 133 a storage or distribution medium does not bring the other work under 134 the scope of this License. 135 136 3. You may copy and distribute the Program (or a work based on it, 137 under Section 2) in object code or executable form under the terms of 138 Sections 1 and 2 above provided that you also do one of the following: 139 140 a) Accompany it with the complete corresponding machine-readable 141 source code, which must be distributed under the terms of Sections 142 1 and 2 above on a medium customarily used for software interchange; or, 143 144 b) Accompany it with a written offer, valid for at least three 145 years, to give any third party, for a charge no more than your 146 cost of physically performing source distribution, a complete 147 machine-readable copy of the corresponding source code, to be 148 distributed under the terms of Sections 1 and 2 above on a medium 149 customarily used for software interchange; or, 150 151 c) Accompany it with the information you received as to the offer 152 to distribute corresponding source code. (This alternative is 153 allowed only for noncommercial distribution and only if you 154 received the program in object code or executable form with such 155 an offer, in accord with Subsection b above.) 156 157 The source code for a work means the preferred form of the work for 158 making modifications to it. For an executable work, complete source 159 code means all the source code for all modules it contains, plus any 160 associated interface definition files, plus the scripts used to 161 control compilation and installation of the executable. However, as a 162 special exception, the source code distributed need not include 163 anything that is normally distributed (in either source or binary 164 form) with the major components (compiler, kernel, and so on) of the 165 operating system on which the executable runs, unless that component 166 itself accompanies the executable. 167 168 If distribution of executable or object code is made by offering 169 access to copy from a designated place, then offering equivalent 170 access to copy the source code from the same place counts as 171 distribution of the source code, even though third parties are not 172 compelled to copy the source along with the object code. 173 175 4. You may not copy, modify, sublicense, or distribute the Program 176 except as expressly provided under this License. Any attempt 177 otherwise to copy, modify, sublicense or distribute the Program is 178 void, and will automatically terminate your rights under this License. 179 However, parties who have received copies, or rights, from you under 180 this License will not have their licenses terminated so long as such 181 parties remain in full compliance. 182 183 5. You are not required to accept this License, since you have not 184 signed it. However, nothing else grants you permission to modify or 185 distribute the Program or its derivative works. These actions are 186 prohibited by law if you do not accept this License. Therefore, by 187 modifying or distributing the Program (or any work based on the 188 Program), you indicate your acceptance of this License to do so, and 189 all its terms and conditions for copying, distributing or modifying 190 the Program or works based on it. 191 192 6. Each time you redistribute the Program (or any work based on the 193 Program), the recipient automatically receives a license from the 194 original licensor to copy, distribute or modify the Program subject to 195 these terms and conditions. You may not impose any further 196 restrictions on the recipients' exercise of the rights granted herein. 197 You are not responsible for enforcing compliance by third parties to 198 this License. 199 200 7. If, as a consequence of a court judgment or allegation of patent 201 infringement or for any other reason (not limited to patent issues), 202 conditions are imposed on you (whether by court order, agreement or 203 otherwise) that contradict the conditions of this License, they do not 204 excuse you from the conditions of this License. If you cannot 205 distribute so as to satisfy simultaneously your obligations under this 206 License and any other pertinent obligations, then as a consequence you 207 may not distribute the Program at all. For example, if a patent 208 license would not permit royalty-free redistribution of the Program by 209 all those who receive copies directly or indirectly through you, then 210 the only way you could satisfy both it and this License would be to 211 refrain entirely from distribution of the Program. 212 213 If any portion of this section is held invalid or unenforceable under 214 any particular circumstance, the balance of the section is intended to 215 apply and the section as a whole is intended to apply in other 216 circumstances. 217 218 It is not the purpose of this section to induce you to infringe any 219 patents or other property right claims or to contest validity of any 220 such claims; this section has the sole purpose of protecting the 221 integrity of the free software distribution system, which is 222 implemented by public license practices. Many people have made 223 generous contributions to the wide range of software distributed 224 through that system in reliance on consistent application of that 225 system; it is up to the author/donor to decide if he or she is willing 226 to distribute software through any other system and a licensee cannot 227 impose that choice. 228 229 This section is intended to make thoroughly clear what is believed to 230 be a consequence of the rest of this License. 231 233 8. If the distribution and/or use of the Program is restricted in 234 certain countries either by patents or by copyrighted interfaces, the 235 original copyright holder who places the Program under this License 236 may add an explicit geographical distribution limitation excluding 237 those countries, so that distribution is permitted only in or among 238 countries not thus excluded. In such case, this License incorporates 239 the limitation as if written in the body of this License. 240 241 9. The Free Software Foundation may publish revised and/or new versions 242 of the General Public License from time to time. Such new versions will 243 be similar in spirit to the present version, but may differ in detail to 244 address new problems or concerns. 245 246 Each version is given a distinguishing version number. If the Program 247 specifies a version number of this License which applies to it and "any 248 later version", you have the option of following the terms and conditions 249 either of that version or of any later version published by the Free 250 Software Foundation. If the Program does not specify a version number of 251 this License, you may choose any version ever published by the Free Software 252 Foundation. 253 254 10. If you wish to incorporate parts of the Program into other free 255 programs whose distribution conditions are different, write to the author 256 to ask for permission. For software which is copyrighted by the Free 257 Software Foundation, write to the Free Software Foundation; we sometimes 258 make exceptions for this. Our decision will be guided by the two goals 259 of preserving the free status of all derivatives of our free software and 260 of promoting the sharing and reuse of software generally. 261 262 NO WARRANTY 263 264 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 265 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 266 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 267 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 268 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 269 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 270 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 271 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 272 REPAIR OR CORRECTION. 273 274 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 275 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 276 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 277 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 278 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 279 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 280 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 281 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 282 POSSIBILITY OF SUCH DAMAGES. 283 284 END OF TERMS AND CONDITIONS 285 287 How to Apply These Terms to Your New Programs 288 289 If you develop a new program, and you want it to be of the greatest 290 possible use to the public, the best way to achieve this is to make it 291 free software which everyone can redistribute and change under these terms. 292 293 To do so, attach the following notices to the program. It is safest 294 to attach them to the start of each source file to most effectively 295 convey the exclusion of warranty; and each file should have at least 296 the "copyright" line and a pointer to where the full notice is found. 297 298 <one line to give the program's name and a brief idea of what it does.> 299 Copyright (C) <year> <name of author> 300 301 This program is free software; you can redistribute it and/or modify 302 it under the terms of the GNU General Public License as published by 303 the Free Software Foundation; either version 2 of the License, or 304 (at your option) any later version. 305 306 This program is distributed in the hope that it will be useful, 307 but WITHOUT ANY WARRANTY; without even the implied warranty of 308 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 309 GNU General Public License for more details. 310 311 You should have received a copy of the GNU General Public License 312 along with this program; if not, write to the Free Software 313 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 314 315 316 Also add information on how to contact you by electronic and paper mail. 317 318 If the program is interactive, make it output a short notice like this 319 when it starts in an interactive mode: 320 321 Gnomovision version 69, Copyright (C) year name of author 322 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 323 This is free software, and you are welcome to redistribute it 324 under certain conditions; type `show c' for details. 325 326 The hypothetical commands `show w' and `show c' should show the appropriate 327 parts of the General Public License. Of course, the commands you use may 328 be called something other than `show w' and `show c'; they could even be 329 mouse-clicks or menu items--whatever suits your program. 330 331 You should also get your employer (if you work as a programmer) or your 332 school, if any, to sign a "copyright disclaimer" for the program, if 333 necessary. Here is a sample; alter the names: 334 335 Yoyodyne, Inc., hereby disclaims all copyright interest in the program 336 `Gnomovision' (which makes passes at compilers) written by James Hacker. 337 338 <signature of Ty Coon>, 1 April 1989 339 Ty Coon, President of Vice 340 341 This General Public License does not permit incorporating your program into 342 proprietary programs. If your program is a subroutine library, you may 343 consider it more useful to permit linking proprietary applications with the 344 library. If this is what you want to do, use the GNU Library General 345 Public License instead of this License. 346 GNU LESSER GENERAL PUBLIC LICENSE 347 Version 2.1, February 1999 348 349 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 350 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 351 Everyone is permitted to copy and distribute verbatim copies 352 of this license document, but changing it is not allowed. 353 354 [This is the first released version of the Lesser GPL. It also counts 355 as the successor of the GNU Library Public License, version 2, hence 356 the version number 2.1.] 357 358 Preamble 359 360 The licenses for most software are designed to take away your 361 freedom to share and change it. By contrast, the GNU General Public 362 Licenses are intended to guarantee your freedom to share and change 363 free software--to make sure the software is free for all its users. 364 365 This license, the Lesser General Public License, applies to some 366 specially designated software packages--typically libraries--of the 367 Free Software Foundation and other authors who decide to use it. You 368 can use it too, but we suggest you first think carefully about whether 369 this license or the ordinary General Public License is the better 370 strategy to use in any particular case, based on the explanations below. 371 372 When we speak of free software, we are referring to freedom of use, 373 not price. Our General Public Licenses are designed to make sure that 374 you have the freedom to distribute copies of free software (and charge 375 for this service if you wish); that you receive source code or can get 376 it if you want it; that you can change the software and use pieces of 377 it in new free programs; and that you are informed that you can do 378 these things. 379 380 To protect your rights, we need to make restrictions that forbid 381 distributors to deny you these rights or to ask you to surrender these 382 rights. These restrictions translate to certain responsibilities for 383 you if you distribute copies of the library or if you modify it. 384 385 For example, if you distribute copies of the library, whether gratis 386 or for a fee, you must give the recipients all the rights that we gave 387 you. You must make sure that they, too, receive or can get the source 388 code. If you link other code with the library, you must provide 389 complete object files to the recipients, so that they can relink them 390 with the library after making changes to the library and recompiling 391 it. And you must show them these terms so they know their rights. 392 393 We protect your rights with a two-step method: (1) we copyright the 394 library, and (2) we offer you this license, which gives you legal 395 permission to copy, distribute and/or modify the library. 396 397 To protect each distributor, we want to make it very clear that 398 there is no warranty for the free library. Also, if the library is 399 modified by someone else and passed on, the recipients should know 400 that what they have is not the original version, so that the original 401 author's reputation will not be affected by problems that might be 402 introduced by others. 403 405 Finally, software patents pose a constant threat to the existence of 406 any free program. We wish to make sure that a company cannot 407 effectively restrict the users of a free program by obtaining a 408 restrictive license from a patent holder. Therefore, we insist that 409 any patent license obtained for a version of the library must be 410 consistent with the full freedom of use specified in this license. 411 412 Most GNU software, including some libraries, is covered by the 413 ordinary GNU General Public License. This license, the GNU Lesser 414 General Public License, applies to certain designated libraries, and 415 is quite different from the ordinary General Public License. We use 416 this license for certain libraries in order to permit linking those 417 libraries into non-free programs. 418 419 When a program is linked with a library, whether statically or using 420 a shared library, the combination of the two is legally speaking a 421 combined work, a derivative of the original library. The ordinary 422 General Public License therefore permits such linking only if the 423 entire combination fits its criteria of freedom. The Lesser General 424 Public License permits more lax criteria for linking other code with 425 the library. 426 427 We call this license the "Lesser" General Public License because it 428 does Less to protect the user's freedom than the ordinary General 429 Public License. It also provides other free software developers Less 430 of an advantage over competing non-free programs. These disadvantages 431 are the reason we use the ordinary General Public License for many 432 libraries. However, the Lesser license provides advantages in certain 433 special circumstances. 434 435 For example, on rare occasions, there may be a special need to 436 encourage the widest possible use of a certain library, so that it becomes 437 a de-facto standard. To achieve this, non-free programs must be 438 allowed to use the library. A more frequent case is that a free 439 library does the same job as widely used non-free libraries. In this 440 case, there is little to gain by limiting the free library to free 441 software only, so we use the Lesser General Public License. 442 443 In other cases, permission to use a particular library in non-free 444 programs enables a greater number of people to use a large body of 445 free software. For example, permission to use the GNU C Library in 446 non-free programs enables many more people to use the whole GNU 447 operating system, as well as its variant, the GNU/Linux operating 448 system. 449 450 Although the Lesser General Public License is Less protective of the 451 users' freedom, it does ensure that the user of a program that is 452 linked with the Library has the freedom and the wherewithal to run 453 that program using a modified version of the Library. 454 455 The precise terms and conditions for copying, distribution and 456 modification follow. Pay close attention to the difference between a 457 "work based on the library" and a "work that uses the library". The 458 former contains code derived from the library, whereas the latter must 459 be combined with the library in order to run. 460 462 GNU LESSER GENERAL PUBLIC LICENSE 463 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 464 465 0. This License Agreement applies to any software library or other 466 program which contains a notice placed by the copyright holder or 467 other authorized party saying it may be distributed under the terms of 468 this Lesser General Public License (also called "this License"). 469 Each licensee is addressed as "you". 470 471 A "library" means a collection of software functions and/or data 472 prepared so as to be conveniently linked with application programs 473 (which use some of those functions and data) to form executables. 474 475 The "Library", below, refers to any such software library or work 476 which has been distributed under these terms. A "work based on the 477 Library" means either the Library or any derivative work under 478 copyright law: that is to say, a work containing the Library or a 479 portion of it, either verbatim or with modifications and/or translated 480 straightforwardly into another language. (Hereinafter, translation is 481 included without limitation in the term "modification".) 482 483 "Source code" for a work means the preferred form of the work for 484 making modifications to it. For a library, complete source code means 485 all the source code for all modules it contains, plus any associated 486 interface definition files, plus the scripts used to control compilation 487 and installation of the library. 488 489 Activities other than copying, distribution and modification are not 490 covered by this License; they are outside its scope. The act of 491 running a program using the Library is not restricted, and output from 492 such a program is covered only if its contents constitute a work based 493 on the Library (independent of the use of the Library in a tool for 494 writing it). Whether that is true depends on what the Library does 495 and what the program that uses the Library does. 496 497 1. You may copy and distribute verbatim copies of the Library's 498 complete source code as you receive it, in any medium, provided that 499 you conspicuously and appropriately publish on each copy an 500 appropriate copyright notice and disclaimer of warranty; keep intact 501 all the notices that refer to this License and to the absence of any 502 warranty; and distribute a copy of this License along with the 503 Library. 504 505 You may charge a fee for the physical act of transferring a copy, 506 and you may at your option offer warranty protection in exchange for a 507 fee. 508 510 2. You may modify your copy or copies of the Library or any portion 511 of it, thus forming a work based on the Library, and copy and 512 distribute such modifications or work under the terms of Section 1 513 above, provided that you also meet all of these conditions: 514 515 a) The modified work must itself be a software library. 516 517 b) You must cause the files modified to carry prominent notices 518 stating that you changed the files and the date of any change. 519 520 c) You must cause the whole of the work to be licensed at no 521 charge to all third parties under the terms of this License. 522 523 d) If a facility in the modified Library refers to a function or a 524 table of data to be supplied by an application program that uses 525 the facility, other than as an argument passed when the facility 526 is invoked, then you must make a good faith effort to ensure that, 527 in the event an application does not supply such function or 528 table, the facility still operates, and performs whatever part of 529 its purpose remains meaningful. 530 531 (For example, a function in a library to compute square roots has 532 a purpose that is entirely well-defined independent of the 533 application. Therefore, Subsection 2d requires that any 534 application-supplied function or table used by this function must 535 be optional: if the application does not supply it, the square 536 root function must still compute square roots.) 537 538 These requirements apply to the modified work as a whole. If 539 identifiable sections of that work are not derived from the Library, 540 and can be reasonably considered independent and separate works in 541 themselves, then this License, and its terms, do not apply to those 542 sections when you distribute them as separate works. But when you 543 distribute the same sections as part of a whole which is a work based 544 on the Library, the distribution of the whole must be on the terms of 545 this License, whose permissions for other licensees extend to the 546 entire whole, and thus to each and every part regardless of who wrote 547 it. 548 549 Thus, it is not the intent of this section to claim rights or contest 550 your rights to work written entirely by you; rather, the intent is to 551 exercise the right to control the distribution of derivative or 552 collective works based on the Library. 553 554 In addition, mere aggregation of another work not based on the Library 555 with the Library (or with a work based on the Library) on a volume of 556 a storage or distribution medium does not bring the other work under 557 the scope of this License. 558 559 3. You may opt to apply the terms of the ordinary GNU General Public 560 License instead of this License to a given copy of the Library. To do 561 this, you must alter all the notices that refer to this License, so 562 that they refer to the ordinary GNU General Public License, version 2, 563 instead of to this License. (If a newer version than version 2 of the 564 ordinary GNU General Public License has appeared, then you can specify 565 that version instead if you wish.) Do not make any other change in 566 these notices. 567 569 Once this change is made in a given copy, it is irreversible for 570 that copy, so the ordinary GNU General Public License applies to all 571 subsequent copies and derivative works made from that copy. 572 573 This option is useful when you wish to copy part of the code of 574 the Library into a program that is not a library. 575 576 4. You may copy and distribute the Library (or a portion or 577 derivative of it, under Section 2) in object code or executable form 578 under the terms of Sections 1 and 2 above provided that you accompany 579 it with the complete corresponding machine-readable source code, which 580 must be distributed under the terms of Sections 1 and 2 above on a 581 medium customarily used for software interchange. 582 583 If distribution of object code is made by offering access to copy 584 from a designated place, then offering equivalent access to copy the 585 source code from the same place satisfies the requirement to 586 distribute the source code, even though third parties are not 587 compelled to copy the source along with the object code. 588 589 5. A program that contains no derivative of any portion of the 590 Library, but is designed to work with the Library by being compiled or 591 linked with it, is called a "work that uses the Library". Such a 592 work, in isolation, is not a derivative work of the Library, and 593 therefore falls outside the scope of this License. 594 595 However, linking a "work that uses the Library" with the Library 596 creates an executable that is a derivative of the Library (because it 597 contains portions of the Library), rather than a "work that uses the 598 library". The executable is therefore covered by this License. 599 Section 6 states terms for distribution of such executables. 600 601 When a "work that uses the Library" uses material from a header file 602 that is part of the Library, the object code for the work may be a 603 derivative work of the Library even though the source code is not. 604 Whether this is true is especially significant if the work can be 605 linked without the Library, or if the work is itself a library. The 606 threshold for this to be true is not precisely defined by law. 607 608 If such an object file uses only numerical parameters, data 609 structure layouts and accessors, and small macros and small inline 610 functions (ten lines or less in length), then the use of the object 611 file is unrestricted, regardless of whether it is legally a derivative 612 work. (Executables containing this object code plus portions of the 613 Library will still fall under Section 6.) 614 615 Otherwise, if the work is a derivative of the Library, you may 616 distribute the object code for the work under the terms of Section 6. 617 Any executables containing that work also fall under Section 6, 618 whether or not they are linked directly with the Library itself. 619 621 6. As an exception to the Sections above, you may also combine or 622 link a "work that uses the Library" with the Library to produce a 623 work containing portions of the Library, and distribute that work 624 under terms of your choice, provided that the terms permit 625 modification of the work for the customer's own use and reverse 626 engineering for debugging such modifications. 627 628 You must give prominent notice with each copy of the work that the 629 Library is used in it and that the Library and its use are covered by 630 this License. You must supply a copy of this License. If the work 631 during execution displays copyright notices, you must include the 632 copyright notice for the Library among them, as well as a reference 633 directing the user to the copy of this License. Also, you must do one 634 of these things: 635 636 a) Accompany the work with the complete corresponding 637 machine-readable source code for the Library including whatever 638 changes were used in the work (which must be distributed under 639 Sections 1 and 2 above); and, if the work is an executable linked 640 with the Library, with the complete machine-readable "work that 641 uses the Library", as object code and/or source code, so that the 642 user can modify the Library and then relink to produce a modified 643 executable containing the modified Library. (It is understood 644 that the user who changes the contents of definitions files in the 645 Library will not necessarily be able to recompile the application 646 to use the modified definitions.) 647 648 b) Use a suitable shared library mechanism for linking with the 649 Library. A suitable mechanism is one that (1) uses at run time a 650 copy of the library already present on the user's computer system, 651 rather than copying library functions into the executable, and (2) 652 will operate properly with a modified version of the library, if 653 the user installs one, as long as the modified version is 654 interface-compatible with the version that the work was made with. 655 656 c) Accompany the work with a written offer, valid for at 657 least three years, to give the same user the materials 658 specified in Subsection 6a, above, for a charge no more 659 than the cost of performing this distribution. 660 661 d) If distribution of the work is made by offering access to copy 662 from a designated place, offer equivalent access to copy the above 663 specified materials from the same place. 664 665 e) Verify that the user has already received a copy of these 666 materials or that you have already sent this user a copy. 667 668 For an executable, the required form of the "work that uses the 669 Library" must include any data and utility programs needed for 670 reproducing the executable from it. However, as a special exception, 671 the materials to be distributed need not include anything that is 672 normally distributed (in either source or binary form) with the major 673 components (compiler, kernel, and so on) of the operating system on 674 which the executable runs, unless that component itself accompanies 675 the executable. 676 677 It may happen that this requirement contradicts the license 678 restrictions of other proprietary libraries that do not normally 679 accompany the operating system. Such a contradiction means you cannot 680 use both them and the Library together in an executable that you 681 distribute. 682 684 7. You may place library facilities that are a work based on the 685 Library side-by-side in a single library together with other library 686 facilities not covered by this License, and distribute such a combined 687 library, provided that the separate distribution of the work based on 688 the Library and of the other library facilities is otherwise 689 permitted, and provided that you do these two things: 690 691 a) Accompany the combined library with a copy of the same work 692 based on the Library, uncombined with any other library 693 facilities. This must be distributed under the terms of the 694 Sections above. 695 696 b) Give prominent notice with the combined library of the fact 697 that part of it is a work based on the Library, and explaining 698 where to find the accompanying uncombined form of the same work. 699 700 8. You may not copy, modify, sublicense, link with, or distribute 701 the Library except as expressly provided under this License. Any 702 attempt otherwise to copy, modify, sublicense, link with, or 703 distribute the Library is void, and will automatically terminate your 704 rights under this License. However, parties who have received copies, 705 or rights, from you under this License will not have their licenses 706 terminated so long as such parties remain in full compliance. 707 708 9. You are not required to accept this License, since you have not 709 signed it. However, nothing else grants you permission to modify or 710 distribute the Library or its derivative works. These actions are 711 prohibited by law if you do not accept this License. Therefore, by 712 modifying or distributing the Library (or any work based on the 713 Library), you indicate your acceptance of this License to do so, and 714 all its terms and conditions for copying, distributing or modifying 715 the Library or works based on it. 716 717 10. Each time you redistribute the Library (or any work based on the 718 Library), the recipient automatically receives a license from the 719 original licensor to copy, distribute, link with or modify the Library 720 subject to these terms and conditions. You may not impose any further 721 restrictions on the recipients' exercise of the rights granted herein. 722 You are not responsible for enforcing compliance by third parties with 723 this License. 724 726 11. If, as a consequence of a court judgment or allegation of patent 727 infringement or for any other reason (not limited to patent issues), 728 conditions are imposed on you (whether by court order, agreement or 729 otherwise) that contradict the conditions of this License, they do not 730 excuse you from the conditions of this License. If you cannot 731 distribute so as to satisfy simultaneously your obligations under this 732 License and any other pertinent obligations, then as a consequence you 733 may not distribute the Library at all. For example, if a patent 734 license would not permit royalty-free redistribution of the Library by 735 all those who receive copies directly or indirectly through you, then 736 the only way you could satisfy both it and this License would be to 737 refrain entirely from distribution of the Library. 738 739 If any portion of this section is held invalid or unenforceable under any 740 particular circumstance, the balance of the section is intended to apply, 741 and the section as a whole is intended to apply in other circumstances. 742 743 It is not the purpose of this section to induce you to infringe any 744 patents or other property right claims or to contest validity of any 745 such claims; this section has the sole purpose of protecting the 746 integrity of the free software distribution system which is 747 implemented by public license practices. Many people have made 748 generous contributions to the wide range of software distributed 749 through that system in reliance on consistent application of that 750 system; it is up to the author/donor to decide if he or she is willing 751 to distribute software through any other system and a licensee cannot 752 impose that choice. 753 754 This section is intended to make thoroughly clear what is believed to 755 be a consequence of the rest of this License. 756 757 12. If the distribution and/or use of the Library is restricted in 758 certain countries either by patents or by copyrighted interfaces, the 759 original copyright holder who places the Library under this License may add 760 an explicit geographical distribution limitation excluding those countries, 761 so that distribution is permitted only in or among countries not thus 762 excluded. In such case, this License incorporates the limitation as if 763 written in the body of this License. 764 765 13. The Free Software Foundation may publish revised and/or new 766 versions of the Lesser General Public License from time to time. 767 Such new versions will be similar in spirit to the present version, 768 but may differ in detail to address new problems or concerns. 769 770 Each version is given a distinguishing version number. If the Library 771 specifies a version number of this License which applies to it and 772 "any later version", you have the option of following the terms and 773 conditions either of that version or of any later version published by 774 the Free Software Foundation. If the Library does not specify a 775 license version number, you may choose any version ever published by 776 the Free Software Foundation. 777 779 14. If you wish to incorporate parts of the Library into other free 780 programs whose distribution conditions are incompatible with these, 781 write to the author to ask for permission. For software which is 782 copyrighted by the Free Software Foundation, write to the Free 783 Software Foundation; we sometimes make exceptions for this. Our 784 decision will be guided by the two goals of preserving the free status 785 of all derivatives of our free software and of promoting the sharing 786 and reuse of software generally. 787 788 NO WARRANTY 789 790 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 791 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 792 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 793 OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 794 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 795 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 796 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 797 LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 798 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 799 800 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 801 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 802 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 803 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 804 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 805 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 806 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 807 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 808 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 809 DAMAGES. 810 811 END OF TERMS AND CONDITIONS 812 814 How to Apply These Terms to Your New Libraries 815 816 If you develop a new library, and you want it to be of the greatest 817 possible use to the public, we recommend making it free software that 818 everyone can redistribute and change. You can do so by permitting 819 redistribution under these terms (or, alternatively, under the terms of the 820 ordinary General Public License). 821 822 To apply these terms, attach the following notices to the library. It is 823 safest to attach them to the start of each source file to most effectively 824 convey the exclusion of warranty; and each file should have at least the 825 "copyright" line and a pointer to where the full notice is found. 826 827 <one line to give the library's name and a brief idea of what it does.> 828 Copyright (C) <year> <name of author> 829 830 This library is free software; you can redistribute it and/or 831 modify it under the terms of the GNU Lesser General Public 832 License as published by the Free Software Foundation; either 833 version 2.1 of the License, or (at your option) any later version. 834 835 This library is distributed in the hope that it will be useful, 836 but WITHOUT ANY WARRANTY; without even the implied warranty of 837 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 838 Lesser General Public License for more details. 839 840 You should have received a copy of the GNU Lesser General Public 841 License along with this library; if not, write to the Free Software 842 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 843 844 Also add information on how to contact you by electronic and paper mail. 845 846 You should also get your employer (if you work as a programmer) or your 847 school, if any, to sign a "copyright disclaimer" for the library, if 848 necessary. Here is a sample; alter the names: 849 850 Yoyodyne, Inc., hereby disclaims all copyright interest in the 851 library `Frob' (a library for tweaking knobs) written by James Random Hacker. 852 853 <signature of Ty Coon>, 1 April 1990 854 Ty Coon, President of Vice 855 856 That's all there is to it! 857 858 859 GNU LESSER GENERAL PUBLIC LICENSE 860 Version 2.1, February 1999 861 862 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 863 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 864 Everyone is permitted to copy and distribute verbatim copies 865 of this license document, but changing it is not allowed. 866 867 [This is the first released version of the Lesser GPL. It also counts 868 as the successor of the GNU Library Public License, version 2, hence 869 the version number 2.1.] 870 871 Preamble 872 873 The licenses for most software are designed to take away your 874 freedom to share and change it. By contrast, the GNU General Public 875 Licenses are intended to guarantee your freedom to share and change 876 free software--to make sure the software is free for all its users. 877 878 This license, the Lesser General Public License, applies to some 879 specially designated software packages--typically libraries--of the 880 Free Software Foundation and other authors who decide to use it. You 881 can use it too, but we suggest you first think carefully about whether 882 this license or the ordinary General Public License is the better 883 strategy to use in any particular case, based on the explanations below. 884 885 When we speak of free software, we are referring to freedom of use, 886 not price. Our General Public Licenses are designed to make sure that 887 you have the freedom to distribute copies of free software (and charge 888 for this service if you wish); that you receive source code or can get 889 it if you want it; that you can change the software and use pieces of 890 it in new free programs; and that you are informed that you can do 891 these things. 892 893 To protect your rights, we need to make restrictions that forbid 894 distributors to deny you these rights or to ask you to surrender these 895 rights. These restrictions translate to certain responsibilities for 896 you if you distribute copies of the library or if you modify it. 897 898 For example, if you distribute copies of the library, whether gratis 899 or for a fee, you must give the recipients all the rights that we gave 900 you. You must make sure that they, too, receive or can get the source 901 code. If you link other code with the library, you must provide 902 complete object files to the recipients, so that they can relink them 903 with the library after making changes to the library and recompiling 904 it. And you must show them these terms so they know their rights. 905 906 We protect your rights with a two-step method: (1) we copyright the 907 library, and (2) we offer you this license, which gives you legal 908 permission to copy, distribute and/or modify the library. 909 910 To protect each distributor, we want to make it very clear that 911 there is no warranty for the free library. Also, if the library is 912 modified by someone else and passed on, the recipients should know 913 that what they have is not the original version, so that the original 914 author's reputation will not be affected by problems that might be 915 introduced by others. 916 918 Finally, software patents pose a constant threat to the existence of 919 any free program. We wish to make sure that a company cannot 920 effectively restrict the users of a free program by obtaining a 921 restrictive license from a patent holder. Therefore, we insist that 922 any patent license obtained for a version of the library must be 923 consistent with the full freedom of use specified in this license. 924 925 Most GNU software, including some libraries, is covered by the 926 ordinary GNU General Public License. This license, the GNU Lesser 927 General Public License, applies to certain designated libraries, and 928 is quite different from the ordinary General Public License. We use 929 this license for certain libraries in order to permit linking those 930 libraries into non-free programs. 931 932 When a program is linked with a library, whether statically or using 933 a shared library, the combination of the two is legally speaking a 934 combined work, a derivative of the original library. The ordinary 935 General Public License therefore permits such linking only if the 936 entire combination fits its criteria of freedom. The Lesser General 937 Public License permits more lax criteria for linking other code with 938 the library. 939 940 We call this license the "Lesser" General Public License because it 941 does Less to protect the user's freedom than the ordinary General 942 Public License. It also provides other free software developers Less 943 of an advantage over competing non-free programs. These disadvantages 944 are the reason we use the ordinary General Public License for many 945 libraries. However, the Lesser license provides advantages in certain 946 special circumstances. 947 948 For example, on rare occasions, there may be a special need to 949 encourage the widest possible use of a certain library, so that it becomes 950 a de-facto standard. To achieve this, non-free programs must be 951 allowed to use the library. A more frequent case is that a free 952 library does the same job as widely used non-free libraries. In this 953 case, there is little to gain by limiting the free library to free 954 software only, so we use the Lesser General Public License. 955 956 In other cases, permission to use a particular library in non-free 957 programs enables a greater number of people to use a large body of 958 free software. For example, permission to use the GNU C Library in 959 non-free programs enables many more people to use the whole GNU 960 operating system, as well as its variant, the GNU/Linux operating 961 system. 962 963 Although the Lesser General Public License is Less protective of the 964 users' freedom, it does ensure that the user of a program that is 965 linked with the Library has the freedom and the wherewithal to run 966 that program using a modified version of the Library. 967 968 The precise terms and conditions for copying, distribution and 969 modification follow. Pay close attention to the difference between a 970 "work based on the library" and a "work that uses the library". The 971 former contains code derived from the library, whereas the latter must 972 be combined with the library in order to run. 973 975 GNU LESSER GENERAL PUBLIC LICENSE 976 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 977 978 0. This License Agreement applies to any software library or other 979 program which contains a notice placed by the copyright holder or 980 other authorized party saying it may be distributed under the terms of 981 this Lesser General Public License (also called "this License"). 982 Each licensee is addressed as "you". 983 984 A "library" means a collection of software functions and/or data 985 prepared so as to be conveniently linked with application programs 986 (which use some of those functions and data) to form executables. 987 988 The "Library", below, refers to any such software library or work 989 which has been distributed under these terms. A "work based on the 990 Library" means either the Library or any derivative work under 991 copyright law: that is to say, a work containing the Library or a 992 portion of it, either verbatim or with modifications and/or translated 993 straightforwardly into another language. (Hereinafter, translation is 994 included without limitation in the term "modification".) 995 996 "Source code" for a work means the preferred form of the work for 997 making modifications to it. For a library, complete source code means 998 all the source code for all modules it contains, plus any associated 999 interface definition files, plus the scripts used to control compilation 1000 and installation of the library. 1001 1002 Activities other than copying, distribution and modification are not 1003 covered by this License; they are outside its scope. The act of 1004 running a program using the Library is not restricted, and output from 1005 such a program is covered only if its contents constitute a work based 1006 on the Library (independent of the use of the Library in a tool for 1007 writing it). Whether that is true depends on what the Library does 1008 and what the program that uses the Library does. 1009 1010 1. You may copy and distribute verbatim copies of the Library's 1011 complete source code as you receive it, in any medium, provided that 1012 you conspicuously and appropriately publish on each copy an 1013 appropriate copyright notice and disclaimer of warranty; keep intact 1014 all the notices that refer to this License and to the absence of any 1015 warranty; and distribute a copy of this License along with the 1016 Library. 1017 1018 You may charge a fee for the physical act of transferring a copy, 1019 and you may at your option offer warranty protection in exchange for a 1020 fee. 1021 1023 2. You may modify your copy or copies of the Library or any portion 1024 of it, thus forming a work based on the Library, and copy and 1025 distribute such modifications or work under the terms of Section 1 1026 above, provided that you also meet all of these conditions: 1027 1028 a) The modified work must itself be a software library. 1029 1030 b) You must cause the files modified to carry prominent notices 1031 stating that you changed the files and the date of any change. 1032 1033 c) You must cause the whole of the work to be licensed at no 1034 charge to all third parties under the terms of this License. 1035 1036 d) If a facility in the modified Library refers to a function or a 1037 table of data to be supplied by an application program that uses 1038 the facility, other than as an argument passed when the facility 1039 is invoked, then you must make a good faith effort to ensure that, 1040 in the event an application does not supply such function or 1041 table, the facility still operates, and performs whatever part of 1042 its purpose remains meaningful. 1043 1044 (For example, a function in a library to compute square roots has 1045 a purpose that is entirely well-defined independent of the 1046 application. Therefore, Subsection 2d requires that any 1047 application-supplied function or table used by this function must 1048 be optional: if the application does not supply it, the square 1049 root function must still compute square roots.) 1050 1051 These requirements apply to the modified work as a whole. If 1052 identifiable sections of that work are not derived from the Library, 1053 and can be reasonably considered independent and separate works in 1054 themselves, then this License, and its terms, do not apply to those 1055 sections when you distribute them as separate works. But when you 1056 distribute the same sections as part of a whole which is a work based 1057 on the Library, the distribution of the whole must be on the terms of 1058 this License, whose permissions for other licensees extend to the 1059 entire whole, and thus to each and every part regardless of who wrote 1060 it. 1061 1062 Thus, it is not the intent of this section to claim rights or contest 1063 your rights to work written entirely by you; rather, the intent is to 1064 exercise the right to control the distribution of derivative or 1065 collective works based on the Library. 1066 1067 In addition, mere aggregation of another work not based on the Library 1068 with the Library (or with a work based on the Library) on a volume of 1069 a storage or distribution medium does not bring the other work under 1070 the scope of this License. 1071 1072 3. You may opt to apply the terms of the ordinary GNU General Public 1073 License instead of this License to a given copy of the Library. To do 1074 this, you must alter all the notices that refer to this License, so 1075 that they refer to the ordinary GNU General Public License, version 2, 1076 instead of to this License. (If a newer version than version 2 of the 1077 ordinary GNU General Public License has appeared, then you can specify 1078 that version instead if you wish.) Do not make any other change in 1079 these notices. 1080 1082 Once this change is made in a given copy, it is irreversible for 1083 that copy, so the ordinary GNU General Public License applies to all 1084 subsequent copies and derivative works made from that copy. 1085 1086 This option is useful when you wish to copy part of the code of 1087 the Library into a program that is not a library. 1088 1089 4. You may copy and distribute the Library (or a portion or 1090 derivative of it, under Section 2) in object code or executable form 1091 under the terms of Sections 1 and 2 above provided that you accompany 1092 it with the complete corresponding machine-readable source code, which 1093 must be distributed under the terms of Sections 1 and 2 above on a 1094 medium customarily used for software interchange. 1095 1096 If distribution of object code is made by offering access to copy 1097 from a designated place, then offering equivalent access to copy the 1098 source code from the same place satisfies the requirement to 1099 distribute the source code, even though third parties are not 1100 compelled to copy the source along with the object code. 1101 1102 5. A program that contains no derivative of any portion of the 1103 Library, but is designed to work with the Library by being compiled or 1104 linked with it, is called a "work that uses the Library". Such a 1105 work, in isolation, is not a derivative work of the Library, and 1106 therefore falls outside the scope of this License. 1107 1108 However, linking a "work that uses the Library" with the Library 1109 creates an executable that is a derivative of the Library (because it 1110 contains portions of the Library), rather than a "work that uses the 1111 library". The executable is therefore covered by this License. 1112 Section 6 states terms for distribution of such executables. 1113 1114 When a "work that uses the Library" uses material from a header file 1115 that is part of the Library, the object code for the work may be a 1116 derivative work of the Library even though the source code is not. 1117 Whether this is true is especially significant if the work can be 1118 linked without the Library, or if the work is itself a library. The 1119 threshold for this to be true is not precisely defined by law. 1120 1121 If such an object file uses only numerical parameters, data 1122 structure layouts and accessors, and small macros and small inline 1123 functions (ten lines or less in length), then the use of the object 1124 file is unrestricted, regardless of whether it is legally a derivative 1125 work. (Executables containing this object code plus portions of the 1126 Library will still fall under Section 6.) 1127 1128 Otherwise, if the work is a derivative of the Library, you may 1129 distribute the object code for the work under the terms of Section 6. 1130 Any executables containing that work also fall under Section 6, 1131 whether or not they are linked directly with the Library itself. 1132 1134 6. As an exception to the Sections above, you may also combine or 1135 link a "work that uses the Library" with the Library to produce a 1136 work containing portions of the Library, and distribute that work 1137 under terms of your choice, provided that the terms permit 1138 modification of the work for the customer's own use and reverse 1139 engineering for debugging such modifications. 1140 1141 You must give prominent notice with each copy of the work that the 1142 Library is used in it and that the Library and its use are covered by 1143 this License. You must supply a copy of this License. If the work 1144 during execution displays copyright notices, you must include the 1145 copyright notice for the Library among them, as well as a reference 1146 directing the user to the copy of this License. Also, you must do one 1147 of these things: 1148 1149 a) Accompany the work with the complete corresponding 1150 machine-readable source code for the Library including whatever 1151 changes were used in the work (which must be distributed under 1152 Sections 1 and 2 above); and, if the work is an executable linked 1153 with the Library, with the complete machine-readable "work that 1154 uses the Library", as object code and/or source code, so that the 1155 user can modify the Library and then relink to produce a modified 1156 executable containing the modified Library. (It is understood 1157 that the user who changes the contents of definitions files in the 1158 Library will not necessarily be able to recompile the application 1159 to use the modified definitions.) 1160 1161 b) Use a suitable shared library mechanism for linking with the 1162 Library. A suitable mechanism is one that (1) uses at run time a 1163 copy of the library already present on the user's computer system, 1164 rather than copying library functions into the executable, and (2) 1165 will operate properly with a modified version of the library, if 1166 the user installs one, as long as the modified version is 1167 interface-compatible with the version that the work was made with. 1168 1169 c) Accompany the work with a written offer, valid for at 1170 least three years, to give the same user the materials 1171 specified in Subsection 6a, above, for a charge no more 1172 than the cost of performing this distribution. 1173 1174 d) If distribution of the work is made by offering access to copy 1175 from a designated place, offer equivalent access to copy the above 1176 specified materials from the same place. 1177 1178 e) Verify that the user has already received a copy of these 1179 materials or that you have already sent this user a copy. 1180 1181 For an executable, the required form of the "work that uses the 1182 Library" must include any data and utility programs needed for 1183 reproducing the executable from it. However, as a special exception, 1184 the materials to be distributed need not include anything that is 1185 normally distributed (in either source or binary form) with the major 1186 components (compiler, kernel, and so on) of the operating system on 1187 which the executable runs, unless that component itself accompanies 1188 the executable. 1189 1190 It may happen that this requirement contradicts the license 1191 restrictions of other proprietary libraries that do not normally 1192 accompany the operating system. Such a contradiction means you cannot 1193 use both them and the Library together in an executable that you 1194 distribute. 1195 1197 7. You may place library facilities that are a work based on the 1198 Library side-by-side in a single library together with other library 1199 facilities not covered by this License, and distribute such a combined 1200 library, provided that the separate distribution of the work based on 1201 the Library and of the other library facilities is otherwise 1202 permitted, and provided that you do these two things: 1203 1204 a) Accompany the combined library with a copy of the same work 1205 based on the Library, uncombined with any other library 1206 facilities. This must be distributed under the terms of the 1207 Sections above. 1208 1209 b) Give prominent notice with the combined library of the fact 1210 that part of it is a work based on the Library, and explaining 1211 where to find the accompanying uncombined form of the same work. 1212 1213 8. You may not copy, modify, sublicense, link with, or distribute 1214 the Library except as expressly provided under this License. Any 1215 attempt otherwise to copy, modify, sublicense, link with, or 1216 distribute the Library is void, and will automatically terminate your 1217 rights under this License. However, parties who have received copies, 1218 or rights, from you under this License will not have their licenses 1219 terminated so long as such parties remain in full compliance. 1220 1221 9. You are not required to accept this License, since you have not 1222 signed it. However, nothing else grants you permission to modify or 1223 distribute the Library or its derivative works. These actions are 1224 prohibited by law if you do not accept this License. Therefore, by 1225 modifying or distributing the Library (or any work based on the 1226 Library), you indicate your acceptance of this License to do so, and 1227 all its terms and conditions for copying, distributing or modifying 1228 the Library or works based on it. 1229 1230 10. Each time you redistribute the Library (or any work based on the 1231 Library), the recipient automatically receives a license from the 1232 original licensor to copy, distribute, link with or modify the Library 1233 subject to these terms and conditions. You may not impose any further 1234 restrictions on the recipients' exercise of the rights granted herein. 1235 You are not responsible for enforcing compliance by third parties with 1236 this License. 1237 1239 11. If, as a consequence of a court judgment or allegation of patent 1240 infringement or for any other reason (not limited to patent issues), 1241 conditions are imposed on you (whether by court order, agreement or 1242 otherwise) that contradict the conditions of this License, they do not 1243 excuse you from the conditions of this License. If you cannot 1244 distribute so as to satisfy simultaneously your obligations under this 1245 License and any other pertinent obligations, then as a consequence you 1246 may not distribute the Library at all. For example, if a patent 1247 license would not permit royalty-free redistribution of the Library by 1248 all those who receive copies directly or indirectly through you, then 1249 the only way you could satisfy both it and this License would be to 1250 refrain entirely from distribution of the Library. 1251 1252 If any portion of this section is held invalid or unenforceable under any 1253 particular circumstance, the balance of the section is intended to apply, 1254 and the section as a whole is intended to apply in other circumstances. 1255 1256 It is not the purpose of this section to induce you to infringe any 1257 patents or other property right claims or to contest validity of any 1258 such claims; this section has the sole purpose of protecting the 1259 integrity of the free software distribution system which is 1260 implemented by public license practices. Many people have made 1261 generous contributions to the wide range of software distributed 1262 through that system in reliance on consistent application of that 1263 system; it is up to the author/donor to decide if he or she is willing 1264 to distribute software through any other system and a licensee cannot 1265 impose that choice. 1266 1267 This section is intended to make thoroughly clear what is believed to 1268 be a consequence of the rest of this License. 1269 1270 12. If the distribution and/or use of the Library is restricted in 1271 certain countries either by patents or by copyrighted interfaces, the 1272 original copyright holder who places the Library under this License may add 1273 an explicit geographical distribution limitation excluding those countries, 1274 so that distribution is permitted only in or among countries not thus 1275 excluded. In such case, this License incorporates the limitation as if 1276 written in the body of this License. 1277 1278 13. The Free Software Foundation may publish revised and/or new 1279 versions of the Lesser General Public License from time to time. 1280 Such new versions will be similar in spirit to the present version, 1281 but may differ in detail to address new problems or concerns. 1282 1283 Each version is given a distinguishing version number. If the Library 1284 specifies a version number of this License which applies to it and 1285 "any later version", you have the option of following the terms and 1286 conditions either of that version or of any later version published by 1287 the Free Software Foundation. If the Library does not specify a 1288 license version number, you may choose any version ever published by 1289 the Free Software Foundation. 1290 1292 14. If you wish to incorporate parts of the Library into other free 1293 programs whose distribution conditions are incompatible with these, 1294 write to the author to ask for permission. For software which is 1295 copyrighted by the Free Software Foundation, write to the Free 1296 Software Foundation; we sometimes make exceptions for this. Our 1297 decision will be guided by the two goals of preserving the free status 1298 of all derivatives of our free software and of promoting the sharing 1299 and reuse of software generally. 1300 1301 NO WARRANTY 1302 1303 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 1304 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 1305 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 1306 OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 1307 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 1308 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1309 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 1310 LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 1311 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 1312 1313 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 1314 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 1315 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 1316 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 1317 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 1318 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 1319 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 1320 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 1321 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 1322 DAMAGES. 1323 1324 END OF TERMS AND CONDITIONS 1325 1327 How to Apply These Terms to Your New Libraries 1328 1329 If you develop a new library, and you want it to be of the greatest 1330 possible use to the public, we recommend making it free software that 1331 everyone can redistribute and change. You can do so by permitting 1332 redistribution under these terms (or, alternatively, under the terms of the 1333 ordinary General Public License). 1334 1335 To apply these terms, attach the following notices to the library. It is 1336 safest to attach them to the start of each source file to most effectively 1337 convey the exclusion of warranty; and each file should have at least the 1338 "copyright" line and a pointer to where the full notice is found. 1339 1340 <one line to give the library's name and a brief idea of what it does.> 1341 Copyright (C) <year> <name of author> 1342 1343 This library is free software; you can redistribute it and/or 1344 modify it under the terms of the GNU Lesser General Public 1345 License as published by the Free Software Foundation; either 1346 version 2.1 of the License, or (at your option) any later version. 1347 1348 This library is distributed in the hope that it will be useful, 1349 but WITHOUT ANY WARRANTY; without even the implied warranty of 1350 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1351 Lesser General Public License for more details. 1352 1353 You should have received a copy of the GNU Lesser General Public 1354 License along with this library; if not, write to the Free Software 1355 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 1356 1357 Also add information on how to contact you by electronic and paper mail. 1358 1359 You should also get your employer (if you work as a programmer) or your 1360 school, if any, to sign a "copyright disclaimer" for the library, if 1361 necessary. Here is a sample; alter the names: 1362 1363 Yoyodyne, Inc., hereby disclaims all copyright interest in the 1364 library `Frob' (a library for tweaking knobs) written by James Random Hacker. 1365 1366 <signature of Ty Coon>, 1 April 1990 1367 Ty Coon, President of Vice 1368 1369 That's all there is to it! 1370 1371 1372 GNU GENERAL PUBLIC LICENSE 1373 Version 2, June 1991 1374 1375 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 1376 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 1377 Everyone is permitted to copy and distribute verbatim copies 1378 of this license document, but changing it is not allowed. 1379 1380 Preamble 1381 1382 The licenses for most software are designed to take away your 1383 freedom to share and change it. By contrast, the GNU General Public 1384 License is intended to guarantee your freedom to share and change free 1385 software--to make sure the software is free for all its users. This 1386 General Public License applies to most of the Free Software 1387 Foundation's software and to any other program whose authors commit to 1388 using it. (Some other Free Software Foundation software is covered by 1389 the GNU Library General Public License instead.) You can apply it to 1390 your programs, too. 1391 1392 When we speak of free software, we are referring to freedom, not 1393 price. Our General Public Licenses are designed to make sure that you 1394 have the freedom to distribute copies of free software (and charge for 1395 this service if you wish), that you receive source code or can get it 1396 if you want it, that you can change the software or use pieces of it 1397 in new free programs; and that you know you can do these things. 1398 1399 To protect your rights, we need to make restrictions that forbid 1400 anyone to deny you these rights or to ask you to surrender the rights. 1401 These restrictions translate to certain responsibilities for you if you 1402 distribute copies of the software, or if you modify it. 1403 1404 For example, if you distribute copies of such a program, whether 1405 gratis or for a fee, you must give the recipients all the rights that 1406 you have. You must make sure that they, too, receive or can get the 1407 source code. And you must show them these terms so they know their 1408 rights. 1409 1410 We protect your rights with two steps: (1) copyright the software, and 1411 (2) offer you this license which gives you legal permission to copy, 1412 distribute and/or modify the software. 1413 1414 Also, for each author's protection and ours, we want to make certain 1415 that everyone understands that there is no warranty for this free 1416 software. If the software is modified by someone else and passed on, we 1417 want its recipients to know that what they have is not the original, so 1418 that any problems introduced by others will not reflect on the original 1419 authors' reputations. 1420 1421 Finally, any free program is threatened constantly by software 1422 patents. We wish to avoid the danger that redistributors of a free 1423 program will individually obtain patent licenses, in effect making the 1424 program proprietary. To prevent this, we have made it clear that any 1425 patent must be licensed for everyone's free use or not licensed at all. 1426 1427 The precise terms and conditions for copying, distribution and 1428 modification follow. 1429 1431 GNU GENERAL PUBLIC LICENSE 1432 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 1433 1434 0. This License applies to any program or other work which contains 1435 a notice placed by the copyright holder saying it may be distributed 1436 under the terms of this General Public License. The "Program", below, 1437 refers to any such program or work, and a "work based on the Program" 1438 means either the Program or any derivative work under copyright law: 1439 that is to say, a work containing the Program or a portion of it, 1440 either verbatim or with modifications and/or translated into another 1441 language. (Hereinafter, translation is included without limitation in 1442 the term "modification".) Each licensee is addressed as "you". 1443 1444 Activities other than copying, distribution and modification are not 1445 covered by this License; they are outside its scope. The act of 1446 running the Program is not restricted, and the output from the Program 1447 is covered only if its contents constitute a work based on the 1448 Program (independent of having been made by running the Program). 1449 Whether that is true depends on what the Program does. 1450 1451 1. You may copy and distribute verbatim copies of the Program's 1452 source code as you receive it, in any medium, provided that you 1453 conspicuously and appropriately publish on each copy an appropriate 1454 copyright notice and disclaimer of warranty; keep intact all the 1455 notices that refer to this License and to the absence of any warranty; 1456 and give any other recipients of the Program a copy of this License 1457 along with the Program. 1458 1459 You may charge a fee for the physical act of transferring a copy, and 1460 you may at your option offer warranty protection in exchange for a fee. 1461 1462 2. You may modify your copy or copies of the Program or any portion 1463 of it, thus forming a work based on the Program, and copy and 1464 distribute such modifications or work under the terms of Section 1 1465 above, provided that you also meet all of these conditions: 1466 1467 a) You must cause the modified files to carry prominent notices 1468 stating that you changed the files and the date of any change. 1469 1470 b) You must cause any work that you distribute or publish, that in 1471 whole or in part contains or is derived from the Program or any 1472 part thereof, to be licensed as a whole at no charge to all third 1473 parties under the terms of this License. 1474 1475 c) If the modified program normally reads commands interactively 1476 when run, you must cause it, when started running for such 1477 interactive use in the most ordinary way, to print or display an 1478 announcement including an appropriate copyright notice and a 1479 notice that there is no warranty (or else, saying that you provide 1480 a warranty) and that users may redistribute the program under 1481 these conditions, and telling the user how to view a copy of this 1482 License. (Exception: if the Program itself is interactive but 1483 does not normally print such an announcement, your work based on 1484 the Program is not required to print an announcement.) 1485 1487 These requirements apply to the modified work as a whole. If 1488 identifiable sections of that work are not derived from the Program, 1489 and can be reasonably considered independent and separate works in 1490 themselves, then this License, and its terms, do not apply to those 1491 sections when you distribute them as separate works. But when you 1492 distribute the same sections as part of a whole which is a work based 1493 on the Program, the distribution of the whole must be on the terms of 1494 this License, whose permissions for other licensees extend to the 1495 entire whole, and thus to each and every part regardless of who wrote it. 1496 1497 Thus, it is not the intent of this section to claim rights or contest 1498 your rights to work written entirely by you; rather, the intent is to 1499 exercise the right to control the distribution of derivative or 1500 collective works based on the Program. 1501 1502 In addition, mere aggregation of another work not based on the Program 1503 with the Program (or with a work based on the Program) on a volume of 1504 a storage or distribution medium does not bring the other work under 1505 the scope of this License. 1506 1507 3. You may copy and distribute the Program (or a work based on it, 1508 under Section 2) in object code or executable form under the terms of 1509 Sections 1 and 2 above provided that you also do one of the following: 1510 1511 a) Accompany it with the complete corresponding machine-readable 1512 source code, which must be distributed under the terms of Sections 1513 1 and 2 above on a medium customarily used for software interchange; or, 1514 1515 b) Accompany it with a written offer, valid for at least three 1516 years, to give any third party, for a charge no more than your 1517 cost of physically performing source distribution, a complete 1518 machine-readable copy of the corresponding source code, to be 1519 distributed under the terms of Sections 1 and 2 above on a medium 1520 customarily used for software interchange; or, 1521 1522 c) Accompany it with the information you received as to the offer 1523 to distribute corresponding source code. (This alternative is 1524 allowed only for noncommercial distribution and only if you 1525 received the program in object code or executable form with such 1526 an offer, in accord with Subsection b above.) 1527 1528 The source code for a work means the preferred form of the work for 1529 making modifications to it. For an executable work, complete source 1530 code means all the source code for all modules it contains, plus any 1531 associated interface definition files, plus the scripts used to 1532 control compilation and installation of the executable. However, as a 1533 special exception, the source code distributed need not include 1534 anything that is normally distributed (in either source or binary 1535 form) with the major components (compiler, kernel, and so on) of the 1536 operating system on which the executable runs, unless that component 1537 itself accompanies the executable. 1538 1539 If distribution of executable or object code is made by offering 1540 access to copy from a designated place, then offering equivalent 1541 access to copy the source code from the same place counts as 1542 distribution of the source code, even though third parties are not 1543 compelled to copy the source along with the object code. 1544 1546 4. You may not copy, modify, sublicense, or distribute the Program 1547 except as expressly provided under this License. Any attempt 1548 otherwise to copy, modify, sublicense or distribute the Program is 1549 void, and will automatically terminate your rights under this License. 1550 However, parties who have received copies, or rights, from you under 1551 this License will not have their licenses terminated so long as such 1552 parties remain in full compliance. 1553 1554 5. You are not required to accept this License, since you have not 1555 signed it. However, nothing else grants you permission to modify or 1556 distribute the Program or its derivative works. These actions are 1557 prohibited by law if you do not accept this License. Therefore, by 1558 modifying or distributing the Program (or any work based on the 1559 Program), you indicate your acceptance of this License to do so, and 1560 all its terms and conditions for copying, distributing or modifying 1561 the Program or works based on it. 1562 1563 6. Each time you redistribute the Program (or any work based on the 1564 Program), the recipient automatically receives a license from the 1565 original licensor to copy, distribute or modify the Program subject to 1566 these terms and conditions. You may not impose any further 1567 restrictions on the recipients' exercise of the rights granted herein. 1568 You are not responsible for enforcing compliance by third parties to 1569 this License. 1570 1571 7. If, as a consequence of a court judgment or allegation of patent 1572 infringement or for any other reason (not limited to patent issues), 1573 conditions are imposed on you (whether by court order, agreement or 1574 otherwise) that contradict the conditions of this License, they do not 1575 excuse you from the conditions of this License. If you cannot 1576 distribute so as to satisfy simultaneously your obligations under this 1577 License and any other pertinent obligations, then as a consequence you 1578 may not distribute the Program at all. For example, if a patent 1579 license would not permit royalty-free redistribution of the Program by 1580 all those who receive copies directly or indirectly through you, then 1581 the only way you could satisfy both it and this License would be to 1582 refrain entirely from distribution of the Program. 1583 1584 If any portion of this section is held invalid or unenforceable under 1585 any particular circumstance, the balance of the section is intended to 1586 apply and the section as a whole is intended to apply in other 1587 circumstances. 1588 1589 It is not the purpose of this section to induce you to infringe any 1590 patents or other property right claims or to contest validity of any 1591 such claims; this section has the sole purpose of protecting the 1592 integrity of the free software distribution system, which is 1593 implemented by public license practices. Many people have made 1594 generous contributions to the wide range of software distributed 1595 through that system in reliance on consistent application of that 1596 system; it is up to the author/donor to decide if he or she is willing 1597 to distribute software through any other system and a licensee cannot 1598 impose that choice. 1599 1600 This section is intended to make thoroughly clear what is believed to 1601 be a consequence of the rest of this License. 1602 1604 8. If the distribution and/or use of the Program is restricted in 1605 certain countries either by patents or by copyrighted interfaces, the 1606 original copyright holder who places the Program under this License 1607 may add an explicit geographical distribution limitation excluding 1608 those countries, so that distribution is permitted only in or among 1609 countries not thus excluded. In such case, this License incorporates 1610 the limitation as if written in the body of this License. 1611 1612 9. The Free Software Foundation may publish revised and/or new versions 1613 of the General Public License from time to time. Such new versions will 1614 be similar in spirit to the present version, but may differ in detail to 1615 address new problems or concerns. 1616 1617 Each version is given a distinguishing version number. If the Program 1618 specifies a version number of this License which applies to it and "any 1619 later version", you have the option of following the terms and conditions 1620 either of that version or of any later version published by the Free 1621 Software Foundation. If the Program does not specify a version number of 1622 this License, you may choose any version ever published by the Free Software 1623 Foundation. 1624 1625 10. If you wish to incorporate parts of the Program into other free 1626 programs whose distribution conditions are different, write to the author 1627 to ask for permission. For software which is copyrighted by the Free 1628 Software Foundation, write to the Free Software Foundation; we sometimes 1629 make exceptions for this. Our decision will be guided by the two goals 1630 of preserving the free status of all derivatives of our free software and 1631 of promoting the sharing and reuse of software generally. 1632 1633 NO WARRANTY 1634 1635 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 1636 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 1637 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 1638 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 1639 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 1640 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 1641 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 1642 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 1643 REPAIR OR CORRECTION. 1644 1645 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 1646 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 1647 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 1648 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 1649 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 1650 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 1651 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 1652 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 1653 POSSIBILITY OF SUCH DAMAGES. 1654 1655 END OF TERMS AND CONDITIONS 1656 1658 How to Apply These Terms to Your New Programs 1659 1660 If you develop a new program, and you want it to be of the greatest 1661 possible use to the public, the best way to achieve this is to make it 1662 free software which everyone can redistribute and change under these terms. 1663 1664 To do so, attach the following notices to the program. It is safest 1665 to attach them to the start of each source file to most effectively 1666 convey the exclusion of warranty; and each file should have at least 1667 the "copyright" line and a pointer to where the full notice is found. 1668 1669 <one line to give the program's name and a brief idea of what it does.> 1670 Copyright (C) <year> <name of author> 1671 1672 This program is free software; you can redistribute it and/or modify 1673 it under the terms of the GNU General Public License as published by 1674 the Free Software Foundation; either version 2 of the License, or 1675 (at your option) any later version. 1676 1677 This program is distributed in the hope that it will be useful, 1678 but WITHOUT ANY WARRANTY; without even the implied warranty of 1679 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1680 GNU General Public License for more details. 1681 1682 You should have received a copy of the GNU General Public License 1683 along with this program; if not, write to the Free Software 1684 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 1685 1686 1687 Also add information on how to contact you by electronic and paper mail. 1688 1689 If the program is interactive, make it output a short notice like this 1690 when it starts in an interactive mode: 1691 1692 Gnomovision version 69, Copyright (C) year name of author 1693 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 1694 This is free software, and you are welcome to redistribute it 1695 under certain conditions; type `show c' for details. 1696 1697 The hypothetical commands `show w' and `show c' should show the appropriate 1698 parts of the General Public License. Of course, the commands you use may 1699 be called something other than `show w' and `show c'; they could even be 1700 mouse-clicks or menu items--whatever suits your program. 1701 1702 You should also get your employer (if you work as a programmer) or your 1703 school, if any, to sign a "copyright disclaimer" for the program, if 1704 necessary. Here is a sample; alter the names: 1705 1706 Yoyodyne, Inc., hereby disclaims all copyright interest in the program 1707 `Gnomovision' (which makes passes at compilers) written by James Hacker. 1708 1709 <signature of Ty Coon>, 1 April 1989 1710 Ty Coon, President of Vice 1711 1712 This General Public License does not permit incorporating your program into 1713 proprietary programs. If your program is a subroutine library, you may 1714 consider it more useful to permit linking proprietary applications with the 1715 library. If this is what you want to do, use the GNU Library General 1716 Public License instead of this License. 1717 All files are licensed under the FreeBSD license, excepet for thid party 1718 components, which are subject to their respective licenses as specified in 1719 their source files. 1720 1721 FreeBSD License 1722 1723 Copyright 2011 Tresys Technology, LLC. All rights reserved. 1724 1725 Redistribution and use in source and binary forms, with or without 1726 modification, are permitted provided that the following conditions are met: 1727 1728 1. Redistributions of source code must retain the above copyright notice, 1729 this list of conditions and the following disclaimer. 1730 1731 2. Redistributions in binary form must reproduce the above copyright notice, 1732 this list of conditions and the following disclaimer in the documentation 1733 and/or other materials provided with the distribution. 1734 1735 THIS SOFTWARE IS PROVIDED BY TRESYS TECHNOLOGY, LLC ``AS IS'' AND ANY EXPRESS 1736 OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 1737 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO 1738 EVENT SHALL TRESYS TECHNOLOGY, LLC OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 1739 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 1740 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1741 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 1742 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 1743 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 1744 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1745 1746 The views and conclusions contained in the software and documentation are those 1747 of the authors and should not be interpreted as representing official policies, 1748 either expressed or implied, of Tresys Technology, LLC. 1749 GNU GENERAL PUBLIC LICENSE 1750 Version 2, June 1991 1751 1752 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 1753 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 1754 Everyone is permitted to copy and distribute verbatim copies 1755 of this license document, but changing it is not allowed. 1756 1757 Preamble 1758 1759 The licenses for most software are designed to take away your 1760 freedom to share and change it. By contrast, the GNU General Public 1761 License is intended to guarantee your freedom to share and change free 1762 software--to make sure the software is free for all its users. This 1763 General Public License applies to most of the Free Software 1764 Foundation's software and to any other program whose authors commit to 1765 using it. (Some other Free Software Foundation software is covered by 1766 the GNU Library General Public License instead.) You can apply it to 1767 your programs, too. 1768 1769 When we speak of free software, we are referring to freedom, not 1770 price. Our General Public Licenses are designed to make sure that you 1771 have the freedom to distribute copies of free software (and charge for 1772 this service if you wish), that you receive source code or can get it 1773 if you want it, that you can change the software or use pieces of it 1774 in new free programs; and that you know you can do these things. 1775 1776 To protect your rights, we need to make restrictions that forbid 1777 anyone to deny you these rights or to ask you to surrender the rights. 1778 These restrictions translate to certain responsibilities for you if you 1779 distribute copies of the software, or if you modify it. 1780 1781 For example, if you distribute copies of such a program, whether 1782 gratis or for a fee, you must give the recipients all the rights that 1783 you have. You must make sure that they, too, receive or can get the 1784 source code. And you must show them these terms so they know their 1785 rights. 1786 1787 We protect your rights with two steps: (1) copyright the software, and 1788 (2) offer you this license which gives you legal permission to copy, 1789 distribute and/or modify the software. 1790 1791 Also, for each author's protection and ours, we want to make certain 1792 that everyone understands that there is no warranty for this free 1793 software. If the software is modified by someone else and passed on, we 1794 want its recipients to know that what they have is not the original, so 1795 that any problems introduced by others will not reflect on the original 1796 authors' reputations. 1797 1798 Finally, any free program is threatened constantly by software 1799 patents. We wish to avoid the danger that redistributors of a free 1800 program will individually obtain patent licenses, in effect making the 1801 program proprietary. To prevent this, we have made it clear that any 1802 patent must be licensed for everyone's free use or not licensed at all. 1803 1804 The precise terms and conditions for copying, distribution and 1805 modification follow. 1806 1808 GNU GENERAL PUBLIC LICENSE 1809 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 1810 1811 0. This License applies to any program or other work which contains 1812 a notice placed by the copyright holder saying it may be distributed 1813 under the terms of this General Public License. The "Program", below, 1814 refers to any such program or work, and a "work based on the Program" 1815 means either the Program or any derivative work under copyright law: 1816 that is to say, a work containing the Program or a portion of it, 1817 either verbatim or with modifications and/or translated into another 1818 language. (Hereinafter, translation is included without limitation in 1819 the term "modification".) Each licensee is addressed as "you". 1820 1821 Activities other than copying, distribution and modification are not 1822 covered by this License; they are outside its scope. The act of 1823 running the Program is not restricted, and the output from the Program 1824 is covered only if its contents constitute a work based on the 1825 Program (independent of having been made by running the Program). 1826 Whether that is true depends on what the Program does. 1827 1828 1. You may copy and distribute verbatim copies of the Program's 1829 source code as you receive it, in any medium, provided that you 1830 conspicuously and appropriately publish on each copy an appropriate 1831 copyright notice and disclaimer of warranty; keep intact all the 1832 notices that refer to this License and to the absence of any warranty; 1833 and give any other recipients of the Program a copy of this License 1834 along with the Program. 1835 1836 You may charge a fee for the physical act of transferring a copy, and 1837 you may at your option offer warranty protection in exchange for a fee. 1838 1839 2. You may modify your copy or copies of the Program or any portion 1840 of it, thus forming a work based on the Program, and copy and 1841 distribute such modifications or work under the terms of Section 1 1842 above, provided that you also meet all of these conditions: 1843 1844 a) You must cause the modified files to carry prominent notices 1845 stating that you changed the files and the date of any change. 1846 1847 b) You must cause any work that you distribute or publish, that in 1848 whole or in part contains or is derived from the Program or any 1849 part thereof, to be licensed as a whole at no charge to all third 1850 parties under the terms of this License. 1851 1852 c) If the modified program normally reads commands interactively 1853 when run, you must cause it, when started running for such 1854 interactive use in the most ordinary way, to print or display an 1855 announcement including an appropriate copyright notice and a 1856 notice that there is no warranty (or else, saying that you provide 1857 a warranty) and that users may redistribute the program under 1858 these conditions, and telling the user how to view a copy of this 1859 License. (Exception: if the Program itself is interactive but 1860 does not normally print such an announcement, your work based on 1861 the Program is not required to print an announcement.) 1862 1864 These requirements apply to the modified work as a whole. If 1865 identifiable sections of that work are not derived from the Program, 1866 and can be reasonably considered independent and separate works in 1867 themselves, then this License, and its terms, do not apply to those 1868 sections when you distribute them as separate works. But when you 1869 distribute the same sections as part of a whole which is a work based 1870 on the Program, the distribution of the whole must be on the terms of 1871 this License, whose permissions for other licensees extend to the 1872 entire whole, and thus to each and every part regardless of who wrote it. 1873 1874 Thus, it is not the intent of this section to claim rights or contest 1875 your rights to work written entirely by you; rather, the intent is to 1876 exercise the right to control the distribution of derivative or 1877 collective works based on the Program. 1878 1879 In addition, mere aggregation of another work not based on the Program 1880 with the Program (or with a work based on the Program) on a volume of 1881 a storage or distribution medium does not bring the other work under 1882 the scope of this License. 1883 1884 3. You may copy and distribute the Program (or a work based on it, 1885 under Section 2) in object code or executable form under the terms of 1886 Sections 1 and 2 above provided that you also do one of the following: 1887 1888 a) Accompany it with the complete corresponding machine-readable 1889 source code, which must be distributed under the terms of Sections 1890 1 and 2 above on a medium customarily used for software interchange; or, 1891 1892 b) Accompany it with a written offer, valid for at least three 1893 years, to give any third party, for a charge no more than your 1894 cost of physically performing source distribution, a complete 1895 machine-readable copy of the corresponding source code, to be 1896 distributed under the terms of Sections 1 and 2 above on a medium 1897 customarily used for software interchange; or, 1898 1899 c) Accompany it with the information you received as to the offer 1900 to distribute corresponding source code. (This alternative is 1901 allowed only for noncommercial distribution and only if you 1902 received the program in object code or executable form with such 1903 an offer, in accord with Subsection b above.) 1904 1905 The source code for a work means the preferred form of the work for 1906 making modifications to it. For an executable work, complete source 1907 code means all the source code for all modules it contains, plus any 1908 associated interface definition files, plus the scripts used to 1909 control compilation and installation of the executable. However, as a 1910 special exception, the source code distributed need not include 1911 anything that is normally distributed (in either source or binary 1912 form) with the major components (compiler, kernel, and so on) of the 1913 operating system on which the executable runs, unless that component 1914 itself accompanies the executable. 1915 1916 If distribution of executable or object code is made by offering 1917 access to copy from a designated place, then offering equivalent 1918 access to copy the source code from the same place counts as 1919 distribution of the source code, even though third parties are not 1920 compelled to copy the source along with the object code. 1921 1923 4. You may not copy, modify, sublicense, or distribute the Program 1924 except as expressly provided under this License. Any attempt 1925 otherwise to copy, modify, sublicense or distribute the Program is 1926 void, and will automatically terminate your rights under this License. 1927 However, parties who have received copies, or rights, from you under 1928 this License will not have their licenses terminated so long as such 1929 parties remain in full compliance. 1930 1931 5. You are not required to accept this License, since you have not 1932 signed it. However, nothing else grants you permission to modify or 1933 distribute the Program or its derivative works. These actions are 1934 prohibited by law if you do not accept this License. Therefore, by 1935 modifying or distributing the Program (or any work based on the 1936 Program), you indicate your acceptance of this License to do so, and 1937 all its terms and conditions for copying, distributing or modifying 1938 the Program or works based on it. 1939 1940 6. Each time you redistribute the Program (or any work based on the 1941 Program), the recipient automatically receives a license from the 1942 original licensor to copy, distribute or modify the Program subject to 1943 these terms and conditions. You may not impose any further 1944 restrictions on the recipients' exercise of the rights granted herein. 1945 You are not responsible for enforcing compliance by third parties to 1946 this License. 1947 1948 7. If, as a consequence of a court judgment or allegation of patent 1949 infringement or for any other reason (not limited to patent issues), 1950 conditions are imposed on you (whether by court order, agreement or 1951 otherwise) that contradict the conditions of this License, they do not 1952 excuse you from the conditions of this License. If you cannot 1953 distribute so as to satisfy simultaneously your obligations under this 1954 License and any other pertinent obligations, then as a consequence you 1955 may not distribute the Program at all. For example, if a patent 1956 license would not permit royalty-free redistribution of the Program by 1957 all those who receive copies directly or indirectly through you, then 1958 the only way you could satisfy both it and this License would be to 1959 refrain entirely from distribution of the Program. 1960 1961 If any portion of this section is held invalid or unenforceable under 1962 any particular circumstance, the balance of the section is intended to 1963 apply and the section as a whole is intended to apply in other 1964 circumstances. 1965 1966 It is not the purpose of this section to induce you to infringe any 1967 patents or other property right claims or to contest validity of any 1968 such claims; this section has the sole purpose of protecting the 1969 integrity of the free software distribution system, which is 1970 implemented by public license practices. Many people have made 1971 generous contributions to the wide range of software distributed 1972 through that system in reliance on consistent application of that 1973 system; it is up to the author/donor to decide if he or she is willing 1974 to distribute software through any other system and a licensee cannot 1975 impose that choice. 1976 1977 This section is intended to make thoroughly clear what is believed to 1978 be a consequence of the rest of this License. 1979 1981 8. If the distribution and/or use of the Program is restricted in 1982 certain countries either by patents or by copyrighted interfaces, the 1983 original copyright holder who places the Program under this License 1984 may add an explicit geographical distribution limitation excluding 1985 those countries, so that distribution is permitted only in or among 1986 countries not thus excluded. In such case, this License incorporates 1987 the limitation as if written in the body of this License. 1988 1989 9. The Free Software Foundation may publish revised and/or new versions 1990 of the General Public License from time to time. Such new versions will 1991 be similar in spirit to the present version, but may differ in detail to 1992 address new problems or concerns. 1993 1994 Each version is given a distinguishing version number. If the Program 1995 specifies a version number of this License which applies to it and "any 1996 later version", you have the option of following the terms and conditions 1997 either of that version or of any later version published by the Free 1998 Software Foundation. If the Program does not specify a version number of 1999 this License, you may choose any version ever published by the Free Software 2000 Foundation. 2001 2002 10. If you wish to incorporate parts of the Program into other free 2003 programs whose distribution conditions are different, write to the author 2004 to ask for permission. For software which is copyrighted by the Free 2005 Software Foundation, write to the Free Software Foundation; we sometimes 2006 make exceptions for this. Our decision will be guided by the two goals 2007 of preserving the free status of all derivatives of our free software and 2008 of promoting the sharing and reuse of software generally. 2009 2010 NO WARRANTY 2011 2012 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 2013 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 2014 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 2015 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 2016 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2017 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 2018 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 2019 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 2020 REPAIR OR CORRECTION. 2021 2022 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 2023 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 2024 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 2025 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 2026 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 2027 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 2028 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 2029 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 2030 POSSIBILITY OF SUCH DAMAGES. 2031 2032 END OF TERMS AND CONDITIONS 2033 2035 How to Apply These Terms to Your New Programs 2036 2037 If you develop a new program, and you want it to be of the greatest 2038 possible use to the public, the best way to achieve this is to make it 2039 free software which everyone can redistribute and change under these terms. 2040 2041 To do so, attach the following notices to the program. It is safest 2042 to attach them to the start of each source file to most effectively 2043 convey the exclusion of warranty; and each file should have at least 2044 the "copyright" line and a pointer to where the full notice is found. 2045 2046 <one line to give the program's name and a brief idea of what it does.> 2047 Copyright (C) <year> <name of author> 2048 2049 This program is free software; you can redistribute it and/or modify 2050 it under the terms of the GNU General Public License as published by 2051 the Free Software Foundation; either version 2 of the License, or 2052 (at your option) any later version. 2053 2054 This program is distributed in the hope that it will be useful, 2055 but WITHOUT ANY WARRANTY; without even the implied warranty of 2056 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2057 GNU General Public License for more details. 2058 2059 You should have received a copy of the GNU General Public License 2060 along with this program; if not, write to the Free Software 2061 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 2062 2063 2064 Also add information on how to contact you by electronic and paper mail. 2065 2066 If the program is interactive, make it output a short notice like this 2067 when it starts in an interactive mode: 2068 2069 Gnomovision version 69, Copyright (C) year name of author 2070 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 2071 This is free software, and you are welcome to redistribute it 2072 under certain conditions; type `show c' for details. 2073 2074 The hypothetical commands `show w' and `show c' should show the appropriate 2075 parts of the General Public License. Of course, the commands you use may 2076 be called something other than `show w' and `show c'; they could even be 2077 mouse-clicks or menu items--whatever suits your program. 2078 2079 You should also get your employer (if you work as a programmer) or your 2080 school, if any, to sign a "copyright disclaimer" for the program, if 2081 necessary. Here is a sample; alter the names: 2082 2083 Yoyodyne, Inc., hereby disclaims all copyright interest in the program 2084 `Gnomovision' (which makes passes at compilers) written by James Hacker. 2085 2086 <signature of Ty Coon>, 1 April 1989 2087 Ty Coon, President of Vice 2088 2089 This General Public License does not permit incorporating your program into 2090 proprietary programs. If your program is a subroutine library, you may 2091 consider it more useful to permit linking proprietary applications with the 2092 library. If this is what you want to do, use the GNU Library General 2093 Public License instead of this License. 2094