wolffd@0: This library is free software; you can redistribute it and/or wolffd@0: modify it under the terms of the GNU Library General Public wolffd@0: License version 2 as published by the Free Software Foundation. wolffd@0: wolffd@0: This library is distributed in the hope that it will be useful, wolffd@0: but WITHOUT ANY WARRANTY; without even the implied warranty of wolffd@0: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. wolffd@0: wolffd@0: GNU Library General Public License wolffd@0: wolffd@0: ---------------------------------------------------------------------------- wolffd@0: wolffd@0: Table of Contents wolffd@0: wolffd@0: * GNU LIBRARY GENERAL PUBLIC LICENSE wolffd@0: o Preamble wolffd@0: o TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION wolffd@0: wolffd@0: ---------------------------------------------------------------------------- wolffd@0: wolffd@0: GNU LIBRARY GENERAL PUBLIC LICENSE wolffd@0: wolffd@0: Version 2, June 1991 wolffd@0: wolffd@0: Copyright (C) 1991 Free Software Foundation, Inc. wolffd@0: 675 Mass Ave, Cambridge, MA 02139, USA wolffd@0: Everyone is permitted to copy and distribute verbatim copies wolffd@0: of this license document, but changing it is not allowed. wolffd@0: wolffd@0: [This is the first released version of the library GPL. It is wolffd@0: numbered 2 because it goes with version 2 of the ordinary GPL.] wolffd@0: wolffd@0: Preamble wolffd@0: wolffd@0: The licenses for most software are designed to take away your freedom to wolffd@0: share and change it. By contrast, the GNU General Public Licenses are wolffd@0: intended to guarantee your freedom to share and change free software--to wolffd@0: make sure the software is free for all its users. wolffd@0: wolffd@0: This license, the Library General Public License, applies to some specially wolffd@0: designated Free Software Foundation software, and to any other libraries wolffd@0: whose authors decide to use it. You can use it for your libraries, too. wolffd@0: wolffd@0: When we speak of free software, we are referring to freedom, not price. Our wolffd@0: General Public Licenses are designed to make sure that you have the freedom wolffd@0: to distribute copies of free software (and charge for this service if you wolffd@0: wish), that you receive source code or can get it if you want it, that you wolffd@0: can change the software or use pieces of it in new free programs; and that wolffd@0: you know you can do these things. wolffd@0: wolffd@0: To protect your rights, we need to make restrictions that forbid anyone to wolffd@0: deny you these rights or to ask you to surrender the rights. These wolffd@0: restrictions translate to certain responsibilities for you if you distribute wolffd@0: copies of the library, or if you modify it. wolffd@0: wolffd@0: For example, if you distribute copies of the library, whether gratis or for wolffd@0: a fee, you must give the recipients all the rights that we gave you. You wolffd@0: must make sure that they, too, receive or can get the source code. If you wolffd@0: link a program with the library, you must provide complete object files to wolffd@0: the recipients so that they can relink them with the library, after making wolffd@0: changes to the library and recompiling it. And you must show them these wolffd@0: terms so they know their rights. wolffd@0: wolffd@0: Our method of protecting your rights has two steps: (1) copyright the wolffd@0: library, and (2) offer you this license which gives you legal permission to wolffd@0: copy, distribute and/or modify the library. wolffd@0: wolffd@0: Also, for each distributor's protection, we want to make certain that wolffd@0: everyone understands that there is no warranty for this free library. If the wolffd@0: library is modified by someone else and passed on, we want its recipients to wolffd@0: know that what they have is not the original version, so that any problems wolffd@0: introduced by others will not reflect on the original authors' reputations. wolffd@0: wolffd@0: Finally, any free program is threatened constantly by software patents. We wolffd@0: wish to avoid the danger that companies distributing free software will wolffd@0: individually obtain patent licenses, thus in effect transforming the program wolffd@0: into proprietary software. To prevent this, we have made it clear that any wolffd@0: patent must be licensed for everyone's free use or not licensed at all. wolffd@0: wolffd@0: Most GNU software, including some libraries, is covered by the ordinary GNU wolffd@0: General Public License, which was designed for utility programs. This wolffd@0: license, the GNU Library General Public License, applies to certain wolffd@0: designated libraries. This license is quite different from the ordinary one; wolffd@0: be sure to read it in full, and don't assume that anything in it is the same wolffd@0: as in the ordinary license. wolffd@0: wolffd@0: The reason we have a separate public license for some libraries is that they wolffd@0: blur the distinction we usually make between modifying or adding to a wolffd@0: program and simply using it. Linking a program with a library, without wolffd@0: changing the library, is in some sense simply using the library, and is wolffd@0: analogous to running a utility program or application program. However, in a wolffd@0: textual and legal sense, the linked executable is a combined work, a wolffd@0: derivative of the original library, and the ordinary General Public License wolffd@0: treats it as such. wolffd@0: wolffd@0: Because of this blurred distinction, using the ordinary General Public wolffd@0: License for libraries did not effectively promote software sharing, because wolffd@0: most developers did not use the libraries. We concluded that weaker wolffd@0: conditions might promote sharing better. wolffd@0: wolffd@0: However, unrestricted linking of non-free programs would deprive the users wolffd@0: of those programs of all benefit from the free status of the libraries wolffd@0: themselves. This Library General Public License is intended to permit wolffd@0: developers of non-free programs to use free libraries, while preserving your wolffd@0: freedom as a user of such programs to change the free libraries that are wolffd@0: incorporated in them. (We have not seen how to achieve this as regards wolffd@0: changes in header files, but we have achieved it as regards changes in the wolffd@0: actual functions of the Library.) The hope is that this will lead to faster wolffd@0: development of free libraries. wolffd@0: wolffd@0: The precise terms and conditions for copying, distribution and modification wolffd@0: follow. Pay close attention to the difference between a "work based on the wolffd@0: library" and a "work that uses the library". The former contains code wolffd@0: derived from the library, while the latter only works together with the wolffd@0: library. wolffd@0: wolffd@0: Note that it is possible for a library to be covered by the ordinary General wolffd@0: Public License rather than by this special one. wolffd@0: wolffd@0: TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION wolffd@0: wolffd@0: 0. This License Agreement applies to any software library which contains a wolffd@0: notice placed by the copyright holder or other authorized party saying it wolffd@0: may be distributed under the terms of this Library General Public License wolffd@0: (also called "this License"). Each licensee is addressed as "you". wolffd@0: wolffd@0: A "library" means a collection of software functions and/or data prepared so wolffd@0: as to be conveniently linked with application programs (which use some of wolffd@0: those functions and data) to form executables. wolffd@0: wolffd@0: The "Library", below, refers to any such software library or work which has wolffd@0: been distributed under these terms. A "work based on the Library" means wolffd@0: either the Library or any derivative work under copyright law: that is to wolffd@0: say, a work containing the Library or a portion of it, either verbatim or wolffd@0: with modifications and/or translated straightforwardly into another wolffd@0: language. (Hereinafter, translation is included without limitation in the wolffd@0: term "modification".) wolffd@0: wolffd@0: "Source code" for a work means the preferred form of the work for making wolffd@0: modifications to it. For a library, complete source code means all the wolffd@0: source code for all modules it contains, plus any associated interface wolffd@0: definition files, plus the scripts used to control compilation and wolffd@0: installation of the library. wolffd@0: wolffd@0: Activities other than copying, distribution and modification are not covered wolffd@0: by this License; they are outside its scope. The act of running a program wolffd@0: using the Library is not restricted, and output from such a program is wolffd@0: covered only if its contents constitute a work based on the Library wolffd@0: (independent of the use of the Library in a tool for writing it). Whether wolffd@0: that is true depends on what the Library does and what the program that uses wolffd@0: the Library does. wolffd@0: wolffd@0: 1. You may copy and distribute verbatim copies of the Library's complete wolffd@0: source code as you receive it, in any medium, provided that you wolffd@0: conspicuously and appropriately publish on each copy an appropriate wolffd@0: copyright notice and disclaimer of warranty; keep intact all the notices wolffd@0: that refer to this License and to the absence of any warranty; and wolffd@0: distribute a copy of this License along with the Library. wolffd@0: wolffd@0: You may charge a fee for the physical act of transferring a copy, and you wolffd@0: may at your option offer warranty protection in exchange for a fee. wolffd@0: wolffd@0: 2. You may modify your copy or copies of the Library or any portion of it, wolffd@0: thus forming a work based on the Library, and copy and distribute such wolffd@0: modifications or work under the terms of Section 1 above, provided that you wolffd@0: also meet all of these conditions: wolffd@0: wolffd@0: o a) The modified work must itself be a software library. wolffd@0: wolffd@0: o b) You must cause the files modified to carry prominent notices wolffd@0: stating that you changed the files and the date of any change. wolffd@0: wolffd@0: o c) You must cause the whole of the work to be licensed at no wolffd@0: charge to all third parties under the terms of this License. wolffd@0: wolffd@0: o d) If a facility in the modified Library refers to a function or a wolffd@0: table of data to be supplied by an application program that uses wolffd@0: the facility, other than as an argument passed when the facility wolffd@0: is invoked, then you must make a good faith effort to ensure that, wolffd@0: in the event an application does not supply such function or wolffd@0: table, the facility still operates, and performs whatever part of wolffd@0: its purpose remains meaningful. wolffd@0: wolffd@0: (For example, a function in a library to compute square roots has wolffd@0: a purpose that is entirely well-defined independent of the wolffd@0: application. Therefore, Subsection 2d requires that any wolffd@0: application-supplied function or table used by this function must wolffd@0: be optional: if the application does not supply it, the square wolffd@0: root function must still compute square roots.) wolffd@0: wolffd@0: These requirements apply to the modified work as a whole. If identifiable wolffd@0: sections of that work are not derived from the Library, and can be wolffd@0: reasonably considered independent and separate works in themselves, then wolffd@0: this License, and its terms, do not apply to those sections when you wolffd@0: distribute them as separate works. But when you distribute the same sections wolffd@0: as part of a whole which is a work based on the Library, the distribution of wolffd@0: the whole must be on the terms of this License, whose permissions for other wolffd@0: licensees extend to the entire whole, and thus to each and every part wolffd@0: regardless of who wrote it. wolffd@0: wolffd@0: Thus, it is not the intent of this section to claim rights or contest your wolffd@0: rights to work written entirely by you; rather, the intent is to exercise wolffd@0: the right to control the distribution of derivative or collective works wolffd@0: based on the Library. wolffd@0: wolffd@0: In addition, mere aggregation of another work not based on the Library with wolffd@0: the Library (or with a work based on the Library) on a volume of a storage wolffd@0: or distribution medium does not bring the other work under the scope of this wolffd@0: License. wolffd@0: wolffd@0: 3. You may opt to apply the terms of the ordinary GNU General Public License wolffd@0: instead of this License to a given copy of the Library. To do this, you must wolffd@0: alter all the notices that refer to this License, so that they refer to the wolffd@0: ordinary GNU General Public License, version 2, instead of to this License. wolffd@0: (If a newer version than version 2 of the ordinary GNU General Public wolffd@0: License has appeared, then you can specify that version instead if you wolffd@0: wish.) Do not make any other change in these notices. wolffd@0: wolffd@0: Once this change is made in a given copy, it is irreversible for that copy, wolffd@0: so the ordinary GNU General Public License applies to all subsequent copies wolffd@0: and derivative works made from that copy. wolffd@0: wolffd@0: This option is useful when you wish to copy part of the code of the Library wolffd@0: into a program that is not a library. wolffd@0: wolffd@0: 4. You may copy and distribute the Library (or a portion or derivative of wolffd@0: it, under Section 2) in object code or executable form under the terms of wolffd@0: Sections 1 and 2 above provided that you accompany it with the complete wolffd@0: corresponding machine-readable source code, which must be distributed under wolffd@0: the terms of Sections 1 and 2 above on a medium customarily used for wolffd@0: software interchange. wolffd@0: wolffd@0: If distribution of object code is made by offering access to copy from a wolffd@0: designated place, then offering equivalent access to copy the source code wolffd@0: from the same place satisfies the requirement to distribute the source code, wolffd@0: even though third parties are not compelled to copy the source along with wolffd@0: the object code. wolffd@0: wolffd@0: 5. A program that contains no derivative of any portion of the Library, but wolffd@0: is designed to work with the Library by being compiled or linked with it, is wolffd@0: called a "work that uses the Library". Such a work, in isolation, is not a wolffd@0: derivative work of the Library, and therefore falls outside the scope of wolffd@0: this License. wolffd@0: wolffd@0: However, linking a "work that uses the Library" with the Library creates an wolffd@0: executable that is a derivative of the Library (because it contains portions wolffd@0: of the Library), rather than a "work that uses the library". The executable wolffd@0: is therefore covered by this License. Section 6 states terms for wolffd@0: distribution of such executables. wolffd@0: wolffd@0: When a "work that uses the Library" uses material from a header file that is wolffd@0: part of the Library, the object code for the work may be a derivative work wolffd@0: of the Library even though the source code is not. Whether this is true is wolffd@0: especially significant if the work can be linked without the Library, or if wolffd@0: the work is itself a library. The threshold for this to be true is not wolffd@0: precisely defined by law. wolffd@0: wolffd@0: If such an object file uses only numerical parameters, data structure wolffd@0: layouts and accessors, and small macros and small inline functions (ten wolffd@0: lines or less in length), then the use of the object file is unrestricted, wolffd@0: regardless of whether it is legally a derivative work. (Executables wolffd@0: containing this object code plus portions of the Library will still fall wolffd@0: under Section 6.) wolffd@0: wolffd@0: Otherwise, if the work is a derivative of the Library, you may distribute wolffd@0: the object code for the work under the terms of Section 6. Any executables wolffd@0: containing that work also fall under Section 6, whether or not they are wolffd@0: linked directly with the Library itself. wolffd@0: wolffd@0: 6. As an exception to the Sections above, you may also compile or link a wolffd@0: "work that uses the Library" with the Library to produce a work containing wolffd@0: portions of the Library, and distribute that work under terms of your wolffd@0: choice, provided that the terms permit modification of the work for the wolffd@0: customer's own use and reverse engineering for debugging such modifications. wolffd@0: wolffd@0: You must give prominent notice with each copy of the work that the Library wolffd@0: is used in it and that the Library and its use are covered by this License. wolffd@0: You must supply a copy of this License. If the work during execution wolffd@0: displays copyright notices, you must include the copyright notice for the wolffd@0: Library among them, as well as a reference directing the user to the copy of wolffd@0: this License. Also, you must do one of these things: wolffd@0: wolffd@0: o a) Accompany the work with the complete corresponding wolffd@0: machine-readable source code for the Library including whatever wolffd@0: changes were used in the work (which must be distributed under wolffd@0: Sections 1 and 2 above); and, if the work is an executable linked wolffd@0: with the Library, with the complete machine-readable "work that wolffd@0: uses the Library", as object code and/or source code, so that the wolffd@0: user can modify the Library and then relink to produce a modified wolffd@0: executable containing the modified Library. (It is understood that wolffd@0: the user who changes the contents of definitions files in the wolffd@0: Library will not necessarily be able to recompile the application wolffd@0: to use the modified definitions.) wolffd@0: wolffd@0: o b) Accompany the work with a written offer, valid for at least wolffd@0: three years, to give the same user the materials specified in wolffd@0: Subsection 6a, above, for a charge no more than the cost of wolffd@0: performing this distribution. wolffd@0: wolffd@0: o c) If distribution of the work is made by offering access to copy wolffd@0: from a designated place, offer equivalent access to copy the above wolffd@0: specified materials from the same place. wolffd@0: wolffd@0: o d) Verify that the user has already received a copy of these wolffd@0: materials or that you have already sent this user a copy. wolffd@0: wolffd@0: For an executable, the required form of the "work that uses the Library" wolffd@0: must include any data and utility programs needed for reproducing the wolffd@0: executable from it. However, as a special exception, the source code wolffd@0: distributed need not include anything that is normally distributed (in wolffd@0: either source or binary form) with the major components (compiler, kernel, wolffd@0: and so on) of the operating system on which the executable runs, unless that wolffd@0: component itself accompanies the executable. wolffd@0: wolffd@0: It may happen that this requirement contradicts the license restrictions of wolffd@0: other proprietary libraries that do not normally accompany the operating wolffd@0: system. Such a contradiction means you cannot use both them and the Library wolffd@0: together in an executable that you distribute. wolffd@0: wolffd@0: 7. You may place library facilities that are a work based on the Library wolffd@0: side-by-side in a single library together with other library facilities not wolffd@0: covered by this License, and distribute such a combined library, provided wolffd@0: that the separate distribution of the work based on the Library and of the wolffd@0: other library facilities is otherwise permitted, and provided that you do wolffd@0: these two things: wolffd@0: wolffd@0: o a) Accompany the combined library with a copy of the same work wolffd@0: based on the Library, uncombined with any other library wolffd@0: facilities. This must be distributed under the terms of the wolffd@0: Sections above. wolffd@0: wolffd@0: o b) Give prominent notice with the combined library of the fact wolffd@0: that part of it is a work based on the Library, and explaining wolffd@0: where to find the accompanying uncombined form of the same work. wolffd@0: wolffd@0: 8. You may not copy, modify, sublicense, link with, or distribute the wolffd@0: Library except as expressly provided under this License. Any attempt wolffd@0: otherwise to copy, modify, sublicense, link with, or distribute the Library wolffd@0: is void, and will automatically terminate your rights under this License. wolffd@0: However, parties who have received copies, or rights, from you under this wolffd@0: License will not have their licenses terminated so long as such parties wolffd@0: remain in full compliance. wolffd@0: wolffd@0: 9. You are not required to accept this License, since you have not signed wolffd@0: it. However, nothing else grants you permission to modify or distribute the wolffd@0: Library or its derivative works. These actions are prohibited by law if you wolffd@0: do not accept this License. Therefore, by modifying or distributing the wolffd@0: Library (or any work based on the Library), you indicate your acceptance of wolffd@0: this License to do so, and all its terms and conditions for copying, wolffd@0: distributing or modifying the Library or works based on it. wolffd@0: wolffd@0: 10. Each time you redistribute the Library (or any work based on the wolffd@0: Library), the recipient automatically receives a license from the original wolffd@0: licensor to copy, distribute, link with or modify the Library subject to wolffd@0: these terms and conditions. You may not impose any further restrictions on wolffd@0: the recipients' exercise of the rights granted herein. You are not wolffd@0: responsible for enforcing compliance by third parties to this License. wolffd@0: wolffd@0: 11. If, as a consequence of a court judgment or allegation of patent wolffd@0: infringement or for any other reason (not limited to patent issues), wolffd@0: conditions are imposed on you (whether by court order, agreement or wolffd@0: otherwise) that contradict the conditions of this License, they do not wolffd@0: excuse you from the conditions of this License. If you cannot distribute so wolffd@0: as to satisfy simultaneously your obligations under this License and any wolffd@0: other pertinent obligations, then as a consequence you may not distribute wolffd@0: the Library at all. For example, if a patent license would not permit wolffd@0: royalty-free redistribution of the Library by all those who receive copies wolffd@0: directly or indirectly through you, then the only way you could satisfy both wolffd@0: it and this License would be to refrain entirely from distribution of the wolffd@0: Library. wolffd@0: wolffd@0: If any portion of this section is held invalid or unenforceable under any wolffd@0: particular circumstance, the balance of the section is intended to apply, wolffd@0: and the section as a whole is intended to apply in other circumstances. wolffd@0: wolffd@0: It is not the purpose of this section to induce you to infringe any patents wolffd@0: or other property right claims or to contest validity of any such claims; wolffd@0: this section has the sole purpose of protecting the integrity of the free wolffd@0: software distribution system which is implemented by public license wolffd@0: practices. Many people have made generous contributions to the wide range of wolffd@0: software distributed through that system in reliance on consistent wolffd@0: application of that system; it is up to the author/donor to decide if he or wolffd@0: she is willing to distribute software through any other system and a wolffd@0: licensee cannot impose that choice. wolffd@0: wolffd@0: This section is intended to make thoroughly clear what is believed to be a wolffd@0: consequence of the rest of this License. wolffd@0: wolffd@0: 12. If the distribution and/or use of the Library is restricted in certain wolffd@0: countries either by patents or by copyrighted interfaces, the original wolffd@0: copyright holder who places the Library under this License may add an wolffd@0: explicit geographical distribution limitation excluding those countries, so wolffd@0: that distribution is permitted only in or among countries not thus excluded. wolffd@0: In such case, this License incorporates the limitation as if written in the wolffd@0: body of this License. wolffd@0: wolffd@0: 13. The Free Software Foundation may publish revised and/or new versions of wolffd@0: the Library General Public License from time to time. Such new versions will wolffd@0: be similar in spirit to the present version, but may differ in detail to wolffd@0: address new problems or concerns. wolffd@0: wolffd@0: Each version is given a distinguishing version number. If the Library wolffd@0: specifies a version number of this License which applies to it and "any wolffd@0: later version", you have the option of following the terms and conditions wolffd@0: either of that version or of any later version published by the Free wolffd@0: Software Foundation. If the Library does not specify a license version wolffd@0: number, you may choose any version ever published by the Free Software wolffd@0: Foundation. wolffd@0: wolffd@0: 14. If you wish to incorporate parts of the Library into other free programs wolffd@0: whose distribution conditions are incompatible with these, write to the wolffd@0: author to ask for permission. For software which is copyrighted by the Free wolffd@0: Software Foundation, write to the Free Software Foundation; we sometimes wolffd@0: make exceptions for this. Our decision will be guided by the two goals of wolffd@0: preserving the free status of all derivatives of our free software and of wolffd@0: promoting the sharing and reuse of software generally. wolffd@0: wolffd@0: NO WARRANTY wolffd@0: wolffd@0: 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR wolffd@0: THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN wolffd@0: OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES wolffd@0: PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED wolffd@0: OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF wolffd@0: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO wolffd@0: THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY wolffd@0: PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR wolffd@0: CORRECTION. wolffd@0: wolffd@0: 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING wolffd@0: WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR wolffd@0: REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, wolffd@0: INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING wolffd@0: OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO wolffd@0: LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR wolffd@0: THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER wolffd@0: SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE wolffd@0: POSSIBILITY OF SUCH DAMAGES. wolffd@0: wolffd@0: END OF TERMS AND CONDITIONS wolffd@0: wolffd@0: This library is free software; you can redistribute it and/or wolffd@0: modify it under the terms of the GNU Library General Public wolffd@0: License version 2 as published by the Free Software Foundation. wolffd@0: wolffd@0: This library is distributed in the hope that it will be useful, wolffd@0: but WITHOUT ANY WARRANTY; without even the implied warranty of wolffd@0: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. wolffd@0: wolffd@0: