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