wimlib (meaning all programs, scripts, libraries, documentation, and other files
that are part of the wimlib project -- not just the "libwim" library) may be
redistributed and/or modified under the terms of the GNU General Public License;
either version 3 of the License, or (at your option) any later version.  A copy
of this license can be found in the file COPYING.GPLv3.

Also, when not prohibited by a third-party software license, libwim (the library
portion of wimlib) may be redistributed and/or modified under the terms of the
GNU Lesser General Public License; either version 2.1 of the License, or (at
your option) any later version.  A copy of this license can be found in the file
COPYING.LGPL.  This is offered as a "dual license", meaning that you can choose
either this LGPLv2.1+ option or the above-mentioned GPLv3+ option.

In either case there is NO WARRANTY, to the extent permitted by law.

--------------------------------------------------------------------------------

NOTE! The reason for the "when not prohibited by a third-party software license"
condition on the LGPL option for libwim is that libwim can optionally be linked
to the third-party library "libntfs-3g", which is licensed under the GPL.
Usually the GPL is interpreted in a way that means that any binary that uses a
GPL library must be licensed under the GPL as well, not (for example) the LGPL.

Therefore, if your build of libwim links to libntfs-3g, then you can't choose
the LGPL option.  You may choose the LGPL option for Windows builds of libwim,
since they don't link to libntfs-3g.  Likewise, you may choose the LGPL option
for UNIX builds of libwim that were built with './configure --without-ntfs-3g'.

================================================================================

Some files of libwim carry the MIT license instead. Their notices, in full:

Copyright 2022-2023 Eric Biggers

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
/
--------------------------------------------------------------------------------

Copyright (c) 2003-2008 Yuta Mori All Rights Reserved.

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
