Home | History | Annotate | Download | only in mesa
      1 The default Mesa license is as follows:
      2 
      3 Copyright (C) 1999-2007  Brian Paul   All Rights Reserved.
      4 
      5 Permission is hereby granted, free of charge, to any person obtaining a
      6 copy of this software and associated documentation files (the "Software"),
      7 to deal in the Software without restriction, including without limitation
      8 the rights to use, copy, modify, merge, publish, distribute, sublicense,
      9 and/or sell copies of the Software, and to permit persons to whom the
     10 Software is furnished to do so, subject to the following conditions:
     11 
     12 The above copyright notice and this permission notice shall be included
     13 in all copies or substantial portions of the Software.
     14 
     15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
     16 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
     18 BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
     19 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
     20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
     21 
     22 
     23 
     24 Some parts of Mesa are copyrighted under the GNU LGPL.  See the
     25 Mesa/docs/COPYRIGHT file for details.
     26 
     27 The following is the standard GNU copyright file.
     28 ----------------------------------------------------------------------
     29 
     30 
     31 		  GNU LIBRARY GENERAL PUBLIC LICENSE
     32 		       Version 2, June 1991
     33 
     34  Copyright (C) 1991 Free Software Foundation, Inc.
     35                     675 Mass Ave, Cambridge, MA 02139, USA
     36  Everyone is permitted to copy and distribute verbatim copies
     37  of this license document, but changing it is not allowed.
     38 
     39 [This is the first released version of the library GPL.  It is
     40  numbered 2 because it goes with version 2 of the ordinary GPL.]
     41 
     42 			    Preamble
     43 
     44   The licenses for most software are designed to take away your
     45 freedom to share and change it.  By contrast, the GNU General Public
     46 Licenses are intended to guarantee your freedom to share and change
     47 free software--to make sure the software is free for all its users.
     48 
     49   This license, the Library General Public License, applies to some
     50 specially designated Free Software Foundation software, and to any
     51 other libraries whose authors decide to use it.  You can use it for
     52 your libraries, too.
     53 
     54   When we speak of free software, we are referring to freedom, not
     55 price.  Our General Public Licenses are designed to make sure that you
     56 have the freedom to distribute copies of free software (and charge for
     57 this service if you wish), that you receive source code or can get it
     58 if you want it, that you can change the software or use pieces of it
     59 in new free programs; and that you know you can do these things.
     60 
     61   To protect your rights, we need to make restrictions that forbid
     62 anyone to deny you these rights or to ask you to surrender the rights.
     63 These restrictions translate to certain responsibilities for you if
     64 you distribute copies of the library, or if you modify it.
     65 
     66   For example, if you distribute copies of the library, whether gratis
     67 or for a fee, you must give the recipients all the rights that we gave
     68 you.  You must make sure that they, too, receive or can get the source
     69 code.  If you link a program with the library, you must provide
     70 complete object files to the recipients so that they can relink them
     71 with the library, after making changes to the library and recompiling
     72 it.  And you must show them these terms so they know their rights.
     73 
     74   Our method of protecting your rights has two steps: (1) copyright
     75 the library, and (2) offer you this license which gives you legal
     76 permission to copy, distribute and/or modify the library.
     77 
     78   Also, for each distributor's protection, we want to make certain
     79 that everyone understands that there is no warranty for this free
     80 library.  If the library is modified by someone else and passed on, we
     81 want its recipients to know that what they have is not the original
     82 version, so that any problems introduced by others will not reflect on
     83 the original authors' reputations.
     84 
     86   Finally, any free program is threatened constantly by software
     87 patents.  We wish to avoid the danger that companies distributing free
     88 software will individually obtain patent licenses, thus in effect
     89 transforming the program into proprietary software.  To prevent this,
     90 we have made it clear that any patent must be licensed for everyone's
     91 free use or not licensed at all.
     92 
     93   Most GNU software, including some libraries, is covered by the ordinary
     94 GNU General Public License, which was designed for utility programs.  This
     95 license, the GNU Library General Public License, applies to certain
     96 designated libraries.  This license is quite different from the ordinary
     97 one; be sure to read it in full, and don't assume that anything in it is
     98 the same as in the ordinary license.
     99 
    100   The reason we have a separate public license for some libraries is that
    101 they blur the distinction we usually make between modifying or adding to a
    102 program and simply using it.  Linking a program with a library, without
    103 changing the library, is in some sense simply using the library, and is
    104 analogous to running a utility program or application program.  However, in
    105 a textual and legal sense, the linked executable is a combined work, a
    106 derivative of the original library, and the ordinary General Public License
    107 treats it as such.
    108 
    109   Because of this blurred distinction, using the ordinary General
    110 Public License for libraries did not effectively promote software
    111 sharing, because most developers did not use the libraries.  We
    112 concluded that weaker conditions might promote sharing better.
    113 
    114   However, unrestricted linking of non-free programs would deprive the
    115 users of those programs of all benefit from the free status of the
    116 libraries themselves.  This Library General Public License is intended to
    117 permit developers of non-free programs to use free libraries, while
    118 preserving your freedom as a user of such programs to change the free
    119 libraries that are incorporated in them.  (We have not seen how to achieve
    120 this as regards changes in header files, but we have achieved it as regards
    121 changes in the actual functions of the Library.)  The hope is that this
    122 will lead to faster development of free libraries.
    123 
    124   The precise terms and conditions for copying, distribution and
    125 modification follow.  Pay close attention to the difference between a
    126 "work based on the library" and a "work that uses the library".  The
    127 former contains code derived from the library, while the latter only
    128 works together with the library.
    129 
    130   Note that it is possible for a library to be covered by the ordinary
    131 General Public License rather than by this special one.
    132 
    134 		  GNU LIBRARY GENERAL PUBLIC LICENSE
    135    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
    136 
    137   0. This License Agreement applies to any software library which
    138 contains a notice placed by the copyright holder or other authorized
    139 party saying it may be distributed under the terms of this Library
    140 General Public License (also called "this License").  Each licensee is
    141 addressed as "you".
    142 
    143   A "library" means a collection of software functions and/or data
    144 prepared so as to be conveniently linked with application programs
    145 (which use some of those functions and data) to form executables.
    146 
    147   The "Library", below, refers to any such software library or work
    148 which has been distributed under these terms.  A "work based on the
    149 Library" means either the Library or any derivative work under
    150 copyright law: that is to say, a work containing the Library or a
    151 portion of it, either verbatim or with modifications and/or translated
    152 straightforwardly into another language.  (Hereinafter, translation is
    153 included without limitation in the term "modification".)
    154 
    155   "Source code" for a work means the preferred form of the work for
    156 making modifications to it.  For a library, complete source code means
    157 all the source code for all modules it contains, plus any associated
    158 interface definition files, plus the scripts used to control compilation
    159 and installation of the library.
    160 
    161   Activities other than copying, distribution and modification are not
    162 covered by this License; they are outside its scope.  The act of
    163 running a program using the Library is not restricted, and output from
    164 such a program is covered only if its contents constitute a work based
    165 on the Library (independent of the use of the Library in a tool for
    166 writing it).  Whether that is true depends on what the Library does
    167 and what the program that uses the Library does.
    168   
    169   1. You may copy and distribute verbatim copies of the Library's
    170 complete source code as you receive it, in any medium, provided that
    171 you conspicuously and appropriately publish on each copy an
    172 appropriate copyright notice and disclaimer of warranty; keep intact
    173 all the notices that refer to this License and to the absence of any
    174 warranty; and distribute a copy of this License along with the
    175 Library.
    176 
    177   You may charge a fee for the physical act of transferring a copy,
    178 and you may at your option offer warranty protection in exchange for a
    179 fee.
    180 
    182   2. You may modify your copy or copies of the Library or any portion
    183 of it, thus forming a work based on the Library, and copy and
    184 distribute such modifications or work under the terms of Section 1
    185 above, provided that you also meet all of these conditions:
    186 
    187     a) The modified work must itself be a software library.
    188 
    189     b) You must cause the files modified to carry prominent notices
    190     stating that you changed the files and the date of any change.
    191 
    192     c) You must cause the whole of the work to be licensed at no
    193     charge to all third parties under the terms of this License.
    194 
    195     d) If a facility in the modified Library refers to a function or a
    196     table of data to be supplied by an application program that uses
    197     the facility, other than as an argument passed when the facility
    198     is invoked, then you must make a good faith effort to ensure that,
    199     in the event an application does not supply such function or
    200     table, the facility still operates, and performs whatever part of
    201     its purpose remains meaningful.
    202 
    203     (For example, a function in a library to compute square roots has
    204     a purpose that is entirely well-defined independent of the
    205     application.  Therefore, Subsection 2d requires that any
    206     application-supplied function or table used by this function must
    207     be optional: if the application does not supply it, the square
    208     root function must still compute square roots.)
    209 
    210 These requirements apply to the modified work as a whole.  If
    211 identifiable sections of that work are not derived from the Library,
    212 and can be reasonably considered independent and separate works in
    213 themselves, then this License, and its terms, do not apply to those
    214 sections when you distribute them as separate works.  But when you
    215 distribute the same sections as part of a whole which is a work based
    216 on the Library, the distribution of the whole must be on the terms of
    217 this License, whose permissions for other licensees extend to the
    218 entire whole, and thus to each and every part regardless of who wrote
    219 it.
    220 
    221 Thus, it is not the intent of this section to claim rights or contest
    222 your rights to work written entirely by you; rather, the intent is to
    223 exercise the right to control the distribution of derivative or
    224 collective works based on the Library.
    225 
    226 In addition, mere aggregation of another work not based on the Library
    227 with the Library (or with a work based on the Library) on a volume of
    228 a storage or distribution medium does not bring the other work under
    229 the scope of this License.
    230 
    231   3. You may opt to apply the terms of the ordinary GNU General Public
    232 License instead of this License to a given copy of the Library.  To do
    233 this, you must alter all the notices that refer to this License, so
    234 that they refer to the ordinary GNU General Public License, version 2,
    235 instead of to this License.  (If a newer version than version 2 of the
    236 ordinary GNU General Public License has appeared, then you can specify
    237 that version instead if you wish.)  Do not make any other change in
    238 these notices.
    239 
    241   Once this change is made in a given copy, it is irreversible for
    242 that copy, so the ordinary GNU General Public License applies to all
    243 subsequent copies and derivative works made from that copy.
    244 
    245   This option is useful when you wish to copy part of the code of
    246 the Library into a program that is not a library.
    247 
    248   4. You may copy and distribute the Library (or a portion or
    249 derivative of it, under Section 2) in object code or executable form
    250 under the terms of Sections 1 and 2 above provided that you accompany
    251 it with the complete corresponding machine-readable source code, which
    252 must be distributed under the terms of Sections 1 and 2 above on a
    253 medium customarily used for software interchange.
    254 
    255   If distribution of object code is made by offering access to copy
    256 from a designated place, then offering equivalent access to copy the
    257 source code from the same place satisfies the requirement to
    258 distribute the source code, even though third parties are not
    259 compelled to copy the source along with the object code.
    260 
    261   5. A program that contains no derivative of any portion of the
    262 Library, but is designed to work with the Library by being compiled or
    263 linked with it, is called a "work that uses the Library".  Such a
    264 work, in isolation, is not a derivative work of the Library, and
    265 therefore falls outside the scope of this License.
    266 
    267   However, linking a "work that uses the Library" with the Library
    268 creates an executable that is a derivative of the Library (because it
    269 contains portions of the Library), rather than a "work that uses the
    270 library".  The executable is therefore covered by this License.
    271 Section 6 states terms for distribution of such executables.
    272 
    273   When a "work that uses the Library" uses material from a header file
    274 that is part of the Library, the object code for the work may be a
    275 derivative work of the Library even though the source code is not.
    276 Whether this is true is especially significant if the work can be
    277 linked without the Library, or if the work is itself a library.  The
    278 threshold for this to be true is not precisely defined by law.
    279 
    280   If such an object file uses only numerical parameters, data
    281 structure layouts and accessors, and small macros and small inline
    282 functions (ten lines or less in length), then the use of the object
    283 file is unrestricted, regardless of whether it is legally a derivative
    284 work.  (Executables containing this object code plus portions of the
    285 Library will still fall under Section 6.)
    286 
    287   Otherwise, if the work is a derivative of the Library, you may
    288 distribute the object code for the work under the terms of Section 6.
    289 Any executables containing that work also fall under Section 6,
    290 whether or not they are linked directly with the Library itself.
    291 
    293   6. As an exception to the Sections above, you may also compile or
    294 link a "work that uses the Library" with the Library to produce a
    295 work containing portions of the Library, and distribute that work
    296 under terms of your choice, provided that the terms permit
    297 modification of the work for the customer's own use and reverse
    298 engineering for debugging such modifications.
    299 
    300   You must give prominent notice with each copy of the work that the
    301 Library is used in it and that the Library and its use are covered by
    302 this License.  You must supply a copy of this License.  If the work
    303 during execution displays copyright notices, you must include the
    304 copyright notice for the Library among them, as well as a reference
    305 directing the user to the copy of this License.  Also, you must do one
    306 of these things:
    307 
    308     a) Accompany the work with the complete corresponding
    309     machine-readable source code for the Library including whatever
    310     changes were used in the work (which must be distributed under
    311     Sections 1 and 2 above); and, if the work is an executable linked
    312     with the Library, with the complete machine-readable "work that
    313     uses the Library", as object code and/or source code, so that the
    314     user can modify the Library and then relink to produce a modified
    315     executable containing the modified Library.  (It is understood
    316     that the user who changes the contents of definitions files in the
    317     Library will not necessarily be able to recompile the application
    318     to use the modified definitions.)
    319 
    320     b) Accompany the work with a written offer, valid for at
    321     least three years, to give the same user the materials
    322     specified in Subsection 6a, above, for a charge no more
    323     than the cost of performing this distribution.
    324 
    325     c) If distribution of the work is made by offering access to copy
    326     from a designated place, offer equivalent access to copy the above
    327     specified materials from the same place.
    328 
    329     d) Verify that the user has already received a copy of these
    330     materials or that you have already sent this user a copy.
    331 
    332   For an executable, the required form of the "work that uses the
    333 Library" must include any data and utility programs needed for
    334 reproducing the executable from it.  However, as a special exception,
    335 the source code distributed need not include anything that is normally
    336 distributed (in either source or binary form) with the major
    337 components (compiler, kernel, and so on) of the operating system on
    338 which the executable runs, unless that component itself accompanies
    339 the executable.
    340 
    341   It may happen that this requirement contradicts the license
    342 restrictions of other proprietary libraries that do not normally
    343 accompany the operating system.  Such a contradiction means you cannot
    344 use both them and the Library together in an executable that you
    345 distribute.
    346 
    348   7. You may place library facilities that are a work based on the
    349 Library side-by-side in a single library together with other library
    350 facilities not covered by this License, and distribute such a combined
    351 library, provided that the separate distribution of the work based on
    352 the Library and of the other library facilities is otherwise
    353 permitted, and provided that you do these two things:
    354 
    355     a) Accompany the combined library with a copy of the same work
    356     based on the Library, uncombined with any other library
    357     facilities.  This must be distributed under the terms of the
    358     Sections above.
    359 
    360     b) Give prominent notice with the combined library of the fact
    361     that part of it is a work based on the Library, and explaining
    362     where to find the accompanying uncombined form of the same work.
    363 
    364   8. You may not copy, modify, sublicense, link with, or distribute
    365 the Library except as expressly provided under this License.  Any
    366 attempt otherwise to copy, modify, sublicense, link with, or
    367 distribute the Library is void, and will automatically terminate your
    368 rights under this License.  However, parties who have received copies,
    369 or rights, from you under this License will not have their licenses
    370 terminated so long as such parties remain in full compliance.
    371 
    372   9. You are not required to accept this License, since you have not
    373 signed it.  However, nothing else grants you permission to modify or
    374 distribute the Library or its derivative works.  These actions are
    375 prohibited by law if you do not accept this License.  Therefore, by
    376 modifying or distributing the Library (or any work based on the
    377 Library), you indicate your acceptance of this License to do so, and
    378 all its terms and conditions for copying, distributing or modifying
    379 the Library or works based on it.
    380 
    381   10. Each time you redistribute the Library (or any work based on the
    382 Library), the recipient automatically receives a license from the
    383 original licensor to copy, distribute, link with or modify the Library
    384 subject to these terms and conditions.  You may not impose any further
    385 restrictions on the recipients' exercise of the rights granted herein.
    386 You are not responsible for enforcing compliance by third parties to
    387 this License.
    388 
    390   11. If, as a consequence of a court judgment or allegation of patent
    391 infringement or for any other reason (not limited to patent issues),
    392 conditions are imposed on you (whether by court order, agreement or
    393 otherwise) that contradict the conditions of this License, they do not
    394 excuse you from the conditions of this License.  If you cannot
    395 distribute so as to satisfy simultaneously your obligations under this
    396 License and any other pertinent obligations, then as a consequence you
    397 may not distribute the Library at all.  For example, if a patent
    398 license would not permit royalty-free redistribution of the Library by
    399 all those who receive copies directly or indirectly through you, then
    400 the only way you could satisfy both it and this License would be to
    401 refrain entirely from distribution of the Library.
    402 
    403 If any portion of this section is held invalid or unenforceable under any
    404 particular circumstance, the balance of the section is intended to apply,
    405 and the section as a whole is intended to apply in other circumstances.
    406 
    407 It is not the purpose of this section to induce you to infringe any
    408 patents or other property right claims or to contest validity of any
    409 such claims; this section has the sole purpose of protecting the
    410 integrity of the free software distribution system which is
    411 implemented by public license practices.  Many people have made
    412 generous contributions to the wide range of software distributed
    413 through that system in reliance on consistent application of that
    414 system; it is up to the author/donor to decide if he or she is willing
    415 to distribute software through any other system and a licensee cannot
    416 impose that choice.
    417 
    418 This section is intended to make thoroughly clear what is believed to
    419 be a consequence of the rest of this License.
    420 
    421   12. If the distribution and/or use of the Library is restricted in
    422 certain countries either by patents or by copyrighted interfaces, the
    423 original copyright holder who places the Library under this License may add
    424 an explicit geographical distribution limitation excluding those countries,
    425 so that distribution is permitted only in or among countries not thus
    426 excluded.  In such case, this License incorporates the limitation as if
    427 written in the body of this License.
    428 
    429   13. The Free Software Foundation may publish revised and/or new
    430 versions of the Library General Public License from time to time.
    431 Such new versions will be similar in spirit to the present version,
    432 but may differ in detail to address new problems or concerns.
    433 
    434 Each version is given a distinguishing version number.  If the Library
    435 specifies a version number of this License which applies to it and
    436 "any later version", you have the option of following the terms and
    437 conditions either of that version or of any later version published by
    438 the Free Software Foundation.  If the Library does not specify a
    439 license version number, you may choose any version ever published by
    440 the Free Software Foundation.
    441 
    443   14. If you wish to incorporate parts of the Library into other free
    444 programs whose distribution conditions are incompatible with these,
    445 write to the author to ask for permission.  For software which is
    446 copyrighted by the Free Software Foundation, write to the Free
    447 Software Foundation; we sometimes make exceptions for this.  Our
    448 decision will be guided by the two goals of preserving the free status
    449 of all derivatives of our free software and of promoting the sharing
    450 and reuse of software generally.
    451 
    452 			    NO WARRANTY
    453 
    454   15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
    455 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
    456 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
    457 OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
    458 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
    459 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    460 PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
    461 LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
    462 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
    463 
    464   16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
    465 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
    466 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
    467 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
    468 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
    469 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
    470 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
    471 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
    472 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
    473 DAMAGES.
    474 
    475 		     END OF TERMS AND CONDITIONS
    476 
    478      Appendix: How to Apply These Terms to Your New Libraries
    479 
    480   If you develop a new library, and you want it to be of the greatest
    481 possible use to the public, we recommend making it free software that
    482 everyone can redistribute and change.  You can do so by permitting
    483 redistribution under these terms (or, alternatively, under the terms of the
    484 ordinary General Public License).
    485 
    486   To apply these terms, attach the following notices to the library.  It is
    487 safest to attach them to the start of each source file to most effectively
    488 convey the exclusion of warranty; and each file should have at least the
    489 "copyright" line and a pointer to where the full notice is found.
    490 
    491     <one line to give the library's name and a brief idea of what it does.>
    492     Copyright (C) <year>  <name of author>
    493 
    494     This library is free software; you can redistribute it and/or
    495     modify it under the terms of the GNU Library General Public
    496     License as published by the Free Software Foundation; either
    497     version 2 of the License, or (at your option) any later version.
    498 
    499     This library is distributed in the hope that it will be useful,
    500     but WITHOUT ANY WARRANTY; without even the implied warranty of
    501     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    502     Library General Public License for more details.
    503 
    504     You should have received a copy of the GNU Library General Public
    505     License along with this library; if not, write to the Free
    506     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    507 
    508 Also add information on how to contact you by electronic and paper mail.
    509 
    510 You should also get your employer (if you work as a programmer) or your
    511 school, if any, to sign a "copyright disclaimer" for the library, if
    512 necessary.  Here is a sample; alter the names:
    513 
    514   Yoyodyne, Inc., hereby disclaims all copyright interest in the
    515   library `Frob' (a library for tweaking knobs) written by James Random Hacker.
    516 
    517   <signature of Ty Coon>, 1 April 1990
    518   Ty Coon, President of Vice
    519 
    520 That's all there is to it!
    521 
    522