GraphicsMagick: Uphate all other stuff for libtiff like document...

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.26255.1670081436.1567.graphicsmagick-commit@lists.sourceforge.net>
changeset a71a41ce1967 in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=a71a41ce1967
summary: Uphate all other stuff for libtiff like documentation, examples and man pages.

diffstat:

 tiff/build/CMakeLists.txt                    |     2 -
 tiff/build/Makefile.in                       |     8 +-
 tiff/cmake/AutotoolsCompat.cmake             |    32 +
 tiff/cmake/AutotoolsVersion.cmake            |    50 +
 tiff/cmake/CXXLibrary.cmake                  |    32 +
 tiff/cmake/CompilerChecks.cmake              |   124 +
 tiff/cmake/DeflateCodec.cmake                |    45 +
 tiff/cmake/FindCMath.cmake                   |    72 +
 tiff/cmake/FindDeflate.cmake                 |   116 +
 tiff/cmake/FindJBIG.cmake                    |   116 +
 tiff/cmake/FindJPEG.cmake                    |   142 +
 tiff/cmake/FindLERC.cmake                    |    86 +
 tiff/cmake/FindLibLZMA.cmake                 |   126 +
 tiff/cmake/FindWebP.cmake                    |    91 +
 tiff/cmake/FindZSTD.cmake                    |   107 +
 tiff/cmake/IncludeChecks.cmake               |    36 +
 tiff/cmake/InternalCodecs.cmake              |    46 +
 tiff/cmake/JBIGCodec.cmake                   |    47 +
 tiff/cmake/JPEGCodec.cmake                   |    56 +
 tiff/cmake/LERCCodec.cmake                   |    32 +
 tiff/cmake/LZMACodec.cmake                   |    33 +
 tiff/cmake/LargeFileSupport.cmake            |    32 +
 tiff/cmake/LibraryFeatures.cmake             |    60 +
 tiff/cmake/LinkerChecks.cmake                |    50 +
 tiff/cmake/OpenGLChecks.cmake                |    43 +
 tiff/cmake/PixarLogCodec.cmake               |    33 +
 tiff/cmake/PkgConfig.cmake                   |    67 +
 tiff/cmake/ProcessorChecks.cmake             |    47 +
 tiff/cmake/Release.cmake                     |    31 +
 tiff/cmake/ReleaseScript.cmake               |    32 +
 tiff/cmake/SymbolChecks.cmake                |    43 +
 tiff/cmake/TypeSizeChecks.cmake              |    54 +
 tiff/cmake/WebPCodec.cmake                   |    35 +
 tiff/cmake/WindowsSupport.cmake              |    43 +
 tiff/cmake/ZSTDCodec.cmake                   |    53 +
 tiff/config/config.guess                     |  1704 ++++++----
 tiff/config/config.h.in                      |   275 +
 tiff/config/config.sub                       |  2919 ++++++++++---------
 tiff/config/install-sh                       |    47 +-
 tiff/config/ltmain.sh                        |   258 +-
 tiff/config/test-driver                      |    10 +-
 tiff/contrib/CMakeLists.txt                  |     8 -
 tiff/contrib/Makefile.in                     |     8 +-
 tiff/contrib/addtiffo/CMakeLists.txt         |    14 +-
 tiff/contrib/addtiffo/Makefile.am            |     1 -
 tiff/contrib/addtiffo/Makefile.in            |    11 +-
 tiff/contrib/addtiffo/Makefile.vc            |    28 -
 tiff/contrib/addtiffo/tif_overview.c         |   108 +-
 tiff/contrib/addtiffo/tif_ovrcache.c         |     7 +-
 tiff/contrib/addtiffo/tif_ovrcache.h         |    28 +-
 tiff/contrib/dbs/CMakeLists.txt              |    21 +-
 tiff/contrib/dbs/Makefile.in                 |    10 +-
 tiff/contrib/dbs/tiff-grayscale.c            |     6 +-
 tiff/contrib/dbs/tiff-palette.c              |     8 +-
 tiff/contrib/dbs/tiff-rgb.c                  |     4 +-
 tiff/contrib/dbs/xtiff/CMakeLists.txt        |    29 -
 tiff/contrib/dbs/xtiff/Makefile.am           |     1 -
 tiff/contrib/dbs/xtiff/Makefile.in           |     9 +-
 tiff/contrib/dbs/xtiff/xtiff.c               |    40 +-
 tiff/contrib/iptcutil/CMakeLists.txt         |     9 -
 tiff/contrib/iptcutil/Makefile.in            |    10 +-
 tiff/contrib/iptcutil/iptcutil.c             |    10 +-
 tiff/contrib/mfs/CMakeLists.txt              |    27 -
 tiff/contrib/mfs/Makefile.am                 |     1 -
 tiff/contrib/mfs/Makefile.in                 |     9 +-
 tiff/contrib/pds/CMakeLists.txt              |    30 -
 tiff/contrib/pds/Makefile.am                 |     1 -
 tiff/contrib/pds/Makefile.in                 |     9 +-
 tiff/contrib/pds/tif_imageiter.c             |    76 +-
 tiff/contrib/pds/tif_imageiter.h             |    36 +-
 tiff/contrib/pds/tif_pdsdirread.c            |   188 +-
 tiff/contrib/pds/tif_pdsdirwrite.c           |   138 +-
 tiff/contrib/ras/CMakeLists.txt              |    28 -
 tiff/contrib/ras/Makefile.am                 |     1 -
 tiff/contrib/ras/Makefile.in                 |     9 +-
 tiff/contrib/stream/CMakeLists.txt           |    28 -
 tiff/contrib/stream/Makefile.am              |     1 -
 tiff/contrib/stream/Makefile.in              |     9 +-
 tiff/contrib/tags/CMakeLists.txt             |    32 -
 tiff/contrib/tags/Makefile.am                |     1 -
 tiff/contrib/tags/Makefile.in                |     9 +-
 tiff/contrib/tags/README                     |     2 +-
 tiff/contrib/tags/maketif.c                  |     2 +-
 tiff/contrib/tags/xtif_dir.c                 |    10 +-
 tiff/contrib/tags/xtiffiop.h                 |     6 +-
 tiff/contrib/win_dib/CMakeLists.txt          |    30 -
 tiff/contrib/win_dib/Makefile.am             |     1 -
 tiff/contrib/win_dib/Makefile.in             |     9 +-
 tiff/contrib/win_dib/README.Tiffile          |     2 +-
 tiff/contrib/win_dib/README.tiff2dib         |     4 +-
 tiff/contrib/win_dib/Tiffile.cpp             |    68 +-
 tiff/contrib/win_dib/tiff2dib.c              |    18 +-
 tiff/html/CMakeLists.txt                     |    14 +-
 tiff/html/Makefile.am                        |     4 +-
 tiff/html/Makefile.in                        |    12 +-
 tiff/html/addingtags.html                    |    40 +-
 tiff/html/bugs.html                          |    13 +-
 tiff/html/build.html                         |   192 +-
 tiff/html/contrib.html                       |    27 +-
 tiff/html/document.html                      |    11 +-
 tiff/html/images.html                        |    11 +-
 tiff/html/images/CMakeLists.txt              |     2 -
 tiff/html/images/Makefile.in                 |     8 +-
 tiff/html/index.html                         |    13 +-
 tiff/html/internals.html                     |   116 +-
 tiff/html/intro.html                         |    13 +-
 tiff/html/libtiff.html                       |    62 +-
 tiff/html/man/CMakeLists.txt                 |     2 -
 tiff/html/man/Makefile.in                    |     8 +-
 tiff/html/man/TIFFDataWidth.3tiff.html       |     2 +-
 tiff/html/man/TIFFFieldPassCount.3tiff.html  |     4 +-
 tiff/html/man/TIFFFieldReadCount.3tiff.html  |     4 +-
 tiff/html/man/TIFFFieldTag.3tiff.html        |     2 +-
 tiff/html/man/TIFFFieldWriteCount.3tiff.html |     4 +-
 tiff/html/man/TIFFGetField.3tiff.html        |    98 +-
 tiff/html/man/TIFFRGBAImage.3tiff.html       |    10 +-
 tiff/html/man/TIFFReadRGBAImage.3tiff.html   |    10 +-
 tiff/html/man/TIFFReadRGBAStrip.3tiff.html   |     2 +-
 tiff/html/man/TIFFReadRGBATile.3tiff.html    |     2 +-
 tiff/html/man/TIFFReadRawStrip.3tiff.html    |     2 +-
 tiff/html/man/TIFFReadScanline.3tiff.html    |     2 +-
 tiff/html/man/TIFFReadTile.3tiff.html        |     4 +-
 tiff/html/man/TIFFSetDirectory.3tiff.html    |     2 +-
 tiff/html/man/TIFFSetField.3tiff.html        |    92 +-
 tiff/html/man/TIFFWriteScanline.3tiff.html   |     2 +-
 tiff/html/man/TIFFWriteTile.3tiff.html       |     4 +-
 tiff/html/man/TIFFcodec.3tiff.html           |     6 +-
 tiff/html/man/TIFFcolor.3tiff.html           |    40 +-
 tiff/html/man/TIFFquery.3tiff.html           |     2 +-
 tiff/html/man/TIFFstrip.3tiff.html           |     8 +-
 tiff/html/man/TIFFswab.3tiff.html            |     8 +-
 tiff/html/man/TIFFtile.3tiff.html            |    12 +-
 tiff/html/man/libtiff.3tiff.html             |    18 +-
 tiff/html/misc.html                          |    16 +-
 tiff/html/support.html                       |     2 +-
 tiff/html/tools.html                         |    19 +-
 tiff/html/v3.4beta007.html                   |     3 +-
 tiff/html/v3.4beta016.html                   |     3 +-
 tiff/html/v3.4beta018.html                   |     1 +
 tiff/html/v3.4beta024.html                   |     1 +
 tiff/html/v3.4beta028.html                   |     3 +-
 tiff/html/v3.4beta029.html                   |     1 +
 tiff/html/v3.4beta031.html                   |     1 +
 tiff/html/v3.4beta032.html                   |     1 +
 tiff/html/v3.4beta033.html                   |     1 +
 tiff/html/v3.4beta034.html                   |     1 +
 tiff/html/v3.4beta035.html                   |     1 +
 tiff/html/v3.4beta036.html                   |     1 +
 tiff/html/v3.5.1.html                        |     1 +
 tiff/html/v3.5.2.html                        |     1 +
 tiff/html/v3.5.3.html                        |     1 +
 tiff/html/v3.5.4.html                        |     1 +
 tiff/html/v3.5.5.html                        |     1 +
 tiff/html/v3.5.6-beta.html                   |     1 +
 tiff/html/v3.5.7.html                        |     5 +-
 tiff/html/v3.6.0.html                        |     5 +-
 tiff/html/v3.6.1.html                        |     7 +-
 tiff/html/v3.7.0.html                        |     3 +-
 tiff/html/v3.7.0alpha.html                   |     3 +-
 tiff/html/v3.7.0beta.html                    |     3 +-
 tiff/html/v3.7.0beta2.html                   |     3 +-
 tiff/html/v3.7.1.html                        |     3 +-
 tiff/html/v3.7.2.html                        |     3 +-
 tiff/html/v3.7.3.html                        |     3 +-
 tiff/html/v3.7.4.html                        |     3 +-
 tiff/html/v3.8.0.html                        |     7 +-
 tiff/html/v3.8.1.html                        |     3 +-
 tiff/html/v3.8.2.html                        |     3 +-
 tiff/html/v3.9.0beta.html                    |     5 +-
 tiff/html/v3.9.1.html                        |     3 +-
 tiff/html/v3.9.2.html                        |     3 +-
 tiff/html/v4.0.0.html                        |     3 +-
 tiff/html/v4.0.1.html                        |     1 +
 tiff/html/v4.0.10.html                       |     1 +
 tiff/html/v4.0.2.html                        |     1 +
 tiff/html/v4.0.3.html                        |     1 +
 tiff/html/v4.0.4.html                        |     1 +
 tiff/html/v4.0.4beta.html                    |     3 +-
 tiff/html/v4.0.5.html                        |     1 +
 tiff/html/v4.0.6.html                        |     1 +
 tiff/html/v4.0.7.html                        |     3 +-
 tiff/html/v4.0.8.html                        |     3 +-
 tiff/html/v4.0.9.html                        |     3 +-
 tiff/html/v4.1.0.html                        |    61 +-
 tiff/m4/libtool.m4                           |    55 +-
 tiff/man/CMakeLists.txt                      |     6 +-
 tiff/man/Makefile.in                         |     8 +-
 tiff/man/TIFFDataWidth.3tiff                 |     2 +-
 tiff/man/TIFFFieldPassCount.3tiff            |     4 +-
 tiff/man/TIFFFieldReadCount.3tiff            |     4 +-
 tiff/man/TIFFFieldTag.3tiff                  |     2 +-
 tiff/man/TIFFFieldWriteCount.3tiff           |     4 +-
 tiff/man/TIFFGetField.3tiff                  |   134 +-
 tiff/man/TIFFRGBAImage.3tiff                 |     8 +-
 tiff/man/TIFFReadEncodedStrip.3tiff          |     2 +-
 tiff/man/TIFFReadRGBAImage.3tiff             |     6 +-
 tiff/man/TIFFReadRGBAStrip.3tiff             |     2 +-
 tiff/man/TIFFReadRGBATile.3tiff              |     2 +-
 tiff/man/TIFFReadRawStrip.3tiff              |     2 +-
 tiff/man/TIFFReadScanline.3tiff              |     2 +-
 tiff/man/TIFFReadTile.3tiff                  |     2 +-
 tiff/man/TIFFSetDirectory.3tiff              |     2 +-
 tiff/man/TIFFSetField.3tiff                  |    92 +-
 tiff/man/TIFFWriteScanline.3tiff             |     2 +-
 tiff/man/TIFFWriteTile.3tiff                 |     2 +-
 tiff/man/TIFFcodec.3tiff                     |     6 +-
 tiff/man/TIFFcolor.3tiff                     |    34 +-
 tiff/man/TIFFquery.3tiff                     |     2 +-
 tiff/man/TIFFstrip.3tiff                     |    10 +-
 tiff/man/TIFFswab.3tiff                      |     8 +-
 tiff/man/TIFFtile.3tiff                      |     8 +-
 tiff/man/libtiff.3tiff                       |    20 +-
 tiff/man/tiff2pdf.1                          |     3 +
 tiff/man/tiff2ps.1                           |     4 +
 tiff/man/tiff2rgba.1                         |     4 +
 tiff/man/tiffcp.1                            |    15 +
 tiff/man/tiffcrop.1                          |    16 +-
 tiff/man/tiffsplit.1                         |    12 +
 tiff/port/CMakeLists.txt                     |    63 +-
 tiff/port/Makefile.am                        |     5 +-
 tiff/port/Makefile.in                        |    89 +-
 tiff/port/libport.h                          |    40 +-
 tiff/test/CMakeLists.txt                     |   320 +-
 tiff/test/Makefile.am                        |    37 +-
 tiff/test/Makefile.in                        |   180 +-
 tiff/test/TiffTest.cmake                     |    17 +-
 tiff/test/TiffTestCommon.cmake               |    14 +
 tiff/test/ascii_tag.c                        |     8 +-
 tiff/test/check_tag.c                        |    36 +-
 tiff/test/common.sh                          |     3 +-
 tiff/test/custom_dir.c                       |    20 +-
 tiff/test/defer_strile_loading.c             |    13 +-
 tiff/test/defer_strile_writing.c             |     2 +-
 tiff/test/images/README.txt                  |     3 +
 tiff/test/long_tag.c                         |    10 +-
 tiff/test/ppm2tiff_pbm.sh                    |     1 -
 tiff/test/ppm2tiff_pgm.sh                    |     1 -
 tiff/test/ppm2tiff_ppm.sh                    |     7 +-
 tiff/test/raw_decode.c                       |    40 +-
 tiff/test/rewrite_tag.c                      |    34 +-
 tiff/test/short_tag.c                        |    24 +-
 tiff/test/strip.c                            |    56 +-
 tiff/test/strip_rw.c                         |    18 +-
 tiff/test/testtypes.c                        |    19 +-
 tiff/test/tiff2ps-EPS1.sh                    |     2 +-
 tiff/test/tiff2ps-PS1.sh                     |     3 +-
 tiff/test/tiff2ps-PS2.sh                     |     2 +-
 tiff/test/tiff2ps-PS3.sh                     |     2 +-
 tiff/test/tifftest.h                         |     6 +-
 tiff/tools/CMakeLists.txt                    |   153 +-
 tiff/tools/Makefile.am                       |     5 +-
 tiff/tools/Makefile.in                       |    15 +-
 tiff/tools/Makefile.vc                       |    51 -
 tiff/tools/fax2ps.c                          |    98 +-
 tiff/tools/fax2tiff.c                        |   149 +-
 tiff/tools/pal2rgb.c                         |   208 +-
 tiff/tools/ppm2tiff.c                        |   323 +-
 tiff/tools/raw2tiff.c                        |   299 +-
 tiff/tools/rgb2ycbcr.c                       |   138 +-
 tiff/tools/thumbnail.c                       |   242 +-
 tiff/tools/tiff2bw.c                         |   221 +-
 tiff/tools/tiff2pdf.c                        |  1243 ++++---
 tiff/tools/tiff2ps.c                         |   578 ++-
 tiff/tools/tiff2rgba.c                       |   201 +-
 tiff/tools/tiffcmp.c                         |   209 +-
 tiff/tools/tiffcp.c                          |   954 +++--
 tiff/tools/tiffcrop.c                        |  3825 +++++++++++++------------
 tiff/tools/tiffdither.c                      |   137 +-
 tiff/tools/tiffdump.c                        |   279 +-
 tiff/tools/tiffgt.c                          |    79 +-
 tiff/tools/tiffinfo.c                        |   339 +-
 tiff/tools/tiffmedian.c                      |   162 +-
 tiff/tools/tiffset.c                         |   117 +-
 tiff/tools/tiffsplit.c                       |   244 +-
 webp/src/webp/types.h                        |   188 +-
 275 files changed, 12684 insertions(+), 8820 deletions(-)

