16881f68fSopenharmony_ci                  GNU LESSER GENERAL PUBLIC LICENSE
26881f68fSopenharmony_ci                       Version 2.1, February 1999
36881f68fSopenharmony_ci
46881f68fSopenharmony_ci Copyright (C) 1991, 1999 Free Software Foundation, Inc.
56881f68fSopenharmony_ci 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
66881f68fSopenharmony_ci Everyone is permitted to copy and distribute verbatim copies
76881f68fSopenharmony_ci of this license document, but changing it is not allowed.
86881f68fSopenharmony_ci
96881f68fSopenharmony_ci[This is the first released version of the Lesser GPL.  It also counts
106881f68fSopenharmony_ci as the successor of the GNU Library Public License, version 2, hence
116881f68fSopenharmony_ci the version number 2.1.]
126881f68fSopenharmony_ci
136881f68fSopenharmony_ci                            Preamble
146881f68fSopenharmony_ci
156881f68fSopenharmony_ci  The licenses for most software are designed to take away your
166881f68fSopenharmony_cifreedom to share and change it.  By contrast, the GNU General Public
176881f68fSopenharmony_ciLicenses are intended to guarantee your freedom to share and change
186881f68fSopenharmony_cifree software--to make sure the software is free for all its users.
196881f68fSopenharmony_ci
206881f68fSopenharmony_ci  This license, the Lesser General Public License, applies to some
216881f68fSopenharmony_cispecially designated software packages--typically libraries--of the
226881f68fSopenharmony_ciFree Software Foundation and other authors who decide to use it.  You
236881f68fSopenharmony_cican use it too, but we suggest you first think carefully about whether
246881f68fSopenharmony_cithis license or the ordinary General Public License is the better
256881f68fSopenharmony_cistrategy to use in any particular case, based on the explanations below.
266881f68fSopenharmony_ci
276881f68fSopenharmony_ci  When we speak of free software, we are referring to freedom of use,
286881f68fSopenharmony_cinot price.  Our General Public Licenses are designed to make sure that
296881f68fSopenharmony_ciyou have the freedom to distribute copies of free software (and charge
306881f68fSopenharmony_cifor this service if you wish); that you receive source code or can get
316881f68fSopenharmony_ciit if you want it; that you can change the software and use pieces of
326881f68fSopenharmony_ciit in new free programs; and that you are informed that you can do
336881f68fSopenharmony_cithese things.
346881f68fSopenharmony_ci
356881f68fSopenharmony_ci  To protect your rights, we need to make restrictions that forbid
366881f68fSopenharmony_cidistributors to deny you these rights or to ask you to surrender these
376881f68fSopenharmony_cirights.  These restrictions translate to certain responsibilities for
386881f68fSopenharmony_ciyou if you distribute copies of the library or if you modify it.
396881f68fSopenharmony_ci
406881f68fSopenharmony_ci  For example, if you distribute copies of the library, whether gratis
416881f68fSopenharmony_cior for a fee, you must give the recipients all the rights that we gave
426881f68fSopenharmony_ciyou.  You must make sure that they, too, receive or can get the source
436881f68fSopenharmony_cicode.  If you link other code with the library, you must provide
446881f68fSopenharmony_cicomplete object files to the recipients, so that they can relink them
456881f68fSopenharmony_ciwith the library after making changes to the library and recompiling
466881f68fSopenharmony_ciit.  And you must show them these terms so they know their rights.
476881f68fSopenharmony_ci
486881f68fSopenharmony_ci  We protect your rights with a two-step method: (1) we copyright the
496881f68fSopenharmony_cilibrary, and (2) we offer you this license, which gives you legal
506881f68fSopenharmony_cipermission to copy, distribute and/or modify the library.
516881f68fSopenharmony_ci
526881f68fSopenharmony_ci  To protect each distributor, we want to make it very clear that
536881f68fSopenharmony_cithere is no warranty for the free library.  Also, if the library is
546881f68fSopenharmony_cimodified by someone else and passed on, the recipients should know
556881f68fSopenharmony_cithat what they have is not the original version, so that the original
566881f68fSopenharmony_ciauthor's reputation will not be affected by problems that might be
576881f68fSopenharmony_ciintroduced by others.
586881f68fSopenharmony_ci
596881f68fSopenharmony_ci  Finally, software patents pose a constant threat to the existence of
606881f68fSopenharmony_ciany free program.  We wish to make sure that a company cannot
616881f68fSopenharmony_cieffectively restrict the users of a free program by obtaining a
626881f68fSopenharmony_cirestrictive license from a patent holder.  Therefore, we insist that
636881f68fSopenharmony_ciany patent license obtained for a version of the library must be
646881f68fSopenharmony_ciconsistent with the full freedom of use specified in this license.
656881f68fSopenharmony_ci
666881f68fSopenharmony_ci  Most GNU software, including some libraries, is covered by the
676881f68fSopenharmony_ciordinary GNU General Public License.  This license, the GNU Lesser
686881f68fSopenharmony_ciGeneral Public License, applies to certain designated libraries, and
696881f68fSopenharmony_ciis quite different from the ordinary General Public License.  We use
706881f68fSopenharmony_cithis license for certain libraries in order to permit linking those
716881f68fSopenharmony_cilibraries into non-free programs.
726881f68fSopenharmony_ci
736881f68fSopenharmony_ci  When a program is linked with a library, whether statically or using
746881f68fSopenharmony_cia shared library, the combination of the two is legally speaking a
756881f68fSopenharmony_cicombined work, a derivative of the original library.  The ordinary
766881f68fSopenharmony_ciGeneral Public License therefore permits such linking only if the
776881f68fSopenharmony_cientire combination fits its criteria of freedom.  The Lesser General
786881f68fSopenharmony_ciPublic License permits more lax criteria for linking other code with
796881f68fSopenharmony_cithe library.
806881f68fSopenharmony_ci
816881f68fSopenharmony_ci  We call this license the "Lesser" General Public License because it
826881f68fSopenharmony_cidoes Less to protect the user's freedom than the ordinary General
836881f68fSopenharmony_ciPublic License.  It also provides other free software developers Less
846881f68fSopenharmony_ciof an advantage over competing non-free programs.  These disadvantages
856881f68fSopenharmony_ciare the reason we use the ordinary General Public License for many
866881f68fSopenharmony_cilibraries.  However, the Lesser license provides advantages in certain
876881f68fSopenharmony_cispecial circumstances.
886881f68fSopenharmony_ci
896881f68fSopenharmony_ci  For example, on rare occasions, there may be a special need to
906881f68fSopenharmony_ciencourage the widest possible use of a certain library, so that it becomes
916881f68fSopenharmony_cia de-facto standard.  To achieve this, non-free programs must be
926881f68fSopenharmony_ciallowed to use the library.  A more frequent case is that a free
936881f68fSopenharmony_cilibrary does the same job as widely used non-free libraries.  In this
946881f68fSopenharmony_cicase, there is little to gain by limiting the free library to free
956881f68fSopenharmony_cisoftware only, so we use the Lesser General Public License.
966881f68fSopenharmony_ci
976881f68fSopenharmony_ci  In other cases, permission to use a particular library in non-free
986881f68fSopenharmony_ciprograms enables a greater number of people to use a large body of
996881f68fSopenharmony_cifree software.  For example, permission to use the GNU C Library in
1006881f68fSopenharmony_cinon-free programs enables many more people to use the whole GNU
1016881f68fSopenharmony_cioperating system, as well as its variant, the GNU/Linux operating
1026881f68fSopenharmony_cisystem.
1036881f68fSopenharmony_ci
1046881f68fSopenharmony_ci  Although the Lesser General Public License is Less protective of the
1056881f68fSopenharmony_ciusers' freedom, it does ensure that the user of a program that is
1066881f68fSopenharmony_cilinked with the Library has the freedom and the wherewithal to run
1076881f68fSopenharmony_cithat program using a modified version of the Library.
1086881f68fSopenharmony_ci
1096881f68fSopenharmony_ci  The precise terms and conditions for copying, distribution and
1106881f68fSopenharmony_cimodification follow.  Pay close attention to the difference between a
1116881f68fSopenharmony_ci"work based on the library" and a "work that uses the library".  The
1126881f68fSopenharmony_ciformer contains code derived from the library, whereas the latter must
1136881f68fSopenharmony_cibe combined with the library in order to run.
1146881f68fSopenharmony_ci
1156881f68fSopenharmony_ci                  GNU LESSER GENERAL PUBLIC LICENSE
1166881f68fSopenharmony_ci   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
1176881f68fSopenharmony_ci
1186881f68fSopenharmony_ci  0. This License Agreement applies to any software library or other
1196881f68fSopenharmony_ciprogram which contains a notice placed by the copyright holder or
1206881f68fSopenharmony_ciother authorized party saying it may be distributed under the terms of
1216881f68fSopenharmony_cithis Lesser General Public License (also called "this License").
1226881f68fSopenharmony_ciEach licensee is addressed as "you".
1236881f68fSopenharmony_ci
1246881f68fSopenharmony_ci  A "library" means a collection of software functions and/or data
1256881f68fSopenharmony_ciprepared so as to be conveniently linked with application programs
1266881f68fSopenharmony_ci(which use some of those functions and data) to form executables.
1276881f68fSopenharmony_ci
1286881f68fSopenharmony_ci  The "Library", below, refers to any such software library or work
1296881f68fSopenharmony_ciwhich has been distributed under these terms.  A "work based on the
1306881f68fSopenharmony_ciLibrary" means either the Library or any derivative work under
1316881f68fSopenharmony_cicopyright law: that is to say, a work containing the Library or a
1326881f68fSopenharmony_ciportion of it, either verbatim or with modifications and/or translated
1336881f68fSopenharmony_cistraightforwardly into another language.  (Hereinafter, translation is
1346881f68fSopenharmony_ciincluded without limitation in the term "modification".)
1356881f68fSopenharmony_ci
1366881f68fSopenharmony_ci  "Source code" for a work means the preferred form of the work for
1376881f68fSopenharmony_cimaking modifications to it.  For a library, complete source code means
1386881f68fSopenharmony_ciall the source code for all modules it contains, plus any associated
1396881f68fSopenharmony_ciinterface definition files, plus the scripts used to control compilation
1406881f68fSopenharmony_ciand installation of the library.
1416881f68fSopenharmony_ci
1426881f68fSopenharmony_ci  Activities other than copying, distribution and modification are not
1436881f68fSopenharmony_cicovered by this License; they are outside its scope.  The act of
1446881f68fSopenharmony_cirunning a program using the Library is not restricted, and output from
1456881f68fSopenharmony_cisuch a program is covered only if its contents constitute a work based
1466881f68fSopenharmony_cion the Library (independent of the use of the Library in a tool for
1476881f68fSopenharmony_ciwriting it).  Whether that is true depends on what the Library does
1486881f68fSopenharmony_ciand what the program that uses the Library does.
1496881f68fSopenharmony_ci
1506881f68fSopenharmony_ci  1. You may copy and distribute verbatim copies of the Library's
1516881f68fSopenharmony_cicomplete source code as you receive it, in any medium, provided that
1526881f68fSopenharmony_ciyou conspicuously and appropriately publish on each copy an
1536881f68fSopenharmony_ciappropriate copyright notice and disclaimer of warranty; keep intact
1546881f68fSopenharmony_ciall the notices that refer to this License and to the absence of any
1556881f68fSopenharmony_ciwarranty; and distribute a copy of this License along with the
1566881f68fSopenharmony_ciLibrary.
1576881f68fSopenharmony_ci
1586881f68fSopenharmony_ci  You may charge a fee for the physical act of transferring a copy,
1596881f68fSopenharmony_ciand you may at your option offer warranty protection in exchange for a
1606881f68fSopenharmony_cifee.
1616881f68fSopenharmony_ci
1626881f68fSopenharmony_ci  2. You may modify your copy or copies of the Library or any portion
1636881f68fSopenharmony_ciof it, thus forming a work based on the Library, and copy and
1646881f68fSopenharmony_cidistribute such modifications or work under the terms of Section 1
1656881f68fSopenharmony_ciabove, provided that you also meet all of these conditions:
1666881f68fSopenharmony_ci
1676881f68fSopenharmony_ci    a) The modified work must itself be a software library.
1686881f68fSopenharmony_ci
1696881f68fSopenharmony_ci    b) You must cause the files modified to carry prominent notices
1706881f68fSopenharmony_ci    stating that you changed the files and the date of any change.
1716881f68fSopenharmony_ci
1726881f68fSopenharmony_ci    c) You must cause the whole of the work to be licensed at no
1736881f68fSopenharmony_ci    charge to all third parties under the terms of this License.
1746881f68fSopenharmony_ci
1756881f68fSopenharmony_ci    d) If a facility in the modified Library refers to a function or a
1766881f68fSopenharmony_ci    table of data to be supplied by an application program that uses
1776881f68fSopenharmony_ci    the facility, other than as an argument passed when the facility
1786881f68fSopenharmony_ci    is invoked, then you must make a good faith effort to ensure that,
1796881f68fSopenharmony_ci    in the event an application does not supply such function or
1806881f68fSopenharmony_ci    table, the facility still operates, and performs whatever part of
1816881f68fSopenharmony_ci    its purpose remains meaningful.
1826881f68fSopenharmony_ci
1836881f68fSopenharmony_ci    (For example, a function in a library to compute square roots has
1846881f68fSopenharmony_ci    a purpose that is entirely well-defined independent of the
1856881f68fSopenharmony_ci    application.  Therefore, Subsection 2d requires that any
1866881f68fSopenharmony_ci    application-supplied function or table used by this function must
1876881f68fSopenharmony_ci    be optional: if the application does not supply it, the square
1886881f68fSopenharmony_ci    root function must still compute square roots.)
1896881f68fSopenharmony_ci
1906881f68fSopenharmony_ciThese requirements apply to the modified work as a whole.  If
1916881f68fSopenharmony_ciidentifiable sections of that work are not derived from the Library,
1926881f68fSopenharmony_ciand can be reasonably considered independent and separate works in
1936881f68fSopenharmony_cithemselves, then this License, and its terms, do not apply to those
1946881f68fSopenharmony_cisections when you distribute them as separate works.  But when you
1956881f68fSopenharmony_cidistribute the same sections as part of a whole which is a work based
1966881f68fSopenharmony_cion the Library, the distribution of the whole must be on the terms of
1976881f68fSopenharmony_cithis License, whose permissions for other licensees extend to the
1986881f68fSopenharmony_cientire whole, and thus to each and every part regardless of who wrote
1996881f68fSopenharmony_ciit.
2006881f68fSopenharmony_ci
2016881f68fSopenharmony_ciThus, it is not the intent of this section to claim rights or contest
2026881f68fSopenharmony_ciyour rights to work written entirely by you; rather, the intent is to
2036881f68fSopenharmony_ciexercise the right to control the distribution of derivative or
2046881f68fSopenharmony_cicollective works based on the Library.
2056881f68fSopenharmony_ci
2066881f68fSopenharmony_ciIn addition, mere aggregation of another work not based on the Library
2076881f68fSopenharmony_ciwith the Library (or with a work based on the Library) on a volume of
2086881f68fSopenharmony_cia storage or distribution medium does not bring the other work under
2096881f68fSopenharmony_cithe scope of this License.
2106881f68fSopenharmony_ci
2116881f68fSopenharmony_ci  3. You may opt to apply the terms of the ordinary GNU General Public
2126881f68fSopenharmony_ciLicense instead of this License to a given copy of the Library.  To do
2136881f68fSopenharmony_cithis, you must alter all the notices that refer to this License, so
2146881f68fSopenharmony_cithat they refer to the ordinary GNU General Public License, version 2,
2156881f68fSopenharmony_ciinstead of to this License.  (If a newer version than version 2 of the
2166881f68fSopenharmony_ciordinary GNU General Public License has appeared, then you can specify
2176881f68fSopenharmony_cithat version instead if you wish.)  Do not make any other change in
2186881f68fSopenharmony_cithese notices.
2196881f68fSopenharmony_ci
2206881f68fSopenharmony_ci  Once this change is made in a given copy, it is irreversible for
2216881f68fSopenharmony_cithat copy, so the ordinary GNU General Public License applies to all
2226881f68fSopenharmony_cisubsequent copies and derivative works made from that copy.
2236881f68fSopenharmony_ci
2246881f68fSopenharmony_ci  This option is useful when you wish to copy part of the code of
2256881f68fSopenharmony_cithe Library into a program that is not a library.
2266881f68fSopenharmony_ci
2276881f68fSopenharmony_ci  4. You may copy and distribute the Library (or a portion or
2286881f68fSopenharmony_ciderivative of it, under Section 2) in object code or executable form
2296881f68fSopenharmony_ciunder the terms of Sections 1 and 2 above provided that you accompany
2306881f68fSopenharmony_ciit with the complete corresponding machine-readable source code, which
2316881f68fSopenharmony_cimust be distributed under the terms of Sections 1 and 2 above on a
2326881f68fSopenharmony_cimedium customarily used for software interchange.
2336881f68fSopenharmony_ci
2346881f68fSopenharmony_ci  If distribution of object code is made by offering access to copy
2356881f68fSopenharmony_cifrom a designated place, then offering equivalent access to copy the
2366881f68fSopenharmony_cisource code from the same place satisfies the requirement to
2376881f68fSopenharmony_cidistribute the source code, even though third parties are not
2386881f68fSopenharmony_cicompelled to copy the source along with the object code.
2396881f68fSopenharmony_ci
2406881f68fSopenharmony_ci  5. A program that contains no derivative of any portion of the
2416881f68fSopenharmony_ciLibrary, but is designed to work with the Library by being compiled or
2426881f68fSopenharmony_cilinked with it, is called a "work that uses the Library".  Such a
2436881f68fSopenharmony_ciwork, in isolation, is not a derivative work of the Library, and
2446881f68fSopenharmony_citherefore falls outside the scope of this License.
2456881f68fSopenharmony_ci
2466881f68fSopenharmony_ci  However, linking a "work that uses the Library" with the Library
2476881f68fSopenharmony_cicreates an executable that is a derivative of the Library (because it
2486881f68fSopenharmony_cicontains portions of the Library), rather than a "work that uses the
2496881f68fSopenharmony_cilibrary".  The executable is therefore covered by this License.
2506881f68fSopenharmony_ciSection 6 states terms for distribution of such executables.
2516881f68fSopenharmony_ci
2526881f68fSopenharmony_ci  When a "work that uses the Library" uses material from a header file
2536881f68fSopenharmony_cithat is part of the Library, the object code for the work may be a
2546881f68fSopenharmony_ciderivative work of the Library even though the source code is not.
2556881f68fSopenharmony_ciWhether this is true is especially significant if the work can be
2566881f68fSopenharmony_cilinked without the Library, or if the work is itself a library.  The
2576881f68fSopenharmony_cithreshold for this to be true is not precisely defined by law.
2586881f68fSopenharmony_ci
2596881f68fSopenharmony_ci  If such an object file uses only numerical parameters, data
2606881f68fSopenharmony_cistructure layouts and accessors, and small macros and small inline
2616881f68fSopenharmony_cifunctions (ten lines or less in length), then the use of the object
2626881f68fSopenharmony_cifile is unrestricted, regardless of whether it is legally a derivative
2636881f68fSopenharmony_ciwork.  (Executables containing this object code plus portions of the
2646881f68fSopenharmony_ciLibrary will still fall under Section 6.)
2656881f68fSopenharmony_ci
2666881f68fSopenharmony_ci  Otherwise, if the work is a derivative of the Library, you may
2676881f68fSopenharmony_cidistribute the object code for the work under the terms of Section 6.
2686881f68fSopenharmony_ciAny executables containing that work also fall under Section 6,
2696881f68fSopenharmony_ciwhether or not they are linked directly with the Library itself.
2706881f68fSopenharmony_ci
2716881f68fSopenharmony_ci  6. As an exception to the Sections above, you may also combine or
2726881f68fSopenharmony_cilink a "work that uses the Library" with the Library to produce a
2736881f68fSopenharmony_ciwork containing portions of the Library, and distribute that work
2746881f68fSopenharmony_ciunder terms of your choice, provided that the terms permit
2756881f68fSopenharmony_cimodification of the work for the customer's own use and reverse
2766881f68fSopenharmony_ciengineering for debugging such modifications.
2776881f68fSopenharmony_ci
2786881f68fSopenharmony_ci  You must give prominent notice with each copy of the work that the
2796881f68fSopenharmony_ciLibrary is used in it and that the Library and its use are covered by
2806881f68fSopenharmony_cithis License.  You must supply a copy of this License.  If the work
2816881f68fSopenharmony_ciduring execution displays copyright notices, you must include the
2826881f68fSopenharmony_cicopyright notice for the Library among them, as well as a reference
2836881f68fSopenharmony_cidirecting the user to the copy of this License.  Also, you must do one
2846881f68fSopenharmony_ciof these things:
2856881f68fSopenharmony_ci
2866881f68fSopenharmony_ci    a) Accompany the work with the complete corresponding
2876881f68fSopenharmony_ci    machine-readable source code for the Library including whatever
2886881f68fSopenharmony_ci    changes were used in the work (which must be distributed under
2896881f68fSopenharmony_ci    Sections 1 and 2 above); and, if the work is an executable linked
2906881f68fSopenharmony_ci    with the Library, with the complete machine-readable "work that
2916881f68fSopenharmony_ci    uses the Library", as object code and/or source code, so that the
2926881f68fSopenharmony_ci    user can modify the Library and then relink to produce a modified
2936881f68fSopenharmony_ci    executable containing the modified Library.  (It is understood
2946881f68fSopenharmony_ci    that the user who changes the contents of definitions files in the
2956881f68fSopenharmony_ci    Library will not necessarily be able to recompile the application
2966881f68fSopenharmony_ci    to use the modified definitions.)
2976881f68fSopenharmony_ci
2986881f68fSopenharmony_ci    b) Use a suitable shared library mechanism for linking with the
2996881f68fSopenharmony_ci    Library.  A suitable mechanism is one that (1) uses at run time a
3006881f68fSopenharmony_ci    copy of the library already present on the user's computer system,
3016881f68fSopenharmony_ci    rather than copying library functions into the executable, and (2)
3026881f68fSopenharmony_ci    will operate properly with a modified version of the library, if
3036881f68fSopenharmony_ci    the user installs one, as long as the modified version is
3046881f68fSopenharmony_ci    interface-compatible with the version that the work was made with.
3056881f68fSopenharmony_ci
3066881f68fSopenharmony_ci    c) Accompany the work with a written offer, valid for at
3076881f68fSopenharmony_ci    least three years, to give the same user the materials
3086881f68fSopenharmony_ci    specified in Subsection 6a, above, for a charge no more
3096881f68fSopenharmony_ci    than the cost of performing this distribution.
3106881f68fSopenharmony_ci
3116881f68fSopenharmony_ci    d) If distribution of the work is made by offering access to copy
3126881f68fSopenharmony_ci    from a designated place, offer equivalent access to copy the above
3136881f68fSopenharmony_ci    specified materials from the same place.
3146881f68fSopenharmony_ci
3156881f68fSopenharmony_ci    e) Verify that the user has already received a copy of these
3166881f68fSopenharmony_ci    materials or that you have already sent this user a copy.
3176881f68fSopenharmony_ci
3186881f68fSopenharmony_ci  For an executable, the required form of the "work that uses the
3196881f68fSopenharmony_ciLibrary" must include any data and utility programs needed for
3206881f68fSopenharmony_cireproducing the executable from it.  However, as a special exception,
3216881f68fSopenharmony_cithe materials to be distributed need not include anything that is
3226881f68fSopenharmony_cinormally distributed (in either source or binary form) with the major
3236881f68fSopenharmony_cicomponents (compiler, kernel, and so on) of the operating system on
3246881f68fSopenharmony_ciwhich the executable runs, unless that component itself accompanies
3256881f68fSopenharmony_cithe executable.
3266881f68fSopenharmony_ci
3276881f68fSopenharmony_ci  It may happen that this requirement contradicts the license
3286881f68fSopenharmony_cirestrictions of other proprietary libraries that do not normally
3296881f68fSopenharmony_ciaccompany the operating system.  Such a contradiction means you cannot
3306881f68fSopenharmony_ciuse both them and the Library together in an executable that you
3316881f68fSopenharmony_cidistribute.
3326881f68fSopenharmony_ci
3336881f68fSopenharmony_ci  7. You may place library facilities that are a work based on the
3346881f68fSopenharmony_ciLibrary side-by-side in a single library together with other library
3356881f68fSopenharmony_cifacilities not covered by this License, and distribute such a combined
3366881f68fSopenharmony_cilibrary, provided that the separate distribution of the work based on
3376881f68fSopenharmony_cithe Library and of the other library facilities is otherwise
3386881f68fSopenharmony_cipermitted, and provided that you do these two things:
3396881f68fSopenharmony_ci
3406881f68fSopenharmony_ci    a) Accompany the combined library with a copy of the same work
3416881f68fSopenharmony_ci    based on the Library, uncombined with any other library
3426881f68fSopenharmony_ci    facilities.  This must be distributed under the terms of the
3436881f68fSopenharmony_ci    Sections above.
3446881f68fSopenharmony_ci
3456881f68fSopenharmony_ci    b) Give prominent notice with the combined library of the fact
3466881f68fSopenharmony_ci    that part of it is a work based on the Library, and explaining
3476881f68fSopenharmony_ci    where to find the accompanying uncombined form of the same work.
3486881f68fSopenharmony_ci
3496881f68fSopenharmony_ci  8. You may not copy, modify, sublicense, link with, or distribute
3506881f68fSopenharmony_cithe Library except as expressly provided under this License.  Any
3516881f68fSopenharmony_ciattempt otherwise to copy, modify, sublicense, link with, or
3526881f68fSopenharmony_cidistribute the Library is void, and will automatically terminate your
3536881f68fSopenharmony_cirights under this License.  However, parties who have received copies,
3546881f68fSopenharmony_cior rights, from you under this License will not have their licenses
3556881f68fSopenharmony_citerminated so long as such parties remain in full compliance.
3566881f68fSopenharmony_ci
3576881f68fSopenharmony_ci  9. You are not required to accept this License, since you have not
3586881f68fSopenharmony_cisigned it.  However, nothing else grants you permission to modify or
3596881f68fSopenharmony_cidistribute the Library or its derivative works.  These actions are
3606881f68fSopenharmony_ciprohibited by law if you do not accept this License.  Therefore, by
3616881f68fSopenharmony_cimodifying or distributing the Library (or any work based on the
3626881f68fSopenharmony_ciLibrary), you indicate your acceptance of this License to do so, and
3636881f68fSopenharmony_ciall its terms and conditions for copying, distributing or modifying
3646881f68fSopenharmony_cithe Library or works based on it.
3656881f68fSopenharmony_ci
3666881f68fSopenharmony_ci  10. Each time you redistribute the Library (or any work based on the
3676881f68fSopenharmony_ciLibrary), the recipient automatically receives a license from the
3686881f68fSopenharmony_cioriginal licensor to copy, distribute, link with or modify the Library
3696881f68fSopenharmony_cisubject to these terms and conditions.  You may not impose any further
3706881f68fSopenharmony_cirestrictions on the recipients' exercise of the rights granted herein.
3716881f68fSopenharmony_ciYou are not responsible for enforcing compliance by third parties with
3726881f68fSopenharmony_cithis License.
3736881f68fSopenharmony_ci
3746881f68fSopenharmony_ci  11. If, as a consequence of a court judgment or allegation of patent
3756881f68fSopenharmony_ciinfringement or for any other reason (not limited to patent issues),
3766881f68fSopenharmony_ciconditions are imposed on you (whether by court order, agreement or
3776881f68fSopenharmony_ciotherwise) that contradict the conditions of this License, they do not
3786881f68fSopenharmony_ciexcuse you from the conditions of this License.  If you cannot
3796881f68fSopenharmony_cidistribute so as to satisfy simultaneously your obligations under this
3806881f68fSopenharmony_ciLicense and any other pertinent obligations, then as a consequence you
3816881f68fSopenharmony_cimay not distribute the Library at all.  For example, if a patent
3826881f68fSopenharmony_cilicense would not permit royalty-free redistribution of the Library by
3836881f68fSopenharmony_ciall those who receive copies directly or indirectly through you, then
3846881f68fSopenharmony_cithe only way you could satisfy both it and this License would be to
3856881f68fSopenharmony_cirefrain entirely from distribution of the Library.
3866881f68fSopenharmony_ci
3876881f68fSopenharmony_ciIf any portion of this section is held invalid or unenforceable under any
3886881f68fSopenharmony_ciparticular circumstance, the balance of the section is intended to apply,
3896881f68fSopenharmony_ciand the section as a whole is intended to apply in other circumstances.
3906881f68fSopenharmony_ci
3916881f68fSopenharmony_ciIt is not the purpose of this section to induce you to infringe any
3926881f68fSopenharmony_cipatents or other property right claims or to contest validity of any
3936881f68fSopenharmony_cisuch claims; this section has the sole purpose of protecting the
3946881f68fSopenharmony_ciintegrity of the free software distribution system which is
3956881f68fSopenharmony_ciimplemented by public license practices.  Many people have made
3966881f68fSopenharmony_cigenerous contributions to the wide range of software distributed
3976881f68fSopenharmony_cithrough that system in reliance on consistent application of that
3986881f68fSopenharmony_cisystem; it is up to the author/donor to decide if he or she is willing
3996881f68fSopenharmony_cito distribute software through any other system and a licensee cannot
4006881f68fSopenharmony_ciimpose that choice.
4016881f68fSopenharmony_ci
4026881f68fSopenharmony_ciThis section is intended to make thoroughly clear what is believed to
4036881f68fSopenharmony_cibe a consequence of the rest of this License.
4046881f68fSopenharmony_ci
4056881f68fSopenharmony_ci  12. If the distribution and/or use of the Library is restricted in
4066881f68fSopenharmony_cicertain countries either by patents or by copyrighted interfaces, the
4076881f68fSopenharmony_cioriginal copyright holder who places the Library under this License may add
4086881f68fSopenharmony_cian explicit geographical distribution limitation excluding those countries,
4096881f68fSopenharmony_ciso that distribution is permitted only in or among countries not thus
4106881f68fSopenharmony_ciexcluded.  In such case, this License incorporates the limitation as if
4116881f68fSopenharmony_ciwritten in the body of this License.
4126881f68fSopenharmony_ci
4136881f68fSopenharmony_ci  13. The Free Software Foundation may publish revised and/or new
4146881f68fSopenharmony_civersions of the Lesser General Public License from time to time.
4156881f68fSopenharmony_ciSuch new versions will be similar in spirit to the present version,
4166881f68fSopenharmony_cibut may differ in detail to address new problems or concerns.
4176881f68fSopenharmony_ci
4186881f68fSopenharmony_ciEach version is given a distinguishing version number.  If the Library
4196881f68fSopenharmony_cispecifies a version number of this License which applies to it and
4206881f68fSopenharmony_ci"any later version", you have the option of following the terms and
4216881f68fSopenharmony_ciconditions either of that version or of any later version published by
4226881f68fSopenharmony_cithe Free Software Foundation.  If the Library does not specify a
4236881f68fSopenharmony_cilicense version number, you may choose any version ever published by
4246881f68fSopenharmony_cithe Free Software Foundation.
4256881f68fSopenharmony_ci
4266881f68fSopenharmony_ci  14. If you wish to incorporate parts of the Library into other free
4276881f68fSopenharmony_ciprograms whose distribution conditions are incompatible with these,
4286881f68fSopenharmony_ciwrite to the author to ask for permission.  For software which is
4296881f68fSopenharmony_cicopyrighted by the Free Software Foundation, write to the Free
4306881f68fSopenharmony_ciSoftware Foundation; we sometimes make exceptions for this.  Our
4316881f68fSopenharmony_cidecision will be guided by the two goals of preserving the free status
4326881f68fSopenharmony_ciof all derivatives of our free software and of promoting the sharing
4336881f68fSopenharmony_ciand reuse of software generally.
4346881f68fSopenharmony_ci
4356881f68fSopenharmony_ci                            NO WARRANTY
4366881f68fSopenharmony_ci
4376881f68fSopenharmony_ci  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
4386881f68fSopenharmony_ciWARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
4396881f68fSopenharmony_ciEXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
4406881f68fSopenharmony_ciOTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
4416881f68fSopenharmony_ciKIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
4426881f68fSopenharmony_ciIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
4436881f68fSopenharmony_ciPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
4446881f68fSopenharmony_ciLIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
4456881f68fSopenharmony_ciTHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
4466881f68fSopenharmony_ci
4476881f68fSopenharmony_ci  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
4486881f68fSopenharmony_ciWRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
4496881f68fSopenharmony_ciAND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
4506881f68fSopenharmony_ciFOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
4516881f68fSopenharmony_ciCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
4526881f68fSopenharmony_ciLIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
4536881f68fSopenharmony_ciRENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
4546881f68fSopenharmony_ciFAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
4556881f68fSopenharmony_ciSUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
4566881f68fSopenharmony_ciDAMAGES.
4576881f68fSopenharmony_ci
4586881f68fSopenharmony_ci                     END OF TERMS AND CONDITIONS
4596881f68fSopenharmony_ci
4606881f68fSopenharmony_ci           How to Apply These Terms to Your New Libraries
4616881f68fSopenharmony_ci
4626881f68fSopenharmony_ci  If you develop a new library, and you want it to be of the greatest
4636881f68fSopenharmony_cipossible use to the public, we recommend making it free software that
4646881f68fSopenharmony_cieveryone can redistribute and change.  You can do so by permitting
4656881f68fSopenharmony_ciredistribution under these terms (or, alternatively, under the terms of the
4666881f68fSopenharmony_ciordinary General Public License).
4676881f68fSopenharmony_ci
4686881f68fSopenharmony_ci  To apply these terms, attach the following notices to the library.  It is
4696881f68fSopenharmony_cisafest to attach them to the start of each source file to most effectively
4706881f68fSopenharmony_ciconvey the exclusion of warranty; and each file should have at least the
4716881f68fSopenharmony_ci"copyright" line and a pointer to where the full notice is found.
4726881f68fSopenharmony_ci
4736881f68fSopenharmony_ci    <one line to give the library's name and a brief idea of what it does.>
4746881f68fSopenharmony_ci    Copyright (C) <year>  <name of author>
4756881f68fSopenharmony_ci
4766881f68fSopenharmony_ci    This library is free software; you can redistribute it and/or
4776881f68fSopenharmony_ci    modify it under the terms of the GNU Lesser General Public
4786881f68fSopenharmony_ci    License as published by the Free Software Foundation; either
4796881f68fSopenharmony_ci    version 2.1 of the License, or (at your option) any later version.
4806881f68fSopenharmony_ci
4816881f68fSopenharmony_ci    This library is distributed in the hope that it will be useful,
4826881f68fSopenharmony_ci    but WITHOUT ANY WARRANTY; without even the implied warranty of
4836881f68fSopenharmony_ci    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4846881f68fSopenharmony_ci    Lesser General Public License for more details.
4856881f68fSopenharmony_ci
4866881f68fSopenharmony_ci    You should have received a copy of the GNU Lesser General Public
4876881f68fSopenharmony_ci    License along with this library; if not, write to the Free Software
4886881f68fSopenharmony_ci    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
4896881f68fSopenharmony_ci
4906881f68fSopenharmony_ciAlso add information on how to contact you by electronic and paper mail.
4916881f68fSopenharmony_ci
4926881f68fSopenharmony_ciYou should also get your employer (if you work as a programmer) or your
4936881f68fSopenharmony_cischool, if any, to sign a "copyright disclaimer" for the library, if
4946881f68fSopenharmony_cinecessary.  Here is a sample; alter the names:
4956881f68fSopenharmony_ci
4966881f68fSopenharmony_ci  Yoyodyne, Inc., hereby disclaims all copyright interest in the
4976881f68fSopenharmony_ci  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
4986881f68fSopenharmony_ci
4996881f68fSopenharmony_ci  <signature of Ty Coon>, 1 April 1990
5006881f68fSopenharmony_ci  Ty Coon, President of Vice
5016881f68fSopenharmony_ci
5026881f68fSopenharmony_ciThat's all there is to it!
503