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