diffs (truncated from 38269 to 500 lines):

diff -r 1a9f94ce0c30 -r a71a41ce1967 tiff/build/CMakeLists.txt
--- a/tiff/build/CMakeLists.txt	Sat Dec 03 09:23:02 2022 -0600
+++ b/tiff/build/CMakeLists.txt	Sat Dec 03 16:29:52 2022 +0100
@@ -21,5 +21,3 @@
 # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
 # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
 # OF THIS SOFTWARE.
-
-extra_dist(README)
diff -r 1a9f94ce0c30 -r a71a41ce1967 tiff/build/Makefile.in
--- a/tiff/build/Makefile.in	Sat Dec 03 09:23:02 2022 -0600
+++ b/tiff/build/Makefile.in	Sat Dec 03 16:29:52 2022 +0100
@@ -123,8 +123,10 @@
 	$(ACLOCAL_M4)
 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
 mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/libtiff/tif_config.h \
-	$(top_builddir)/libtiff/tiffconf.h
+CONFIG_HEADER = $(top_builddir)/config/config.h \
+	$(top_builddir)/libtiff/tif_config.h \
+	$(top_builddir)/libtiff/tiffconf.h \
+	$(top_builddir)/port/libport_config.h
 CONFIG_CLEAN_FILES =
 CONFIG_CLEAN_VPATH_FILES =
 AM_V_P = $(am__v_P_@AM_V@)
@@ -348,12 +350,14 @@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 psdir = @psdir@
+runstatedir = @runstatedir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
 sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 tiff_libs_private = @tiff_libs_private@
+tiff_requires_private = @tiff_requires_private@
 top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
diff -r 1a9f94ce0c30 -r a71a41ce1967 tiff/cmake/AutotoolsCompat.cmake
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tiff/cmake/AutotoolsCompat.cmake	Sat Dec 03 16:29:52 2022 +0100
@@ -0,0 +1,32 @@
+# Autotools compatibility
+#
+# Copyright © 2015 Open Microscopy Environment / University of Dundee
+# Copyright © 2021 Roger Leigh <[email protected]>
+# Written by Roger Leigh <[email protected]>
+#
+# Permission to use, copy, modify, distribute, and sell this software and
+# its documentation for any purpose is hereby granted without fee, provided
+# that (i) the above copyright notices and this permission notice appear in
+# all copies of the software and related documentation, and (ii) the names of
+# Sam Leffler and Silicon Graphics may not be used in any advertising or
+# publicity relating to the software without the specific, prior written
+# permission of Sam Leffler and Silicon Graphics.
+#
+# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
+# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+#
+# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
+# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
+# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
+# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+# OF THIS SOFTWARE.
+
+
+# For autotools header compatibility
+set(PACKAGE_NAME "LibTIFF Software")
+set(PACKAGE_TARNAME "${PROJECT_NAME}")
+set(PACKAGE_VERSION "${PROJECT_VERSION}${LIBTIFF_ALPHA_VERSION}")
+set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
+set(PACKAGE_BUGREPORT "[email protected]")
diff -r 1a9f94ce0c30 -r a71a41ce1967 tiff/cmake/AutotoolsVersion.cmake
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tiff/cmake/AutotoolsVersion.cmake	Sat Dec 03 16:29:52 2022 +0100
@@ -0,0 +1,50 @@
+# Read version information from configure.ac.
+#
+# Copyright © 2015 Open Microscopy Environment / University of Dundee
+# Copyright © 2021 Roger Leigh <[email protected]>
+# Written by Roger Leigh <[email protected]>
+#
+# Permission to use, copy, modify, distribute, and sell this software and
+# its documentation for any purpose is hereby granted without fee, provided
+# that (i) the above copyright notices and this permission notice appear in
+# all copies of the software and related documentation, and (ii) the names of
+# Sam Leffler and Silicon Graphics may not be used in any advertising or
+# publicity relating to the software without the specific, prior written
+# permission of Sam Leffler and Silicon Graphics.
+#
+# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
+# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+#
+# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
+# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
+# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
+# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+# OF THIS SOFTWARE.
+
+
+# Get version from configure.ac
+FILE(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/configure.ac" configure REGEX "^LIBTIFF_.*=")
+foreach(line ${configure})
+    foreach(var LIBTIFF_MAJOR_VERSION LIBTIFF_MINOR_VERSION LIBTIFF_MICRO_VERSION LIBTIFF_ALPHA_VERSION
+            LIBTIFF_CURRENT LIBTIFF_REVISION LIBTIFF_AGE)
+        if(NOT ${var} AND line MATCHES "^${var}=(.*)")
+            set(${var} "${CMAKE_MATCH_1}")
+            break()
+        endif()
+    endforeach()
+endforeach()
+
+# Package version
+set(LIBTIFF_VERSION "${LIBTIFF_MAJOR_VERSION}.${LIBTIFF_MINOR_VERSION}.${LIBTIFF_MICRO_VERSION}")
+set(LIBTIFF_VERSION_FULL "${LIBTIFF_VERSION}${LIBTIFF_ALPHA_VERSION}")
+
+# Convert the libtool version variables to proper major and minor versions
+math(EXPR SO_MAJOR "${LIBTIFF_CURRENT} - ${LIBTIFF_AGE}")
+set(SO_MINOR "${LIBTIFF_AGE}")
+set(SO_REVISION "${LIBTIFF_REVISION}")
+
+# Library version (unlike libtool's baroque scheme, WYSIWYG here)
+set(SO_COMPATVERSION "${SO_MAJOR}")
+set(SO_VERSION "${SO_MAJOR}.${SO_MINOR}.${SO_REVISION}")
diff -r 1a9f94ce0c30 -r a71a41ce1967 tiff/cmake/CXXLibrary.cmake
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tiff/cmake/CXXLibrary.cmake	Sat Dec 03 16:29:52 2022 +0100
@@ -0,0 +1,32 @@
+# C++ library option
+#
+# Copyright © 2015 Open Microscopy Environment / University of Dundee
+# Copyright © 2021 Roger Leigh <[email protected]>
+# Written by Roger Leigh <[email protected]>
+#
+# Permission to use, copy, modify, distribute, and sell this software and
+# its documentation for any purpose is hereby granted without fee, provided
+# that (i) the above copyright notices and this permission notice appear in
+# all copies of the software and related documentation, and (ii) the names of
+# Sam Leffler and Silicon Graphics may not be used in any advertising or
+# publicity relating to the software without the specific, prior written
+# permission of Sam Leffler and Silicon Graphics.
+#
+# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
+# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+#
+# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
+# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
+# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
+# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+# OF THIS SOFTWARE.
+
+# C++ support
+option(cxx "Enable C++ stream API building (requires C++ compiler)" ON)
+set(CXX_SUPPORT FALSE)
+if (cxx)
+    enable_language(CXX)
+    set(CXX_SUPPORT TRUE)
+endif()
diff -r 1a9f94ce0c30 -r a71a41ce1967 tiff/cmake/CompilerChecks.cmake
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tiff/cmake/CompilerChecks.cmake	Sat Dec 03 16:29:52 2022 +0100
@@ -0,0 +1,124 @@
+# Compiler feature checks
+#
+# Copyright © 2015 Open Microscopy Environment / University of Dundee
+# Copyright © 2021 Roger Leigh <[email protected]>
+# Written by Roger Leigh <[email protected]>
+#
+# Permission to use, copy, modify, distribute, and sell this software and
+# its documentation for any purpose is hereby granted without fee, provided
+# that (i) the above copyright notices and this permission notice appear in
+# all copies of the software and related documentation, and (ii) the names of
+# Sam Leffler and Silicon Graphics may not be used in any advertising or
+# publicity relating to the software without the specific, prior written
+# permission of Sam Leffler and Silicon Graphics.
+#
+# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
+# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+#
+# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
+# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
+# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
+# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+# OF THIS SOFTWARE.
+
+
+include(CheckCCompilerFlag)
+
+
+# These are annoyingly verbose, produce false positives or don't work
+# nicely with all supported compiler versions, so are disabled unless
+# explicitly enabled.
+option(extra-warnings "Enable extra compiler warnings" OFF)
+
+# This will cause the compiler to fail when an error occurs.
+option(fatal-warnings "Compiler warnings are errors" OFF)
+
+# Check if the compiler supports each of the following additional
+# flags, and enable them if supported.  This greatly improves the
+# quality of the build by checking for a number of common problems,
+# some of which are quite serious.
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR
+        CMAKE_C_COMPILER_ID MATCHES "Clang")
+    set(test_flags
+            -Wall
+            -Winline
+            -Wformat-security
+            -Wpointer-arith
+            -Wdisabled-optimization
+            -Wno-unknown-pragmas
+            -fstrict-aliasing)
+    if(extra-warnings)
+        list(APPEND test_flags
+                -pedantic
+                -Wextra
+                -Wformat
+                -Wformat-overflow
+                -Wformat-nonliteral
+                -Wformat-signedness
+                -Wformat-truncation
+                -Wdeclaration-after-statement
+                -Wconversion
+                -Wsign-conversion
+                -Wnull-dereference
+                -Wdouble-promotion
+                -Wmisleading-indentation
+                -Wmissing-include-dirs
+                -Wswitch-default
+                -Wswitch-enum
+                -Wunused-local-typedefs
+                -Wunused-parameter
+                -Wuninitialized
+                -Warith-conversion
+                -Wbool-operation
+                -Wduplicated-branches
+                -Wduplicated-cond
+                -Wshadow
+                -Wunused-macros
+                -Wc99-c11-compat
+                -Wcast-qual
+                -Wcast-align
+                -Wwrite-strings
+                -Wdangling-else
+                -Wsizeof-array-div
+                -Wsizeof-pointer-div
+                -Wsizeof-pointer-memaccess
+                -Wlogical-op
+                -Wlogical-not-parentheses
+                -Wstrict-prototypes
+                -Wmissing-declarations
+                -Wredundant-decls
+                -Wno-int-to-pointer-cast
+                -Wfloat-equal
+                -Wfloat-conversion
+                -Wmissing-prototypes
+                -Wunreachable-code)
+    endif()
+    if(fatal-warnings)
+        list(APPEND test_flags
+                -Werror)
+    endif()
+elseif(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
+    set(test_flags)
+    if(extra-warnings)
+        list(APPEND test_flags
+                /W4)
+    else()
+        list(APPEND test_flags
+                /W3)
+    endif()
+    if (fatal-warnings)
+        list(APPEND test_flags
+                /WX)
+    endif()
+endif()
+
+foreach(flag ${test_flags})
+    string(REGEX REPLACE "[^A-Za-z0-9]" "_" flag_var "${flag}")
+    set(test_c_flag "C_FLAG${flag_var}")
+    CHECK_C_COMPILER_FLAG(${flag} "${test_c_flag}")
+    if (${test_c_flag})
+        set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${flag}")
+    endif (${test_c_flag})
+endforeach(flag ${test_flags})
diff -r 1a9f94ce0c30 -r a71a41ce1967 tiff/cmake/DeflateCodec.cmake
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tiff/cmake/DeflateCodec.cmake	Sat Dec 03 16:29:52 2022 +0100
@@ -0,0 +1,45 @@
+# Checks for deflate codec support
+#
+# Copyright © 2015 Open Microscopy Environment / University of Dundee
+# Copyright © 2021 Roger Leigh <[email protected]>
+# Written by Roger Leigh <[email protected]>
+#
+# Permission to use, copy, modify, distribute, and sell this software and
+# its documentation for any purpose is hereby granted without fee, provided
+# that (i) the above copyright notices and this permission notice appear in
+# all copies of the software and related documentation, and (ii) the names of
+# Sam Leffler and Silicon Graphics may not be used in any advertising or
+# publicity relating to the software without the specific, prior written
+# permission of Sam Leffler and Silicon Graphics.
+#
+# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
+# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+#
+# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
+# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
+# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
+# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+# OF THIS SOFTWARE.
+
+
+# ZLIB
+set(ZLIB_SUPPORT FALSE)
+find_package(ZLIB)
+option(zlib "use zlib (required for Deflate compression)" ${ZLIB_FOUND})
+if(zlib AND ZLIB_FOUND)
+    set(ZLIB_SUPPORT TRUE)
+endif()
+set(ZIP_SUPPORT ${ZLIB_SUPPORT})
+
+# libdeflate
+set(LIBDEFLATE_SUPPORT FALSE)
+find_package(Deflate)
+option(libdeflate "use libdeflate (optional for faster Deflate support, still requires zlib)" ${Deflate_FOUND})
+if (libdeflate AND Deflate_FOUND AND ZIP_SUPPORT)
+    set(LIBDEFLATE_SUPPORT TRUE)
+endif()
+if(Deflate_FOUND AND NOT ZIP_SUPPORT)
+    message(WARNING "libdeflate available but zlib is not. libdeflate cannot be used")
+endif()
diff -r 1a9f94ce0c30 -r a71a41ce1967 tiff/cmake/FindCMath.cmake
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tiff/cmake/FindCMath.cmake	Sat Dec 03 16:29:52 2022 +0100
@@ -0,0 +1,72 @@
+# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
+# file Copyright.txt or https://cmake.org/licensing for details.
+
+#[=======================================================================[.rst:
+FindCMath
+--------
+
+Find the native CMath includes and library.
+
+IMPORTED Targets
+^^^^^^^^^^^^^^^^
+
+This module defines :prop_tgt:`IMPORTED` target ``CMath::CMath``, if
+CMath has been found.
+
+Result Variables
+^^^^^^^^^^^^^^^^
+
+This module defines the following variables:
+
+::
+
+  CMath_INCLUDE_DIRS   - Where to find math.h
+  CMath_LIBRARIES      - List of libraries when using CMath.
+  CMath_FOUND          - True if CMath found.
+
+#]=======================================================================]
+
+
+include(CheckSymbolExists)
+include(CheckLibraryExists)
+
+check_symbol_exists(pow "math.h" CMath_HAVE_LIBC_POW)
+if(NOT CMath_HAVE_LIBC_POW)
+    find_library(CMath_LIBRARY NAMES m)
+
+    set(CMAKE_REQUIRED_LIBRARIES_SAVE ${CMAKE_REQUIRED_LIBRARIES})
+    set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${CMath_LIBRARY})
+    check_symbol_exists(pow "math.h" CMath_HAVE_LIBM_POW)
+    set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES_SAVE})
+endif()
+
+set(CMath_pow FALSE)
+if(CMath_HAVE_LIBC_POW OR CMath_HAVE_LIBM_POW)
+    set(CMath_pow TRUE)
+endif()
+
+set(CMath_INCLUDE_DIRS)
+
+include(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(CMath REQUIRED_VARS CMath_pow)
+
+if(CMath_FOUND)
+    if(NOT CMath_INCLUDE_DIRS)
+        set(CMath_INCLUDE_DIRS)
+    endif()
+    if(NOT CMath_LIBRARIES)
+        if (CMath_LIBRARY)
+            set(CMath_LIBRARIES ${CMath_LIBRARY})
+        endif()
+    endif()
+
+    if(NOT TARGET CMath::CMath)
+        if(CMath_LIBRARIES)
+            add_library(CMath::CMath UNKNOWN IMPORTED)
+            set_target_properties(CMath::CMath PROPERTIES
+                  IMPORTED_LOCATION "${CMath_LIBRARY}")
+        else()
+            add_library(CMath::CMath INTERFACE IMPORTED)
+        endif()
+    endif()
+endif()
diff -r 1a9f94ce0c30 -r a71a41ce1967 tiff/cmake/FindDeflate.cmake
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tiff/cmake/FindDeflate.cmake	Sat Dec 03 16:29:52 2022 +0100
@@ -0,0 +1,116 @@
+# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
+# file Copyright.txt or https://cmake.org/licensing for details.
+
+#[=======================================================================[.rst:
+FindDeflate
+--------
+
+Find the native Deflate includes and library.
+
+IMPORTED Targets
+^^^^^^^^^^^^^^^^
+
+This module defines :prop_tgt:`IMPORTED` target ``Deflate::Deflate``, if
+Deflate has been found.
+
+Result Variables
+^^^^^^^^^^^^^^^^
+
+This module defines the following variables:
+
+::
+
+  Deflate_INCLUDE_DIRS   - where to find deflate.h, etc.
+  Deflate_LIBRARIES      - List of libraries when using deflate.
+  Deflate_FOUND          - True if deflate found.
+
+::
+
+  Deflate_VERSION_STRING - The version of deflate found (x.y.z)
+  Deflate_VERSION_MAJOR  - The major version of deflate
+  Deflate_VERSION_MINOR  - The minor version of deflate
+
+  Debug and Release variants are found separately.
+#]=======================================================================]
+
+# Standard names to search for
+set(Deflate_NAMES deflate deflatestatic)
+set(Deflate_NAMES_DEBUG deflated deflatestaticd)
+
+find_path(Deflate_INCLUDE_DIR
+          NAMES libdeflate.h
+          PATH_SUFFIXES include)
+
+set(Deflate_OLD_FIND_LIBRARY_PREFIXES "${CMAKE_FIND_LIBRARY_PREFIXES}")
+# Library has a "lib" prefix even on Windows.
+set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "")
+
+# Allow Deflate_LIBRARY to be set manually, as the location of the deflate library
+if(NOT Deflate_LIBRARY)
+  find_library(Deflate_LIBRARY_RELEASE
+               NAMES ${Deflate_NAMES}
+               PATH_SUFFIXES lib)
+  find_library(Deflate_LIBRARY_DEBUG
+               NAMES ${Deflate_NAMES_DEBUG}
+               PATH_SUFFIXES lib)
+
+  include(SelectLibraryConfigurations)
+  select_library_configurations(Deflate)
+endif()
+
+set(CMAKE_FIND_LIBRARY_PREFIXES "${Deflate_OLD_FIND_LIBRARY_PREFIXES}")
+
+unset(Deflate_NAMES)
+unset(Deflate_NAMES_DEBUG)
+unset(Deflate_OLD_FIND_LIBRARY_PREFIXES)
+
+mark_as_advanced(Deflate_INCLUDE_DIR)
+
+if(Deflate_INCLUDE_DIR AND EXISTS "${Deflate_INCLUDE_DIR}/deflate.h")
+    file(STRINGS "${Deflate_INCLUDE_DIR}/libdeflate.h" Deflate_H REGEX "^#define LIBDEFLATE_VERSION_STRING\s+\"[^\"]*\"$")
+
+    string(REGEX REPLACE "^.*Deflate_VERSION \"([0-9]+).*$" "\\1" Deflate_MAJOR_VERSION "${Deflate_H}")
+    string(REGEX REPLACE "^.*Deflate_VERSION \"[0-9]+\\.([0-9]+).*$" "\\1" Deflate_MINOR_VERSION  "${Deflate_H}")
+    set(Deflate_VERSION_STRING "${Deflate_MAJOR_VERSION}.${Deflate_MINOR_VERSION}")
+
+    set(Deflate_MAJOR_VERSION "${Deflate_VERSION_MAJOR}")
+    set(Deflate_MINOR_VERSION "${Deflate_VERSION_MINOR}")
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.