Changeset 103316 in vbox
- Timestamp:
- Feb 12, 2024 3:57:56 PM (14 months ago)
- svn:sync-xref-src-repo-rev:
- 161613
- Location:
- trunk/src/libs/libpng-1.6.42
- Files:
-
- 23 deleted
- 141 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/libpng-1.6.42/ANNOUNCE
r96425 r103316 1 libpng 1.6. 37 - April 14, 20192 ============================== 1 libpng 1.6.42 - January 29, 2024 2 ================================ 3 3 4 4 This is a public release of libpng, intended for use in production code. … … 10 10 Source files with LF line endings (for Unix/Linux): 11 11 12 * libpng-1.6. 37.tar.xz (LZMA-compressed, recommended)13 * libpng-1.6. 37.tar.gz12 * libpng-1.6.42.tar.xz (LZMA-compressed, recommended) 13 * libpng-1.6.42.tar.gz (deflate-compressed) 14 14 15 15 Source files with CRLF line endings (for Windows): 16 16 17 * lp 1637.7z (LZMA-compressed, recommended)18 * lp 1637.zip17 * lpng1642.7z (LZMA-compressed, recommended) 18 * lpng1642.zip (deflate-compressed) 19 19 20 20 Other information: … … 26 26 27 27 28 Changes since the previous public release (version 1.6.36)29 --------------------------------------------- -------------28 Changes from version 1.6.41 to version 1.6.42 29 --------------------------------------------- 30 30 31 * Fixed a use-after-free vulnerability (CVE-2019-7317) in png_image_free. 32 * Fixed a memory leak in the ARM NEON implementation of png_do_expand_palette. 33 * Fixed a memory leak in pngtest.c. 34 * Fixed two vulnerabilities (CVE-2018-14048, CVE-2018-14550) in 35 contrib/pngminus; refactor. 36 * Changed the license of contrib/pngminus to MIT; refresh makefile and docs. 37 (Contributed by Willem van Schaik) 38 * Fixed a typo in the libpng license v2. 39 (Contributed by Miguel Ojeda) 40 * Added makefiles for AddressSanitizer-enabled builds. 41 * Cleaned up various makefiles. 31 * Fixed the implementation of the macro function `png_check_sig`. 32 This was an API regression, introduced in libpng-1.6.41. 33 (Reported by Matthieu Darbois) 34 35 36 Changes from version 1.6.40 to version 1.6.41 37 --------------------------------------------- 38 39 * Added SIMD-optimized code for the Loongarch LSX hardware. 40 (Contributed by GuXiWei, JinBo and ZhangLixia) 41 * Fixed the run-time discovery of MIPS MSA hardware. 42 (Contributed by Sui Jingfeng) 43 * Fixed an off-by-one error in the function `png_do_check_palette_indexes`, 44 which failed to recognize errors that might have existed in the first 45 column of a broken palette-encoded image. This was a benign regression 46 accidentally introduced in libpng-1.6.33. No pixel was harmed. 47 (Contributed by Adam Richter; reviewed by John Bowler) 48 * Fixed, improved and modernized the contrib/pngminus programs, i.e., 49 png2pnm.c and pnm2png.c 50 * Removed old and peculiar portability hacks that were meant to silence 51 warnings issued by gcc version 7.1 alone. 52 (Contributed by John Bowler) 53 * Fixed and modernized the CMake file, and raised the minimum required 54 CMake version from 3.1 to 3.6. 55 (Contributed by Clinton Ingram, Timothy Lyanguzov, Tyler Kropp, et al.) 56 * Allowed the configure script to disable the building of auxiliary tools 57 and tests, thus catching up with the CMake file. 58 (Contributed by Carlo Bramini) 59 * Fixed a build issue on Mac. 60 (Contributed by Zixu Wang) 61 * Moved the Autoconf macro files to scripts/autoconf. 62 * Moved the CMake files (except for the main CMakeLists.txt) to 63 scripts/cmake and moved the list of their contributing authors to 64 scripts/cmake/AUTHORS.md 65 * Updated the CI configurations and scripts. 66 * Relicensed the CI scripts to the MIT License. 67 * Improved the test coverage. 68 (Contributed by John Bowler) 42 69 43 70 -
trunk/src/libs/libpng-1.6.42/AUTHORS
r96425 r103316 5 5 Authors, for copyright and licensing purposes. 6 6 7 * Adam Richter 7 8 * Andreas Dilger 8 9 * Cosmin Truta … … 21 22 * Matt Sarett 22 23 * Mike Klein 24 * Pascal Massimino 23 25 * Paul Schmidt 26 * Philippe Antoine 27 * Qiang Zhou 24 28 * Sam Bushell 25 29 * Samuel Williams … … 31 35 * Willem van Schaik 32 36 * Zhijie Liang 37 * Apple Inc. 38 - Zixu Wang (王子旭) 33 39 * Arm Holdings 34 - Richard Townsend40 - Richard Townsend 35 41 * Google Inc. 36 - Matt Sarett 37 - Mike Klein 42 - Dan Field 43 - Leon Scroggins III 44 - Matt Sarett 45 - Mike Klein 46 - Sami Boukortt 47 - Wan-Teh Chang 48 * Loongson Technology Corporation Ltd. 49 - GuXiWei (顾希伟) 50 - JinBo (金波) 51 - ZhangLixia (张利霞) 38 52 39 53 The build projects, the build scripts, the test scripts, and other 40 files in the "projects", "scripts" and "tests" directories, have other41 copyright owners, but are released under the libpng license.54 files in the "projects", "scripts" and "tests" directories, have 55 other copyright owners, but are released under the libpng license. 42 56 43 Some files in the "contrib" directory, and some tools-generated files 44 that are distributed with libpng, have other copyright owners, and are 45 released under other open source licenses. 57 Some files in the "ci" and "contrib" directories, as well as some 58 of the tools-generated files that are distributed with libpng, have 59 other copyright owners, and are released under other open source 60 licenses. -
trunk/src/libs/libpng-1.6.42/CHANGES
r96425 r103316 205 205 Easier conditional compiling, e.g., 206 206 define PNG_READ/WRITE_NOT_FULLY_SUPPORTED; 207 all configurable options can be selected from command -line instead207 all configurable options can be selected from command line instead 208 208 of having to edit pngconf.h (Glenn R-P) 209 209 Fixed memory leak in pngwrite.c (free info_ptr->text) (Glenn R-P) … … 943 943 Fixed typo in scripts/makefile.hpux 944 944 Updated makevms.com in scripts and contrib/* and contrib/* (Martin Zinser) 945 Fixed seq ence-point bug in contrib/pngminus/png2pnm (Martin Zinser)945 Fixed sequence-point bug in contrib/pngminus/png2pnm (Martin Zinser) 946 946 Changed "cdrom.com" in documentation to "libpng.org" 947 947 Revised pnggccrd.c to get it all working, and updated makefile.gcmmx (Greg). … … 2296 2296 2297 2297 Version 1.4.0beta59 [May 15, 2009] 2298 Reformat ed sources in libpng style (3-space intentation, comment format)2298 Reformatted sources in libpng style (3-space indentation, comment format) 2299 2299 Fixed typo in libpng docs (PNG_FILTER_AVE should be PNG_FILTER_AVG) 2300 2300 Added sections about the git repository and our coding style to the … … 2662 2662 Version 1.4.1beta07 [February 6, 2010] 2663 2663 Folded some long lines in the source files. 2664 Added defin eable PNG_USER_CHUNK_CACHE_MAX, PNG_USER_CHUNK_MALLOC_MAX,2664 Added definable PNG_USER_CHUNK_CACHE_MAX, PNG_USER_CHUNK_MALLOC_MAX, 2665 2665 and a PNG_USER_LIMITS_SUPPORTED flag. 2666 2666 Eliminated use of png_ptr->irowbytes and reused the slot in png_ptr as … … 3887 3887 Eliminated Intel icc/icl compiler warnings. The Intel (GCC derived) 3888 3888 compiler issues slightly different warnings from those issued by the 3889 current ve sions of GCC. This eliminates those warnings by3889 current versions of GCC. This eliminates those warnings by 3890 3890 adding/removing casts and small code rewrites. 3891 3891 Updated configure.ac from autoupdate: added --enable-werror option. … … 3920 3920 Improved pngstest speed by not doing redundant tests and add const to 3921 3921 the background parameter of png_image_finish_read. The --background 3922 option is now done automagically only when required, so that command line3922 option is now done automagically only when required, so that command-line 3923 3923 option no longer exists. 3924 3924 Cleaned up pngpriv.h to consistently declare all functions and data. … … 4053 4053 4054 4054 Version 1.6.0beta17 [March 10, 2012] 4055 Fixed PNG_LIBPNG_BUILD_BASE_TYPE definition. 4055 Fixed PNG_LIBPNG_BUILD_BASE_TYPE definition. 4056 4056 Reject all iCCP chunks after the first, even if the first one is invalid. 4057 4057 Deflate/inflate was reworked to move common zlib calls into single … … 4963 4963 "if (defined(__ARM_NEON__) || defined(__ARM_NEON))" (James Wu). 4964 4964 Fixed clang no-warning builds: png_digit was defined but never used. 4965 4965 4966 4966 Version 1.6.13beta02 [July 21, 2014] 4967 4967 Fixed an incorrect separator ("/" should be "\") in scripts/makefile.vcwin32 … … 5454 5454 Moved png_check_keyword() from pngwutil.c to pngset.c 5455 5455 Removed LE/BE dependencies in pngvalid, to 'fix' the current problem 5456 in the BigEndian tests by not testing it, making the BE code the same 5456 in the BigEndian tests by not testing it, making the BE code the same 5457 5457 as the LE version. 5458 5458 Fixes to pngvalid for various reduced build configurations (eliminate unused … … 5518 5518 to the LICENSE file, png.h, and the man page. 5519 5519 Restored "& 0xff" in png_save_uint_16() and png_save_uint_32() that 5520 were accidentally removed from libpng-1.6.17. 5520 were accidentally removed from libpng-1.6.17. 5521 5521 Changed PNG_INFO_cHNK and PNG_FREE_cHNK from 0xnnnn to 0xnnnnU in png.h 5522 5522 (Robert C. Seacord). … … 5928 5928 5929 5929 Version 1.6.32beta04 [August 2, 2017] 5930 Replaced local eXIf_buf with info_ptr- eXIf_buf in png_handle_eXIf().5930 Replaced local eXIf_buf with info_ptr->eXIf_buf in png_handle_eXIf(). 5931 5931 Update libpng.3 and libpng-manual.txt about eXIf functions. 5932 5932 … … 5951 5951 no longer using deprecated cmake LOCATION feature (Clifford Yapp). 5952 5952 Fixed five-byte error in the calculation of IDAT maximum possible size. 5953 5953 5954 5954 Version 1.6.32beta10 [August 5, 2017] 5955 5955 Moved chunk-length check into a png_check_chunk_length() private … … 6104 6104 Cleaned up various makefiles. 6105 6105 6106 Version 1.6.38 [September 14, 2022] 6107 Added configurations and scripts for continuous integration. 6108 Fixed various errors in the handling of tRNS, hIST and eXIf. 6109 Implemented many stability improvements across all platforms. 6110 Updated the internal documentation. 6111 6112 Version 1.6.39 [November 20, 2022] 6113 Changed the error handler of oversized chunks (i.e. larger than 6114 PNG_USER_CHUNK_MALLOC_MAX) from png_chunk_error to png_benign_error. 6115 Fixed a buffer overflow error in contrib/tools/pngfix. 6116 Fixed a memory leak (CVE-2019-6129) in contrib/tools/pngcp. 6117 Disabled the ARM Neon optimizations by default in the CMake file, 6118 following the default behavior of the configure script. 6119 Allowed configure.ac to work with the trunk version of autoconf. 6120 Removed the support for "install" targets from the legacy makefiles; 6121 removed the obsolete makefile.cegcc. 6122 Cleaned up the code and updated the internal documentation. 6123 6124 Version 1.6.40 [June 21, 2023] 6125 Fixed the eXIf chunk multiplicity checks. 6126 Fixed a memory leak in pCAL processing. 6127 Corrected the validity report about tRNS inside png_get_valid(). 6128 Fixed various build issues on *BSD, Mac and Windows. 6129 Updated the configurations and the scripts for continuous integration. 6130 Cleaned up the code, the build scripts, and the documentation. 6131 6132 Version 1.6.41 [January 24, 2024] 6133 Added SIMD-optimized code for the Loongarch LSX hardware. 6134 (Contributed by GuXiWei, JinBo and ZhangLixia) 6135 Fixed the run-time discovery of MIPS MSA hardware. 6136 (Contributed by Sui Jingfeng) 6137 Fixed an off-by-one error in the function png_do_check_palette_indexes(), 6138 which failed to recognize errors that might have existed in the first 6139 column of a broken palette-encoded image. This was a benign regression 6140 accidentally introduced in libpng-1.6.33. No pixel was harmed. 6141 (Contributed by Adam Richter; reviewed by John Bowler) 6142 Fixed, improved and modernized the contrib/pngminus programs, i.e., 6143 png2pnm.c and pnm2png.c 6144 Removed old and peculiar portability hacks that were meant to silence 6145 warnings issued by gcc version 7.1 alone. 6146 (Contributed by John Bowler) 6147 Fixed and modernized the CMake file, and raised the minimum required 6148 CMake version from 3.1 to 3.6. 6149 (Contributed by Clinton Ingram, Timothy Lyanguzov, Tyler Kropp, et al.) 6150 Allowed the configure script to disable the building of auxiliary tools 6151 and tests, thus catching up with the CMake file. 6152 (Contributed by Carlo Bramini) 6153 Fixed a build issue on Mac. 6154 (Contributed by Zixu Wang) 6155 Moved the Autoconf macro files to scripts/autoconf. 6156 Moved the CMake files (except for the main CMakeLists.txt) to 6157 scripts/cmake and moved the list of their contributing authors to 6158 scripts/cmake/AUTHORS.md 6159 Updated the CI configurations and scripts. 6160 Relicensed the CI scripts to the MIT License. 6161 Improved the test coverage. 6162 (Contributed by John Bowler) 6163 6164 Version 1.6.42 [January 29, 2024] 6165 Fixed the implementation of the macro function png_check_sig(). 6166 This was an API regression, introduced in libpng-1.6.41. 6167 (Reported by Matthieu Darbois) 6168 6106 6169 Send comments/corrections/commendations to png-mng-implement at lists.sf.net. 6107 6170 Subscription is required; visit -
trunk/src/libs/libpng-1.6.42/CMakeLists.txt
r96425 r103316 1 # CMakeLists.txt 2 3 # Copyright (C) 2018 Cosmin Truta 4 # Copyright (C) 2007,2009-2018 Glenn Randers-Pehrson 5 # Written by Christian Ehrlicher, 2007 6 # Revised by Roger Lowman, 2009-2010 7 # Revised by Clifford Yapp, 2011-2012,2017 8 # Revised by Roger Leigh, 2016 9 # Revised by Andreas Franek, 2016 10 # Revised by Sam Serrels, 2017 11 # Revised by Vadim Barkov, 2017 12 # Revised by Vicky Pfau, 2018 13 # Revised by Cameron Cawley, 2018 14 # Revised by Cosmin Truta, 2018 15 # Revised by Kyle Bentley, 2018 16 17 # This code is released under the libpng license. 18 # For conditions of distribution and use, see the disclaimer 19 # and license in png.h 20 21 cmake_minimum_required(VERSION 3.1) 22 cmake_policy(VERSION 3.1) 23 24 project(libpng C ASM) 25 enable_testing() 1 2 # CMakeLists.txt - CMake lists for libpng 3 # 4 # Copyright (c) 2018-2024 Cosmin Truta. 5 # Copyright (c) 2007-2018 Glenn Randers-Pehrson. 6 # Originally written by Christian Ehrlicher, 2007. 7 # 8 # Use, modification and distribution are subject to 9 # the same licensing terms and conditions as libpng. 10 # Please see the copyright notice in png.h or visit 11 # http://libpng.org/pub/png/src/libpng-LICENSE.txt 12 # 13 # For copyright and licensing purposes, please see 14 # the accompanying file scripts/cmake/AUTHORS.md 15 # 16 # SPDX-License-Identifier: libpng-2.0 17 18 cmake_minimum_required(VERSION 3.6) 26 19 27 20 set(PNGLIB_MAJOR 1) 28 21 set(PNGLIB_MINOR 6) 29 set(PNGLIB_RELEASE 37) 30 set(PNGLIB_NAME libpng${PNGLIB_MAJOR}${PNGLIB_MINOR}) 31 set(PNGLIB_VERSION ${PNGLIB_MAJOR}.${PNGLIB_MINOR}.${PNGLIB_RELEASE}) 32 22 set(PNGLIB_REVISION 41) 23 set(PNGLIB_SUBREVISION 0) 24 #set(PNGLIB_SUBREVISION "git") 25 set(PNGLIB_VERSION ${PNGLIB_MAJOR}.${PNGLIB_MINOR}.${PNGLIB_REVISION}) 26 set(PNGLIB_ABI_VERSION ${PNGLIB_MAJOR}${PNGLIB_MINOR}) 27 set(PNGLIB_SHARED_VERSION ${PNGLIB_ABI_VERSION}.${PNGLIB_REVISION}.${PNGLIB_SUBREVISION}) 28 29 project(libpng 30 VERSION ${PNGLIB_VERSION} 31 LANGUAGES C ASM) 32 33 if(POLICY CMP0074) 34 # Allow find_package() to use the ZLIB_ROOT variable, if available. 35 cmake_policy(SET CMP0074 NEW) 36 endif() 37 38 include(CheckCSourceCompiles) 33 39 include(GNUInstallDirs) 34 40 35 # needed packages 36 37 # Allow users to specify location of Zlib. 38 # Useful if zlib is being built alongside this as a sub-project. 39 option(PNG_BUILD_ZLIB "Custom zlib Location, else find_package is used" OFF) 40 41 # Allow the users to specify an application-specific API prefix for libpng 42 # vendoring purposes. A standard libpng build should have no such prefix. 43 set(PNG_PREFIX "" 44 CACHE STRING "Prefix to prepend to the API function names") 45 46 # Allow the users to override the postfix appended to debug library file names. 47 # Previously, we used to set CMAKE_DEBUG_POSTFIX globally. That variable should 48 # not be cached, however, because doing so would affect all projects processed 49 # after libpng, in unexpected and undesirable ways. 50 set(PNG_DEBUG_POSTFIX "d" 51 CACHE STRING "Postfix to append to library file names under the Debug configuration") 52 53 # Allow the users to import their own extra configuration settings. 54 set(DFA_XTRA "" 55 CACHE FILEPATH "File containing extra configuration settings") 56 57 # Allow the users to switch on/off various library build types. 58 option(PNG_SHARED "Build libpng as a shared library" ON) 59 option(PNG_STATIC "Build libpng as a static library" ON) 60 if(APPLE) 61 option(PNG_FRAMEWORK "Build libpng as a framework bundle" ON) 62 endif() 63 64 # Allow the users to switch on/off the auxiliary build and test artifacts. 65 # NOTE: These artifacts are NOT part of libpng proper, and are subject to change at any time. 66 option(PNG_TESTS "Build the libpng tests" ON) 67 option(PNG_TOOLS "Build the libpng tools" ON) 68 69 # Maintain backwards compatibility with the deprecated option PNG_EXECUTABLES. 70 option(PNG_EXECUTABLES "[Deprecated; please use PNG_TOOLS]" ON) 71 if(NOT PNG_EXECUTABLES) 72 message(DEPRECATION "The option PNG_EXECUTABLES has been deprecated in favour of PNG_TOOLS") 73 if(PNG_TOOLS) 74 message(AUTHOR_WARNING 75 "Setting PNG_TOOLS to ${PNG_EXECUTABLES}, to stay compatible with PNG_EXECUTABLES") 76 set(PNG_TOOLS "${PNG_EXECUTABLES}") 77 endif() 78 endif() 79 80 # Allow the users to configure various compilation options. 81 option(PNG_DEBUG "Enable debug output" OFF) 82 option(PNG_HARDWARE_OPTIMIZATIONS "Enable hardware optimizations" ON) 83 84 # Allow the users to specify a custom location of zlib. 85 # This option is deprecated, and no longer needed with CMake 3.12 and newer. 86 # Under the CMake policy CMP0074, if zlib is being built alongside libpng as a 87 # subproject, its location can be passed on to CMake via the ZLIB_ROOT variable. 88 option(PNG_BUILD_ZLIB "Custom zlib location, else find_package is used" OFF) 41 89 if(NOT PNG_BUILD_ZLIB) 42 90 find_package(ZLIB REQUIRED) 43 include_directories(${ZLIB_INCLUDE_DIR}) 44 endif() 45 46 if(UNIX AND NOT APPLE AND NOT BEOS AND NOT HAIKU) 91 elseif(POLICY CMP0074) 92 # TODO: Remove the policy check if CMake version 3.12 or greater becomes the minimum required. 93 if("x${ZLIB_ROOT}" STREQUAL "x") 94 message(DEPRECATION 95 "The option PNG_BUILD_ZLIB has been deprecated; please use ZLIB_ROOT instead") 96 else() 97 message(SEND_ERROR 98 "The option PNG_BUILD_ZLIB=${PNG_BUILD_ZLIB} and " 99 "the variable ZLIB_ROOT=\"${ZLIB_ROOT}\" are mutually exclusive") 100 endif() 101 endif() 102 103 if(UNIX AND NOT APPLE AND NOT BEOS AND NOT HAIKU AND NOT EMSCRIPTEN) 47 104 find_library(M_LIBRARY m) 105 if(M_LIBRARY) 106 set(M_LIBRARY m) 107 else() 108 set(M_LIBRARY "") 109 endif() 48 110 else() 49 # libm is not needed and/or not available 50 set(M_LIBRARY "") 51 endif() 52 53 # COMMAND LINE OPTIONS 54 option(PNG_SHARED "Build shared lib" ON) 55 option(PNG_STATIC "Build static lib" ON) 56 option(PNG_TESTS "Build libpng tests" ON) 57 58 # Many more configuration options could be added here 59 option(PNG_FRAMEWORK "Build OS X framework" OFF) 60 option(PNG_DEBUG "Build with debug output" OFF) 61 option(PNG_HARDWARE_OPTIMIZATIONS "Enable hardware optimizations" ON) 62 63 set(PNG_PREFIX "" CACHE STRING "Prefix to add to the API function names") 64 set(DFA_XTRA "" CACHE FILEPATH "File containing extra configuration settings") 111 # libm is not available or not needed. 112 endif() 113 114 # CMake currently sets CMAKE_SYSTEM_PROCESSOR to one of x86_64 or arm64 on macOS, 115 # based upon the OS architecture, not the target architecture. As such, we need 116 # to check CMAKE_OSX_ARCHITECTURES to identify which hardware-specific flags to 117 # enable. Note that this will fail if you attempt to build a universal binary in 118 # a single CMake invocation. 119 if (APPLE AND CMAKE_OSX_ARCHITECTURES) 120 set(TARGET_ARCH ${CMAKE_OSX_ARCHITECTURES}) 121 else() 122 set(TARGET_ARCH ${CMAKE_SYSTEM_PROCESSOR}) 123 endif() 65 124 66 125 if(PNG_HARDWARE_OPTIMIZATIONS) 67 126 68 # set definitions and sources for arm 69 if(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm" OR 70 CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64") 71 set(PNG_ARM_NEON_POSSIBLE_VALUES check on off) 72 set(PNG_ARM_NEON "check" CACHE STRING "Enable ARM NEON optimizations: 73 check: (default) use internal checking code; 74 off: disable the optimizations; 75 on: turn on unconditionally.") 76 set_property(CACHE PNG_ARM_NEON PROPERTY STRINGS 77 ${PNG_ARM_NEON_POSSIBLE_VALUES}) 127 # Set definitions and sources for ARM. 128 if(TARGET_ARCH MATCHES "^(ARM|arm|aarch)") 129 if(TARGET_ARCH MATCHES "^(ARM64|arm64|aarch64)") 130 set(PNG_ARM_NEON_POSSIBLE_VALUES on off) 131 set(PNG_ARM_NEON "on" 132 CACHE STRING "Enable ARM NEON optimizations: on|off; on is default") 133 else() 134 set(PNG_ARM_NEON_POSSIBLE_VALUES check on off) 135 set(PNG_ARM_NEON "off" 136 CACHE STRING "Enable ARM NEON optimizations: check|on|off; off is default") 137 endif() 138 set_property(CACHE PNG_ARM_NEON 139 PROPERTY STRINGS ${PNG_ARM_NEON_POSSIBLE_VALUES}) 78 140 list(FIND PNG_ARM_NEON_POSSIBLE_VALUES ${PNG_ARM_NEON} index) 79 141 if(index EQUAL -1) 80 message(FATAL_ERROR 81 "PNG_ARM_NEON must be one of [${PNG_ARM_NEON_POSSIBLE_VALUES}]") 82 elseif(NOT ${PNG_ARM_NEON} STREQUAL "off") 142 message(FATAL_ERROR "PNG_ARM_NEON must be one of [${PNG_ARM_NEON_POSSIBLE_VALUES}]") 143 elseif(NOT PNG_ARM_NEON STREQUAL "off") 83 144 set(libpng_arm_sources 84 arm/arm_init.c 85 arm/filter_neon.S 86 arm/filter_neon_intrinsics.c 87 arm/palette_neon_intrinsics.c) 88 89 if(${PNG_ARM_NEON} STREQUAL "on") 145 arm/arm_init.c 146 arm/filter_neon_intrinsics.c 147 arm/palette_neon_intrinsics.c) 148 if(NOT MSVC) 149 list(APPEND libpng_arm_sources arm/filter_neon.S) 150 endif() 151 if(PNG_ARM_NEON STREQUAL "on") 90 152 add_definitions(-DPNG_ARM_NEON_OPT=2) 91 elseif( ${PNG_ARM_NEON}STREQUAL "check")153 elseif(PNG_ARM_NEON STREQUAL "check") 92 154 add_definitions(-DPNG_ARM_NEON_CHECK_SUPPORTED) 93 155 endif() … … 97 159 endif() 98 160 99 # set definitions and sources for powerpc 100 if(CMAKE_SYSTEM_PROCESSOR MATCHES "^powerpc*" OR 101 CMAKE_SYSTEM_PROCESSOR MATCHES "^ppc64*") 161 # Set definitions and sources for PowerPC. 162 if(TARGET_ARCH MATCHES "^(powerpc|ppc64)") 102 163 set(PNG_POWERPC_VSX_POSSIBLE_VALUES on off) 103 set(PNG_POWERPC_VSX "on" CACHE STRING "Enable POWERPC VSX optimizations:104 off: disable the optimizations.")105 set_property(CACHE PNG_POWERPC_VSX PROPERTY STRINGS106 ${PNG_POWERPC_VSX_POSSIBLE_VALUES})164 set(PNG_POWERPC_VSX "on" 165 CACHE STRING "Enable POWERPC VSX optimizations: on|off; on is default") 166 set_property(CACHE PNG_POWERPC_VSX 167 PROPERTY STRINGS ${PNG_POWERPC_VSX_POSSIBLE_VALUES}) 107 168 list(FIND PNG_POWERPC_VSX_POSSIBLE_VALUES ${PNG_POWERPC_VSX} index) 108 169 if(index EQUAL -1) 109 message(FATAL_ERROR 110 "PNG_POWERPC_VSX must be one of [${PNG_POWERPC_VSX_POSSIBLE_VALUES}]") 111 elseif(NOT ${PNG_POWERPC_VSX} STREQUAL "off") 170 message(FATAL_ERROR "PNG_POWERPC_VSX must be one of [${PNG_POWERPC_VSX_POSSIBLE_VALUES}]") 171 elseif(NOT PNG_POWERPC_VSX STREQUAL "off") 112 172 set(libpng_powerpc_sources 113 powerpc/powerpc_init.c114 powerpc/filter_vsx_intrinsics.c)115 if( ${PNG_POWERPC_VSX}STREQUAL "on")173 powerpc/powerpc_init.c 174 powerpc/filter_vsx_intrinsics.c) 175 if(PNG_POWERPC_VSX STREQUAL "on") 116 176 add_definitions(-DPNG_POWERPC_VSX_OPT=2) 117 177 endif() … … 121 181 endif() 122 182 123 # set definitions and sources for intel 124 if(CMAKE_SYSTEM_PROCESSOR MATCHES "^i?86" OR 125 CMAKE_SYSTEM_PROCESSOR MATCHES "^x86_64*") 183 # Set definitions and sources for Intel. 184 if(TARGET_ARCH MATCHES "^(i[3-6]86|x86|AMD64)") 126 185 set(PNG_INTEL_SSE_POSSIBLE_VALUES on off) 127 set(PNG_INTEL_SSE "on" CACHE STRING "Enable INTEL_SSE optimizations:128 off: disable the optimizations")129 set_property(CACHE PNG_INTEL_SSE PROPERTY STRINGS130 ${PNG_INTEL_SSE_POSSIBLE_VALUES})186 set(PNG_INTEL_SSE "on" 187 CACHE STRING "Enable INTEL_SSE optimizations: on|off; on is default") 188 set_property(CACHE PNG_INTEL_SSE 189 PROPERTY STRINGS ${PNG_INTEL_SSE_POSSIBLE_VALUES}) 131 190 list(FIND PNG_INTEL_SSE_POSSIBLE_VALUES ${PNG_INTEL_SSE} index) 132 191 if(index EQUAL -1) 133 message(FATAL_ERROR 134 "PNG_INTEL_SSE must be one of [${PNG_INTEL_SSE_POSSIBLE_VALUES}]") 135 elseif(NOT ${PNG_INTEL_SSE} STREQUAL "off") 192 message(FATAL_ERROR "PNG_INTEL_SSE must be one of [${PNG_INTEL_SSE_POSSIBLE_VALUES}]") 193 elseif(NOT PNG_INTEL_SSE STREQUAL "off") 136 194 set(libpng_intel_sources 137 intel/intel_init.c138 intel/filter_sse2_intrinsics.c)139 if( ${PNG_INTEL_SSE}STREQUAL "on")195 intel/intel_init.c 196 intel/filter_sse2_intrinsics.c) 197 if(PNG_INTEL_SSE STREQUAL "on") 140 198 add_definitions(-DPNG_INTEL_SSE_OPT=1) 141 199 endif() … … 145 203 endif() 146 204 147 # set definitions and sources for MIPS 148 if(CMAKE_SYSTEM_PROCESSOR MATCHES "mipsel*" OR 149 CMAKE_SYSTEM_PROCESSOR MATCHES "mips64el*") 205 # Set definitions and sources for MIPS. 206 if(TARGET_ARCH MATCHES "^(mipsel|mips64el)") 150 207 set(PNG_MIPS_MSA_POSSIBLE_VALUES on off) 151 set(PNG_MIPS_MSA "on" CACHE STRING "Enable MIPS_MSA optimizations: 152 off: disable the optimizations") 153 set_property(CACHE PNG_MIPS_MSA PROPERTY STRINGS 154 ${PNG_MIPS_MSA_POSSIBLE_VALUES}) 155 list(FIND PNG_MIPS_MSA_POSSIBLE_VALUES ${PNG_MIPS_MSA} index) 156 if(index EQUAL -1) 157 message(FATAL_ERROR 158 "PNG_MIPS_MSA must be one of [${PNG_MIPS_MSA_POSSIBLE_VALUES}]") 159 elseif(NOT ${PNG_MIPS_MSA} STREQUAL "off") 208 set(PNG_MIPS_MSA "on" 209 CACHE STRING "Enable MIPS_MSA optimizations: on|off; on is default") 210 set_property(CACHE PNG_MIPS_MSA 211 PROPERTY STRINGS ${PNG_MIPS_MSA_POSSIBLE_VALUES}) 212 list(FIND PNG_MIPS_MSA_POSSIBLE_VALUES ${PNG_MIPS_MSA} index_msa) 213 if(index_msa EQUAL -1) 214 message(FATAL_ERROR "PNG_MIPS_MSA must be one of [${PNG_MIPS_MSA_POSSIBLE_VALUES}]") 215 endif() 216 217 set(PNG_MIPS_MMI_POSSIBLE_VALUES on off) 218 set(PNG_MIPS_MMI "on" 219 CACHE STRING "Enable MIPS_MMI optimizations: on|off; on is default") 220 set_property(CACHE PNG_MIPS_MMI 221 PROPERTY STRINGS ${PNG_MIPS_MMI_POSSIBLE_VALUES}) 222 list(FIND PNG_MIPS_MMI_POSSIBLE_VALUES ${PNG_MIPS_MMI} index_mmi) 223 if(index_mmi EQUAL -1) 224 message(FATAL_ERROR "PNG_MIPS_MMI must be one of [${PNG_MIPS_MMI_POSSIBLE_VALUES}]") 225 endif() 226 227 if(PNG_MIPS_MSA STREQUAL "on" AND PNG_MIPS_MMI STREQUAL "on") 160 228 set(libpng_mips_sources 161 mips/mips_init.c 162 mips/filter_msa_intrinsics.c) 163 if(${PNG_MIPS_MSA} STREQUAL "on") 164 add_definitions(-DPNG_MIPS_MSA_OPT=2) 165 endif() 166 else() 229 mips/mips_init.c 230 mips/filter_msa_intrinsics.c 231 mips/filter_mmi_inline_assembly.c) 232 add_definitions(-DPNG_MIPS_MSA_OPT=2) 233 add_definitions(-DPNG_MIPS_MMI_OPT=1) 234 elseif(PNG_MIPS_MSA STREQUAL "on") 235 set(libpng_mips_sources 236 mips/mips_init.c 237 mips/filter_msa_intrinsics.c) 238 add_definitions(-DPNG_MIPS_MSA_OPT=2) 239 add_definitions(-DPNG_MIPS_MMI_OPT=0) 240 elseif(PNG_MIPS_MMI STREQUAL "on") 241 set(libpng_mips_sources 242 mips/mips_init.c 243 mips/filter_mmi_inline_assembly.c) 167 244 add_definitions(-DPNG_MIPS_MSA_OPT=0) 168 endif() 245 add_definitions(-DPNG_MIPS_MMI_OPT=1) 246 else() 247 add_definitions(-DPNG_MIPS_MSA_OPT=0) 248 add_definitions(-DPNG_MIPS_MMI_OPT=0) 249 endif() 169 250 endif() 170 251 171 252 else(PNG_HARDWARE_OPTIMIZATIONS) 172 253 173 # set definitions and sources for arm 174 if(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm" OR 175 CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64") 254 # Set definitions and sources for ARM. 255 if(TARGET_ARCH MATCHES "^(ARM|arm|aarch)") 176 256 add_definitions(-DPNG_ARM_NEON_OPT=0) 177 257 endif() 178 258 179 # set definitions and sources for powerpc 180 if(CMAKE_SYSTEM_PROCESSOR MATCHES "^powerpc*" OR 181 CMAKE_SYSTEM_PROCESSOR MATCHES "^ppc64*") 259 # Set definitions and sources for PowerPC. 260 if(TARGET_ARCH MATCHES "^(powerpc|ppc64)") 182 261 add_definitions(-DPNG_POWERPC_VSX_OPT=0) 183 262 endif() 184 263 185 # set definitions and sources for intel 186 if(CMAKE_SYSTEM_PROCESSOR MATCHES "^i?86" OR 187 CMAKE_SYSTEM_PROCESSOR MATCHES "^x86_64*") 264 # Set definitions and sources for Intel. 265 if(TARGET_ARCH MATCHES "^(i[3-6]86|x86|AMD64)") 188 266 add_definitions(-DPNG_INTEL_SSE_OPT=0) 189 267 endif() 190 268 191 # set definitions and sources for MIPS 192 if(CMAKE_SYSTEM_PROCESSOR MATCHES "mipsel*" OR 193 CMAKE_SYSTEM_PROCESSOR MATCHES "mips64el*") 269 # Set definitions and sources for MIPS. 270 if(TARGET_ARCH MATCHES "^(mipsel|mips64el)") 194 271 add_definitions(-DPNG_MIPS_MSA_OPT=0) 195 272 endif() … … 197 274 endif(PNG_HARDWARE_OPTIMIZATIONS) 198 275 199 # SET LIBNAME200 set(PNG_LIB_NAME png${PNGLIB_MAJOR}${PNGLIB_MINOR})201 202 # to distinguish between debug and release lib203 set(CMAKE_DEBUG_POSTFIX "d")204 205 include(CheckCSourceCompiles)206 276 option(ld-version-script "Enable linker version script" ON) 207 if(ld-version-script AND NOT A PPLE)277 if(ld-version-script AND NOT ANDROID AND NOT APPLE) 208 278 # Check if LD supports linker scripts. 209 file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/conftest.map" "VERS_1 { 210 global: sym; 211 local: *; 212 }; 213 214 VERS_2 { 215 global: sym2; 216 main; 217 } VERS_1; 279 file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/conftest.map" " 280 VERS_1 { global: sym1; local: *; }; 281 VERS_2 { global: sym2; main; } VERS_1; 218 282 ") 219 set(CMAKE_REQUIRED_FLAGS_SAVE ${CMAKE_REQUIRED_FLAGS}) 220 set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} "-Wl,--version-script='${CMAKE_CURRENT_BINARY_DIR}/conftest.map'") 221 check_c_source_compiles("void sym(void) {} 283 set(_SAVED_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS}) 284 if(NOT CMAKE_HOST_SOLARIS) 285 # Avoid using CMAKE_SHARED_LIBRARY_C_FLAGS in version script checks on 286 # Solaris, because of an incompatibility with the Solaris link editor. 287 list(APPEND CMAKE_REQUIRED_FLAGS ${CMAKE_SHARED_LIBRARY_C_FLAGS}) 288 endif() 289 list(APPEND CMAKE_REQUIRED_FLAGS "-Wl,--version-script='${CMAKE_CURRENT_BINARY_DIR}/conftest.map'") 290 check_c_source_compiles(" 291 void sym1(void) {} 222 292 void sym2(void) {} 223 int main(void) { return 0;}293 int main(void) { return 0; } 224 294 " HAVE_LD_VERSION_SCRIPT) 225 295 if(NOT HAVE_LD_VERSION_SCRIPT) 226 set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS_SAVE} "-Wl,-M -Wl,${CMAKE_CURRENT_BINARY_DIR}/conftest.map") 227 check_c_source_compiles("void sym(void) {} 296 set(CMAKE_REQUIRED_FLAGS ${_SAVED_CMAKE_REQUIRED_FLAGS}) 297 if(NOT CMAKE_HOST_SOLARIS) 298 # Again, avoid using CMAKE_SHARED_LIBRARY_C_FLAGS in version script 299 # checks on Solaris. 300 list(APPEND CMAKE_REQUIRED_FLAGS ${CMAKE_SHARED_LIBRARY_C_FLAGS}) 301 endif() 302 list(APPEND CMAKE_REQUIRED_FLAGS "-Wl,-M -Wl,${CMAKE_CURRENT_BINARY_DIR}/conftest.map") 303 check_c_source_compiles(" 304 void sym1(void) {} 228 305 void sym2(void) {} 229 int main(void) { return 0;}306 int main(void) { return 0; } 230 307 " HAVE_SOLARIS_LD_VERSION_SCRIPT) 231 308 endif() 232 set(CMAKE_REQUIRED_FLAGS ${ CMAKE_REQUIRED_FLAGS_SAVE})309 set(CMAKE_REQUIRED_FLAGS ${_SAVED_CMAKE_REQUIRED_FLAGS}) 233 310 file(REMOVE "${CMAKE_CURRENT_BINARY_DIR}/conftest.map") 234 311 endif() 235 312 236 # Find symbol prefix. Likely obsolete and unnecessary with recent237 # toolchains (it's not done in many other projects).238 function(symbol_prefix)239 set(SYMBOL_PREFIX)240 241 execute_process(COMMAND "${CMAKE_C_COMPILER}" "-E" "-"242 INPUT_FILE /dev/null243 OUTPUT_VARIABLE OUT244 RESULT_VARIABLE STATUS)245 246 if(CPP_FAIL)247 message(WARNING "Failed to run the C preprocessor")248 endif()249 250 string(REPLACE "\n" ";" OUT "${OUT}")251 foreach(line ${OUT})252 string(REGEX MATCH "^PREFIX=" found_match "${line}")253 if(found_match)254 string(REGEX REPLACE "^PREFIX=(.*\)" "\\1" prefix "${line}")255 string(REGEX MATCH "__USER_LABEL_PREFIX__" found_match "${prefix}")256 if(found_match)257 string(REGEX REPLACE "(.*)__USER_LABEL_PREFIX__(.*)" "\\1\\2" prefix "${prefix}")258 endif()259 set(SYMBOL_PREFIX "${prefix}")260 endif()261 endforeach()262 263 message(STATUS "Symbol prefix: ${SYMBOL_PREFIX}")264 set(SYMBOL_PREFIX "${SYMBOL_PREFIX}" PARENT_SCOPE)265 endfunction()266 267 if(UNIX)268 symbol_prefix()269 endif()270 271 313 find_program(AWK NAMES gawk awk) 272 314 273 315 include_directories(${CMAKE_CURRENT_BINARY_DIR}) 274 316 275 if(NOT AWK OR ANDROID )317 if(NOT AWK OR ANDROID OR IOS) 276 318 # No awk available to generate sources; use pre-built pnglibconf.h 277 319 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/pnglibconf.h.prebuilt 278 320 ${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h) 279 add_custom_target( genfiles) # Dummy321 add_custom_target(png_genfiles) 280 322 else() 281 include(CMakeParseArguments) 282 # Generate .chk from .out with awk 323 # Copy the awk scripts, converting their line endings to Unix (LF) 324 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/checksym.awk 325 ${CMAKE_CURRENT_BINARY_DIR}/scripts/checksym.awk 326 @ONLY 327 NEWLINE_STYLE LF) 328 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/options.awk 329 ${CMAKE_CURRENT_BINARY_DIR}/scripts/options.awk 330 @ONLY 331 NEWLINE_STYLE LF) 332 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/dfn.awk 333 ${CMAKE_CURRENT_BINARY_DIR}/scripts/dfn.awk 334 @ONLY 335 NEWLINE_STYLE LF) 336 337 # Generate .chk from .out with awk: 283 338 # generate_chk(INPUT inputfile OUTPUT outputfile [DEPENDS dep1 [dep2...]]) 284 339 function(generate_chk) … … 298 353 "-DINPUT=${_GC_INPUT}" 299 354 "-DOUTPUT=${_GC_OUTPUT}" 300 -P "${CMAKE_CURRENT_BINARY_DIR}/ scripts/genchk.cmake"355 -P "${CMAKE_CURRENT_BINARY_DIR}/genchk.cmake" 301 356 DEPENDS "${_GC_INPUT}" ${_GC_DEPENDS} 302 357 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") … … 321 376 "-DINPUT=${_GO_INPUT}" 322 377 "-DOUTPUT=${_GO_OUTPUT}" 323 -P "${CMAKE_CURRENT_BINARY_DIR}/ scripts/genout.cmake"378 -P "${CMAKE_CURRENT_BINARY_DIR}/genout.cmake" 324 379 DEPENDS "${_GO_INPUT}" ${_GO_DEPENDS} 325 380 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") … … 340 395 COMMAND "${CMAKE_COMMAND}" 341 396 "-DOUTPUT=${_GSO_OUTPUT}" 342 -P "${CMAKE_CURRENT_BINARY_DIR}/ scripts/gensrc.cmake"397 -P "${CMAKE_CURRENT_BINARY_DIR}/gensrc.cmake" 343 398 DEPENDS ${_GSO_DEPENDS} 344 399 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") … … 346 401 347 402 # Copy file 348 function(generate_copy source destination) 349 add_custom_command(OUTPUT "${destination}" 350 COMMAND "${CMAKE_COMMAND}" -E remove "${destination}" 351 COMMAND "${CMAKE_COMMAND}" -E copy "${source}" 352 "${destination}" 353 DEPENDS "${source}") 403 # generate_copy(INPUT inputfile OUTPUT outputfile [DEPENDS dep1 [dep2...]]) 404 function(generate_copy) 405 set(options) 406 set(oneValueArgs INPUT OUTPUT) 407 set(multiValueArgs DEPENDS) 408 cmake_parse_arguments(_GCO "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) 409 if(NOT _GCO_INPUT) 410 message(FATAL_ERROR "generate_copy: Missing INPUT argument") 411 endif() 412 if(NOT _GCO_OUTPUT) 413 message(FATAL_ERROR "generate_copy: Missing OUTPUT argument") 414 endif() 415 416 add_custom_command(OUTPUT "${_GCO_OUTPUT}" 417 COMMAND "${CMAKE_COMMAND}" 418 -E remove "${_GCO_OUTPUT}" 419 COMMAND "${CMAKE_COMMAND}" 420 -E copy "${_GCO_INPUT}" "${_GCO_OUTPUT}" 421 DEPENDS "${source}" ${_GCO_DEPENDS}) 354 422 endfunction() 355 423 … … 357 425 generate_source(OUTPUT "scripts/pnglibconf.c" 358 426 DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/scripts/pnglibconf.dfa" 359 "${CMAKE_CURRENT_ SOURCE_DIR}/scripts/options.awk"427 "${CMAKE_CURRENT_BINARY_DIR}/scripts/options.awk" 360 428 "${CMAKE_CURRENT_SOURCE_DIR}/pngconf.h") 429 add_custom_target(png_scripts_pnglibconf_c 430 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/scripts/pnglibconf.c") 361 431 362 432 # Generate pnglibconf.c 363 433 generate_source(OUTPUT "pnglibconf.c" 364 434 DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/scripts/pnglibconf.dfa" 365 "${CMAKE_CURRENT_ SOURCE_DIR}/scripts/options.awk"435 "${CMAKE_CURRENT_BINARY_DIR}/scripts/options.awk" 366 436 "${CMAKE_CURRENT_SOURCE_DIR}/pngconf.h") 437 add_custom_target(pnglibconf_c 438 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.c") 367 439 368 440 if(PNG_PREFIX) … … 375 447 376 448 generate_out(INPUT "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.c" 377 OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.out") 449 OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.out" 450 DEPENDS pnglibconf_c) 451 add_custom_target(pnglibconf_out 452 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.out") 378 453 379 454 # Generate pnglibconf.h 380 455 generate_source(OUTPUT "pnglibconf.h" 381 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.out" 456 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.out" pnglibconf_out 382 457 ${PNGLIBCONF_H_EXTRA_DEPENDS}) 458 add_custom_target(pnglibconf_h 459 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h") 383 460 384 461 generate_out(INPUT "${CMAKE_CURRENT_SOURCE_DIR}/scripts/intprefix.c" 385 462 OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/scripts/intprefix.out" 386 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h") 463 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h" pnglibconf_h) 464 add_custom_target(png_scripts_intprefix_out 465 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/scripts/intprefix.out") 387 466 388 467 generate_out(INPUT "${CMAKE_CURRENT_SOURCE_DIR}/scripts/prefix.c" … … 390 469 DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/png.h" 391 470 "${CMAKE_CURRENT_SOURCE_DIR}/pngconf.h" 392 "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.out") 471 "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.out" pnglibconf_out) 472 add_custom_target(png_scripts_prefix_out 473 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/scripts/prefix.out") 393 474 394 475 # Generate pngprefix.h 395 476 generate_source(OUTPUT "pngprefix.h" 396 477 DEPENDS ${PNGPREFIX_H_EXTRA_DEPENDS}) 478 add_custom_target(pngprefix_h 479 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/pngprefix.h") 397 480 398 481 generate_out(INPUT "${CMAKE_CURRENT_SOURCE_DIR}/scripts/sym.c" 399 482 OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/scripts/sym.out" 400 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h") 483 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h" pnglibconf_h) 484 add_custom_target(png_scripts_sym_out 485 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/scripts/sym.out") 401 486 402 487 generate_out(INPUT "${CMAKE_CURRENT_SOURCE_DIR}/scripts/symbols.c" … … 405 490 "${CMAKE_CURRENT_SOURCE_DIR}/pngconf.h" 406 491 "${CMAKE_CURRENT_SOURCE_DIR}/scripts/pnglibconf.h.prebuilt") 492 add_custom_target(png_scripts_symbols_out 493 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/scripts/symbols.out") 407 494 408 495 generate_out(INPUT "${CMAKE_CURRENT_SOURCE_DIR}/scripts/vers.c" … … 410 497 DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/png.h" 411 498 "${CMAKE_CURRENT_SOURCE_DIR}/pngconf.h" 412 "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h") 499 "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h" pnglibconf_h) 500 add_custom_target(png_scripts_vers_out 501 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/scripts/vers.out") 413 502 414 503 generate_chk(INPUT "${CMAKE_CURRENT_BINARY_DIR}/scripts/symbols.out" 415 504 OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/scripts/symbols.chk" 416 DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/scripts/checksym.awk" 505 DEPENDS png_scripts_symbols_out 506 "${CMAKE_CURRENT_BINARY_DIR}/scripts/checksym.awk" 417 507 "${CMAKE_CURRENT_SOURCE_DIR}/scripts/symbols.def") 418 508 419 add_custom_target(symbol-check DEPENDS 420 "${CMAKE_CURRENT_BINARY_DIR}/scripts/symbols.chk") 421 422 generate_copy("${CMAKE_CURRENT_BINARY_DIR}/scripts/sym.out" 423 "${CMAKE_CURRENT_BINARY_DIR}/libpng.sym") 424 generate_copy("${CMAKE_CURRENT_BINARY_DIR}/scripts/vers.out" 425 "${CMAKE_CURRENT_BINARY_DIR}/libpng.vers") 426 427 add_custom_target(genvers DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/libpng.vers") 428 add_custom_target(gensym DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/libpng.sym") 429 430 add_custom_target("genprebuilt" 509 add_custom_target(png_scripts_symbols_chk 510 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/scripts/symbols.chk") 511 512 generate_copy(INPUT "${CMAKE_CURRENT_BINARY_DIR}/scripts/sym.out" 513 OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/libpng.sym" 514 DEPENDS png_scripts_sym_out) 515 generate_copy(INPUT "${CMAKE_CURRENT_BINARY_DIR}/scripts/vers.out" 516 OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/libpng.vers" 517 DEPENDS png_scripts_vers_out) 518 519 add_custom_target(png_genvers 520 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/libpng.vers") 521 add_custom_target(png_gensym 522 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/libpng.sym") 523 524 add_custom_target(png_genprebuilt 431 525 COMMAND "${CMAKE_COMMAND}" 432 526 "-DOUTPUT=scripts/pnglibconf.h.prebuilt" 433 -P "${CMAKE_CURRENT_BINARY_DIR}/ scripts/gensrc.cmake"527 -P "${CMAKE_CURRENT_BINARY_DIR}/gensrc.cmake" 434 528 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") 435 529 436 # A single target handles generation of all generated files. If 437 # they are depended upon separately by multiple targets, this 438 # confuses parallel make (it would require a separate top-level 439 # target for each file to track the dependencies properly). 440 add_custom_target(genfiles DEPENDS 441 "${CMAKE_CURRENT_BINARY_DIR}/libpng.sym" 442 "${CMAKE_CURRENT_BINARY_DIR}/libpng.vers" 443 "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.c" 530 # A single target handles generation of all generated files. 531 add_custom_target(png_genfiles 532 DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/libpng.sym" png_gensym 533 "${CMAKE_CURRENT_BINARY_DIR}/libpng.vers" png_genvers 534 "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.c" pnglibconf_c 535 "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h" pnglibconf_h 536 "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.out" pnglibconf_out 537 "${CMAKE_CURRENT_BINARY_DIR}/pngprefix.h" pngprefix_h 538 "${CMAKE_CURRENT_BINARY_DIR}/scripts/intprefix.out" png_scripts_intprefix_out 539 "${CMAKE_CURRENT_BINARY_DIR}/scripts/pnglibconf.c" png_scripts_pnglibconf_c 540 "${CMAKE_CURRENT_BINARY_DIR}/scripts/prefix.out" png_scripts_prefix_out 541 "${CMAKE_CURRENT_BINARY_DIR}/scripts/sym.out" png_scripts_sym_out 542 "${CMAKE_CURRENT_BINARY_DIR}/scripts/symbols.chk" png_scripts_symbols_chk 543 "${CMAKE_CURRENT_BINARY_DIR}/scripts/symbols.out" png_scripts_symbols_out 544 "${CMAKE_CURRENT_BINARY_DIR}/scripts/vers.out" png_scripts_vers_out) 545 endif(NOT AWK OR ANDROID OR IOS) 546 547 # List the source code files. 548 set(libpng_public_hdrs 549 png.h 550 pngconf.h 444 551 "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h" 445 "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.out"446 "${CMAKE_CURRENT_BINARY_DIR}/pngprefix.h"447 "${CMAKE_CURRENT_BINARY_DIR}/scripts/intprefix.out"448 "${CMAKE_CURRENT_BINARY_DIR}/scripts/pnglibconf.c"449 "${CMAKE_CURRENT_BINARY_DIR}/scripts/prefix.out"450 "${CMAKE_CURRENT_BINARY_DIR}/scripts/sym.out"451 "${CMAKE_CURRENT_BINARY_DIR}/scripts/symbols.chk"452 "${CMAKE_CURRENT_BINARY_DIR}/scripts/symbols.out"453 "${CMAKE_CURRENT_BINARY_DIR}/scripts/vers.out")454 endif(NOT AWK OR ANDROID)455 456 # OUR SOURCES457 set(libpng_public_hdrs458 png.h459 pngconf.h460 "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h"461 552 ) 462 553 set(libpng_private_hdrs 463 pngpriv.h464 pngdebug.h465 pnginfo.h466 pngstruct.h554 pngpriv.h 555 pngdebug.h 556 pnginfo.h 557 pngstruct.h 467 558 ) 468 if(AWK AND NOT ANDROID )559 if(AWK AND NOT ANDROID AND NOT IOS) 469 560 list(APPEND libpng_private_hdrs "${CMAKE_CURRENT_BINARY_DIR}/pngprefix.h") 470 561 endif() 471 562 set(libpng_sources 472 ${libpng_public_hdrs}473 ${libpng_private_hdrs}474 png.c475 pngerror.c476 pngget.c477 pngmem.c478 pngpread.c479 pngread.c480 pngrio.c481 pngrtran.c482 pngrutil.c483 pngset.c484 pngtrans.c485 pngwio.c486 pngwrite.c487 pngwtran.c488 pngwutil.c489 ${libpng_arm_sources}490 ${libpng_intel_sources}491 ${libpng_mips_sources}492 ${libpng_powerpc_sources}563 ${libpng_public_hdrs} 564 ${libpng_private_hdrs} 565 png.c 566 pngerror.c 567 pngget.c 568 pngmem.c 569 pngpread.c 570 pngread.c 571 pngrio.c 572 pngrtran.c 573 pngrutil.c 574 pngset.c 575 pngtrans.c 576 pngwio.c 577 pngwrite.c 578 pngwtran.c 579 pngwutil.c 580 ${libpng_arm_sources} 581 ${libpng_intel_sources} 582 ${libpng_mips_sources} 583 ${libpng_powerpc_sources} 493 584 ) 494 585 set(pngtest_sources 495 pngtest.c586 pngtest.c 496 587 ) 497 588 set(pngvalid_sources 498 contrib/libtests/pngvalid.c589 contrib/libtests/pngvalid.c 499 590 ) 500 591 set(pngstest_sources 501 contrib/libtests/pngstest.c592 contrib/libtests/pngstest.c 502 593 ) 503 594 set(pngunknown_sources 504 contrib/libtests/pngunknown.c595 contrib/libtests/pngunknown.c 505 596 ) 506 597 set(pngimage_sources 507 contrib/libtests/pngimage.c598 contrib/libtests/pngimage.c 508 599 ) 509 600 set(pngfix_sources 510 contrib/tools/pngfix.c601 contrib/tools/pngfix.c 511 602 ) 512 603 set(png_fix_itxt_sources 513 contrib/tools/png-fix-itxt.c604 contrib/tools/png-fix-itxt.c 514 605 ) 515 606 516 if(MSVC) 607 if(MSVC OR (WIN32 AND (CMAKE_C_COMPILER_ID MATCHES "Clang"))) 608 add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE) 517 609 add_definitions(-D_CRT_SECURE_NO_DEPRECATE) 518 610 endif() … … 522 614 endif() 523 615 524 # NOW BUILD OUR TARGET 525 include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${ZLIB_INCLUDE_DIR}) 526 527 unset(PNG_LIB_TARGETS) 616 # Now build our targets. 617 618 # Initialize the list of libpng library targets. 619 set(PNG_LIBRARY_TARGETS "") 620 621 # Initialize the libpng library file names. 622 if(UNIX 623 OR (WIN32 AND NOT CMAKE_SHARED_LIBRARY_PREFIX STREQUAL "") 624 OR (WIN32 AND NOT CMAKE_STATIC_LIBRARY_PREFIX STREQUAL "")) 625 # We are on a Unix or Unix-like toolchain like the GNU toolchain on Windows. 626 # Library file names are expected to have an implicit prefix such as "lib". 627 # Let CMake prepend and append its usual prefixes and suffixes by default. 628 set(PNG_SHARED_OUTPUT_NAME "png${PNGLIB_ABI_VERSION}") 629 set(PNG_STATIC_OUTPUT_NAME "png${PNGLIB_ABI_VERSION}") 630 else() 631 # We are, most likely, on a Windows toolchain like MSVC, Clang on Windows, 632 # Borland/Embarcadero, etc. We need to specify the "libpng" name explicitly. 633 # We also need to use a custom suffix, in order to distinguish between the 634 # shared import library name and the static library name. 635 set(PNG_SHARED_OUTPUT_NAME "libpng${PNGLIB_ABI_VERSION}") 636 set(PNG_STATIC_OUTPUT_NAME "libpng${PNGLIB_ABI_VERSION}_static") 637 endif() 528 638 529 639 if(PNG_SHARED) 530 add_library(png SHARED ${libpng_sources}) 531 set(PNG_LIB_TARGETS png) 532 set_target_properties(png PROPERTIES OUTPUT_NAME ${PNG_LIB_NAME}) 533 add_dependencies(png genfiles) 534 if(MSVC) 535 # msvc does not append 'lib' - do it here to have consistent name 536 set_target_properties(png PROPERTIES PREFIX "lib") 537 set_target_properties(png PROPERTIES IMPORT_PREFIX "lib") 538 endif() 539 target_link_libraries(png ${ZLIB_LIBRARY} ${M_LIBRARY}) 540 640 add_library(png_shared SHARED ${libpng_sources}) 641 add_dependencies(png_shared png_genfiles) 642 list(APPEND PNG_LIBRARY_TARGETS png_shared) 643 set_target_properties(png_shared PROPERTIES 644 OUTPUT_NAME "${PNG_SHARED_OUTPUT_NAME}" 645 DEBUG_POSTFIX "${PNG_DEBUG_POSTFIX}" 646 VERSION "${PNGLIB_SHARED_VERSION}" 647 SOVERSION "${PNGLIB_ABI_VERSION}") 541 648 if(UNIX AND AWK) 542 649 if(HAVE_LD_VERSION_SCRIPT) 543 set_target_properties(png PROPERTIES LINK_FLAGS544 "-Wl,--version-script='${CMAKE_CURRENT_BINARY_DIR}/libpng.vers'")650 set_target_properties(png_shared PROPERTIES 651 LINK_FLAGS "-Wl,--version-script='${CMAKE_CURRENT_BINARY_DIR}/libpng.vers'") 545 652 elseif(HAVE_SOLARIS_LD_VERSION_SCRIPT) 546 set_target_properties(png PROPERTIES LINK_FLAGS 547 "-Wl,-M -Wl,'${CMAKE_CURRENT_BINARY_DIR}/libpng.vers'") 548 endif() 549 endif() 653 set_target_properties(png_shared PROPERTIES 654 LINK_FLAGS "-Wl,-M -Wl,'${CMAKE_CURRENT_BINARY_DIR}/libpng.vers'") 655 endif() 656 endif() 657 if(APPLE) 658 # Avoid CMake's implicit compile definition "png_shared_EXPORTS". 659 set_target_properties(png_shared PROPERTIES DEFINE_SYMBOL "") 660 elseif(WIN32) 661 # Use the explicit compile definition "PNG_BUILD_DLL" for Windows DLLs. 662 set_target_properties(png_shared PROPERTIES DEFINE_SYMBOL PNG_BUILD_DLL) 663 endif() 664 target_include_directories(png_shared 665 PUBLIC 666 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/libpng${PNGLIB_ABI_VERSION}> 667 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> 668 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) 669 target_link_libraries(png_shared PUBLIC ZLIB::ZLIB ${M_LIBRARY}) 550 670 endif() 551 671 552 672 if(PNG_STATIC) 553 # does not work without changing name554 set(PNG_LIB_NAME_STATIC png_static)555 673 add_library(png_static STATIC ${libpng_sources}) 556 add_dependencies(png_static genfiles) 557 # MSVC doesn't use a different file extension for shared vs. static 558 # libs. We are able to change OUTPUT_NAME to remove the _static 559 # for all other platforms. 560 if(NOT MSVC) 561 set_target_properties(png_static PROPERTIES 562 OUTPUT_NAME "${PNG_LIB_NAME}" 563 CLEAN_DIRECT_OUTPUT 1) 564 else() 565 set_target_properties(png_static PROPERTIES 566 OUTPUT_NAME "${PNG_LIB_NAME}_static" 567 CLEAN_DIRECT_OUTPUT 1) 568 endif() 569 list(APPEND PNG_LIB_TARGETS png_static) 570 if(MSVC) 571 # msvc does not append 'lib' - do it here to have consistent name 572 set_target_properties(png_static PROPERTIES PREFIX "lib") 573 endif() 574 target_link_libraries(png_static ${ZLIB_LIBRARY} ${M_LIBRARY}) 575 endif() 576 577 if(PNG_FRAMEWORK) 578 set(PNG_LIB_NAME_FRAMEWORK png_framework) 674 add_dependencies(png_static png_genfiles) 675 list(APPEND PNG_LIBRARY_TARGETS png_static) 676 set_target_properties(png_static PROPERTIES 677 OUTPUT_NAME "${PNG_STATIC_OUTPUT_NAME}" 678 DEBUG_POSTFIX "${PNG_DEBUG_POSTFIX}") 679 target_include_directories(png_static 680 PUBLIC 681 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/libpng${PNGLIB_ABI_VERSION}> 682 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> 683 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) 684 target_link_libraries(png_static PUBLIC ZLIB::ZLIB ${M_LIBRARY}) 685 endif() 686 687 if(PNG_FRAMEWORK AND APPLE) 579 688 add_library(png_framework SHARED ${libpng_sources}) 580 add_dependencies(png_framework genfiles)581 list(APPEND PNG_LIB _TARGETS png_framework)689 add_dependencies(png_framework png_genfiles) 690 list(APPEND PNG_LIBRARY_TARGETS png_framework) 582 691 set_target_properties(png_framework PROPERTIES 583 FRAMEWORK TRUE 584 FRAMEWORK_VERSION ${PNGLIB_VERSION} 585 MACOSX_FRAMEWORK_SHORT_VERSION_STRING ${PNGLIB_MAJOR}.${PNGLIB_MINOR} 586 MACOSX_FRAMEWORK_BUNDLE_VERSION ${PNGLIB_VERSION} 587 MACOSX_FRAMEWORK_IDENTIFIER org.libpng.libpng 588 XCODE_ATTRIBUTE_INSTALL_PATH "@rpath" 589 PUBLIC_HEADER "${libpng_public_hdrs}" 590 OUTPUT_NAME png) 591 target_link_libraries(png_framework ${ZLIB_LIBRARY} ${M_LIBRARY}) 592 endif() 593 594 if(NOT PNG_LIB_TARGETS) 595 message(SEND_ERROR 596 "No library variant selected to build. " 597 "Please enable at least one of the following options: " 598 "PNG_STATIC, PNG_SHARED, PNG_FRAMEWORK") 599 endif() 600 601 if(PNG_SHARED AND WIN32) 602 set_target_properties(png PROPERTIES DEFINE_SYMBOL PNG_BUILD_DLL) 603 endif() 604 605 function(png_add_test) 606 set(options) 607 set(oneValueArgs NAME COMMAND) 608 set(multiValueArgs OPTIONS FILES) 609 cmake_parse_arguments(_PAT "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) 610 611 if(NOT _PAT_NAME) 612 message(FATAL_ERROR "png_add_test: Missing NAME argument") 613 endif() 614 if(NOT _PAT_COMMAND) 615 message(FATAL_ERROR "png_add_test: Missing COMMAND argument") 616 endif() 617 618 set(TEST_OPTIONS "${_PAT_OPTIONS}") 619 set(TEST_FILES "${_PAT_FILES}") 620 621 configure_file("${CMAKE_CURRENT_SOURCE_DIR}/scripts/test.cmake.in" 622 "${CMAKE_CURRENT_BINARY_DIR}/tests/${_PAT_NAME}.cmake" @ONLY) 623 add_test(NAME "${_PAT_NAME}" 624 COMMAND "${CMAKE_COMMAND}" 625 "-DLIBPNG=$<TARGET_FILE:png>" 626 "-DTEST_COMMAND=$<TARGET_FILE:${_PAT_COMMAND}>" 627 -P "${CMAKE_CURRENT_BINARY_DIR}/tests/${_PAT_NAME}.cmake") 628 endfunction() 692 FRAMEWORK TRUE 693 FRAMEWORK_VERSION "${PNGLIB_VERSION}" 694 MACOSX_FRAMEWORK_SHORT_VERSION_STRING "${PNGLIB_MAJOR}.${PNGLIB_MINOR}" 695 MACOSX_FRAMEWORK_BUNDLE_VERSION "${PNGLIB_VERSION}" 696 MACOSX_FRAMEWORK_IDENTIFIER "org.libpng.libpng" 697 XCODE_ATTRIBUTE_INSTALL_PATH "@rpath" 698 PUBLIC_HEADER "${libpng_public_hdrs}" 699 OUTPUT_NAME "png" 700 DEBUG_POSTFIX "${PNG_DEBUG_POSTFIX}") 701 # Avoid CMake's implicit compile definition "-Dpng_framework_EXPORTS". 702 set_target_properties(png_framework PROPERTIES DEFINE_SYMBOL "") 703 target_include_directories(png_framework 704 PUBLIC 705 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/libpng${PNGLIB_ABI_VERSION}> 706 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> 707 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) 708 target_link_libraries(png_framework PUBLIC ZLIB::ZLIB ${M_LIBRARY}) 709 endif() 710 711 if(NOT PNG_LIBRARY_TARGETS) 712 message(SEND_ERROR "No library variant selected to build. " 713 "Please enable at least one of the following options: " 714 "PNG_SHARED, PNG_STATIC, PNG_FRAMEWORK") 715 endif() 629 716 630 717 if(PNG_TESTS AND PNG_SHARED) 718 enable_testing() 719 720 function(png_add_test) 721 set(options) 722 set(oneValueArgs NAME COMMAND) 723 set(multiValueArgs OPTIONS FILES) 724 cmake_parse_arguments(_PAT "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) 725 if(NOT _PAT_NAME) 726 message(FATAL_ERROR "png_add_test: Missing NAME argument") 727 endif() 728 if(NOT _PAT_COMMAND) 729 message(FATAL_ERROR "png_add_test: Missing COMMAND argument") 730 endif() 731 732 set(TEST_OPTIONS "${_PAT_OPTIONS}") 733 set(TEST_FILES "${_PAT_FILES}") 734 735 configure_file("${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake/test.cmake.in" 736 "${CMAKE_CURRENT_BINARY_DIR}/tests/${_PAT_NAME}.cmake" 737 @ONLY) 738 add_test(NAME "${_PAT_NAME}" 739 COMMAND "${CMAKE_COMMAND}" 740 "-DLIBPNG=$<TARGET_FILE:png_shared>" 741 "-DTEST_COMMAND=$<TARGET_FILE:${_PAT_COMMAND}>" 742 -P "${CMAKE_CURRENT_BINARY_DIR}/tests/${_PAT_NAME}.cmake") 743 endfunction() 744 631 745 # Find test PNG files by globbing, but sort lists to ensure 632 746 # consistency between different filesystems. … … 639 753 640 754 add_executable(pngtest ${pngtest_sources}) 641 target_link_libraries(pngtest png) 642 643 png_add_test(NAME pngtest COMMAND pngtest FILES "${PNGTEST_PNG}") 755 target_link_libraries(pngtest PRIVATE png_shared) 756 757 png_add_test(NAME pngtest 758 COMMAND pngtest 759 FILES "${PNGTEST_PNG}") 644 760 645 761 add_executable(pngvalid ${pngvalid_sources}) 646 target_link_libraries(pngvalid png)762 target_link_libraries(pngvalid PRIVATE png_shared) 647 763 648 764 png_add_test(NAME pngvalid-gamma-16-to-8 649 COMMAND pngvalid OPTIONS --gamma-16-to-8) 765 COMMAND pngvalid 766 OPTIONS --gamma-16-to-8) 650 767 png_add_test(NAME pngvalid-gamma-alpha-mode 651 COMMAND pngvalid OPTIONS --gamma-alpha-mode) 768 COMMAND pngvalid 769 OPTIONS --gamma-alpha-mode) 652 770 png_add_test(NAME pngvalid-gamma-background 653 COMMAND pngvalid OPTIONS --gamma-background) 771 COMMAND pngvalid 772 OPTIONS --gamma-background) 654 773 png_add_test(NAME pngvalid-gamma-expand16-alpha-mode 655 COMMAND pngvalid OPTIONS --gamma-alpha-mode --expand16) 774 COMMAND pngvalid 775 OPTIONS --gamma-alpha-mode --expand16) 656 776 png_add_test(NAME pngvalid-gamma-expand16-background 657 COMMAND pngvalid OPTIONS --gamma-background --expand16) 777 COMMAND pngvalid 778 OPTIONS --gamma-background --expand16) 658 779 png_add_test(NAME pngvalid-gamma-expand16-transform 659 COMMAND pngvalid OPTIONS --gamma-transform --expand16) 780 COMMAND pngvalid 781 OPTIONS --gamma-transform --expand16) 660 782 png_add_test(NAME pngvalid-gamma-sbit 661 COMMAND pngvalid OPTIONS --gamma-sbit) 783 COMMAND pngvalid 784 OPTIONS --gamma-sbit) 662 785 png_add_test(NAME pngvalid-gamma-threshold 663 COMMAND pngvalid OPTIONS --gamma-threshold) 786 COMMAND pngvalid 787 OPTIONS --gamma-threshold) 664 788 png_add_test(NAME pngvalid-gamma-transform 665 COMMAND pngvalid OPTIONS --gamma-transform) 789 COMMAND pngvalid 790 OPTIONS --gamma-transform) 666 791 png_add_test(NAME pngvalid-progressive-interlace-standard 667 COMMAND pngvalid OPTIONS --standard --progressive-read --interlace) 792 COMMAND pngvalid 793 OPTIONS --standard --progressive-read --interlace) 668 794 png_add_test(NAME pngvalid-progressive-size 669 COMMAND pngvalid OPTIONS --size --progressive-read) 795 COMMAND pngvalid 796 OPTIONS --size --progressive-read) 670 797 png_add_test(NAME pngvalid-progressive-standard 671 COMMAND pngvalid OPTIONS --standard --progressive-read) 798 COMMAND pngvalid 799 OPTIONS --standard --progressive-read) 672 800 png_add_test(NAME pngvalid-standard 673 COMMAND pngvalid OPTIONS --standard) 801 COMMAND pngvalid 802 OPTIONS --standard) 674 803 png_add_test(NAME pngvalid-transform 675 COMMAND pngvalid OPTIONS --transform) 804 COMMAND pngvalid 805 OPTIONS --transform) 676 806 677 807 add_executable(pngstest ${pngstest_sources}) 678 target_link_libraries(pngstest png)808 target_link_libraries(pngstest PRIVATE png_shared) 679 809 680 810 foreach(gamma_type 1.8 linear none sRGB) … … 682 812 set(PNGSTEST_FILES) 683 813 foreach(test_png ${TEST_PNGS}) 684 string(REGEX MATCH " .*-linear[-.].*" TEST_PNG_LINEAR "${test_png}")685 string(REGEX MATCH " .*-sRGB[-.].*" TEST_PNG_SRGB "${test_png}")686 string(REGEX MATCH " .*-1.8[-.].*" TEST_PNG_G18 "${test_png}")687 string(REGEX MATCH " .*-alpha-.*" TEST_PNG_ALPHA "${test_png}")814 string(REGEX MATCH "-linear[-.]" TEST_PNG_LINEAR "${test_png}") 815 string(REGEX MATCH "-sRGB[-.]" TEST_PNG_SRGB "${test_png}") 816 string(REGEX MATCH "-1.8[-.]" TEST_PNG_G18 "${test_png}") 817 string(REGEX MATCH "-alpha-" TEST_PNG_ALPHA "${test_png}") 688 818 689 819 set(TEST_PNG_VALID TRUE) 690 820 691 821 if(TEST_PNG_ALPHA) 692 if(NOT "${alpha_type}"STREQUAL "alpha")822 if(NOT alpha_type STREQUAL "alpha") 693 823 set(TEST_PNG_VALID FALSE) 694 824 endif() 695 825 else() 696 if( "${alpha_type}"STREQUAL "alpha")826 if(alpha_type STREQUAL "alpha") 697 827 set(TEST_PNG_VALID FALSE) 698 828 endif() … … 700 830 701 831 if(TEST_PNG_LINEAR) 702 if(NOT "${gamma_type}"STREQUAL "linear")832 if(NOT gamma_type STREQUAL "linear") 703 833 set(TEST_PNG_VALID FALSE) 704 834 endif() 705 835 elseif(TEST_PNG_SRGB) 706 if(NOT "${gamma_type}"STREQUAL "sRGB")836 if(NOT gamma_type STREQUAL "sRGB") 707 837 set(TEST_PNG_VALID FALSE) 708 838 endif() 709 839 elseif(TEST_PNG_G18) 710 if(NOT "${gamma_type}"STREQUAL "1.8")840 if(NOT gamma_type STREQUAL "1.8") 711 841 set(TEST_PNG_VALID FALSE) 712 842 endif() 713 843 else() 714 if(NOT "${gamma_type}"STREQUAL "none")844 if(NOT gamma_type STREQUAL "none") 715 845 set(TEST_PNG_VALID FALSE) 716 846 endif() … … 731 861 732 862 add_executable(pngunknown ${pngunknown_sources}) 733 target_link_libraries(pngunknown png) 734 735 png_add_test(NAME pngunknown-discard COMMAND pngunknown OPTIONS --strict default=discard FILES "${PNGTEST_PNG}") 736 png_add_test(NAME pngunknown-IDAT COMMAND pngunknown OPTIONS --strict default=discard IDAT=save FILES "${PNGTEST_PNG}") 737 png_add_test(NAME pngunknown-if-safe COMMAND pngunknown OPTIONS --strict default=if-safe FILES "${PNGTEST_PNG}") 738 png_add_test(NAME pngunknown-sAPI COMMAND pngunknown OPTIONS --strict bKGD=save cHRM=save gAMA=save all=discard iCCP=save sBIT=save sRGB=save FILES "${PNGTEST_PNG}") 739 png_add_test(NAME pngunknown-save COMMAND pngunknown OPTIONS --strict default=save FILES "${PNGTEST_PNG}") 740 png_add_test(NAME pngunknown-sTER COMMAND pngunknown OPTIONS --strict sTER=if-safe FILES "${PNGTEST_PNG}") 741 png_add_test(NAME pngunknown-vpAg COMMAND pngunknown OPTIONS --strict vpAg=if-safe FILES "${PNGTEST_PNG}") 863 target_link_libraries(pngunknown PRIVATE png_shared) 864 865 png_add_test(NAME pngunknown-discard 866 COMMAND pngunknown 867 OPTIONS --strict default=discard 868 FILES "${PNGTEST_PNG}") 869 png_add_test(NAME pngunknown-IDAT 870 COMMAND pngunknown 871 OPTIONS --strict default=discard IDAT=save 872 FILES "${PNGTEST_PNG}") 873 png_add_test(NAME pngunknown-if-safe 874 COMMAND pngunknown 875 OPTIONS --strict default=if-safe 876 FILES "${PNGTEST_PNG}") 877 png_add_test(NAME pngunknown-sAPI 878 COMMAND pngunknown 879 OPTIONS --strict bKGD=save cHRM=save gAMA=save all=discard iCCP=save sBIT=save sRGB=save 880 FILES "${PNGTEST_PNG}") 881 png_add_test(NAME pngunknown-save 882 COMMAND pngunknown 883 OPTIONS --strict default=save 884 FILES "${PNGTEST_PNG}") 885 png_add_test(NAME pngunknown-sTER 886 COMMAND pngunknown 887 OPTIONS --strict sTER=if-safe 888 FILES "${PNGTEST_PNG}") 889 png_add_test(NAME pngunknown-vpAg 890 COMMAND pngunknown 891 OPTIONS --strict vpAg=if-safe 892 FILES "${PNGTEST_PNG}") 742 893 743 894 add_executable(pngimage ${pngimage_sources}) 744 target_link_libraries(pngimage png) 745 746 png_add_test(NAME pngimage-quick COMMAND pngimage OPTIONS --list-combos --log FILES ${PNGSUITE_PNGS}) 747 png_add_test(NAME pngimage-full COMMAND pngimage OPTIONS --exhaustive --list-combos --log FILES ${PNGSUITE_PNGS}) 748 endif() 749 750 if(PNG_SHARED) 895 target_link_libraries(pngimage PRIVATE png_shared) 896 897 png_add_test(NAME pngimage-quick 898 COMMAND pngimage 899 OPTIONS --list-combos --log 900 FILES ${PNGSUITE_PNGS}) 901 png_add_test(NAME pngimage-full 902 COMMAND pngimage 903 OPTIONS --exhaustive --list-combos --log 904 FILES ${PNGSUITE_PNGS}) 905 endif() 906 907 if(PNG_SHARED AND PNG_TOOLS) 751 908 add_executable(pngfix ${pngfix_sources}) 752 target_link_libraries(pngfix png)909 target_link_libraries(pngfix PRIVATE png_shared) 753 910 set(PNG_BIN_TARGETS pngfix) 754 911 755 912 add_executable(png-fix-itxt ${png_fix_itxt_sources}) 756 target_link_libraries(png-fix-itxt ${ZLIB_LIBRARY}${M_LIBRARY})913 target_link_libraries(png-fix-itxt PRIVATE ZLIB::ZLIB ${M_LIBRARY}) 757 914 list(APPEND PNG_BIN_TARGETS png-fix-itxt) 758 915 endif() 759 916 760 # Set a variable with CMake code which: 761 # Creates a symlink from src to dest (if possible) or alternatively 762 # copies if different. 763 include(CMakeParseArguments) 764 917 # Create a symlink from src to dest (if possible), or, alternatively, 918 # copy src to dest if different. 765 919 function(create_symlink DEST_FILE) 766 767 cmake_parse_arguments(S "" "FILE;TARGET" "" ${ARGN}) 768 769 if(NOT S_TARGET AND NOT S_FILE) 770 message(FATAL_ERROR "create_symlink: Missing TARGET or FILE argument") 771 endif() 772 773 if(S_TARGET AND S_FILE) 774 message(FATAL_ERROR "create_symlink: Both source file ${S_FILE} and build target ${S_TARGET} arguments are present; can only have one.") 775 endif() 776 777 if(S_FILE) 920 cmake_parse_arguments(_SYM "" "FILE;TARGET" "" ${ARGN}) 921 if(NOT _SYM_FILE AND NOT _SYM_TARGET) 922 message(FATAL_ERROR "create_symlink: Missing FILE or TARGET argument") 923 endif() 924 if(_SYM_FILE AND _SYM_TARGET) 925 message(FATAL_ERROR "create_symlink: " 926 "The arguments FILE (${_SYM_FILE}) and TARGET (${_SYM_TARGET}) " 927 "are mutually-exclusive") 928 endif() 929 930 if(_SYM_FILE) 778 931 # If we don't need to symlink something that's coming from a build target, 779 932 # we can go ahead and symlink/copy at configure time. 780 933 if(CMAKE_HOST_WIN32 AND NOT CYGWIN) 781 execute_process( 782 COMMAND "${CMAKE_COMMAND}" -E copy_if_different ${S_FILE} ${DEST_FILE} 783 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") 934 execute_process(COMMAND "${CMAKE_COMMAND}" 935 -E copy_if_different 936 ${_SYM_FILE} ${DEST_FILE} 937 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") 784 938 else() 785 execute_process( 786 COMMAND ${CMAKE_COMMAND} -E create_symlink ${S_FILE} ${DEST_FILE} 787 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") 788 endif() 789 endif() 790 791 if(S_TARGET) 792 # We need to use generator expressions, which can be a bit tricky, so for 793 # simplicity make the symlink a POST_BUILD step and use the TARGET 939 execute_process(COMMAND "${CMAKE_COMMAND}" 940 -E create_symlink 941 ${_SYM_FILE} ${DEST_FILE} 942 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") 943 endif() 944 endif() 945 946 if(_SYM_TARGET) 947 # We need to use generator expressions, which can be a bit tricky. 948 # For simplicity, make the symlink a POST_BUILD step, and use the TARGET 794 949 # signature of add_custom_command. 795 950 if(CMAKE_HOST_WIN32 AND NOT CYGWIN) 796 add_custom_command(TARGET ${S_TARGET} POST_BUILD 797 COMMAND "${CMAKE_COMMAND}" -E copy_if_different $<TARGET_LINKER_FILE_NAME:${S_TARGET}> $<TARGET_LINKER_FILE_DIR:${S_TARGET}>/${DEST_FILE}) 951 add_custom_command(TARGET ${_SYM_TARGET} 952 POST_BUILD 953 COMMAND "${CMAKE_COMMAND}" 954 -E copy_if_different 955 $<TARGET_LINKER_FILE_DIR:${_SYM_TARGET}>/$<TARGET_LINKER_FILE_NAME:${_SYM_TARGET}> 956 $<TARGET_LINKER_FILE_DIR:${_SYM_TARGET}>/${DEST_FILE}) 798 957 else() 799 add_custom_command(TARGET ${S_TARGET} POST_BUILD 800 COMMAND "${CMAKE_COMMAND}" -E create_symlink $<TARGET_LINKER_FILE_NAME:${S_TARGET}> $<TARGET_LINKER_FILE_DIR:${S_TARGET}>/${DEST_FILE}) 801 endif() 802 endif() 803 958 add_custom_command(TARGET ${_SYM_TARGET} 959 POST_BUILD 960 COMMAND "${CMAKE_COMMAND}" 961 -E create_symlink 962 $<TARGET_LINKER_FILE_NAME:${_SYM_TARGET}> 963 $<TARGET_LINKER_FILE_DIR:${_SYM_TARGET}>/${DEST_FILE}) 964 endif() 965 endif() 804 966 endfunction() 805 967 806 968 # Create source generation scripts. 807 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/genchk.cmake.in 808 ${CMAKE_CURRENT_BINARY_DIR}/scripts/genchk.cmake @ONLY) 809 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/genout.cmake.in 810 ${CMAKE_CURRENT_BINARY_DIR}/scripts/genout.cmake @ONLY) 811 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/gensrc.cmake.in 812 ${CMAKE_CURRENT_BINARY_DIR}/scripts/gensrc.cmake @ONLY) 969 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake/genchk.cmake.in 970 ${CMAKE_CURRENT_BINARY_DIR}/genchk.cmake 971 @ONLY) 972 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake/genout.cmake.in 973 ${CMAKE_CURRENT_BINARY_DIR}/genout.cmake 974 @ONLY) 975 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake/gensrc.cmake.in 976 ${CMAKE_CURRENT_BINARY_DIR}/gensrc.cmake 977 @ONLY) 813 978 814 979 # libpng is a library so default to 'lib' … … 817 982 endif() 818 983 819 # C REATE PKGCONFIG FILES984 # Create pkgconfig files. 820 985 # We use the same files like ./configure, so we have to set its vars. 821 # Only do this on Windows for Cygwin - the files don't make much sense outside822 # o f a UNIX look-alike.986 # Only do this on Windows for Cygwin - the files don't make much sense 987 # outside of a UNIX look-alike. 823 988 if(NOT WIN32 OR CYGWIN OR MINGW) 824 989 set(prefix ${CMAKE_INSTALL_PREFIX}) … … 828 993 set(LIBS "-lz -lm") 829 994 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libpng.pc.in 830 ${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}.pc @ONLY)831 create_symlink(libpng.pc FILE ${PNGLIB_NAME}.pc)832 995 ${CMAKE_CURRENT_BINARY_DIR}/libpng${PNGLIB_ABI_VERSION}.pc 996 @ONLY) 997 create_symlink(libpng.pc FILE libpng${PNGLIB_ABI_VERSION}.pc) 833 998 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libpng-config.in 834 ${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}-config @ONLY) 835 create_symlink(libpng-config FILE ${PNGLIB_NAME}-config) 836 endif() 837 838 # SET UP LINKS 839 if(PNG_SHARED) 840 set_target_properties(png PROPERTIES 841 # VERSION 16.${PNGLIB_RELEASE}.1.6.37 842 VERSION 16.${PNGLIB_RELEASE}.0 843 SOVERSION 16 844 CLEAN_DIRECT_OUTPUT 1) 845 endif() 846 847 # INSTALL 999 ${CMAKE_CURRENT_BINARY_DIR}/libpng${PNGLIB_ABI_VERSION}-config 1000 @ONLY) 1001 create_symlink(libpng-config FILE libpng${PNGLIB_ABI_VERSION}-config) 1002 endif() 1003 1004 # Install. 848 1005 if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL) 849 install(TARGETS ${PNG_LIB _TARGETS}1006 install(TARGETS ${PNG_LIBRARY_TARGETS} 850 1007 EXPORT libpng 851 RUNTIME DESTINATION bin1008 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} 852 1009 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} 853 1010 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} … … 856 1013 if(PNG_SHARED) 857 1014 # Create a symlink for libpng.dll.a => libpng16.dll.a on Cygwin 858 if(CYGWIN OR MINGW) 859 create_symlink(libpng${CMAKE_IMPORT_LIBRARY_SUFFIX} TARGET png) 860 install(FILES $<TARGET_LINKER_FILE_DIR:png>/libpng${CMAKE_IMPORT_LIBRARY_SUFFIX} 861 DESTINATION ${CMAKE_INSTALL_LIBDIR}) 862 endif() 863 864 if(NOT WIN32) 865 create_symlink(libpng${CMAKE_SHARED_LIBRARY_SUFFIX} TARGET png) 866 install(FILES $<TARGET_LINKER_FILE_DIR:png>/libpng${CMAKE_SHARED_LIBRARY_SUFFIX} 1015 if(NOT WIN32 OR CYGWIN OR MINGW) 1016 create_symlink(libpng${CMAKE_SHARED_LIBRARY_SUFFIX} TARGET png_shared) 1017 install(FILES $<TARGET_LINKER_FILE_DIR:png_shared>/libpng${CMAKE_SHARED_LIBRARY_SUFFIX} 867 1018 DESTINATION ${CMAKE_INSTALL_LIBDIR}) 868 1019 endif() … … 879 1030 880 1031 if(NOT SKIP_INSTALL_HEADERS AND NOT SKIP_INSTALL_ALL) 881 install(FILES ${libpng_public_hdrs} DESTINATION include) 882 install(FILES ${libpng_public_hdrs} DESTINATION include/${PNGLIB_NAME}) 1032 install(FILES ${libpng_public_hdrs} 1033 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) 1034 install(FILES ${libpng_public_hdrs} 1035 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libpng${PNGLIB_ABI_VERSION}) 883 1036 endif() 884 1037 if(NOT SKIP_INSTALL_EXECUTABLES AND NOT SKIP_INSTALL_ALL) 885 1038 if(NOT WIN32 OR CYGWIN OR MINGW) 886 install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libpng-config DESTINATION bin) 887 install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}-config DESTINATION bin) 1039 install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libpng-config 1040 DESTINATION ${CMAKE_INSTALL_BINDIR}) 1041 install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libpng${PNGLIB_ABI_VERSION}-config 1042 DESTINATION ${CMAKE_INSTALL_BINDIR}) 888 1043 endif() 889 1044 endif() … … 891 1046 if(NOT SKIP_INSTALL_PROGRAMS AND NOT SKIP_INSTALL_ALL) 892 1047 install(TARGETS ${PNG_BIN_TARGETS} 893 RUNTIME DESTINATION bin)1048 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) 894 1049 endif() 895 1050 896 1051 if(NOT SKIP_INSTALL_FILES AND NOT SKIP_INSTALL_ALL) 897 # Install man pages 898 if(NOT PNG_MAN_DIR) 899 set(PNG_MAN_DIR "share/man") 900 endif() 901 install(FILES libpng.3 libpngpf.3 DESTINATION ${PNG_MAN_DIR}/man3) 902 install(FILES png.5 DESTINATION ${PNG_MAN_DIR}/man5) 903 # Install pkg-config files 1052 # Install the man pages. 1053 install(FILES libpng.3 libpngpf.3 1054 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3) 1055 install(FILES png.5 1056 DESTINATION ${CMAKE_INSTALL_MANDIR}/man5) 1057 # Install the pkg-config files. 904 1058 if(NOT CMAKE_HOST_WIN32 OR CYGWIN OR MINGW) 905 1059 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng.pc 906 1060 DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) 907 1061 install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libpng-config 908 DESTINATION bin)909 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ ${PNGLIB_NAME}.pc1062 DESTINATION ${CMAKE_INSTALL_BINDIR}) 1063 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng${PNGLIB_ABI_VERSION}.pc 910 1064 DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) 911 install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/ ${PNGLIB_NAME}-config912 DESTINATION bin)1065 install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libpng${PNGLIB_ABI_VERSION}-config 1066 DESTINATION ${CMAKE_INSTALL_BINDIR}) 913 1067 endif() 914 1068 endif() … … 916 1070 # Create an export file that CMake users can include() to import our targets. 917 1071 if(NOT SKIP_INSTALL_EXPORT AND NOT SKIP_INSTALL_ALL) 918 install(EXPORT libpng DESTINATION lib/libpng FILE lib${PNG_LIB_NAME}.cmake) 919 endif() 920 921 # what's with libpng-manual.txt and all the extra files? 922 923 # UNINSTALL 924 # do we need this? 925 926 # DIST 927 # do we need this? 928 929 # to create msvc import lib for mingw compiled shared lib 1072 install(EXPORT libpng 1073 DESTINATION ${CMAKE_INSTALL_LIBDIR}/libpng 1074 FILE libpng${PNGLIB_ABI_VERSION}.cmake) 1075 endif() 1076 1077 # TODO: Create MSVC import lib for MinGW-compiled shared lib. 930 1078 # pexports libpng.dll > libpng.def 931 1079 # lib /def:libpng.def /machine:x86 -
trunk/src/libs/libpng-1.6.42/INSTALL
r96425 r103316 129 129 *.h, *.c => libpng source files 130 130 CMakeLists.txt => "cmake" script 131 ci 132 ci_*.sh 131 133 configuration files: 132 134 configure.ac, configure, Makefile.am, Makefile.in, 133 135 autogen.sh, config.guess, ltmain.sh, missing, libpng.pc.in, 134 136 libpng-config.in, aclocal.m4, config.h.in, config.sub, 135 depcomp, install-sh, mkinstalldirs, test-pngtest.sh 137 depcomp, install-sh, mkinstalldirs, test-pngtest.sh, etc. 136 138 contrib 137 139 arm-neon, conftest, examples, gregbook, libtests, pngminim, 138 140 pngminus, pngsuite, tools, visupng 139 141 projects 140 cbuilder5, owatcom, visualc71, vstudio, xcode142 owatcom, visualc71, vstudio 141 143 scripts 142 144 makefile.* … … 146 148 etc. 147 149 zlib 148 README, *.h, *.c contrib, etc.150 README, *.h, *.c, contrib, etc. 149 151 150 152 If the line endings in the files look funny, you may wish to get the other … … 154 156 VI. Building with project files 155 157 156 If you are building libpng with M SVC, you can enter the157 libpng projects\visualc71 or vstudio directory and follow the instructions 158 in README.txt.159 160 Otherwise enter the zlib directory and follow the instructions in zlib/README,161 then come back here and run "configure" or choose the appropriate162 makefile.sysin the scripts directory.158 If you are building libpng with Microsoft Visual Studio, you can enter 159 the directory projects\visualc71 or projects\vstudio and follow the 160 instructions in README.txt. 161 162 Otherwise, enter the zlib directory and follow the instructions in 163 zlib/README, then come back here and run "configure" or choose the 164 appropriate makefile in the scripts directory. 163 165 164 166 VII. Building with makefiles … … 167 169 scripts directory into this directory, for example 168 170 169 MSDOS example:170 171 copy scripts\makefile.msc makefile172 copy scripts\pnglibconf.h.prebuilt pnglibconf.h173 174 171 UNIX example: 175 172 176 cp scripts/makefile.std makefile 177 cp scripts/pnglibconf.h.prebuilt pnglibconf.h 173 cp scripts/makefile.std Makefile 174 make 175 176 Windows example: 177 178 nmake -f scripts\makefile.vcwin32 178 179 179 180 Read the makefile to see if you need to change any source or … … 192 193 your output with the result shown in contrib/pngsuite/README. 193 194 194 Most of the makefiles will allow you to run "make install" to 195 put the library in its final resting place (if you want to 196 do that, run "make install" in the zlib directory first if necessary). 197 Some also allow you to run "make test-installed" after you have 198 run "make install". 199 200 VIII. Configuring libpng for 16-bit platforms 201 202 You will want to look into zconf.h to tell zlib (and thus libpng) that 203 it cannot allocate more than 64K at a time. Even if you can, the memory 204 won't be accessible. So limit zlib and libpng to 64K by defining MAXSEG_64K. 205 206 IX. Configuring for DOS 195 Most of the makefiles used to allow you to run "make install" to put 196 the library in its final resting place, but that feature is no longer 197 supported. The only tested and supported manners to install libpng are 198 the conventional build and install procedures driven by the configure 199 script or by the CMake file. 200 201 VIII. Configuring for DOS and other 16-bit platforms 202 203 Officially, the support for 16-bit platforms has been removed. 207 204 208 205 For DOS users who only have access to the lower 640K, you will … … 210 207 call. See zlib.h or zconf.h in the zlib library for more information. 211 208 212 X. Configuring for Medium Model 213 214 Libpng's support for medium model has been tested on most of the popular 215 compilers. Make sure MAXSEG_64K gets defined, USE_FAR_KEYWORD gets 216 defined, and FAR gets defined to far in pngconf.h, and you should be 217 all set. Everything in the library (except for zlib's structure) is 218 expecting far data. You must use the typedefs with the p or pp on 219 the end for pointers (or at least look at them and be careful). Make 220 note that the rows of data are defined as png_bytepp, which is 221 an "unsigned char far * far *". 222 223 XI. Prepending a prefix to exported symbols 209 You may be or may not be in luck if you target the "large" memory model, 210 but all the smaller models ("small", "compact" and "medium") are known 211 to be unworkable. For DOS users who have access beyond the lower 640K, 212 a "flat" 32-bit DOS model (such as DJGPP) is strongly recommended. 213 214 For DOS users who only have access to the lower 640K, you will have to 215 limit zlib's memory usage via a png_set_compression_mem_level() call. 216 You will also have to look into zconf.h to tell zlib (and thus libpng) 217 that it cannot allocate more than 64K at a time. Even if you can, the 218 memory won't be accessible. Therefore, you should limit zlib and libpng 219 to 64K by defining MAXSEG_64K. 220 221 IX. Prepending a prefix to exported symbols 224 222 225 223 Starting with libpng-1.6.0, you can configure libpng (when using the … … 232 230 the macros to use the modified names. 233 231 234 X II. Configuring for compiler xxx:232 X. Configuring for compiler xxx: 235 233 236 234 All includes for libpng are in pngconf.h. If you need to add, change … … 244 242 that previously appeared in the public headers. 245 243 246 XI II. Removing unwanted object code244 XI. Removing unwanted object code 247 245 248 246 There are a bunch of #define's in pngconf.h that control what parts of … … 283 281 those sections that are actually used will be loaded into memory. 284 282 285 XI V. Enabling or disabling hardware optimizations283 XII. Enabling or disabling hardware optimizations 286 284 287 285 Certain hardware capabilities, such as the Intel SSE instructions, … … 333 331 cmake . -DPNG_HARDWARE_OPTIMIZATIONS=no 334 332 335 X V. Changes to the build and configuration of libpng in libpng-1.5.x333 XIII. Changes to the build and configuration of libpng in libpng-1.5.x 336 334 337 335 Details of internal changes to the library code can be found in the CHANGES … … 424 422 that were used to build libpng. 425 423 426 X VI. Setjmp/longjmp issues424 XIV. Setjmp/longjmp issues 427 425 428 426 Libpng uses setjmp()/longjmp() for error handling. Unfortunately setjmp() … … 442 440 and PNG_SIMPLIFIED_WRITE_SUPPORTED undefined. 443 441 444 XV II. Common linking failures442 XV. Common linking failures 445 443 446 444 If your application fails to find libpng or zlib entries while linking: … … 454 452 project/vstudio/README.txt. 455 453 456 XVI II. Other sources of information about libpng:454 XVI. Other sources of information about libpng: 457 455 458 456 Further information can be found in the README and libpng-manual.txt … … 460 458 libpng.3 and png.5. 461 459 460 Copyright (c) 2022 Cosmin Truta 462 461 Copyright (c) 1998-2002,2006-2016 Glenn Randers-Pehrson 463 462 This document is released under the libpng license. -
trunk/src/libs/libpng-1.6.42/LICENSE
r96425 r103316 5 5 --------------------------------------- 6 6 7 * Copyright (c) 1995-20 19The PNG Reference Library Authors.8 * Copyright (c) 2018-20 19Cosmin Truta.7 * Copyright (c) 1995-2024 The PNG Reference Library Authors. 8 * Copyright (c) 2018-2024 Cosmin Truta. 9 9 * Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson. 10 10 * Copyright (c) 1996-1997 Andreas Dilger. -
trunk/src/libs/libpng-1.6.42/Makefile.am
r96425 r103316 1 1 # Makefile.am, the source file for Makefile.in (and hence Makefile), is 2 2 # 3 # Copyright (c) 2018 Cosmin Truta3 # Copyright (c) 2018-2024 Cosmin Truta 4 4 # Copyright (c) 2004-2016 Glenn Randers-Pehrson 5 5 # … … 10 10 PNGLIB_BASENAME= libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@ 11 11 12 ACLOCAL_AMFLAGS = -I scripts 12 ACLOCAL_AMFLAGS = -I scripts/autoconf 13 13 14 14 # test programs - run on make check, make distcheck 15 if ENABLE_TESTS 15 16 check_PROGRAMS= pngtest pngunknown pngstest pngvalid pngimage pngcp 16 17 if HAVE_CLOCK_GETTIME 17 18 check_PROGRAMS += timepng 18 19 endif 20 else 21 check_PROGRAMS= 22 endif 19 23 20 24 # Utilities - installed 25 if ENABLE_TOOLS 21 26 bin_PROGRAMS= pngfix png-fix-itxt 27 else 28 bin_PROGRAMS= 29 endif 22 30 23 31 # This ensures that pnglibconf.h gets built at the start of 'make all' or … … 31 39 BUILT_SOURCES = pnglibconf.h 32 40 41 if ENABLE_TESTS 33 42 pngtest_SOURCES = pngtest.c 34 43 pngtest_LDADD = libpng@PNGLIB_MAJOR@@[email protected] … … 49 58 timepng_LDADD = libpng@PNGLIB_MAJOR@@[email protected] 50 59 60 pngcp_SOURCES = contrib/tools/pngcp.c 61 pngcp_LDADD = libpng@PNGLIB_MAJOR@@[email protected] 62 endif 63 64 if ENABLE_TOOLS 51 65 pngfix_SOURCES = contrib/tools/pngfix.c 52 66 pngfix_LDADD = libpng@PNGLIB_MAJOR@@[email protected] 53 67 54 68 png_fix_itxt_SOURCES = contrib/tools/png-fix-itxt.c 55 56 pngcp_SOURCES = contrib/tools/pngcp.c 57 pngcp_LDADD = libpng@PNGLIB_MAJOR@@[email protected] 69 endif 58 70 59 71 # Generally these are single line shell scripts to run a test with a particular 60 72 # set of parameters: 73 if ENABLE_TESTS 61 74 TESTS =\ 62 tests/pngtest\ 63 tests/pngtest-badpngs\ 75 tests/pngtest-all\ 64 76 tests/pngvalid-gamma-16-to-8 tests/pngvalid-gamma-alpha-mode\ 65 77 tests/pngvalid-gamma-background tests/pngvalid-gamma-expand16-alpha-mode\ … … 77 89 tests/pngunknown-sTER tests/pngunknown-save tests/pngunknown-vpAg\ 78 90 tests/pngimage-quick tests/pngimage-full 91 endif 79 92 80 93 # man pages … … 105 118 endif 106 119 120 if PNG_MIPS_MMI 121 if !PNG_MIPS_MSA 122 libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES += mips/mips_init.c 123 endif 124 libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES += mips/filter_mmi_inline_assembly.c 125 endif 126 107 127 if PNG_INTEL_SSE 108 128 libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES += intel/intel_init.c\ … … 113 133 libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES += powerpc/powerpc_init.c\ 114 134 powerpc/filter_vsx_intrinsics.c 135 endif 136 137 if PNG_LOONGARCH_LSX 138 noinst_LTLIBRARIES= libpng@PNGLIB_MAJOR@@[email protected] 139 libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_SOURCES = loongarch/loongarch_lsx_init.c\ 140 loongarch/filter_lsx_intrinsics.c 141 libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_CFLAGS = -mlsx 142 libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LIBADD = libpng@PNGLIB_MAJOR@@[email protected] 143 # libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_DEPENDENCIES = libpng@PNGLIB_MAJOR@@[email protected] 115 144 endif 116 145 … … 135 164 endif 136 165 166 if PNG_LOONGARCH_LSX 167 libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_DEPENDENCIES += libpng@PNGLIB_MAJOR@@[email protected] 168 endif 169 137 170 #distribute headers in /usr/include/libpng/* 138 171 pkgincludedir= $(includedir)/$(PNGLIB_BASENAME) … … 151 184 ANNOUNCE AUTHORS CHANGES INSTALL LICENSE README TODO TRADEMARK \ 152 185 pngtest.png pngbar.png pngnow.png pngbar.jpg autogen.sh \ 153 ${srcdir}/c ontrib ${srcdir}/projects ${srcdir}/scripts \186 ${srcdir}/ci ${srcdir}/contrib ${srcdir}/projects ${srcdir}/scripts \ 154 187 $(TESTS) $(XFAIL_TESTS) tests/pngstest \ 155 188 CMakeLists.txt example.c libpng-manual.txt -
trunk/src/libs/libpng-1.6.42/Makefile.in
r96425 r103316 1 # Makefile.in generated by automake 1.16. 1from Makefile.am.1 # Makefile.in generated by automake 1.16.5 from Makefile.am. 2 2 # @configure_input@ 3 3 4 # Copyright (C) 1994-20 18Free Software Foundation, Inc.4 # Copyright (C) 1994-2021 Free Software Foundation, Inc. 5 5 6 6 # This Makefile.in is free software; the Free Software Foundation … … 17 17 # Makefile.am, the source file for Makefile.in (and hence Makefile), is 18 18 # 19 # Copyright (c) 2018 Cosmin Truta19 # Copyright (c) 2018-2024 Cosmin Truta 20 20 # Copyright (c) 2004-2016 Glenn Randers-Pehrson 21 21 # … … 101 101 build_triplet = @build@ 102 102 host_triplet = @host@ 103 check_PROGRAMS = pngtest$(EXEEXT) pngunknown$(EXEEXT) \ 104 pngstest$(EXEEXT) pngvalid$(EXEEXT) pngimage$(EXEEXT) \ 105 pngcp$(EXEEXT) $(am__EXEEXT_1) 106 @HAVE_CLOCK_GETTIME_TRUE@am__append_1 = timepng 107 bin_PROGRAMS = pngfix$(EXEEXT) png-fix-itxt$(EXEEXT) 103 @ENABLE_TESTS_TRUE@check_PROGRAMS = pngtest$(EXEEXT) \ 104 @ENABLE_TESTS_TRUE@ pngunknown$(EXEEXT) pngstest$(EXEEXT) \ 105 @ENABLE_TESTS_TRUE@ pngvalid$(EXEEXT) pngimage$(EXEEXT) \ 106 @ENABLE_TESTS_TRUE@ pngcp$(EXEEXT) $(am__EXEEXT_1) 107 @ENABLE_TESTS_TRUE@@HAVE_CLOCK_GETTIME_TRUE@am__append_1 = timepng 108 @ENABLE_TOOLS_TRUE@bin_PROGRAMS = pngfix$(EXEEXT) \ 109 @ENABLE_TOOLS_TRUE@ png-fix-itxt$(EXEEXT) 108 110 @PNG_ARM_NEON_TRUE@am__append_2 = arm/arm_init.c\ 109 111 @PNG_ARM_NEON_TRUE@ arm/filter_neon.S arm/filter_neon_intrinsics.c \ … … 113 115 @PNG_MIPS_MSA_TRUE@ mips/filter_msa_intrinsics.c 114 116 115 @PNG_INTEL_SSE_TRUE@am__append_4 = intel/intel_init.c\ 117 @PNG_MIPS_MMI_TRUE@@PNG_MIPS_MSA_FALSE@am__append_4 = mips/mips_init.c 118 @PNG_MIPS_MMI_TRUE@am__append_5 = mips/filter_mmi_inline_assembly.c 119 @PNG_INTEL_SSE_TRUE@am__append_6 = intel/intel_init.c\ 116 120 @PNG_INTEL_SSE_TRUE@ intel/filter_sse2_intrinsics.c 117 121 118 @PNG_POWERPC_VSX_TRUE@am__append_ 5= powerpc/powerpc_init.c\122 @PNG_POWERPC_VSX_TRUE@am__append_7 = powerpc/powerpc_init.c\ 119 123 @PNG_POWERPC_VSX_TRUE@ powerpc/filter_vsx_intrinsics.c 120 124 121 125 122 126 # Versioned symbols and restricted exports 123 @HAVE_LD_VERSION_SCRIPT_TRUE@@HAVE_SOLARIS_LD_TRUE@am__append_ 6= -Wl,-M -Wl,libpng.vers124 @HAVE_LD_VERSION_SCRIPT_TRUE@@HAVE_SOLARIS_LD_FALSE@am__append_ 7= -Wl,--version-script=libpng.vers127 @HAVE_LD_VERSION_SCRIPT_TRUE@@HAVE_SOLARIS_LD_TRUE@am__append_8 = -Wl,-M -Wl,libpng.vers 128 @HAVE_LD_VERSION_SCRIPT_TRUE@@HAVE_SOLARIS_LD_FALSE@am__append_9 = -Wl,--version-script=libpng.vers 125 129 # Only restricted exports when possible 126 @HAVE_LD_VERSION_SCRIPT_FALSE@am__append_8 = -export-symbols libpng.sym 127 @DO_PNG_PREFIX_TRUE@am__append_9 = -DPNG_PREFIX='@PNG_PREFIX@' 130 @HAVE_LD_VERSION_SCRIPT_FALSE@am__append_10 = -export-symbols libpng.sym 131 @PNG_LOONGARCH_LSX_TRUE@am__append_11 = libpng@PNGLIB_MAJOR@@[email protected] 132 @DO_PNG_PREFIX_TRUE@am__append_12 = -DPNG_PREFIX='@PNG_PREFIX@' 128 133 subdir = . 129 134 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 130 am__aclocal_m4_deps = $(top_srcdir)/scripts/ libtool.m4 \131 $(top_srcdir)/scripts/ ltoptions.m4 \132 $(top_srcdir)/scripts/ ltsugar.m4 \133 $(top_srcdir)/scripts/ ltversion.m4 \134 $(top_srcdir)/scripts/ lt~obsolete.m4 \135 am__aclocal_m4_deps = $(top_srcdir)/scripts/autoconf/libtool.m4 \ 136 $(top_srcdir)/scripts/autoconf/ltoptions.m4 \ 137 $(top_srcdir)/scripts/autoconf/ltsugar.m4 \ 138 $(top_srcdir)/scripts/autoconf/ltversion.m4 \ 139 $(top_srcdir)/scripts/autoconf/lt~obsolete.m4 \ 135 140 $(top_srcdir)/configure.ac 136 141 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ … … 148 153 "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(pkgconfigdir)" \ 149 154 "$(DESTDIR)$(pkgincludedir)" "$(DESTDIR)$(pkgincludedir)" 150 @HAVE_CLOCK_GETTIME_TRUE@am__EXEEXT_1 = timepng$(EXEEXT) 155 @ENABLE_TESTS_TRUE@@HAVE_CLOCK_GETTIME_TRUE@am__EXEEXT_1 = \ 156 @ENABLE_TESTS_TRUE@@HAVE_CLOCK_GETTIME_TRUE@ timepng$(EXEEXT) 151 157 PROGRAMS = $(bin_PROGRAMS) 152 158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; … … 177 183 $(am__cd) "$$dir" && rm -f $$files; }; \ 178 184 } 179 LTLIBRARIES = $(lib_LTLIBRARIES) 180 libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LIBADD = 185 LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES) 181 186 am__libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES_DIST = png.c \ 182 187 pngerror.c pngget.c pngmem.c pngpread.c pngread.c pngrio.c \ … … 186 191 arm/filter_neon.S arm/filter_neon_intrinsics.c \ 187 192 arm/palette_neon_intrinsics.c mips/mips_init.c \ 188 mips/filter_msa_intrinsics.c intel/intel_init.c \189 intel/ filter_sse2_intrinsics.c powerpc/powerpc_init.c \190 powerpc/ filter_vsx_intrinsics.c193 mips/filter_msa_intrinsics.c mips/filter_mmi_inline_assembly.c \ 194 intel/intel_init.c intel/filter_sse2_intrinsics.c \ 195 powerpc/powerpc_init.c powerpc/filter_vsx_intrinsics.c 191 196 am__dirstamp = $(am__leading_dot)dirstamp 192 197 @PNG_ARM_NEON_TRUE@am__objects_1 = arm/arm_init.lo arm/filter_neon.lo \ … … 195 200 @PNG_MIPS_MSA_TRUE@am__objects_2 = mips/mips_init.lo \ 196 201 @PNG_MIPS_MSA_TRUE@ mips/filter_msa_intrinsics.lo 197 @PNG_INTEL_SSE_TRUE@am__objects_3 = intel/intel_init.lo \ 202 @PNG_MIPS_MMI_TRUE@@PNG_MIPS_MSA_FALSE@am__objects_3 = \ 203 @PNG_MIPS_MMI_TRUE@@PNG_MIPS_MSA_FALSE@ mips/mips_init.lo 204 @PNG_MIPS_MMI_TRUE@am__objects_4 = mips/filter_mmi_inline_assembly.lo 205 @PNG_INTEL_SSE_TRUE@am__objects_5 = intel/intel_init.lo \ 198 206 @PNG_INTEL_SSE_TRUE@ intel/filter_sse2_intrinsics.lo 199 @PNG_POWERPC_VSX_TRUE@am__objects_ 4= powerpc/powerpc_init.lo \207 @PNG_POWERPC_VSX_TRUE@am__objects_6 = powerpc/powerpc_init.lo \ 200 208 @PNG_POWERPC_VSX_TRUE@ powerpc/filter_vsx_intrinsics.lo 201 209 am_libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_OBJECTS = png.lo pngerror.lo \ … … 203 211 pngrtran.lo pngrutil.lo pngset.lo pngtrans.lo pngwio.lo \ 204 212 pngwrite.lo pngwtran.lo pngwutil.lo $(am__objects_1) \ 205 $(am__objects_2) $(am__objects_3) $(am__objects_4) 213 $(am__objects_2) $(am__objects_3) $(am__objects_4) \ 214 $(am__objects_5) $(am__objects_6) 206 215 nodist_libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_OBJECTS = 207 216 libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_OBJECTS = \ … … 217 226 $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LDFLAGS) $(LDFLAGS) -o \ 218 227 $@ 219 am_png_fix_itxt_OBJECTS = contrib/tools/png-fix-itxt.$(OBJEXT) 228 libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_LIBADD = 229 am__libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_SOURCES_DIST = \ 230 loongarch/loongarch_lsx_init.c \ 231 loongarch/filter_lsx_intrinsics.c 232 @PNG_LOONGARCH_LSX_TRUE@am_libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_OBJECTS = loongarch/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-loongarch_lsx_init.lo \ 233 @PNG_LOONGARCH_LSX_TRUE@ loongarch/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-filter_lsx_intrinsics.lo 234 libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_OBJECTS = \ 235 $(am_libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_OBJECTS) 236 libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_LINK = $(LIBTOOL) $(AM_V_lt) \ 237 --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ 238 $(CCLD) $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_CFLAGS) \ 239 $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ 240 @PNG_LOONGARCH_LSX_TRUE@am_libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_rpath = 241 am__png_fix_itxt_SOURCES_DIST = contrib/tools/png-fix-itxt.c 242 @ENABLE_TOOLS_TRUE@am_png_fix_itxt_OBJECTS = \ 243 @ENABLE_TOOLS_TRUE@ contrib/tools/png-fix-itxt.$(OBJEXT) 220 244 png_fix_itxt_OBJECTS = $(am_png_fix_itxt_OBJECTS) 221 245 png_fix_itxt_LDADD = $(LDADD) 222 am_pngcp_OBJECTS = contrib/tools/pngcp.$(OBJEXT) 246 am__pngcp_SOURCES_DIST = contrib/tools/pngcp.c 247 @ENABLE_TESTS_TRUE@am_pngcp_OBJECTS = contrib/tools/pngcp.$(OBJEXT) 223 248 pngcp_OBJECTS = $(am_pngcp_OBJECTS) 224 pngcp_DEPENDENCIES = libpng@PNGLIB_MAJOR@@[email protected] 225 am_pngfix_OBJECTS = contrib/tools/pngfix.$(OBJEXT) 249 @ENABLE_TESTS_TRUE@pngcp_DEPENDENCIES = \ 250 @ENABLE_TESTS_TRUE@ libpng@PNGLIB_MAJOR@@[email protected] 251 am__pngfix_SOURCES_DIST = contrib/tools/pngfix.c 252 @ENABLE_TOOLS_TRUE@am_pngfix_OBJECTS = contrib/tools/pngfix.$(OBJEXT) 226 253 pngfix_OBJECTS = $(am_pngfix_OBJECTS) 227 pngfix_DEPENDENCIES = libpng@PNGLIB_MAJOR@@[email protected] 228 am_pngimage_OBJECTS = contrib/libtests/pngimage.$(OBJEXT) 254 @ENABLE_TOOLS_TRUE@pngfix_DEPENDENCIES = \ 255 @ENABLE_TOOLS_TRUE@ libpng@PNGLIB_MAJOR@@[email protected] 256 am__pngimage_SOURCES_DIST = contrib/libtests/pngimage.c 257 @ENABLE_TESTS_TRUE@am_pngimage_OBJECTS = \ 258 @ENABLE_TESTS_TRUE@ contrib/libtests/pngimage.$(OBJEXT) 229 259 pngimage_OBJECTS = $(am_pngimage_OBJECTS) 230 pngimage_DEPENDENCIES = libpng@PNGLIB_MAJOR@@[email protected] 231 am_pngstest_OBJECTS = contrib/libtests/pngstest.$(OBJEXT) 260 @ENABLE_TESTS_TRUE@pngimage_DEPENDENCIES = \ 261 @ENABLE_TESTS_TRUE@ libpng@PNGLIB_MAJOR@@[email protected] 262 am__pngstest_SOURCES_DIST = contrib/libtests/pngstest.c 263 @ENABLE_TESTS_TRUE@am_pngstest_OBJECTS = \ 264 @ENABLE_TESTS_TRUE@ contrib/libtests/pngstest.$(OBJEXT) 232 265 pngstest_OBJECTS = $(am_pngstest_OBJECTS) 233 pngstest_DEPENDENCIES = libpng@PNGLIB_MAJOR@@[email protected] 234 am_pngtest_OBJECTS = pngtest.$(OBJEXT) 266 @ENABLE_TESTS_TRUE@pngstest_DEPENDENCIES = \ 267 @ENABLE_TESTS_TRUE@ libpng@PNGLIB_MAJOR@@[email protected] 268 am__pngtest_SOURCES_DIST = pngtest.c 269 @ENABLE_TESTS_TRUE@am_pngtest_OBJECTS = pngtest.$(OBJEXT) 235 270 pngtest_OBJECTS = $(am_pngtest_OBJECTS) 236 pngtest_DEPENDENCIES = libpng@PNGLIB_MAJOR@@[email protected] 237 am_pngunknown_OBJECTS = contrib/libtests/pngunknown.$(OBJEXT) 271 @ENABLE_TESTS_TRUE@pngtest_DEPENDENCIES = \ 272 @ENABLE_TESTS_TRUE@ libpng@PNGLIB_MAJOR@@[email protected] 273 am__pngunknown_SOURCES_DIST = contrib/libtests/pngunknown.c 274 @ENABLE_TESTS_TRUE@am_pngunknown_OBJECTS = \ 275 @ENABLE_TESTS_TRUE@ contrib/libtests/pngunknown.$(OBJEXT) 238 276 pngunknown_OBJECTS = $(am_pngunknown_OBJECTS) 239 pngunknown_DEPENDENCIES = libpng@PNGLIB_MAJOR@@[email protected] 240 am_pngvalid_OBJECTS = contrib/libtests/pngvalid.$(OBJEXT) 277 @ENABLE_TESTS_TRUE@pngunknown_DEPENDENCIES = \ 278 @ENABLE_TESTS_TRUE@ libpng@PNGLIB_MAJOR@@[email protected] 279 am__pngvalid_SOURCES_DIST = contrib/libtests/pngvalid.c 280 @ENABLE_TESTS_TRUE@am_pngvalid_OBJECTS = \ 281 @ENABLE_TESTS_TRUE@ contrib/libtests/pngvalid.$(OBJEXT) 241 282 pngvalid_OBJECTS = $(am_pngvalid_OBJECTS) 242 pngvalid_DEPENDENCIES = libpng@PNGLIB_MAJOR@@[email protected] 243 am_timepng_OBJECTS = contrib/libtests/timepng.$(OBJEXT) 283 @ENABLE_TESTS_TRUE@pngvalid_DEPENDENCIES = \ 284 @ENABLE_TESTS_TRUE@ libpng@PNGLIB_MAJOR@@[email protected] 285 am__timepng_SOURCES_DIST = contrib/libtests/timepng.c 286 @ENABLE_TESTS_TRUE@am_timepng_OBJECTS = \ 287 @ENABLE_TESTS_TRUE@ contrib/libtests/timepng.$(OBJEXT) 244 288 timepng_OBJECTS = $(am_timepng_OBJECTS) 245 timepng_DEPENDENCIES = libpng@PNGLIB_MAJOR@@[email protected] 289 @ENABLE_TESTS_TRUE@timepng_DEPENDENCIES = \ 290 @ENABLE_TESTS_TRUE@ libpng@PNGLIB_MAJOR@@[email protected] 246 291 SCRIPTS = $(bin_SCRIPTS) 247 292 AM_V_P = $(am__v_P_@AM_V@) … … 281 326 intel/$(DEPDIR)/filter_sse2_intrinsics.Plo \ 282 327 intel/$(DEPDIR)/intel_init.Plo \ 328 loongarch/$(DEPDIR)/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-filter_lsx_intrinsics.Plo \ 329 loongarch/$(DEPDIR)/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-loongarch_lsx_init.Plo \ 330 mips/$(DEPDIR)/filter_mmi_inline_assembly.Plo \ 283 331 mips/$(DEPDIR)/filter_msa_intrinsics.Plo \ 284 332 mips/$(DEPDIR)/mips_init.Plo \ … … 316 364 SOURCES = $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES) \ 317 365 $(nodist_libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES) \ 366 $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_SOURCES) \ 318 367 $(png_fix_itxt_SOURCES) $(pngcp_SOURCES) $(pngfix_SOURCES) \ 319 368 $(pngimage_SOURCES) $(pngstest_SOURCES) $(pngtest_SOURCES) \ … … 321 370 DIST_SOURCES = \ 322 371 $(am__libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES_DIST) \ 323 $(png_fix_itxt_SOURCES) $(pngcp_SOURCES) $(pngfix_SOURCES) \ 324 $(pngimage_SOURCES) $(pngstest_SOURCES) $(pngtest_SOURCES) \ 325 $(pngunknown_SOURCES) $(pngvalid_SOURCES) $(timepng_SOURCES) 372 $(am__libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_SOURCES_DIST) \ 373 $(am__png_fix_itxt_SOURCES_DIST) $(am__pngcp_SOURCES_DIST) \ 374 $(am__pngfix_SOURCES_DIST) $(am__pngimage_SOURCES_DIST) \ 375 $(am__pngstest_SOURCES_DIST) $(am__pngtest_SOURCES_DIST) \ 376 $(am__pngunknown_SOURCES_DIST) $(am__pngvalid_SOURCES_DIST) \ 377 $(am__timepng_SOURCES_DIST) 326 378 am__can_run_installinfo = \ 327 379 case $$AM_UPDATE_INFO_DIR in \ … … 335 387 DATA = $(pkgconfig_DATA) 336 388 HEADERS = $(nodist_pkginclude_HEADERS) $(pkginclude_HEADERS) 337 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \338 $(LISP)config.h.in389 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \ 390 config.h.in 339 391 # Read a list of newline-separated strings from the standard input, 340 392 # and print each of them once, without duplicates. Input order is … … 353 405 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 354 406 done | $(am__uniquify_input)` 355 ETAGS = etags356 CTAGS = ctags357 CSCOPE = cscope358 407 AM_RECURSIVE_TARGETS = cscope check recheck 359 408 am__tty_colors_dummy = \ … … 512 561 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ 513 562 bases=`echo $$bases` 563 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' 514 564 RECHECK_LOGS = $(TEST_LOGS) 515 565 TEST_SUITE_LOG = test-suite.log … … 551 601 GZIP_ENV = --best 552 602 DIST_TARGETS = dist-xz dist-gzip 603 # Exists only to be overridden by the user if desired. 604 AM_DISTCHECK_DVI_TARGET = dvi 553 605 distuninstallcheck_listfiles = find . -type f -print 554 606 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ … … 575 627 CPP = @CPP@ 576 628 CPPFLAGS = @CPPFLAGS@ 629 CSCOPE = @CSCOPE@ 630 CTAGS = @CTAGS@ 577 631 CYGPATH_W = @CYGPATH_W@ 578 632 DEFS = @DEFS@ … … 592 646 ECHO_T = @ECHO_T@ 593 647 EGREP = @EGREP@ 648 ETAGS = @ETAGS@ 594 649 EXEEXT = @EXEEXT@ 595 650 FGREP = @FGREP@ 651 FILECMD = @FILECMD@ 596 652 GREP = @GREP@ 597 653 INSTALL = @INSTALL@ … … 637 693 PNG_COPTS = @PNG_COPTS@ 638 694 PNG_PREFIX = @PNG_PREFIX@ 639 POW_LIB = @POW_LIB@640 695 RANLIB = @RANLIB@ 641 696 SED = @SED@ … … 696 751 program_transform_name = @program_transform_name@ 697 752 psdir = @psdir@ 753 runstatedir = @runstatedir@ 698 754 sbindir = @sbindir@ 699 755 sharedstatedir = @sharedstatedir@ … … 705 761 top_srcdir = @top_srcdir@ 706 762 PNGLIB_BASENAME = libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@ 707 ACLOCAL_AMFLAGS = -I scripts 763 ACLOCAL_AMFLAGS = -I scripts/autoconf 708 764 709 765 # This ensures that pnglibconf.h gets built at the start of 'make all' or … … 716 772 # always wrong and always very confusing. 717 773 BUILT_SOURCES = pnglibconf.h 718 pngtest_SOURCES = pngtest.c719 pngtest_LDADD = libpng@PNGLIB_MAJOR@@[email protected]720 pngvalid_SOURCES = contrib/libtests/pngvalid.c721 pngvalid_LDADD = libpng@PNGLIB_MAJOR@@[email protected]722 pngstest_SOURCES = contrib/libtests/pngstest.c723 pngstest_LDADD = libpng@PNGLIB_MAJOR@@[email protected]724 pngunknown_SOURCES = contrib/libtests/pngunknown.c725 pngunknown_LDADD = libpng@PNGLIB_MAJOR@@[email protected]726 pngimage_SOURCES = contrib/libtests/pngimage.c727 pngimage_LDADD = libpng@PNGLIB_MAJOR@@[email protected]728 timepng_SOURCES = contrib/libtests/timepng.c729 timepng_LDADD = libpng@PNGLIB_MAJOR@@[email protected]730 pngfix_SOURCES = contrib/tools/pngfix.c731 pngfix_LDADD = libpng@PNGLIB_MAJOR@@[email protected]732 png_fix_itxt_SOURCES = contrib/tools/png-fix-itxt.c733 pngcp_SOURCES = contrib/tools/pngcp.c 734 pngcp_LDADD = libpng@PNGLIB_MAJOR@@[email protected] 774 @ENABLE_TESTS_TRUE@pngtest_SOURCES = pngtest.c 775 @ENABLE_TESTS_TRUE@pngtest_LDADD = libpng@PNGLIB_MAJOR@@[email protected] 776 @ENABLE_TESTS_TRUE@pngvalid_SOURCES = contrib/libtests/pngvalid.c 777 @ENABLE_TESTS_TRUE@pngvalid_LDADD = libpng@PNGLIB_MAJOR@@[email protected] 778 @ENABLE_TESTS_TRUE@pngstest_SOURCES = contrib/libtests/pngstest.c 779 @ENABLE_TESTS_TRUE@pngstest_LDADD = libpng@PNGLIB_MAJOR@@[email protected] 780 @ENABLE_TESTS_TRUE@pngunknown_SOURCES = contrib/libtests/pngunknown.c 781 @ENABLE_TESTS_TRUE@pngunknown_LDADD = libpng@PNGLIB_MAJOR@@[email protected] 782 @ENABLE_TESTS_TRUE@pngimage_SOURCES = contrib/libtests/pngimage.c 783 @ENABLE_TESTS_TRUE@pngimage_LDADD = libpng@PNGLIB_MAJOR@@[email protected] 784 @ENABLE_TESTS_TRUE@timepng_SOURCES = contrib/libtests/timepng.c 785 @ENABLE_TESTS_TRUE@timepng_LDADD = libpng@PNGLIB_MAJOR@@[email protected] 786 @ENABLE_TESTS_TRUE@pngcp_SOURCES = contrib/tools/pngcp.c 787 @ENABLE_TESTS_TRUE@pngcp_LDADD = libpng@PNGLIB_MAJOR@@[email protected] 788 @ENABLE_TOOLS_TRUE@pngfix_SOURCES = contrib/tools/pngfix.c 789 @ENABLE_TOOLS_TRUE@pngfix_LDADD = libpng@PNGLIB_MAJOR@@[email protected] 790 @ENABLE_TOOLS_TRUE@png_fix_itxt_SOURCES = contrib/tools/png-fix-itxt.c 735 791 736 792 # Generally these are single line shell scripts to run a test with a particular 737 793 # set of parameters: 738 TESTS = \ 739 tests/pngtest\ 740 tests/pngtest-badpngs\ 741 tests/pngvalid-gamma-16-to-8 tests/pngvalid-gamma-alpha-mode\ 742 tests/pngvalid-gamma-background tests/pngvalid-gamma-expand16-alpha-mode\ 743 tests/pngvalid-gamma-expand16-background\ 744 tests/pngvalid-gamma-expand16-transform tests/pngvalid-gamma-sbit\ 745 tests/pngvalid-gamma-threshold tests/pngvalid-gamma-transform\ 746 tests/pngvalid-progressive-size\ 747 tests/pngvalid-progressive-interlace-standard\ 748 tests/pngvalid-transform\ 749 tests/pngvalid-progressive-standard tests/pngvalid-standard\ 750 tests/pngstest-1.8 tests/pngstest-1.8-alpha tests/pngstest-linear\ 751 tests/pngstest-linear-alpha tests/pngstest-none tests/pngstest-none-alpha\ 752 tests/pngstest-sRGB tests/pngstest-sRGB-alpha tests/pngunknown-IDAT\ 753 tests/pngunknown-discard tests/pngunknown-if-safe tests/pngunknown-sAPI\ 754 tests/pngunknown-sTER tests/pngunknown-save tests/pngunknown-vpAg\ 755 tests/pngimage-quick tests/pngimage-full 794 @ENABLE_TESTS_TRUE@TESTS = \ 795 @ENABLE_TESTS_TRUE@ tests/pngtest-all\ 796 @ENABLE_TESTS_TRUE@ tests/pngvalid-gamma-16-to-8 tests/pngvalid-gamma-alpha-mode\ 797 @ENABLE_TESTS_TRUE@ tests/pngvalid-gamma-background tests/pngvalid-gamma-expand16-alpha-mode\ 798 @ENABLE_TESTS_TRUE@ tests/pngvalid-gamma-expand16-background\ 799 @ENABLE_TESTS_TRUE@ tests/pngvalid-gamma-expand16-transform tests/pngvalid-gamma-sbit\ 800 @ENABLE_TESTS_TRUE@ tests/pngvalid-gamma-threshold tests/pngvalid-gamma-transform\ 801 @ENABLE_TESTS_TRUE@ tests/pngvalid-progressive-size\ 802 @ENABLE_TESTS_TRUE@ tests/pngvalid-progressive-interlace-standard\ 803 @ENABLE_TESTS_TRUE@ tests/pngvalid-transform\ 804 @ENABLE_TESTS_TRUE@ tests/pngvalid-progressive-standard tests/pngvalid-standard\ 805 @ENABLE_TESTS_TRUE@ tests/pngstest-1.8 tests/pngstest-1.8-alpha tests/pngstest-linear\ 806 @ENABLE_TESTS_TRUE@ tests/pngstest-linear-alpha tests/pngstest-none tests/pngstest-none-alpha\ 807 @ENABLE_TESTS_TRUE@ tests/pngstest-sRGB tests/pngstest-sRGB-alpha tests/pngunknown-IDAT\ 808 @ENABLE_TESTS_TRUE@ tests/pngunknown-discard tests/pngunknown-if-safe tests/pngunknown-sAPI\ 809 @ENABLE_TESTS_TRUE@ tests/pngunknown-sTER tests/pngunknown-save tests/pngunknown-vpAg\ 810 @ENABLE_TESTS_TRUE@ tests/pngimage-quick tests/pngimage-full 756 811 757 812 … … 769 824 pngwutil.c png.h pngconf.h pngdebug.h pnginfo.h pngpriv.h \ 770 825 pngstruct.h pngusr.dfa $(am__append_2) $(am__append_3) \ 771 $(am__append_4) $(am__append_5) 826 $(am__append_4) $(am__append_5) $(am__append_6) \ 827 $(am__append_7) 828 @PNG_LOONGARCH_LSX_TRUE@noinst_LTLIBRARIES = libpng@PNGLIB_MAJOR@@[email protected] 829 @PNG_LOONGARCH_LSX_TRUE@libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_SOURCES = loongarch/loongarch_lsx_init.c\ 830 @PNG_LOONGARCH_LSX_TRUE@ loongarch/filter_lsx_intrinsics.c 831 832 @PNG_LOONGARCH_LSX_TRUE@libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_CFLAGS = -mlsx 833 @PNG_LOONGARCH_LSX_TRUE@libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LIBADD = libpng@PNGLIB_MAJOR@@[email protected] 834 # libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_DEPENDENCIES = libpng@PNGLIB_MAJOR@@[email protected] 772 835 nodist_libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES = pnglibconf.h 773 836 libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LDFLAGS = -no-undefined \ 774 837 -export-dynamic -version-number \ 775 838 @PNGLIB_MAJOR@@PNGLIB_MINOR@:@PNGLIB_RELEASE@:0 \ 776 $(am__append_6) $(am__append_7) $(am__append_8) 777 @HAVE_LD_VERSION_SCRIPT_FALSE@libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_DEPENDENCIES = libpng.sym 778 @HAVE_LD_VERSION_SCRIPT_TRUE@libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_DEPENDENCIES = libpng.vers 839 $(am__append_8) $(am__append_9) $(am__append_10) 840 @HAVE_LD_VERSION_SCRIPT_FALSE@libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_DEPENDENCIES = \ 841 @HAVE_LD_VERSION_SCRIPT_FALSE@ libpng.sym $(am__append_11) 842 @HAVE_LD_VERSION_SCRIPT_TRUE@libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_DEPENDENCIES = \ 843 @HAVE_LD_VERSION_SCRIPT_TRUE@ libpng.vers $(am__append_11) 779 844 pkginclude_HEADERS = png.h pngconf.h 780 845 nodist_pkginclude_HEADERS = pnglibconf.h … … 787 852 ANNOUNCE AUTHORS CHANGES INSTALL LICENSE README TODO TRADEMARK \ 788 853 pngtest.png pngbar.png pngnow.png pngbar.jpg autogen.sh \ 789 ${srcdir}/c ontrib ${srcdir}/projects ${srcdir}/scripts \854 ${srcdir}/ci ${srcdir}/contrib ${srcdir}/projects ${srcdir}/scripts \ 790 855 $(TESTS) $(XFAIL_TESTS) tests/pngstest \ 791 856 CMakeLists.txt example.c libpng-manual.txt … … 810 875 -DPNGLIB_VERSION='@PNGLIB_VERSION@' \ 811 876 -DSYMBOL_PREFIX='$(SYMBOL_PREFIX)' -DPNG_NO_USE_READ_MACROS \ 812 -DPNG_BUILDING_SYMBOL_TABLE $(am__append_ 9)877 -DPNG_BUILDING_SYMBOL_TABLE $(am__append_12) 813 878 814 879 # EXT_LIST is a list of the possibly library directory extensions, this exists … … 967 1032 rm -f $${locs}; \ 968 1033 } 1034 1035 clean-noinstLTLIBRARIES: 1036 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) 1037 @list='$(noinst_LTLIBRARIES)'; \ 1038 locs=`for p in $$list; do echo $$p; done | \ 1039 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ 1040 sort -u`; \ 1041 test -z "$$locs" || { \ 1042 echo rm -f $${locs}; \ 1043 rm -f $${locs}; \ 1044 } 969 1045 arm/$(am__dirstamp): 970 1046 @$(MKDIR_P) arm … … 988 1064 mips/filter_msa_intrinsics.lo: mips/$(am__dirstamp) \ 989 1065 mips/$(DEPDIR)/$(am__dirstamp) 1066 mips/filter_mmi_inline_assembly.lo: mips/$(am__dirstamp) \ 1067 mips/$(DEPDIR)/$(am__dirstamp) 990 1068 intel/$(am__dirstamp): 991 1069 @$(MKDIR_P) intel … … 1011 1089 libpng@PNGLIB_MAJOR@@[email protected]: $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_OBJECTS) $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_DEPENDENCIES) $(EXTRA_libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_DEPENDENCIES) 1012 1090 $(AM_V_CCLD)$(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LINK) -rpath $(libdir) $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_OBJECTS) $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_LIBADD) $(LIBS) 1091 loongarch/$(am__dirstamp): 1092 @$(MKDIR_P) loongarch 1093 @: > loongarch/$(am__dirstamp) 1094 loongarch/$(DEPDIR)/$(am__dirstamp): 1095 @$(MKDIR_P) loongarch/$(DEPDIR) 1096 @: > loongarch/$(DEPDIR)/$(am__dirstamp) 1097 loongarch/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-loongarch_lsx_init.lo: \ 1098 loongarch/$(am__dirstamp) loongarch/$(DEPDIR)/$(am__dirstamp) 1099 loongarch/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-filter_lsx_intrinsics.lo: \ 1100 loongarch/$(am__dirstamp) loongarch/$(DEPDIR)/$(am__dirstamp) 1101 1102 libpng@PNGLIB_MAJOR@@[email protected]: $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_OBJECTS) $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_DEPENDENCIES) $(EXTRA_libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_DEPENDENCIES) 1103 $(AM_V_CCLD)$(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_LINK) $(am_libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_rpath) $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_OBJECTS) $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_LIBADD) $(LIBS) 1013 1104 contrib/tools/$(am__dirstamp): 1014 1105 @$(MKDIR_P) contrib/tools … … 1120 1211 -rm -f intel/*.$(OBJEXT) 1121 1212 -rm -f intel/*.lo 1213 -rm -f loongarch/*.$(OBJEXT) 1214 -rm -f loongarch/*.lo 1122 1215 -rm -f mips/*.$(OBJEXT) 1123 1216 -rm -f mips/*.lo … … 1158 1251 @AMDEP_TRUE@@am__include@ @am__quote@intel/$(DEPDIR)/filter_sse2_intrinsics.Plo@am__quote@ # am--include-marker 1159 1252 @AMDEP_TRUE@@am__include@ @am__quote@intel/$(DEPDIR)/intel_init.Plo@am__quote@ # am--include-marker 1253 @AMDEP_TRUE@@am__include@ @am__quote@loongarch/$(DEPDIR)/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-filter_lsx_intrinsics.Plo@am__quote@ # am--include-marker 1254 @AMDEP_TRUE@@am__include@ @am__quote@loongarch/$(DEPDIR)/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-loongarch_lsx_init.Plo@am__quote@ # am--include-marker 1255 @AMDEP_TRUE@@am__include@ @am__quote@mips/$(DEPDIR)/filter_mmi_inline_assembly.Plo@am__quote@ # am--include-marker 1160 1256 @AMDEP_TRUE@@am__include@ @am__quote@mips/$(DEPDIR)/filter_msa_intrinsics.Plo@am__quote@ # am--include-marker 1161 1257 @AMDEP_TRUE@@am__include@ @am__quote@mips/$(DEPDIR)/mips_init.Plo@am__quote@ # am--include-marker … … 1217 1313 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< 1218 1314 1315 loongarch/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-loongarch_lsx_init.lo: loongarch/loongarch_lsx_init.c 1316 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_CFLAGS) $(CFLAGS) -MT loongarch/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-loongarch_lsx_init.lo -MD -MP -MF loongarch/$(DEPDIR)/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-loongarch_lsx_init.Tpo -c -o loongarch/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-loongarch_lsx_init.lo `test -f 'loongarch/loongarch_lsx_init.c' || echo '$(srcdir)/'`loongarch/loongarch_lsx_init.c 1317 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) loongarch/$(DEPDIR)/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-loongarch_lsx_init.Tpo loongarch/$(DEPDIR)/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-loongarch_lsx_init.Plo 1318 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='loongarch/loongarch_lsx_init.c' object='loongarch/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-loongarch_lsx_init.lo' libtool=yes @AMDEPBACKSLASH@ 1319 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1320 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_CFLAGS) $(CFLAGS) -c -o loongarch/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-loongarch_lsx_init.lo `test -f 'loongarch/loongarch_lsx_init.c' || echo '$(srcdir)/'`loongarch/loongarch_lsx_init.c 1321 1322 loongarch/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-filter_lsx_intrinsics.lo: loongarch/filter_lsx_intrinsics.c 1323 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_CFLAGS) $(CFLAGS) -MT loongarch/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-filter_lsx_intrinsics.lo -MD -MP -MF loongarch/$(DEPDIR)/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-filter_lsx_intrinsics.Tpo -c -o loongarch/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-filter_lsx_intrinsics.lo `test -f 'loongarch/filter_lsx_intrinsics.c' || echo '$(srcdir)/'`loongarch/filter_lsx_intrinsics.c 1324 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) loongarch/$(DEPDIR)/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-filter_lsx_intrinsics.Tpo loongarch/$(DEPDIR)/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-filter_lsx_intrinsics.Plo 1325 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='loongarch/filter_lsx_intrinsics.c' object='loongarch/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-filter_lsx_intrinsics.lo' libtool=yes @AMDEPBACKSLASH@ 1326 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1327 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la_CFLAGS) $(CFLAGS) -c -o loongarch/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-filter_lsx_intrinsics.lo `test -f 'loongarch/filter_lsx_intrinsics.c' || echo '$(srcdir)/'`loongarch/filter_lsx_intrinsics.c 1328 1219 1329 mostlyclean-libtool: 1220 1330 -rm -f *.lo … … 1224 1334 -rm -rf arm/.libs arm/_libs 1225 1335 -rm -rf intel/.libs intel/_libs 1336 -rm -rf loongarch/.libs loongarch/_libs 1226 1337 -rm -rf mips/.libs mips/_libs 1227 1338 -rm -rf powerpc/.libs powerpc/_libs … … 1545 1656 fi; \ 1546 1657 echo "$${col}$$br$${std}"; \ 1547 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \1658 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ 1548 1659 echo "$${col}$$br$${std}"; \ 1549 1660 create_testsuite_report --maybe-color; \ … … 1579 1690 TEST_LOGS="$$log_list"; \ 1580 1691 exit $$? 1581 tests/pngtest.log: tests/pngtest 1582 @p='tests/pngtest'; \ 1583 b='tests/pngtest'; \ 1584 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ 1585 --log-file $$b.log --trs-file $$b.trs \ 1586 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ 1587 "$$tst" $(AM_TESTS_FD_REDIRECT) 1588 tests/pngtest-badpngs.log: tests/pngtest-badpngs 1589 @p='tests/pngtest-badpngs'; \ 1590 b='tests/pngtest-badpngs'; \ 1692 tests/pngtest-all.log: tests/pngtest-all 1693 @p='tests/pngtest-all'; \ 1694 b='tests/pngtest-all'; \ 1591 1695 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ 1592 1696 --log-file $$b.log --trs-file $$b.trs \ … … 1824 1928 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ 1825 1929 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) 1826 1827 1930 distdir: $(BUILT_SOURCES) 1828 1931 $(MAKE) $(AM_MAKEFLAGS) distdir-am … … 1885 1988 $(am__post_remove_distdir) 1886 1989 1990 dist-zstd: distdir 1991 tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst 1992 $(am__post_remove_distdir) 1993 1887 1994 dist-tarZ: distdir 1888 1995 @echo WARNING: "Support for distribution archives compressed with" \ … … 1927 2034 *.zip*) \ 1928 2035 unzip $(distdir).zip ;;\ 2036 *.tar.zst*) \ 2037 zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ 1929 2038 esac 1930 2039 chmod -R a-w $(distdir) … … 1942 2051 --srcdir=../.. --prefix="$$dc_install_base" \ 1943 2052 && $(MAKE) $(AM_MAKEFLAGS) \ 1944 && $(MAKE) $(AM_MAKEFLAGS) dvi\2053 && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \ 1945 2054 && $(MAKE) $(AM_MAKEFLAGS) check \ 1946 2055 && $(MAKE) $(AM_MAKEFLAGS) install \ … … 2002 2111 install-binPROGRAMS: install-libLTLIBRARIES 2003 2112 2113 install-checkPROGRAMS: install-libLTLIBRARIES 2114 2004 2115 installdirs: 2005 2116 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkgincludedir)" "$(DESTDIR)$(pkgincludedir)"; do \ … … 2008 2119 install: $(BUILT_SOURCES) 2009 2120 $(MAKE) $(AM_MAKEFLAGS) install-am 2010 install-exec: install-exec-am 2121 install-exec: $(BUILT_SOURCES) 2122 $(MAKE) $(AM_MAKEFLAGS) install-exec-am 2011 2123 install-data: install-data-am 2012 2124 uninstall: uninstall-am … … 2045 2157 -rm -f intel/$(DEPDIR)/$(am__dirstamp) 2046 2158 -rm -f intel/$(am__dirstamp) 2159 -rm -f loongarch/$(DEPDIR)/$(am__dirstamp) 2160 -rm -f loongarch/$(am__dirstamp) 2047 2161 -rm -f mips/$(DEPDIR)/$(am__dirstamp) 2048 2162 -rm -f mips/$(am__dirstamp) … … 2061 2175 2062 2176 clean-am: clean-binPROGRAMS clean-checkPROGRAMS clean-generic \ 2063 clean-libLTLIBRARIES clean-libtool mostlyclean-am 2177 clean-libLTLIBRARIES clean-libtool clean-noinstLTLIBRARIES \ 2178 mostlyclean-am 2064 2179 2065 2180 distclean: distclean-am … … 2095 2210 -rm -f intel/$(DEPDIR)/filter_sse2_intrinsics.Plo 2096 2211 -rm -f intel/$(DEPDIR)/intel_init.Plo 2212 -rm -f loongarch/$(DEPDIR)/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-filter_lsx_intrinsics.Plo 2213 -rm -f loongarch/$(DEPDIR)/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-loongarch_lsx_init.Plo 2214 -rm -f mips/$(DEPDIR)/filter_mmi_inline_assembly.Plo 2097 2215 -rm -f mips/$(DEPDIR)/filter_msa_intrinsics.Plo 2098 2216 -rm -f mips/$(DEPDIR)/mips_init.Plo … … 2180 2298 -rm -f intel/$(DEPDIR)/filter_sse2_intrinsics.Plo 2181 2299 -rm -f intel/$(DEPDIR)/intel_init.Plo 2300 -rm -f loongarch/$(DEPDIR)/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-filter_lsx_intrinsics.Plo 2301 -rm -f loongarch/$(DEPDIR)/libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@lsx_la-loongarch_lsx_init.Plo 2302 -rm -f mips/$(DEPDIR)/filter_mmi_inline_assembly.Plo 2182 2303 -rm -f mips/$(DEPDIR)/filter_msa_intrinsics.Plo 2183 2304 -rm -f mips/$(DEPDIR)/mips_init.Plo … … 2209 2330 2210 2331 .MAKE: all check check-am install install-am install-data-am \ 2211 install-exec -am install-strip uninstall-am2332 install-exec install-exec-am install-strip uninstall-am 2212 2333 2213 2334 .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles am--refresh check \ 2214 2335 check-TESTS check-am clean clean-binPROGRAMS \ 2215 2336 clean-checkPROGRAMS clean-cscope clean-generic \ 2216 clean-libLTLIBRARIES clean-libtool cscope cscopelist-am ctags \ 2217 ctags-am dist dist-all dist-bzip2 dist-gzip dist-hook \ 2218 dist-lzip dist-shar dist-tarZ dist-xz dist-zip distcheck \ 2219 distclean distclean-compile distclean-generic distclean-hdr \ 2220 distclean-libtool distclean-tags distcleancheck distdir \ 2221 distuninstallcheck dvi dvi-am html html-am info info-am \ 2222 install install-am install-binPROGRAMS install-binSCRIPTS \ 2223 install-data install-data-am install-data-hook install-dvi \ 2224 install-dvi-am install-exec install-exec-am install-exec-hook \ 2225 install-html install-html-am install-info install-info-am \ 2337 clean-libLTLIBRARIES clean-libtool clean-noinstLTLIBRARIES \ 2338 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ 2339 dist-gzip dist-hook dist-lzip dist-shar dist-tarZ dist-xz \ 2340 dist-zip dist-zstd distcheck distclean distclean-compile \ 2341 distclean-generic distclean-hdr distclean-libtool \ 2342 distclean-tags distcleancheck distdir distuninstallcheck dvi \ 2343 dvi-am html html-am info info-am install install-am \ 2344 install-binPROGRAMS install-binSCRIPTS install-data \ 2345 install-data-am install-data-hook install-dvi install-dvi-am \ 2346 install-exec install-exec-am install-exec-hook install-html \ 2347 install-html-am install-info install-info-am \ 2226 2348 install-libLTLIBRARIES install-man install-man3 install-man5 \ 2227 2349 install-nodist_pkgincludeHEADERS install-pdf install-pdf-am \ -
trunk/src/libs/libpng-1.6.42/README
r96425 r103316 1 README for libpng version 1.6. 37 - April 14, 20192 ================================ =================1 README for libpng version 1.6.42 2 ================================ 3 3 4 See the note about version numbers near the top of png.h.5 See INSTALLfor instructions on how to install libpng.4 See the note about version numbers near the top of `png.h`. 5 See `INSTALL` for instructions on how to install libpng. 6 6 7 Libpng comes in several distribution formats. Get libpng-*.tar.gz or8 libpng-*.tar.xz orif you want UNIX-style line endings in the text9 files, or lpng*.7z or lpng*.zipif you want DOS-style line endings.7 Libpng comes in several distribution formats. Get `libpng-*.tar.gz` 8 or `libpng-*.tar.xz` if you want UNIX-style line endings in the text 9 files, or `lpng*.7z` or `lpng*.zip` if you want DOS-style line endings. 10 10 11 Version 0.89 was the first official release of libpng. Don't let the 12 fact that it's the first release fool you. The libpng library has been 13 in extensive use and testing since mid-1995. By late 1997 it had 14 finally gotten to the stage where there hadn't been significant 15 changes to the API in some time, and people have a bad feeling about 16 libraries with versions < 1.0. Version 1.0.0 was released in 17 March 1998. 11 For a detailed description on using libpng, read `libpng-manual.txt`. 12 For examples of libpng in a program, see `example.c` and `pngtest.c`. 13 For usage information and restrictions (what little they are) on libpng, 14 see `png.h`. For a description on using zlib (the compression library 15 used by libpng) and zlib's restrictions, see `zlib.h`. 18 16 19 **** 20 Note that some of the changes to the png_info structure render this 17 You should use zlib 1.0.4 or later to run this, but it _may_ work with 18 versions as old as zlib 0.95. Even so, there are bugs in older zlib 19 versions which can cause the output of invalid compression streams for 20 some images. 21 22 You should also note that zlib is a compression library that is useful 23 for more things than just PNG files. You can use zlib as a drop-in 24 replacement for `fread()` and `fwrite()`, if you are so inclined. 25 26 zlib should be available at the same place that libpng is, or at 27 https://zlib.net . 28 29 You may also want a copy of the PNG specification. It is available 30 as an RFC, a W3C Recommendation, and an ISO/IEC Standard. You can find 31 these at http://www.libpng.org/pub/png/pngdocs.html . 32 33 This code is currently being archived at https://libpng.sourceforge.io 34 in the download area, and at http://libpng.download/src . 35 36 This release, based in a large way on Glenn's, Guy's and Andreas' 37 earlier work, was created and will be supported by myself and the PNG 38 development group. 39 40 Send comments, corrections and commendations to `png-mng-implement` 41 at `lists.sourceforge.net`. (Subscription is required; visit 42 https://lists.sourceforge.net/lists/listinfo/png-mng-implement 43 to subscribe.) 44 45 Send general questions about the PNG specification to `png-mng-misc` 46 at `lists.sourceforge.net`. (Subscription is required; visit 47 https://lists.sourceforge.net/lists/listinfo/png-mng-misc 48 to subscribe.) 49 50 Historical notes 51 ---------------- 52 53 The libpng library has been in extensive use and testing since mid-1995. 54 Version 0.89, published a year later, was the first official release. 55 By late 1997, it had finally gotten to the stage where there hadn't 56 been significant changes to the API in some time, and people have a bad 57 feeling about libraries with versions below 1.0. Version 1.0.0 was 58 released in March 1998. 59 60 Note that some of the changes to the `png_info` structure render this 21 61 version of the library binary incompatible with libpng-0.89 or 22 62 earlier versions if you are using a shared library. The type of the 23 "filler" parameter for png_set_filler() has changed from png_byte to 24 png_uint_32, which will affect shared-library applications that use 25 this function.63 `filler` parameter for `png_set_filler()` has changed from `png_byte` 64 to `png_uint_32`, which will affect shared-library applications that 65 use this function. 26 66 27 To avoid problems with changes to the internals of the png info_struct,67 To avoid problems with changes to the internals of the `info_struct`, 28 68 new APIs have been made available in 0.95 to avoid direct application 29 access to info_ptr. These functions are the png_set_<chunk>and30 png_get_<chunk>functions. These functions should be used when31 accessing/storing the info_structdata, rather than manipulating it69 access to `info_ptr`. These functions are the `png_set_<chunk>` and 70 `png_get_<chunk>` functions. These functions should be used when 71 accessing/storing the `info_struct` data, rather than manipulating it 32 72 directly, to avoid such problems in the future. 33 73 … … 35 75 that access the info struct directly incompatible with the new 36 76 library, through libpng-1.2.x. In libpng-1.4.x, which was meant to 37 be a transitional release, members of the png_structand the38 info_structcan still be accessed, but the compiler will issue a77 be a transitional release, members of the `png_struct` and the 78 `info_struct` can still be accessed, but the compiler will issue a 39 79 warning about deprecated usage. Since libpng-1.5.0, direct access 40 80 to these structs is not allowed, and the definitions of the structs 41 reside in private pngstruct.h and pnginfo.h header files that are not 42 accessible to applications. It is strongly suggested that new 43 programs use the new APIs (as shown in example.c and pngtest.c), and 44 older programs be converted to the new format, to facilitate upgrades 45 in the future. 46 **** 47 48 Additions since 0.90 include the ability to compile libpng as a 49 Windows DLL, and new APIs for accessing data in the info struct. 50 Experimental functions include the ability to set weighting and cost 51 factors for row filter selection, direct reads of integers from buffers 52 on big-endian processors that support misaligned data access, faster 53 methods of doing alpha composition, and more accurate 16->8 bit color 54 conversion. 81 reside in private `pngstruct.h` and `pnginfo.h` header files that are 82 not accessible to applications. It is strongly suggested that new 83 programs use the new APIs (as shown in `example.c` and `pngtest.c`), 84 and older programs be converted to the new format, to facilitate 85 upgrades in the future. 55 86 56 87 The additions since 0.89 include the ability to read from a PNG stream … … 62 93 critical or an ancillary chunk. 63 94 64 For a detailed description on using libpng, read libpng-manual.txt. 65 For examples of libpng in a program, see example.c and pngtest.c. For 66 usage information and restrictions (what little they are) on libpng, 67 see png.h. For a description on using zlib (the compression library 68 used by libpng) and zlib's restrictions, see zlib.h 95 The additions since 0.90 include the ability to compile libpng as a 96 Windows DLL, and new APIs for accessing data in the `info_struct`. 97 Experimental functions included the ability to set weighting and cost 98 factors for row filter selection, direct reads of integers from buffers 99 on big-endian processors that support misaligned data access, faster 100 methods of doing alpha composition, and more accurate 16-to-8 bit color 101 conversion. Some of these experimental functions, such as the weighted 102 filter heuristics, have since been removed. 69 103 70 I have included a general makefile, as well as several machine and 71 compiler specific ones, but you may have to modify one for your own 72 needs. 104 Files included in this distribution 105 ----------------------------------- 73 106 74 You should use zlib 1.0.4 or later to run this, but it MAY work with 75 versions as old as zlib 0.95. Even so, there are bugs in older zlib 76 versions which can cause the output of invalid compression streams for 77 some images. 78 79 You should also note that zlib is a compression library that is useful 80 for more things than just PNG files. You can use zlib as a drop-in 81 replacement for fread() and fwrite(), if you are so inclined. 82 83 zlib should be available at the same place that libpng is, or at 84 https://zlib.net. 85 86 You may also want a copy of the PNG specification. It is available 87 as an RFC, a W3C Recommendation, and an ISO/IEC Standard. You can find 88 these at http://www.libpng.org/pub/png/pngdocs.html . 89 90 This code is currently being archived at libpng.sourceforge.io in the 91 [DOWNLOAD] area, and at http://libpng.download/src . 92 93 This release, based in a large way on Glenn's, Guy's and Andreas' 94 earlier work, was created and will be supported by myself and the PNG 95 development group. 96 97 Send comments/corrections/commendations to png-mng-implement at 98 lists.sourceforge.net (subscription required; visit 99 https://lists.sourceforge.net/lists/listinfo/png-mng-implement 100 to subscribe). 101 102 Send general questions about the PNG specification to png-mng-misc 103 at lists.sourceforge.net (subscription required; visit 104 https://lists.sourceforge.net/lists/listinfo/png-mng-misc to 105 subscribe). 106 107 Files in this distribution: 108 109 ANNOUNCE => Announcement of this version, with recent changes 110 AUTHORS => List of contributing authors 111 CHANGES => Description of changes between libpng versions 112 KNOWNBUG => List of known bugs and deficiencies 113 LICENSE => License to use and redistribute libpng 114 README => This file 115 TODO => Things not implemented in the current library 116 TRADEMARK => Trademark information 117 example.c => Example code for using libpng functions 118 libpng.3 => manual page for libpng (includes libpng-manual.txt) 119 libpng-manual.txt => Description of libpng and its functions 120 libpngpf.3 => manual page for libpng's private functions 121 png.5 => manual page for the PNG format 122 png.c => Basic interface functions common to library 123 png.h => Library function and interface declarations (public) 124 pngpriv.h => Library function and interface declarations (private) 125 pngconf.h => System specific library configuration (public) 126 pngstruct.h => png_struct declaration (private) 127 pnginfo.h => png_info struct declaration (private) 128 pngdebug.h => debugging macros (private) 129 pngerror.c => Error/warning message I/O functions 130 pngget.c => Functions for retrieving info from struct 131 pngmem.c => Memory handling functions 132 pngbar.png => PNG logo, 88x31 133 pngnow.png => PNG logo, 98x31 134 pngpread.c => Progressive reading functions 135 pngread.c => Read data/helper high-level functions 136 pngrio.c => Lowest-level data read I/O functions 137 pngrtran.c => Read data transformation functions 138 pngrutil.c => Read data utility functions 139 pngset.c => Functions for storing data into the info_struct 140 pngtest.c => Library test program 141 pngtest.png => Library test sample image 142 pngtrans.c => Common data transformation functions 143 pngwio.c => Lowest-level write I/O functions 144 pngwrite.c => High-level write functions 145 pngwtran.c => Write data transformations 146 pngwutil.c => Write utility functions 147 arm => Contains optimized code for the ARM platform 148 powerpc => Contains optimized code for the PowerPC platform 149 contrib => Contributions 150 arm-neon => Optimized code for ARM-NEON platform 151 powerpc-vsx => Optimized code for POWERPC-VSX platform 152 examples => Example programs 153 gregbook => source code for PNG reading and writing, from 154 Greg Roelofs' "PNG: The Definitive Guide", 155 O'Reilly, 1999 156 libtests => Test programs 157 mips-msa => Optimized code for MIPS-MSA platform 158 pngminim => Minimal decoder, encoder, and progressive decoder 159 programs demonstrating use of pngusr.dfa 160 pngminus => Simple pnm2png and png2pnm programs 161 pngsuite => Test images 162 testpngs 163 tools => Various tools 164 visupng => Contains a MSVC workspace for VisualPng 165 intel => Optimized code for INTEL-SSE2 platform 166 mips => Optimized code for MIPS platform 167 projects => Contains project files and workspaces for 168 building a DLL 169 owatcom => Contains a WATCOM project for building libpng 170 visualc71 => Contains a Microsoft Visual C++ (MSVC) 171 workspace for building libpng and zlib 172 vstudio => Contains a Microsoft Visual C++ (MSVC) 173 workspace for building libpng and zlib 174 scripts => Directory containing scripts for building libpng: 175 (see scripts/README.txt for the list of scripts) 107 ANNOUNCE => Announcement of this version, with recent changes 108 AUTHORS => List of contributing authors 109 CHANGES => Description of changes between libpng versions 110 INSTALL => Instructions to install libpng 111 LICENSE => License to use and redistribute libpng 112 README => This file 113 TODO => Things not implemented in the current library 114 TRADEMARK => Trademark information 115 example.c => Example code for using libpng functions 116 libpng.3 => Manual page for libpng (includes libpng-manual.txt) 117 libpng-manual.txt => Description of libpng and its functions 118 libpngpf.3 => Manual page for libpng's private functions (deprecated) 119 png.5 => Manual page for the PNG format 120 png.c => Basic interface functions common to library 121 png.h => Library function and interface declarations (public) 122 pngpriv.h => Library function and interface declarations (private) 123 pngconf.h => System specific library configuration (public) 124 pngstruct.h => png_struct declaration (private) 125 pnginfo.h => png_info struct declaration (private) 126 pngdebug.h => debugging macros (private) 127 pngerror.c => Error/warning message I/O functions 128 pngget.c => Functions for retrieving info from struct 129 pngmem.c => Memory handling functions 130 pngbar.png => PNG logo, 88x31 131 pngnow.png => PNG logo, 98x31 132 pngpread.c => Progressive reading functions 133 pngread.c => Read data/helper high-level functions 134 pngrio.c => Lowest-level data read I/O functions 135 pngrtran.c => Read data transformation functions 136 pngrutil.c => Read data utility functions 137 pngset.c => Functions for storing data into the info_struct 138 pngtest.c => Library test program 139 pngtest.png => Library test sample image 140 pngtrans.c => Common data transformation functions 141 pngwio.c => Lowest-level write I/O functions 142 pngwrite.c => High-level write functions 143 pngwtran.c => Write data transformations 144 pngwutil.c => Write utility functions 145 arm/ => Optimized code for the ARM platform 146 intel/ => Optimized code for the INTEL-SSE2 platform 147 mips/ => Optimized code for the MIPS platform 148 powerpc/ => Optimized code for the PowerPC platform 149 ci/ => Scripts for continuous integration 150 contrib/ => External contributions 151 arm-neon/ => Optimized code for the ARM-NEON platform 152 mips-msa/ => Optimized code for the MIPS-MSA platform 153 powerpc-vsx/ => Optimized code for the POWERPC-VSX platform 154 examples/ => Examples of libpng usage 155 gregbook/ => Source code for PNG reading and writing, from 156 "PNG: The Definitive Guide" by Greg Roelofs, 157 O'Reilly, 1999 158 libtests/ => Test programs 159 oss-fuzz/ => Files used by the OSS-Fuzz project for fuzz-testing 160 libpng 161 pngminim/ => Minimal decoder, encoder, and progressive decoder 162 programs demonstrating the use of pngusr.dfa 163 pngminus/ => Simple pnm2png and png2pnm programs 164 pngsuite/ => Test images 165 testpngs/ => Test images 166 tools/ => Various tools 167 visupng/ => VisualPng, a Windows viewer for PNG images 168 projects/ => Project files and workspaces for various IDEs 169 owatcom/ => OpenWatcom project 170 visualc71/ => Microsoft Visual C++ 7.1 workspace 171 vstudio/ => Microsoft Visual Studio workspace 172 scripts/ => Scripts and makefiles for building libpng 173 (see scripts/README.txt for the complete list) 174 tests/ => Test scripts 176 175 177 176 Good luck, and happy coding! -
trunk/src/libs/libpng-1.6.42/aclocal.m4
r96425 r103316 1 # generated automatically by aclocal 1.16. 1-*- Autoconf -*-2 3 # Copyright (C) 1996-20 18Free Software Foundation, Inc.1 # generated automatically by aclocal 1.16.5 -*- Autoconf -*- 2 3 # Copyright (C) 1996-2021 Free Software Foundation, Inc. 4 4 5 5 # This file is free software; the Free Software Foundation … … 15 15 m4_ifndef([AC_AUTOCONF_VERSION], 16 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2. 69],,18 [m4_warning([this file was generated for autoconf 2. 69.17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.72],, 18 [m4_warning([this file was generated for autoconf 2.72. 19 19 You have another version of autoconf. It may work, but is not guaranteed to. 20 20 If you have problems, you may need to regenerate the build system entirely. 21 21 To do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22 22 23 # Copyright (C) 2002-20 18Free Software Foundation, Inc.23 # Copyright (C) 2002-2021 Free Software Foundation, Inc. 24 24 # 25 25 # This file is free software; the Free Software Foundation … … 36 36 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 37 37 dnl require some minimum version. Point them to the right macro. 38 m4_if([$1], [1.16. 1], [],38 m4_if([$1], [1.16.5], [], 39 39 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 40 40 ]) … … 52 52 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 53 53 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 54 [AM_AUTOMAKE_VERSION([1.16. 1])dnl54 [AM_AUTOMAKE_VERSION([1.16.5])dnl 55 55 m4_ifndef([AC_AUTOCONF_VERSION], 56 56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl … … 59 59 # Figure out how to run the assembler. -*- Autoconf -*- 60 60 61 # Copyright (C) 2001-20 18Free Software Foundation, Inc.61 # Copyright (C) 2001-2021 Free Software Foundation, Inc. 62 62 # 63 63 # This file is free software; the Free Software Foundation … … 79 79 # AM_AUX_DIR_EXPAND -*- Autoconf -*- 80 80 81 # Copyright (C) 2001-20 18Free Software Foundation, Inc.81 # Copyright (C) 2001-2021 Free Software Foundation, Inc. 82 82 # 83 83 # This file is free software; the Free Software Foundation … … 131 131 # AM_CONDITIONAL -*- Autoconf -*- 132 132 133 # Copyright (C) 1997-20 18Free Software Foundation, Inc.133 # Copyright (C) 1997-2021 Free Software Foundation, Inc. 134 134 # 135 135 # This file is free software; the Free Software Foundation … … 162 162 fi])]) 163 163 164 # Copyright (C) 1999-20 18Free Software Foundation, Inc.164 # Copyright (C) 1999-2021 Free Software Foundation, Inc. 165 165 # 166 166 # This file is free software; the Free Software Foundation … … 353 353 # Generate code to set up dependency tracking. -*- Autoconf -*- 354 354 355 # Copyright (C) 1999-20 18Free Software Foundation, Inc.355 # Copyright (C) 1999-2021 Free Software Foundation, Inc. 356 356 # 357 357 # This file is free software; the Free Software Foundation … … 392 392 if test $am_rc -ne 0; then 393 393 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments 394 for automatic dependency tracking. Try re-running configure with the 394 for automatic dependency tracking. If GNU make was not used, consider 395 re-running the configure script with MAKE="gmake" (or whatever is 396 necessary). You can also try re-running configure with the 395 397 '--disable-dependency-tracking' option to at least be able to build 396 398 the package (albeit without support for automatic dependency tracking).]) … … 419 421 # Do all the work for Automake. -*- Autoconf -*- 420 422 421 # Copyright (C) 1996-20 18Free Software Foundation, Inc.423 # Copyright (C) 1996-2021 Free Software Foundation, Inc. 422 424 # 423 425 # This file is free software; the Free Software Foundation … … 447 449 AC_DEFUN([AM_INIT_AUTOMAKE], 448 450 [AC_PREREQ([2.65])dnl 451 m4_ifdef([_$0_ALREADY_INIT], 452 [m4_fatal([$0 expanded multiple times 453 ]m4_defn([_$0_ALREADY_INIT]))], 454 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl 449 455 dnl Autoconf wants to disallow AM_ names. We explicitly allow 450 456 dnl the ones we care about. … … 483 489 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 484 490 m4_if( 485 m4_if def([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),491 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), 486 492 [ok:ok],, 487 493 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl … … 535 541 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 536 542 ]) 543 # Variables for tags utilities; see am/tags.am 544 if test -z "$CTAGS"; then 545 CTAGS=ctags 546 fi 547 AC_SUBST([CTAGS]) 548 if test -z "$ETAGS"; then 549 ETAGS=etags 550 fi 551 AC_SUBST([ETAGS]) 552 if test -z "$CSCOPE"; then 553 CSCOPE=cscope 554 fi 555 AC_SUBST([CSCOPE]) 556 537 557 AC_REQUIRE([AM_SILENT_RULES])dnl 538 558 dnl The testsuite driver may need to know about EXEEXT, so add the … … 616 636 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 617 637 618 # Copyright (C) 2001-20 18Free Software Foundation, Inc.638 # Copyright (C) 2001-2021 Free Software Foundation, Inc. 619 639 # 620 640 # This file is free software; the Free Software Foundation … … 637 657 AC_SUBST([install_sh])]) 638 658 639 # Copyright (C) 2003-20 18Free Software Foundation, Inc.659 # Copyright (C) 2003-2021 Free Software Foundation, Inc. 640 660 # 641 661 # This file is free software; the Free Software Foundation … … 659 679 # From Jim Meyering 660 680 661 # Copyright (C) 1996-20 18Free Software Foundation, Inc.681 # Copyright (C) 1996-2021 Free Software Foundation, Inc. 662 682 # 663 683 # This file is free software; the Free Software Foundation … … 694 714 # Check to see how 'make' treats includes. -*- Autoconf -*- 695 715 696 # Copyright (C) 2001-20 18Free Software Foundation, Inc.716 # Copyright (C) 2001-2021 Free Software Foundation, Inc. 697 717 # 698 718 # This file is free software; the Free Software Foundation … … 737 757 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 738 758 739 # Copyright (C) 1997-20 18Free Software Foundation, Inc.759 # Copyright (C) 1997-2021 Free Software Foundation, Inc. 740 760 # 741 761 # This file is free software; the Free Software Foundation … … 758 778 AC_REQUIRE_AUX_FILE([missing])dnl 759 779 if test x"${MISSING+set}" != xset; then 760 case $am_aux_dir in 761 *\ * | *\ *) 762 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 763 *) 764 MISSING="\${SHELL} $am_aux_dir/missing" ;; 765 esac 780 MISSING="\${SHELL} '$am_aux_dir/missing'" 766 781 fi 767 782 # Use eval to expand $SHELL … … 776 791 # Helper functions for option handling. -*- Autoconf -*- 777 792 778 # Copyright (C) 2001-20 18Free Software Foundation, Inc.793 # Copyright (C) 2001-2021 Free Software Foundation, Inc. 779 794 # 780 795 # This file is free software; the Free Software Foundation … … 805 820 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 806 821 807 # Copyright (C) 1999-20 18Free Software Foundation, Inc.822 # Copyright (C) 1999-2021 Free Software Foundation, Inc. 808 823 # 809 824 # This file is free software; the Free Software Foundation … … 852 867 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 853 868 854 # Copyright (C) 2001-20 18Free Software Foundation, Inc.869 # Copyright (C) 2001-2021 Free Software Foundation, Inc. 855 870 # 856 871 # This file is free software; the Free Software Foundation … … 871 886 # Check to make sure that the build environment is sane. -*- Autoconf -*- 872 887 873 # Copyright (C) 1996-20 18Free Software Foundation, Inc.888 # Copyright (C) 1996-2021 Free Software Foundation, Inc. 874 889 # 875 890 # This file is free software; the Free Software Foundation … … 952 967 ]) 953 968 954 # Copyright (C) 2009-20 18Free Software Foundation, Inc.969 # Copyright (C) 2009-2021 Free Software Foundation, Inc. 955 970 # 956 971 # This file is free software; the Free Software Foundation … … 1012 1027 ]) 1013 1028 1014 # Copyright (C) 2001-20 18Free Software Foundation, Inc.1029 # Copyright (C) 2001-2021 Free Software Foundation, Inc. 1015 1030 # 1016 1031 # This file is free software; the Free Software Foundation … … 1040 1055 AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1041 1056 1042 # Copyright (C) 2006-20 18Free Software Foundation, Inc.1057 # Copyright (C) 2006-2021 Free Software Foundation, Inc. 1043 1058 # 1044 1059 # This file is free software; the Free Software Foundation … … 1059 1074 # Check how to create a tarball. -*- Autoconf -*- 1060 1075 1061 # Copyright (C) 2004-20 18Free Software Foundation, Inc.1076 # Copyright (C) 2004-2021 Free Software Foundation, Inc. 1062 1077 # 1063 1078 # This file is free software; the Free Software Foundation … … 1190 1205 ]) # _AM_PROG_TAR 1191 1206 1192 m4_include([scripts/ libtool.m4])1193 m4_include([scripts/ ltoptions.m4])1194 m4_include([scripts/ ltsugar.m4])1195 m4_include([scripts/ ltversion.m4])1196 m4_include([scripts/ lt~obsolete.m4])1207 m4_include([scripts/autoconf/libtool.m4]) 1208 m4_include([scripts/autoconf/ltoptions.m4]) 1209 m4_include([scripts/autoconf/ltsugar.m4]) 1210 m4_include([scripts/autoconf/ltversion.m4]) 1211 m4_include([scripts/autoconf/lt~obsolete.m4]) -
trunk/src/libs/libpng-1.6.42/arm/arm_init.c
r96425 r103316 2 2 /* arm_init.c - NEON optimised filter functions 3 3 * 4 * Copyright (c) 2018 Cosmin Truta4 * Copyright (c) 2018-2022 Cosmin Truta 5 5 * Copyright (c) 2014,2016 Glenn Randers-Pehrson 6 6 * Written by Mans Rullgard, 2011. … … 11 11 */ 12 12 13 /* Below, after checking __linux__, various non-C90 POSIX 1003.1 functions are 14 * called. 15 */ 13 /* This module requires POSIX 1003.1 functions. */ 16 14 #define _POSIX_SOURCE 1 17 15 … … 34 32 * implementation which reads /proc/cpufino. 35 33 */ 34 #include <signal.h> /* for sig_atomic_t */ 35 36 36 #ifndef PNG_ARM_NEON_FILE 37 # ifdef __linux__ 38 # define PNG_ARM_NEON_FILE "contrib/arm-neon/linux.c" 37 # if defined(__aarch64__) || defined(_M_ARM64) 38 /* ARM Neon is expected to be unconditionally available on ARM64. */ 39 # error "PNG_ARM_NEON_CHECK_SUPPORTED must not be defined on ARM64" 40 # elif defined(__ARM_NEON__) || defined(__ARM_NEON) 41 /* ARM Neon is expected to be available on the target CPU architecture. */ 42 # error "PNG_ARM_NEON_CHECK_SUPPORTED must not be defined on this CPU arch" 43 # elif defined(__linux__) 44 # define PNG_ARM_NEON_FILE "contrib/arm-neon/linux.c" 45 # else 46 # error "No support for run-time ARM Neon checking; use compile-time options" 39 47 # endif 40 48 #endif 41 49 50 static int png_have_neon(png_structp png_ptr); 42 51 #ifdef PNG_ARM_NEON_FILE 43 44 #include <signal.h> /* for sig_atomic_t */ 45 static int png_have_neon(png_structp png_ptr); 46 #include PNG_ARM_NEON_FILE 47 48 #else /* PNG_ARM_NEON_FILE */ 49 # error "PNG_ARM_NEON_FILE undefined: no support for run-time ARM NEON checks" 50 #endif /* PNG_ARM_NEON_FILE */ 52 # include PNG_ARM_NEON_FILE 53 #endif 51 54 #endif /* PNG_ARM_NEON_CHECK_SUPPORTED */ 52 55 -
trunk/src/libs/libpng-1.6.42/arm/filter_neon_intrinsics.c
r96425 r103316 19 19 #if PNG_ARM_NEON_IMPLEMENTATION == 1 /* intrinsics code from pngpriv.h */ 20 20 21 #if defined(_MSC_VER) && defined(_M_ARM64)21 #if defined(_MSC_VER) && !defined(__clang__) && defined(_M_ARM64) 22 22 # include <arm64_neon.h> 23 23 #else -
trunk/src/libs/libpng-1.6.42/arm/palette_neon_intrinsics.c
r96425 r103316 15 15 #if PNG_ARM_NEON_IMPLEMENTATION == 1 16 16 17 #if defined(_MSC_VER) && defined(_M_ARM64)17 #if defined(_MSC_VER) && !defined(__clang__) && defined(_M_ARM64) 18 18 # include <arm64_neon.h> 19 19 #else … … 31 31 int i; 32 32 33 png_debug(1, "in png_riffle_palette_neon");34 35 33 /* Initially black, opaque. */ 36 34 uint8x16x4_t w = {{ … … 40 38 vdupq_n_u8(0xff), 41 39 }}; 40 41 png_debug(1, "in png_riffle_palette_neon"); 42 42 43 43 /* First, riffle the RGB colours into an RGBA8 palette. … … 66 66 const png_uint_32 *riffled_palette = 67 67 (const png_uint_32 *)png_ptr->riffled_palette; 68 const png_ int_32 pixels_per_chunk = 4;69 inti;68 const png_uint_32 pixels_per_chunk = 4; 69 png_uint_32 i; 70 70 71 71 png_debug(1, "in png_do_expand_palette_rgba8_neon"); 72 72 73 PNG_UNUSED(row) 73 74 if (row_width < pixels_per_chunk) 74 75 return 0; … … 110 111 png_const_bytep palette = (png_const_bytep)png_ptr->palette; 111 112 const png_uint_32 pixels_per_chunk = 8; 112 inti;113 png_uint_32 i; 113 114 114 115 png_debug(1, "in png_do_expand_palette_rgb8_neon"); 115 116 117 PNG_UNUSED(row) 116 118 if (row_width <= pixels_per_chunk) 117 119 return 0; -
trunk/src/libs/libpng-1.6.42/autogen.sh
r96425 r103316 78 78 test-driver" 79 79 # 80 # Files generated by versions of configue>2.68 or automake >1.13 (i.e. later80 # Files generated by versions of autoconf >2.68 or automake >1.13 (i.e. later 81 81 # versions than those required by configure.ac): 82 82 libpng_autotools_extra="compile config.h.in~" 83 83 # 84 84 # These are separate because 'maintainer-clean' does not remove them. 85 libpng_libtool_files="scripts/libtool.m4 scripts/ltoptions.m4\ 86 scripts/ltsugar.m4 scripts/ltversion.m4 scripts/lt~obsolete.m4" 85 libpng_libtool_files="scripts/autoconf/libtool.m4 scripts/autoconf/ltoptions.m4\ 86 scripts/autoconf/ltsugar.m4 scripts/autoconf/ltversion.m4\ 87 scripts/autoconf/lt~obsolete.m4" 87 88 88 89 libpng_autotools_dirs="autom4te.cache" # not required -
trunk/src/libs/libpng-1.6.42/compile
r96425 r103316 4 4 scriptversion=2018-03-07.03; # UTC 5 5 6 # Copyright (C) 1999-20 18Free Software Foundation, Inc.6 # Copyright (C) 1999-2021 Free Software Foundation, Inc. 7 7 # Written by Tom Tromey <[email protected]>. 8 8 # … … 54 54 file_conv=mingw 55 55 ;; 56 CYGWIN* )56 CYGWIN* | MSYS*) 57 57 file_conv=cygwin 58 58 ;; … … 68 68 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` 69 69 ;; 70 cygwin/* )70 cygwin/* | msys/*) 71 71 file=`cygpath -m "$file" || echo "$file"` 72 72 ;; -
trunk/src/libs/libpng-1.6.42/config.guess
r96425 r103316 1 1 #! /bin/sh 2 2 # Attempt to guess a canonical system name. 3 # Copyright 1992-2018 Free Software Foundation, Inc. 4 5 timestamp='2018-03-08' 3 # Copyright 1992-2023 Free Software Foundation, Inc. 4 5 # shellcheck disable=SC2006,SC2268 # see below for rationale 6 7 timestamp='2023-08-22' 6 8 7 9 # This file is free software; you can redistribute it and/or modify it 8 10 # under the terms of the GNU General Public License as published by 9 # the Free Software Foundation ;either version 3 of the License, or11 # the Free Software Foundation, either version 3 of the License, or 10 12 # (at your option) any later version. 11 13 # … … 28 30 # 29 31 # You can get the latest version of this script from: 30 # https://git.savannah.gnu.org/ gitweb/?p=config.git;a=blob_plain;f=config.guess32 # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess 31 33 # 32 34 # Please send patches to <[email protected]>. 33 35 34 36 37 # The "shellcheck disable" line above the timestamp inhibits complaints 38 # about features and limitations of the classic Bourne shell that were 39 # superseded or lifted in POSIX. However, this script identifies a wide 40 # variety of pre-POSIX systems that do not have POSIX shells at all, and 41 # even some reasonably current systems (Solaris 10 as case-in-point) still 42 # have a pre-POSIX /bin/sh. 43 44 35 45 me=`echo "$0" | sed -e 's,.*/,,'` 36 46 … … 38 48 Usage: $0 [OPTION] 39 49 40 Output the configuration name of the system \`$me' is run on.50 Output the configuration name of the system '$me' is run on. 41 51 42 52 Options: … … 51 61 52 62 Originally written by Per Bothner. 53 Copyright 1992-20 18Free Software Foundation, Inc.63 Copyright 1992-2023 Free Software Foundation, Inc. 54 64 55 65 This is free software; see the source for copying conditions. There is NO … … 57 67 58 68 help=" 59 Try \`$me --help' for more information."69 Try '$me --help' for more information." 60 70 61 71 # Parse command line … … 85 95 fi 86 96 87 trap 'exit 1' 1 2 15 97 # Just in case it came from the environment. 98 GUESS= 88 99 89 100 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a … … 92 103 # headache to deal with in a portable fashion. 93 104 94 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still95 # use `HOST_CC' if defined, but it is deprecated.105 # Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still 106 # use 'HOST_CC' if defined, but it is deprecated. 96 107 97 108 # Portable tmp directory creation inspired by the Autoconf team. 98 109 99 set_cc_for_build=' 100 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 101 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 102 : ${TMPDIR=/tmp} ; 103 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 104 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 105 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 106 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 107 dummy=$tmp/dummy ; 108 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 109 case $CC_FOR_BUILD,$HOST_CC,$CC in 110 ,,) echo "int x;" > "$dummy.c" ; 111 for c in cc gcc c89 c99 ; do 112 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then 113 CC_FOR_BUILD="$c"; break ; 114 fi ; 115 done ; 116 if test x"$CC_FOR_BUILD" = x ; then 117 CC_FOR_BUILD=no_compiler_found ; 118 fi 119 ;; 120 ,,*) CC_FOR_BUILD=$CC ;; 121 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 122 esac ; set_cc_for_build= ;' 110 tmp= 111 # shellcheck disable=SC2172 112 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 113 114 set_cc_for_build() { 115 # prevent multiple calls if $tmp is already set 116 test "$tmp" && return 0 117 : "${TMPDIR=/tmp}" 118 # shellcheck disable=SC2039,SC3028 119 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 120 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || 121 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || 122 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } 123 dummy=$tmp/dummy 124 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in 125 ,,) echo "int x;" > "$dummy.c" 126 for driver in cc gcc c89 c99 ; do 127 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then 128 CC_FOR_BUILD=$driver 129 break 130 fi 131 done 132 if test x"$CC_FOR_BUILD" = x ; then 133 CC_FOR_BUILD=no_compiler_found 134 fi 135 ;; 136 ,,*) CC_FOR_BUILD=$CC ;; 137 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 138 esac 139 } 123 140 124 141 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. 125 142 # ([email protected] 1994-08-24) 126 if (test -f /.attbin/uname) >/dev/null 2>&1; then143 if test -f /.attbin/uname ; then 127 144 PATH=$PATH:/.attbin ; export PATH 128 145 fi … … 130 147 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 131 148 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 132 UNAME_SYSTEM=`(uname -s) 2>/dev/null` 149 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 133 150 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 134 151 135 case "$UNAME_SYSTEM"in152 case $UNAME_SYSTEM in 136 153 Linux|GNU|GNU/*) 137 # If the system lacks a compiler, then just pick glibc. 138 # We could probably try harder. 139 LIBC=gnu 140 141 eval "$set_cc_for_build" 154 LIBC=unknown 155 156 set_cc_for_build 142 157 cat <<-EOF > "$dummy.c" 158 #if defined(__ANDROID__) 159 LIBC=android 160 #else 143 161 #include <features.h> 144 162 #if defined(__UCLIBC__) … … 146 164 #elif defined(__dietlibc__) 147 165 LIBC=dietlibc 166 #elif defined(__GLIBC__) 167 LIBC=gnu 148 168 #else 149 LIBC=gnu 169 #include <stdarg.h> 170 /* First heuristic to detect musl libc. */ 171 #ifdef __DEFINED_va_list 172 LIBC=musl 173 #endif 174 #endif 150 175 #endif 151 176 EOF 152 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" 153 154 # If ldd exists, use it to detect musl libc. 155 if command -v ldd >/dev/null && \ 156 ldd --version 2>&1 | grep -q ^musl 157 then 158 LIBC=musl 177 cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` 178 eval "$cc_set_libc" 179 180 # Second heuristic to detect musl libc. 181 if [ "$LIBC" = unknown ] && 182 command -v ldd >/dev/null && 183 ldd --version 2>&1 | grep -q ^musl; then 184 LIBC=musl 185 fi 186 187 # If the system lacks a compiler, then just pick glibc. 188 # We could probably try harder. 189 if [ "$LIBC" = unknown ]; then 190 LIBC=gnu 159 191 fi 160 192 ;; … … 163 195 # Note: order is significant - the case branches are not exclusive. 164 196 165 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION"in197 case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in 166 198 *:NetBSD:*:*) 167 199 # NetBSD (nbsd) targets should (where applicable) match one or … … 175 207 # Note: NetBSD doesn't particularly care about the vendor 176 208 # portion of the name. We always set it to "unknown". 177 sysctl="sysctl -n hw.machine_arch"178 209 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ 179 "/sbin/$sysctl"2>/dev/null || \180 "/usr/sbin/$sysctl"2>/dev/null || \210 /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ 211 /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ 181 212 echo unknown)` 182 case "$UNAME_MACHINE_ARCH" in 213 case $UNAME_MACHINE_ARCH in 214 aarch64eb) machine=aarch64_be-unknown ;; 183 215 armeb) machine=armeb-unknown ;; 184 216 arm*) machine=arm-unknown ;; … … 189 221 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` 190 222 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` 191 machine= "${arch}${endian}"-unknown223 machine=${arch}${endian}-unknown 192 224 ;; 193 *) machine= "$UNAME_MACHINE_ARCH"-unknown ;;225 *) machine=$UNAME_MACHINE_ARCH-unknown ;; 194 226 esac 195 227 # The Operating System including object format, if it has switched 196 228 # to ELF recently (or will in the future) and ABI. 197 case "$UNAME_MACHINE_ARCH"in229 case $UNAME_MACHINE_ARCH in 198 230 earm*) 199 231 os=netbsdelf 200 232 ;; 201 233 arm*|i386|m68k|ns32k|sh3*|sparc|vax) 202 eval "$set_cc_for_build"234 set_cc_for_build 203 235 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 204 236 | grep -q __ELF__ … … 216 248 esac 217 249 # Determine ABI tags. 218 case "$UNAME_MACHINE_ARCH"in250 case $UNAME_MACHINE_ARCH in 219 251 earm*) 220 252 expr='s/^earmv[0-9]/-eabi/;s/eb$//' … … 227 259 # kernel version information, so it can be replaced with a 228 260 # suitable tag, in the style of linux-gnu. 229 case "$UNAME_VERSION"in261 case $UNAME_VERSION in 230 262 Debian*) 231 263 release='-gnu' … … 238 270 # contains redundant information, the shorter form: 239 271 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 240 echo "$machine-${os}${release}${abi}"241 exit;;272 GUESS=$machine-${os}${release}${abi-} 273 ;; 242 274 *:Bitrig:*:*) 243 275 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` 244 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"245 exit;;276 GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE 277 ;; 246 278 *:OpenBSD:*:*) 247 279 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 248 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" 249 exit ;; 280 GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE 281 ;; 282 *:SecBSD:*:*) 283 UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` 284 GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE 285 ;; 250 286 *:LibertyBSD:*:*) 251 287 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` 252 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"253 exit;;288 GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE 289 ;; 254 290 *:MidnightBSD:*:*) 255 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"256 exit;;291 GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE 292 ;; 257 293 *:ekkoBSD:*:*) 258 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"259 exit;;294 GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE 295 ;; 260 296 *:SolidBSD:*:*) 261 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" 262 exit ;; 297 GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE 298 ;; 299 *:OS108:*:*) 300 GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE 301 ;; 263 302 macppc:MirBSD:*:*) 264 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"265 exit;;303 GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE 304 ;; 266 305 *:MirBSD:*:*) 267 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"268 exit;;306 GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE 307 ;; 269 308 *:Sortix:*:*) 270 echo "$UNAME_MACHINE"-unknown-sortix 271 exit ;; 309 GUESS=$UNAME_MACHINE-unknown-sortix 310 ;; 311 *:Twizzler:*:*) 312 GUESS=$UNAME_MACHINE-unknown-twizzler 313 ;; 272 314 *:Redox:*:*) 273 echo "$UNAME_MACHINE"-unknown-redox274 exit;;315 GUESS=$UNAME_MACHINE-unknown-redox 316 ;; 275 317 mips:OSF1:*.*) 276 echomips-dec-osf1277 exit;;318 GUESS=mips-dec-osf1 319 ;; 278 320 alpha:OSF1:*:*) 321 # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 322 trap '' 0 279 323 case $UNAME_RELEASE in 280 324 *4.0) … … 290 334 # types through head -n 1, so we only detect the type of CPU 0. 291 335 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 292 case "$ALPHA_CPU_TYPE"in336 case $ALPHA_CPU_TYPE in 293 337 "EV4 (21064)") 294 338 UNAME_MACHINE=alpha ;; … … 327 371 # A Xn.n version is an unreleased experimental baselevel. 328 372 # 1.2 uses "1.2" for uname -r. 329 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" 330 # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 331 exitcode=$? 332 trap '' 0 333 exit $exitcode ;; 373 OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` 374 GUESS=$UNAME_MACHINE-dec-osf$OSF_REL 375 ;; 334 376 Amiga*:UNIX_System_V:4.0:*) 335 echom68k-unknown-sysv4336 exit;;377 GUESS=m68k-unknown-sysv4 378 ;; 337 379 *:[Aa]miga[Oo][Ss]:*:*) 338 echo "$UNAME_MACHINE"-unknown-amigaos339 exit;;380 GUESS=$UNAME_MACHINE-unknown-amigaos 381 ;; 340 382 *:[Mm]orph[Oo][Ss]:*:*) 341 echo "$UNAME_MACHINE"-unknown-morphos342 exit;;383 GUESS=$UNAME_MACHINE-unknown-morphos 384 ;; 343 385 *:OS/390:*:*) 344 echoi370-ibm-openedition345 exit;;386 GUESS=i370-ibm-openedition 387 ;; 346 388 *:z/VM:*:*) 347 echos390-ibm-zvmoe348 exit;;389 GUESS=s390-ibm-zvmoe 390 ;; 349 391 *:OS400:*:*) 350 echopowerpc-ibm-os400351 exit;;392 GUESS=powerpc-ibm-os400 393 ;; 352 394 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 353 echo arm-acorn-riscix"$UNAME_RELEASE"354 exit;;395 GUESS=arm-acorn-riscix$UNAME_RELEASE 396 ;; 355 397 arm*:riscos:*:*|arm*:RISCOS:*:*) 356 echoarm-unknown-riscos357 exit;;398 GUESS=arm-unknown-riscos 399 ;; 358 400 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 359 echohppa1.1-hitachi-hiuxmpp360 exit;;401 GUESS=hppa1.1-hitachi-hiuxmpp 402 ;; 361 403 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 362 404 # [email protected] (Earle F. Ake) contributed MIS and NILE. 363 if test "`(/bin/universe) 2>/dev/null`" = att ; then 364 echo pyramid-pyramid-sysv3 365 else 366 echo pyramid-pyramid-bsd 367 fi 368 exit ;; 405 case `(/bin/universe) 2>/dev/null` in 406 att) GUESS=pyramid-pyramid-sysv3 ;; 407 *) GUESS=pyramid-pyramid-bsd ;; 408 esac 409 ;; 369 410 NILE*:*:*:dcosx) 370 echopyramid-pyramid-svr4371 exit;;411 GUESS=pyramid-pyramid-svr4 412 ;; 372 413 DRS?6000:unix:4.0:6*) 373 echosparc-icl-nx6374 exit;;414 GUESS=sparc-icl-nx6 415 ;; 375 416 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 376 417 case `/usr/bin/uname -p` in 377 sparc) echo sparc-icl-nx7; exit ;; 378 esac ;; 418 sparc) GUESS=sparc-icl-nx7 ;; 419 esac 420 ;; 379 421 s390x:SunOS:*:*) 380 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" 381 exit ;; 422 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` 423 GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL 424 ;; 382 425 sun4H:SunOS:5.*:*) 383 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" 384 exit ;; 426 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` 427 GUESS=sparc-hal-solaris2$SUN_REL 428 ;; 385 429 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 386 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" 387 exit ;; 430 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` 431 GUESS=sparc-sun-solaris2$SUN_REL 432 ;; 388 433 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 389 echo i386-pc-auroraux"$UNAME_RELEASE"390 exit;;434 GUESS=i386-pc-auroraux$UNAME_RELEASE 435 ;; 391 436 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 392 eval "$set_cc_for_build"437 set_cc_for_build 393 438 SUN_ARCH=i386 394 439 # If there is a compiler, see if it is configured for 64-bit objects. 395 440 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 396 441 # This test works for both compilers. 397 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then442 if test "$CC_FOR_BUILD" != no_compiler_found; then 398 443 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 399 (CCOPTS="" $CC_FOR_BUILD - E - 2>/dev/null) | \444 (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ 400 445 grep IS_64BIT_ARCH >/dev/null 401 446 then … … 403 448 fi 404 449 fi 405 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" 406 exit ;; 450 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` 451 GUESS=$SUN_ARCH-pc-solaris2$SUN_REL 452 ;; 407 453 sun4*:SunOS:6*:*) 408 454 # According to config.sub, this is the proper way to canonicalize 409 455 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 410 456 # it's likely to be more like Solaris than SunOS4. 411 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" 412 exit ;; 457 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` 458 GUESS=sparc-sun-solaris3$SUN_REL 459 ;; 413 460 sun4*:SunOS:*:*) 414 case "`/usr/bin/arch -k`"in461 case `/usr/bin/arch -k` in 415 462 Series*|S4*) 416 463 UNAME_RELEASE=`uname -v` 417 464 ;; 418 465 esac 419 # Japanese Language versions have a version number like `4.1.3-JL'. 420 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" 421 exit ;; 466 # Japanese Language versions have a version number like '4.1.3-JL'. 467 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` 468 GUESS=sparc-sun-sunos$SUN_REL 469 ;; 422 470 sun3*:SunOS:*:*) 423 echo m68k-sun-sunos"$UNAME_RELEASE"424 exit;;471 GUESS=m68k-sun-sunos$UNAME_RELEASE 472 ;; 425 473 sun*:*:4.2BSD:*) 426 474 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 427 475 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 428 case "`/bin/arch`"in476 case `/bin/arch` in 429 477 sun3) 430 echo m68k-sun-sunos"$UNAME_RELEASE"478 GUESS=m68k-sun-sunos$UNAME_RELEASE 431 479 ;; 432 480 sun4) 433 echo sparc-sun-sunos"$UNAME_RELEASE"481 GUESS=sparc-sun-sunos$UNAME_RELEASE 434 482 ;; 435 483 esac 436 exit;;484 ;; 437 485 aushp:SunOS:*:*) 438 echo sparc-auspex-sunos"$UNAME_RELEASE"439 exit;;486 GUESS=sparc-auspex-sunos$UNAME_RELEASE 487 ;; 440 488 # The situation for MiNT is a little confusing. The machine name 441 489 # can be virtually everything (everything which is not … … 447 495 # be no problem. 448 496 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 449 echo m68k-atari-mint"$UNAME_RELEASE"450 exit;;497 GUESS=m68k-atari-mint$UNAME_RELEASE 498 ;; 451 499 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 452 echo m68k-atari-mint"$UNAME_RELEASE"453 exit;;500 GUESS=m68k-atari-mint$UNAME_RELEASE 501 ;; 454 502 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 455 echo m68k-atari-mint"$UNAME_RELEASE"456 exit;;503 GUESS=m68k-atari-mint$UNAME_RELEASE 504 ;; 457 505 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 458 echo m68k-milan-mint"$UNAME_RELEASE"459 exit;;506 GUESS=m68k-milan-mint$UNAME_RELEASE 507 ;; 460 508 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 461 echo m68k-hades-mint"$UNAME_RELEASE"462 exit;;509 GUESS=m68k-hades-mint$UNAME_RELEASE 510 ;; 463 511 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 464 echo m68k-unknown-mint"$UNAME_RELEASE"465 exit;;512 GUESS=m68k-unknown-mint$UNAME_RELEASE 513 ;; 466 514 m68k:machten:*:*) 467 echo m68k-apple-machten"$UNAME_RELEASE"468 exit;;515 GUESS=m68k-apple-machten$UNAME_RELEASE 516 ;; 469 517 powerpc:machten:*:*) 470 echo powerpc-apple-machten"$UNAME_RELEASE"471 exit;;518 GUESS=powerpc-apple-machten$UNAME_RELEASE 519 ;; 472 520 RISC*:Mach:*:*) 473 echomips-dec-mach_bsd4.3474 exit;;521 GUESS=mips-dec-mach_bsd4.3 522 ;; 475 523 RISC*:ULTRIX:*:*) 476 echo mips-dec-ultrix"$UNAME_RELEASE"477 exit;;524 GUESS=mips-dec-ultrix$UNAME_RELEASE 525 ;; 478 526 VAX*:ULTRIX*:*:*) 479 echo vax-dec-ultrix"$UNAME_RELEASE"480 exit;;527 GUESS=vax-dec-ultrix$UNAME_RELEASE 528 ;; 481 529 2020:CLIX:*:* | 2430:CLIX:*:*) 482 echo clipper-intergraph-clix"$UNAME_RELEASE"483 exit;;530 GUESS=clipper-intergraph-clix$UNAME_RELEASE 531 ;; 484 532 mips:*:*:UMIPS | mips:*:*:RISCos) 485 eval "$set_cc_for_build"533 set_cc_for_build 486 534 sed 's/^ //' << EOF > "$dummy.c" 487 535 #ifdef __cplusplus … … 509 557 SYSTEM_NAME=`"$dummy" "$dummyarg"` && 510 558 { echo "$SYSTEM_NAME"; exit; } 511 echo mips-mips-riscos"$UNAME_RELEASE"512 exit;;559 GUESS=mips-mips-riscos$UNAME_RELEASE 560 ;; 513 561 Motorola:PowerMAX_OS:*:*) 514 echopowerpc-motorola-powermax515 exit;;562 GUESS=powerpc-motorola-powermax 563 ;; 516 564 Motorola:*:4.3:PL8-*) 517 echopowerpc-harris-powermax518 exit;;565 GUESS=powerpc-harris-powermax 566 ;; 519 567 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 520 echopowerpc-harris-powermax521 exit;;568 GUESS=powerpc-harris-powermax 569 ;; 522 570 Night_Hawk:Power_UNIX:*:*) 523 echopowerpc-harris-powerunix524 exit;;571 GUESS=powerpc-harris-powerunix 572 ;; 525 573 m88k:CX/UX:7*:*) 526 echom88k-harris-cxux7527 exit;;574 GUESS=m88k-harris-cxux7 575 ;; 528 576 m88k:*:4*:R4*) 529 echom88k-motorola-sysv4530 exit;;577 GUESS=m88k-motorola-sysv4 578 ;; 531 579 m88k:*:3*:R3*) 532 echom88k-motorola-sysv3533 exit;;580 GUESS=m88k-motorola-sysv3 581 ;; 534 582 AViiON:dgux:*:*) 535 583 # DG/UX returns AViiON for all architectures 536 584 UNAME_PROCESSOR=`/usr/bin/uname -p` 537 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]585 if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 538 586 then 539 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ]|| \540 [ "$TARGET_BINARY_INTERFACE"x = x ]587 if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ 588 test "$TARGET_BINARY_INTERFACE"x = x 541 589 then 542 echo m88k-dg-dgux"$UNAME_RELEASE"590 GUESS=m88k-dg-dgux$UNAME_RELEASE 543 591 else 544 echo m88k-dg-dguxbcs"$UNAME_RELEASE"592 GUESS=m88k-dg-dguxbcs$UNAME_RELEASE 545 593 fi 546 594 else 547 echo i586-dg-dgux"$UNAME_RELEASE"548 fi 549 exit;;595 GUESS=i586-dg-dgux$UNAME_RELEASE 596 fi 597 ;; 550 598 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 551 echom88k-dolphin-sysv3552 exit;;599 GUESS=m88k-dolphin-sysv3 600 ;; 553 601 M88*:*:R3*:*) 554 602 # Delta 88k system running SVR3 555 echom88k-motorola-sysv3556 exit;;603 GUESS=m88k-motorola-sysv3 604 ;; 557 605 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 558 echom88k-tektronix-sysv3559 exit;;606 GUESS=m88k-tektronix-sysv3 607 ;; 560 608 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 561 echom68k-tektronix-bsd562 exit;;609 GUESS=m68k-tektronix-bsd 610 ;; 563 611 *:IRIX*:*:*) 564 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" 565 exit ;; 612 IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` 613 GUESS=mips-sgi-irix$IRIX_REL 614 ;; 566 615 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 567 echo romp-ibm-aix# uname -m gives an 8 hex-code CPU id568 exit ;;# Note that: echo "'`uname -s`'" gives 'AIX '616 GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id 617 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 569 618 i*86:AIX:*:*) 570 echoi386-ibm-aix571 exit;;619 GUESS=i386-ibm-aix 620 ;; 572 621 ia64:AIX:*:*) 573 if [ -x /usr/bin/oslevel ]; then622 if test -x /usr/bin/oslevel ; then 574 623 IBM_REV=`/usr/bin/oslevel` 575 624 else 576 IBM_REV= "$UNAME_VERSION.$UNAME_RELEASE"577 fi 578 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"579 exit;;625 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE 626 fi 627 GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV 628 ;; 580 629 *:AIX:2:3) 581 630 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 582 eval "$set_cc_for_build"631 set_cc_for_build 583 632 sed 's/^ //' << EOF > "$dummy.c" 584 633 #include <sys/systemcfg.h> … … 594 643 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` 595 644 then 596 echo "$SYSTEM_NAME"645 GUESS=$SYSTEM_NAME 597 646 else 598 echors6000-ibm-aix3.2.5647 GUESS=rs6000-ibm-aix3.2.5 599 648 fi 600 649 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 601 echors6000-ibm-aix3.2.4650 GUESS=rs6000-ibm-aix3.2.4 602 651 else 603 echors6000-ibm-aix3.2604 fi 605 exit;;652 GUESS=rs6000-ibm-aix3.2 653 fi 654 ;; 606 655 *:AIX:*:[4567]) 607 656 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` … … 611 660 IBM_ARCH=powerpc 612 661 fi 613 if [ -x /usr/bin/lslpp ]; then614 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | 662 if test -x /usr/bin/lslpp ; then 663 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ 615 664 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` 616 665 else 617 IBM_REV= "$UNAME_VERSION.$UNAME_RELEASE"618 fi 619 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"620 exit;;666 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE 667 fi 668 GUESS=$IBM_ARCH-ibm-aix$IBM_REV 669 ;; 621 670 *:AIX:*:*) 622 echors6000-ibm-aix623 exit;;671 GUESS=rs6000-ibm-aix 672 ;; 624 673 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) 625 echoromp-ibm-bsd4.4626 exit;;674 GUESS=romp-ibm-bsd4.4 675 ;; 627 676 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 628 echo romp-ibm-bsd"$UNAME_RELEASE"# 4.3 with uname added to629 exit ;;# report: romp-ibm BSD 4.3677 GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to 678 ;; # report: romp-ibm BSD 4.3 630 679 *:BOSX:*:*) 631 echors6000-bull-bosx632 exit;;680 GUESS=rs6000-bull-bosx 681 ;; 633 682 DPX/2?00:B.O.S.:*:*) 634 echom68k-bull-sysv3635 exit;;683 GUESS=m68k-bull-sysv3 684 ;; 636 685 9000/[34]??:4.3bsd:1.*:*) 637 echom68k-hp-bsd638 exit;;686 GUESS=m68k-hp-bsd 687 ;; 639 688 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 640 echom68k-hp-bsd4.4641 exit;;689 GUESS=m68k-hp-bsd4.4 690 ;; 642 691 9000/[34678]??:HP-UX:*:*) 643 HPUX_REV=`echo "$UNAME_RELEASE" |sed -e 's/[^.]*.[0B]*//'`644 case "$UNAME_MACHINE"in692 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` 693 case $UNAME_MACHINE in 645 694 9000/31?) HP_ARCH=m68000 ;; 646 695 9000/[34]??) HP_ARCH=m68k ;; 647 696 9000/[678][0-9][0-9]) 648 if [ -x /usr/bin/getconf ]; then697 if test -x /usr/bin/getconf; then 649 698 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 650 699 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 651 case "$sc_cpu_version"in700 case $sc_cpu_version in 652 701 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 653 702 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 654 703 532) # CPU_PA_RISC2_0 655 case "$sc_kernel_bits"in704 case $sc_kernel_bits in 656 705 32) HP_ARCH=hppa2.0n ;; 657 706 64) HP_ARCH=hppa2.0w ;; … … 660 709 esac 661 710 fi 662 if [ "$HP_ARCH" = "" ]; then663 eval "$set_cc_for_build"711 if test "$HP_ARCH" = ""; then 712 set_cc_for_build 664 713 sed 's/^ //' << EOF > "$dummy.c" 665 714 … … 699 748 fi ;; 700 749 esac 701 if [ "$HP_ARCH" = hppa2.0w ]750 if test "$HP_ARCH" = hppa2.0w 702 751 then 703 eval "$set_cc_for_build"752 set_cc_for_build 704 753 705 754 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating … … 720 769 fi 721 770 fi 722 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"723 exit;;771 GUESS=$HP_ARCH-hp-hpux$HPUX_REV 772 ;; 724 773 ia64:HP-UX:*:*) 725 HPUX_REV=`echo "$UNAME_RELEASE" |sed -e 's/[^.]*.[0B]*//'`726 echo ia64-hp-hpux"$HPUX_REV"727 exit;;774 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` 775 GUESS=ia64-hp-hpux$HPUX_REV 776 ;; 728 777 3050*:HI-UX:*:*) 729 eval "$set_cc_for_build"778 set_cc_for_build 730 779 sed 's/^ //' << EOF > "$dummy.c" 731 780 #include <unistd.h> … … 755 804 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && 756 805 { echo "$SYSTEM_NAME"; exit; } 757 echounknown-hitachi-hiuxwe2758 exit;;806 GUESS=unknown-hitachi-hiuxwe2 807 ;; 759 808 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) 760 echohppa1.1-hp-bsd761 exit;;809 GUESS=hppa1.1-hp-bsd 810 ;; 762 811 9000/8??:4.3bsd:*:*) 763 echohppa1.0-hp-bsd764 exit;;812 GUESS=hppa1.0-hp-bsd 813 ;; 765 814 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 766 echohppa1.0-hp-mpeix767 exit;;815 GUESS=hppa1.0-hp-mpeix 816 ;; 768 817 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) 769 echohppa1.1-hp-osf770 exit;;818 GUESS=hppa1.1-hp-osf 819 ;; 771 820 hp8??:OSF1:*:*) 772 echohppa1.0-hp-osf773 exit;;821 GUESS=hppa1.0-hp-osf 822 ;; 774 823 i*86:OSF1:*:*) 775 if [ -x /usr/sbin/sysversion ]; then776 echo "$UNAME_MACHINE"-unknown-osf1mk824 if test -x /usr/sbin/sysversion ; then 825 GUESS=$UNAME_MACHINE-unknown-osf1mk 777 826 else 778 echo "$UNAME_MACHINE"-unknown-osf1779 fi 780 exit;;827 GUESS=$UNAME_MACHINE-unknown-osf1 828 fi 829 ;; 781 830 parisc*:Lites*:*:*) 782 echohppa1.1-hp-lites783 exit;;831 GUESS=hppa1.1-hp-lites 832 ;; 784 833 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 785 echoc1-convex-bsd786 exit;;834 GUESS=c1-convex-bsd 835 ;; 787 836 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 788 837 if getsysinfo -f scalar_acc … … 792 841 exit ;; 793 842 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 794 echoc34-convex-bsd795 exit;;843 GUESS=c34-convex-bsd 844 ;; 796 845 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 797 echoc38-convex-bsd798 exit;;846 GUESS=c38-convex-bsd 847 ;; 799 848 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 800 echoc4-convex-bsd801 exit;;849 GUESS=c4-convex-bsd 850 ;; 802 851 CRAY*Y-MP:*:*:*) 803 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 804 exit ;; 852 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` 853 GUESS=ymp-cray-unicos$CRAY_REL 854 ;; 805 855 CRAY*[A-Z]90:*:*:*) 806 856 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ … … 810 860 exit ;; 811 861 CRAY*TS:*:*:*) 812 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 813 exit ;; 862 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` 863 GUESS=t90-cray-unicos$CRAY_REL 864 ;; 814 865 CRAY*T3E:*:*:*) 815 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 816 exit ;; 866 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` 867 GUESS=alphaev5-cray-unicosmk$CRAY_REL 868 ;; 817 869 CRAY*SV1:*:*:*) 818 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 819 exit ;; 870 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` 871 GUESS=sv1-cray-unicos$CRAY_REL 872 ;; 820 873 *:UNICOS/mp:*:*) 821 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 822 exit ;; 874 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` 875 GUESS=craynv-cray-unicosmp$CRAY_REL 876 ;; 823 877 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 824 878 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` 825 879 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` 826 880 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` 827 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"828 exit;;881 GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} 882 ;; 829 883 5000:UNIX_System_V:4.*:*) 830 884 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` 831 885 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` 832 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"833 exit;;886 GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} 887 ;; 834 888 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 835 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"836 exit;;889 GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE 890 ;; 837 891 sparc*:BSD/OS:*:*) 838 echo sparc-unknown-bsdi"$UNAME_RELEASE"839 exit;;892 GUESS=sparc-unknown-bsdi$UNAME_RELEASE 893 ;; 840 894 *:BSD/OS:*:*) 841 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" 842 exit ;; 895 GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE 896 ;; 897 arm:FreeBSD:*:*) 898 UNAME_PROCESSOR=`uname -p` 899 set_cc_for_build 900 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 901 | grep -q __ARM_PCS_VFP 902 then 903 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` 904 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi 905 else 906 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` 907 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf 908 fi 909 ;; 843 910 *:FreeBSD:*:*) 844 UNAME_PROCESSOR=` /usr/bin/uname -p`845 case "$UNAME_PROCESSOR"in911 UNAME_PROCESSOR=`uname -p` 912 case $UNAME_PROCESSOR in 846 913 amd64) 847 914 UNAME_PROCESSOR=x86_64 ;; … … 849 916 UNAME_PROCESSOR=i586 ;; 850 917 esac 851 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" 852 exit ;; 918 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` 919 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL 920 ;; 853 921 i*:CYGWIN*:*) 854 echo "$UNAME_MACHINE"-pc-cygwin855 exit;;922 GUESS=$UNAME_MACHINE-pc-cygwin 923 ;; 856 924 *:MINGW64*:*) 857 echo "$UNAME_MACHINE"-pc-mingw64858 exit;;925 GUESS=$UNAME_MACHINE-pc-mingw64 926 ;; 859 927 *:MINGW*:*) 860 echo "$UNAME_MACHINE"-pc-mingw32861 exit;;928 GUESS=$UNAME_MACHINE-pc-mingw32 929 ;; 862 930 *:MSYS*:*) 863 echo "$UNAME_MACHINE"-pc-msys864 exit;;931 GUESS=$UNAME_MACHINE-pc-msys 932 ;; 865 933 i*:PW*:*) 866 echo "$UNAME_MACHINE"-pc-pw32 867 exit ;; 934 GUESS=$UNAME_MACHINE-pc-pw32 935 ;; 936 *:SerenityOS:*:*) 937 GUESS=$UNAME_MACHINE-pc-serenity 938 ;; 868 939 *:Interix*:*) 869 case "$UNAME_MACHINE"in940 case $UNAME_MACHINE in 870 941 x86) 871 echo i586-pc-interix"$UNAME_RELEASE"872 exit;;942 GUESS=i586-pc-interix$UNAME_RELEASE 943 ;; 873 944 authenticamd | genuineintel | EM64T) 874 echo x86_64-unknown-interix"$UNAME_RELEASE"875 exit;;945 GUESS=x86_64-unknown-interix$UNAME_RELEASE 946 ;; 876 947 IA64) 877 echo ia64-unknown-interix"$UNAME_RELEASE"878 exit;;948 GUESS=ia64-unknown-interix$UNAME_RELEASE 949 ;; 879 950 esac ;; 880 951 i*:UWIN*:*) 881 echo "$UNAME_MACHINE"-pc-uwin882 exit;;952 GUESS=$UNAME_MACHINE-pc-uwin 953 ;; 883 954 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 884 echo x86_64-unknown-cygwin885 exit;;955 GUESS=x86_64-pc-cygwin 956 ;; 886 957 prep*:SunOS:5.*:*) 887 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" 888 exit ;; 958 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` 959 GUESS=powerpcle-unknown-solaris2$SUN_REL 960 ;; 889 961 *:GNU:*:*) 890 962 # the GNU system 891 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" 892 exit ;; 963 GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` 964 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` 965 GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL 966 ;; 893 967 *:GNU/*:*:*) 894 968 # other systems with GNU libc and userland 895 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" 896 exit ;; 897 i*86:Minix:*:*) 898 echo "$UNAME_MACHINE"-pc-minix 899 exit ;; 969 GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` 970 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` 971 GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC 972 ;; 973 x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*) 974 GUESS="$UNAME_MACHINE-pc-managarm-mlibc" 975 ;; 976 *:[Mm]anagarm:*:*) 977 GUESS="$UNAME_MACHINE-unknown-managarm-mlibc" 978 ;; 979 *:Minix:*:*) 980 GUESS=$UNAME_MACHINE-unknown-minix 981 ;; 900 982 aarch64:Linux:*:*) 901 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 902 exit ;; 983 set_cc_for_build 984 CPU=$UNAME_MACHINE 985 LIBCABI=$LIBC 986 if test "$CC_FOR_BUILD" != no_compiler_found; then 987 ABI=64 988 sed 's/^ //' << EOF > "$dummy.c" 989 #ifdef __ARM_EABI__ 990 #ifdef __ARM_PCS_VFP 991 ABI=eabihf 992 #else 993 ABI=eabi 994 #endif 995 #endif 996 EOF 997 cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` 998 eval "$cc_set_abi" 999 case $ABI in 1000 eabi | eabihf) CPU=armv8l; LIBCABI=$LIBC$ABI ;; 1001 esac 1002 fi 1003 GUESS=$CPU-unknown-linux-$LIBCABI 1004 ;; 903 1005 aarch64_be:Linux:*:*) 904 1006 UNAME_MACHINE=aarch64_be 905 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"906 exit;;1007 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1008 ;; 907 1009 alpha:Linux:*:*) 908 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in1010 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in 909 1011 EV5) UNAME_MACHINE=alphaev5 ;; 910 1012 EV56) UNAME_MACHINE=alphaev56 ;; … … 917 1019 objdump --private-headers /bin/sh | grep -q ld.so.1 918 1020 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi 919 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"920 exit;;921 arc:Linux:*:* | arceb:Linux:*:* )922 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"923 exit;;1021 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1022 ;; 1023 arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) 1024 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1025 ;; 924 1026 arm*:Linux:*:*) 925 eval "$set_cc_for_build"1027 set_cc_for_build 926 1028 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 927 1029 | grep -q __ARM_EABI__ 928 1030 then 929 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1031 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 930 1032 else 931 1033 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 932 1034 | grep -q __ARM_PCS_VFP 933 1035 then 934 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi1036 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi 935 1037 else 936 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf1038 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf 937 1039 fi 938 1040 fi 939 exit;;1041 ;; 940 1042 avr32*:Linux:*:*) 941 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"942 exit;;1043 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1044 ;; 943 1045 cris:Linux:*:*) 944 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"945 exit;;1046 GUESS=$UNAME_MACHINE-axis-linux-$LIBC 1047 ;; 946 1048 crisv32:Linux:*:*) 947 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"948 exit;;1049 GUESS=$UNAME_MACHINE-axis-linux-$LIBC 1050 ;; 949 1051 e2k:Linux:*:*) 950 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"951 exit;;1052 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1053 ;; 952 1054 frv:Linux:*:*) 953 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"954 exit;;1055 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1056 ;; 955 1057 hexagon:Linux:*:*) 956 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"957 exit;;1058 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1059 ;; 958 1060 i*86:Linux:*:*) 959 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"960 exit;;1061 GUESS=$UNAME_MACHINE-pc-linux-$LIBC 1062 ;; 961 1063 ia64:Linux:*:*) 962 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"963 exit;;1064 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1065 ;; 964 1066 k1om:Linux:*:*) 965 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 966 exit ;; 1067 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1068 ;; 1069 kvx:Linux:*:*) 1070 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1071 ;; 1072 kvx:cos:*:*) 1073 GUESS=$UNAME_MACHINE-unknown-cos 1074 ;; 1075 kvx:mbr:*:*) 1076 GUESS=$UNAME_MACHINE-unknown-mbr 1077 ;; 1078 loongarch32:Linux:*:* | loongarch64:Linux:*:*) 1079 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1080 ;; 967 1081 m32r*:Linux:*:*) 968 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"969 exit;;1082 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1083 ;; 970 1084 m68*:Linux:*:*) 971 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"972 exit;;1085 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1086 ;; 973 1087 mips:Linux:*:* | mips64:Linux:*:*) 974 eval "$set_cc_for_build" 1088 set_cc_for_build 1089 IS_GLIBC=0 1090 test x"${LIBC}" = xgnu && IS_GLIBC=1 975 1091 sed 's/^ //' << EOF > "$dummy.c" 976 1092 #undef CPU 977 #undef ${UNAME_MACHINE} 978 #undef ${UNAME_MACHINE}el 1093 #undef mips 1094 #undef mipsel 1095 #undef mips64 1096 #undef mips64el 1097 #if ${IS_GLIBC} && defined(_ABI64) 1098 LIBCABI=gnuabi64 1099 #else 1100 #if ${IS_GLIBC} && defined(_ABIN32) 1101 LIBCABI=gnuabin32 1102 #else 1103 LIBCABI=${LIBC} 1104 #endif 1105 #endif 1106 1107 #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 1108 CPU=mipsisa64r6 1109 #else 1110 #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 1111 CPU=mipsisa32r6 1112 #else 1113 #if defined(__mips64) 1114 CPU=mips64 1115 #else 1116 CPU=mips 1117 #endif 1118 #endif 1119 #endif 1120 979 1121 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 980 CPU=${UNAME_MACHINE}el1122 MIPS_ENDIAN=el 981 1123 #else 982 1124 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 983 CPU=${UNAME_MACHINE}1125 MIPS_ENDIAN= 984 1126 #else 985 CPU=1127 MIPS_ENDIAN= 986 1128 #endif 987 1129 #endif 988 1130 EOF 989 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" 990 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } 1131 cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` 1132 eval "$cc_set_vars" 1133 test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } 991 1134 ;; 992 1135 mips64el:Linux:*:*) 993 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"994 exit;;1136 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1137 ;; 995 1138 openrisc*:Linux:*:*) 996 echo or1k-unknown-linux-"$LIBC"997 exit;;1139 GUESS=or1k-unknown-linux-$LIBC 1140 ;; 998 1141 or32:Linux:*:* | or1k*:Linux:*:*) 999 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1000 exit;;1142 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1143 ;; 1001 1144 padre:Linux:*:*) 1002 echo sparc-unknown-linux-"$LIBC"1003 exit;;1145 GUESS=sparc-unknown-linux-$LIBC 1146 ;; 1004 1147 parisc64:Linux:*:* | hppa64:Linux:*:*) 1005 echo hppa64-unknown-linux-"$LIBC"1006 exit;;1148 GUESS=hppa64-unknown-linux-$LIBC 1149 ;; 1007 1150 parisc:Linux:*:* | hppa:Linux:*:*) 1008 1151 # Look for CPU level 1009 1152 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 1010 PA7*) echo hppa1.1-unknown-linux-"$LIBC";;1011 PA8*) echo hppa2.0-unknown-linux-"$LIBC";;1012 *) echo hppa-unknown-linux-"$LIBC";;1153 PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; 1154 PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; 1155 *) GUESS=hppa-unknown-linux-$LIBC ;; 1013 1156 esac 1014 exit;;1157 ;; 1015 1158 ppc64:Linux:*:*) 1016 echo powerpc64-unknown-linux-"$LIBC"1017 exit;;1159 GUESS=powerpc64-unknown-linux-$LIBC 1160 ;; 1018 1161 ppc:Linux:*:*) 1019 echo powerpc-unknown-linux-"$LIBC"1020 exit;;1162 GUESS=powerpc-unknown-linux-$LIBC 1163 ;; 1021 1164 ppc64le:Linux:*:*) 1022 echo powerpc64le-unknown-linux-"$LIBC"1023 exit;;1165 GUESS=powerpc64le-unknown-linux-$LIBC 1166 ;; 1024 1167 ppcle:Linux:*:*) 1025 echo powerpcle-unknown-linux-"$LIBC"1026 exit;;1027 riscv32:Linux:*:* | riscv 64:Linux:*:*)1028 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1029 exit;;1168 GUESS=powerpcle-unknown-linux-$LIBC 1169 ;; 1170 riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) 1171 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1172 ;; 1030 1173 s390:Linux:*:* | s390x:Linux:*:*) 1031 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"1032 exit;;1174 GUESS=$UNAME_MACHINE-ibm-linux-$LIBC 1175 ;; 1033 1176 sh64*:Linux:*:*) 1034 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1035 exit;;1177 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1178 ;; 1036 1179 sh*:Linux:*:*) 1037 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1038 exit;;1180 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1181 ;; 1039 1182 sparc:Linux:*:* | sparc64:Linux:*:*) 1040 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1041 exit;;1183 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1184 ;; 1042 1185 tile*:Linux:*:*) 1043 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1044 exit;;1186 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1187 ;; 1045 1188 vax:Linux:*:*) 1046 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"1047 exit;;1189 GUESS=$UNAME_MACHINE-dec-linux-$LIBC 1190 ;; 1048 1191 x86_64:Linux:*:*) 1049 echo "$UNAME_MACHINE"-pc-linux-"$LIBC" 1050 exit ;; 1192 set_cc_for_build 1193 CPU=$UNAME_MACHINE 1194 LIBCABI=$LIBC 1195 if test "$CC_FOR_BUILD" != no_compiler_found; then 1196 ABI=64 1197 sed 's/^ //' << EOF > "$dummy.c" 1198 #ifdef __i386__ 1199 ABI=x86 1200 #else 1201 #ifdef __ILP32__ 1202 ABI=x32 1203 #endif 1204 #endif 1205 EOF 1206 cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` 1207 eval "$cc_set_abi" 1208 case $ABI in 1209 x86) CPU=i686 ;; 1210 x32) LIBCABI=${LIBC}x32 ;; 1211 esac 1212 fi 1213 GUESS=$CPU-pc-linux-$LIBCABI 1214 ;; 1051 1215 xtensa*:Linux:*:*) 1052 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1053 exit;;1216 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC 1217 ;; 1054 1218 i*86:DYNIX/ptx:4*:*) 1055 1219 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 1056 1220 # earlier versions are messed up and put the nodename in both 1057 1221 # sysname and nodename. 1058 echoi386-sequent-sysv41059 exit;;1222 GUESS=i386-sequent-sysv4 1223 ;; 1060 1224 i*86:UNIX_SV:4.2MP:2.*) 1061 1225 # Unixware is an offshoot of SVR4, but it has its own version … … 1064 1228 # I just have to hope. -- rms. 1065 1229 # Use sysv4.2uw... so that sysv4* matches it. 1066 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"1067 exit;;1230 GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION 1231 ;; 1068 1232 i*86:OS/2:*:*) 1069 # If we were able to find `uname', then EMX Unix compatibility1233 # If we were able to find 'uname', then EMX Unix compatibility 1070 1234 # is probably installed. 1071 echo "$UNAME_MACHINE"-pc-os2-emx1072 exit;;1235 GUESS=$UNAME_MACHINE-pc-os2-emx 1236 ;; 1073 1237 i*86:XTS-300:*:STOP) 1074 echo "$UNAME_MACHINE"-unknown-stop1075 exit;;1238 GUESS=$UNAME_MACHINE-unknown-stop 1239 ;; 1076 1240 i*86:atheos:*:*) 1077 echo "$UNAME_MACHINE"-unknown-atheos1078 exit;;1241 GUESS=$UNAME_MACHINE-unknown-atheos 1242 ;; 1079 1243 i*86:syllable:*:*) 1080 echo "$UNAME_MACHINE"-pc-syllable1081 exit;;1244 GUESS=$UNAME_MACHINE-pc-syllable 1245 ;; 1082 1246 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 1083 echo i386-unknown-lynxos"$UNAME_RELEASE"1084 exit;;1247 GUESS=i386-unknown-lynxos$UNAME_RELEASE 1248 ;; 1085 1249 i*86:*DOS:*:*) 1086 echo "$UNAME_MACHINE"-pc-msdosdjgpp1087 exit;;1250 GUESS=$UNAME_MACHINE-pc-msdosdjgpp 1251 ;; 1088 1252 i*86:*:4.*:*) 1089 1253 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` 1090 1254 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 1091 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"1255 GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL 1092 1256 else 1093 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"1094 fi 1095 exit;;1257 GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL 1258 fi 1259 ;; 1096 1260 i*86:*:5:[678]*) 1097 1261 # UnixWare 7.x, OpenUNIX and OpenServer 6. … … 1101 1265 *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1102 1266 esac 1103 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"1104 exit;;1267 GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 1268 ;; 1105 1269 i*86:*:3.2:*) 1106 1270 if test -f /usr/options/cb.name; then 1107 1271 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 1108 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"1272 GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL 1109 1273 elif /bin/uname -X 2>/dev/null >/dev/null ; then 1110 1274 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` … … 1116 1280 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 1117 1281 && UNAME_MACHINE=i686 1118 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"1282 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL 1119 1283 else 1120 echo "$UNAME_MACHINE"-pc-sysv321121 fi 1122 exit;;1284 GUESS=$UNAME_MACHINE-pc-sysv32 1285 fi 1286 ;; 1123 1287 pc:*:*:*) 1124 1288 # Left here for compatibility: … … 1128 1292 # prints for the "djgpp" host, or else GDB configure will decide that 1129 1293 # this is a cross-build. 1130 echoi586-pc-msdosdjgpp1131 exit;;1294 GUESS=i586-pc-msdosdjgpp 1295 ;; 1132 1296 Intel:Mach:3*:*) 1133 echoi386-pc-mach31134 exit;;1297 GUESS=i386-pc-mach3 1298 ;; 1135 1299 paragon:*:*:*) 1136 echoi860-intel-osf11137 exit;;1300 GUESS=i860-intel-osf1 1301 ;; 1138 1302 i860:*:4.*:*) # i860-SVR4 1139 1303 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 1140 echo i860-stardent-sysv"$UNAME_RELEASE"# Stardent Vistra i860-SVR41304 GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 1141 1305 else # Add other i860-SVR4 vendors below as they are discovered. 1142 echo i860-unknown-sysv"$UNAME_RELEASE"# Unknown i860-SVR41143 fi 1144 exit;;1306 GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 1307 fi 1308 ;; 1145 1309 mini*:CTIX:SYS*5:*) 1146 1310 # "miniframe" 1147 echom68010-convergent-sysv1148 exit;;1311 GUESS=m68010-convergent-sysv 1312 ;; 1149 1313 mc68k:UNIX:SYSTEM5:3.51m) 1150 echom68k-convergent-sysv1151 exit;;1314 GUESS=m68k-convergent-sysv 1315 ;; 1152 1316 M680?0:D-NIX:5.3:*) 1153 echom68k-diab-dnix1154 exit;;1317 GUESS=m68k-diab-dnix 1318 ;; 1155 1319 M68*:*:R3V[5678]*:*) 1156 1320 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; … … 1177 1341 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 1178 1342 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1179 echo m68k-unknown-lynxos"$UNAME_RELEASE"1180 exit;;1343 GUESS=m68k-unknown-lynxos$UNAME_RELEASE 1344 ;; 1181 1345 mc68030:UNIX_System_V:4.*:*) 1182 echom68k-atari-sysv41183 exit;;1346 GUESS=m68k-atari-sysv4 1347 ;; 1184 1348 TSUNAMI:LynxOS:2.*:*) 1185 echo sparc-unknown-lynxos"$UNAME_RELEASE"1186 exit;;1349 GUESS=sparc-unknown-lynxos$UNAME_RELEASE 1350 ;; 1187 1351 rs6000:LynxOS:2.*:*) 1188 echo rs6000-unknown-lynxos"$UNAME_RELEASE"1189 exit;;1352 GUESS=rs6000-unknown-lynxos$UNAME_RELEASE 1353 ;; 1190 1354 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 1191 echo powerpc-unknown-lynxos"$UNAME_RELEASE"1192 exit;;1355 GUESS=powerpc-unknown-lynxos$UNAME_RELEASE 1356 ;; 1193 1357 SM[BE]S:UNIX_SV:*:*) 1194 echo mips-dde-sysv"$UNAME_RELEASE"1195 exit;;1358 GUESS=mips-dde-sysv$UNAME_RELEASE 1359 ;; 1196 1360 RM*:ReliantUNIX-*:*:*) 1197 echomips-sni-sysv41198 exit;;1361 GUESS=mips-sni-sysv4 1362 ;; 1199 1363 RM*:SINIX-*:*:*) 1200 echomips-sni-sysv41201 exit;;1364 GUESS=mips-sni-sysv4 1365 ;; 1202 1366 *:SINIX-*:*:*) 1203 1367 if uname -p 2>/dev/null >/dev/null ; then 1204 1368 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1205 echo "$UNAME_MACHINE"-sni-sysv41369 GUESS=$UNAME_MACHINE-sni-sysv4 1206 1370 else 1207 echons32k-sni-sysv1208 fi 1209 exit;;1210 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort1371 GUESS=ns32k-sni-sysv 1372 fi 1373 ;; 1374 PENTIUM:*:4.0*:*) # Unisys 'ClearPath HMP IX 4000' SVR4/MP effort 1211 1375 # says <[email protected]> 1212 echoi586-unisys-sysv41213 exit;;1376 GUESS=i586-unisys-sysv4 1377 ;; 1214 1378 *:UNIX_System_V:4*:FTX*) 1215 1379 # From Gerald Hewes <[email protected]>. 1216 1380 # How about differentiating between stratus architectures? -djm 1217 echohppa1.1-stratus-sysv41218 exit;;1381 GUESS=hppa1.1-stratus-sysv4 1382 ;; 1219 1383 *:*:*:FTX*) 1220 1384 # From [email protected]. 1221 echoi860-stratus-sysv41222 exit;;1385 GUESS=i860-stratus-sysv4 1386 ;; 1223 1387 i*86:VOS:*:*) 1224 1388 # From [email protected]. 1225 echo "$UNAME_MACHINE"-stratus-vos1226 exit;;1389 GUESS=$UNAME_MACHINE-stratus-vos 1390 ;; 1227 1391 *:VOS:*:*) 1228 1392 # From [email protected]. 1229 echohppa1.1-stratus-vos1230 exit;;1393 GUESS=hppa1.1-stratus-vos 1394 ;; 1231 1395 mc68*:A/UX:*:*) 1232 echo m68k-apple-aux"$UNAME_RELEASE"1233 exit;;1396 GUESS=m68k-apple-aux$UNAME_RELEASE 1397 ;; 1234 1398 news*:NEWS-OS:6*:*) 1235 echomips-sony-newsos61236 exit;;1399 GUESS=mips-sony-newsos6 1400 ;; 1237 1401 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1238 if [ -d /usr/nec ]; then1239 echo mips-nec-sysv"$UNAME_RELEASE"1402 if test -d /usr/nec; then 1403 GUESS=mips-nec-sysv$UNAME_RELEASE 1240 1404 else 1241 echo mips-unknown-sysv"$UNAME_RELEASE"1242 fi 1243 exit;;1405 GUESS=mips-unknown-sysv$UNAME_RELEASE 1406 fi 1407 ;; 1244 1408 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1245 echopowerpc-be-beos1246 exit;;1409 GUESS=powerpc-be-beos 1410 ;; 1247 1411 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1248 echopowerpc-apple-beos1249 exit;;1412 GUESS=powerpc-apple-beos 1413 ;; 1250 1414 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1251 echoi586-pc-beos1252 exit;;1415 GUESS=i586-pc-beos 1416 ;; 1253 1417 BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 1254 echo i586-pc-haiku 1255 exit ;; 1256 x86_64:Haiku:*:*) 1257 echo x86_64-unknown-haiku 1258 exit ;; 1418 GUESS=i586-pc-haiku 1419 ;; 1420 ppc:Haiku:*:*) # Haiku running on Apple PowerPC 1421 GUESS=powerpc-apple-haiku 1422 ;; 1423 *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) 1424 GUESS=$UNAME_MACHINE-unknown-haiku 1425 ;; 1259 1426 SX-4:SUPER-UX:*:*) 1260 echo sx4-nec-superux"$UNAME_RELEASE"1261 exit;;1427 GUESS=sx4-nec-superux$UNAME_RELEASE 1428 ;; 1262 1429 SX-5:SUPER-UX:*:*) 1263 echo sx5-nec-superux"$UNAME_RELEASE"1264 exit;;1430 GUESS=sx5-nec-superux$UNAME_RELEASE 1431 ;; 1265 1432 SX-6:SUPER-UX:*:*) 1266 echo sx6-nec-superux"$UNAME_RELEASE"1267 exit;;1433 GUESS=sx6-nec-superux$UNAME_RELEASE 1434 ;; 1268 1435 SX-7:SUPER-UX:*:*) 1269 echo sx7-nec-superux"$UNAME_RELEASE"1270 exit;;1436 GUESS=sx7-nec-superux$UNAME_RELEASE 1437 ;; 1271 1438 SX-8:SUPER-UX:*:*) 1272 echo sx8-nec-superux"$UNAME_RELEASE"1273 exit;;1439 GUESS=sx8-nec-superux$UNAME_RELEASE 1440 ;; 1274 1441 SX-8R:SUPER-UX:*:*) 1275 echo sx8r-nec-superux"$UNAME_RELEASE"1276 exit;;1442 GUESS=sx8r-nec-superux$UNAME_RELEASE 1443 ;; 1277 1444 SX-ACE:SUPER-UX:*:*) 1278 echo sxace-nec-superux"$UNAME_RELEASE"1279 exit;;1445 GUESS=sxace-nec-superux$UNAME_RELEASE 1446 ;; 1280 1447 Power*:Rhapsody:*:*) 1281 echo powerpc-apple-rhapsody"$UNAME_RELEASE"1282 exit;;1448 GUESS=powerpc-apple-rhapsody$UNAME_RELEASE 1449 ;; 1283 1450 *:Rhapsody:*:*) 1284 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" 1285 exit ;; 1451 GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE 1452 ;; 1453 arm64:Darwin:*:*) 1454 GUESS=aarch64-apple-darwin$UNAME_RELEASE 1455 ;; 1286 1456 *:Darwin:*:*) 1287 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1288 eval "$set_cc_for_build" 1289 if test "$UNAME_PROCESSOR" = unknown ; then 1290 UNAME_PROCESSOR=powerpc 1291 fi 1292 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then 1293 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 1294 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1295 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1296 grep IS_64BIT_ARCH >/dev/null 1297 then 1298 case $UNAME_PROCESSOR in 1299 i386) UNAME_PROCESSOR=x86_64 ;; 1300 powerpc) UNAME_PROCESSOR=powerpc64 ;; 1301 esac 1302 fi 1303 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc 1304 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ 1305 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1306 grep IS_PPC >/dev/null 1307 then 1308 UNAME_PROCESSOR=powerpc 1309 fi 1457 UNAME_PROCESSOR=`uname -p` 1458 case $UNAME_PROCESSOR in 1459 unknown) UNAME_PROCESSOR=powerpc ;; 1460 esac 1461 if command -v xcode-select > /dev/null 2> /dev/null && \ 1462 ! xcode-select --print-path > /dev/null 2> /dev/null ; then 1463 # Avoid executing cc if there is no toolchain installed as 1464 # cc will be a stub that puts up a graphical alert 1465 # prompting the user to install developer tools. 1466 CC_FOR_BUILD=no_compiler_found 1467 else 1468 set_cc_for_build 1469 fi 1470 if test "$CC_FOR_BUILD" != no_compiler_found; then 1471 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1472 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1473 grep IS_64BIT_ARCH >/dev/null 1474 then 1475 case $UNAME_PROCESSOR in 1476 i386) UNAME_PROCESSOR=x86_64 ;; 1477 powerpc) UNAME_PROCESSOR=powerpc64 ;; 1478 esac 1479 fi 1480 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc 1481 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ 1482 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1483 grep IS_PPC >/dev/null 1484 then 1485 UNAME_PROCESSOR=powerpc 1310 1486 fi 1311 1487 elif test "$UNAME_PROCESSOR" = i386 ; then 1312 # Avoid executing cc on OS X 10.9, as it ships with a stub 1313 # that puts up a graphical alert prompting to install 1314 # developer tools. Any system running Mac OS X 10.7 or 1315 # later (Darwin 11 and later) is required to have a 64-bit 1316 # processor. This is not true of the ARM version of Darwin 1317 # that Apple uses in portable devices. 1318 UNAME_PROCESSOR=x86_64 1319 fi 1320 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" 1321 exit ;; 1488 # uname -m returns i386 or x86_64 1489 UNAME_PROCESSOR=$UNAME_MACHINE 1490 fi 1491 GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE 1492 ;; 1322 1493 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1323 1494 UNAME_PROCESSOR=`uname -p` … … 1326 1497 UNAME_MACHINE=pc 1327 1498 fi 1328 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"1329 exit;;1499 GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE 1500 ;; 1330 1501 *:QNX:*:4*) 1331 echoi386-pc-qnx1332 exit;;1502 GUESS=i386-pc-qnx 1503 ;; 1333 1504 NEO-*:NONSTOP_KERNEL:*:*) 1334 echo neo-tandem-nsk"$UNAME_RELEASE"1335 exit;;1505 GUESS=neo-tandem-nsk$UNAME_RELEASE 1506 ;; 1336 1507 NSE-*:NONSTOP_KERNEL:*:*) 1337 echo nse-tandem-nsk"$UNAME_RELEASE"1338 exit;;1508 GUESS=nse-tandem-nsk$UNAME_RELEASE 1509 ;; 1339 1510 NSR-*:NONSTOP_KERNEL:*:*) 1340 echo nsr-tandem-nsk"$UNAME_RELEASE"1341 exit;;1511 GUESS=nsr-tandem-nsk$UNAME_RELEASE 1512 ;; 1342 1513 NSV-*:NONSTOP_KERNEL:*:*) 1343 echo nsv-tandem-nsk"$UNAME_RELEASE"1344 exit;;1514 GUESS=nsv-tandem-nsk$UNAME_RELEASE 1515 ;; 1345 1516 NSX-*:NONSTOP_KERNEL:*:*) 1346 echo nsx-tandem-nsk"$UNAME_RELEASE"1347 exit;;1517 GUESS=nsx-tandem-nsk$UNAME_RELEASE 1518 ;; 1348 1519 *:NonStop-UX:*:*) 1349 echomips-compaq-nonstopux1350 exit;;1520 GUESS=mips-compaq-nonstopux 1521 ;; 1351 1522 BS2000:POSIX*:*:*) 1352 echobs2000-siemens-sysv1353 exit;;1523 GUESS=bs2000-siemens-sysv 1524 ;; 1354 1525 DS/*:UNIX_System_V:*:*) 1355 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"1356 exit;;1526 GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE 1527 ;; 1357 1528 *:Plan9:*:*) 1358 1529 # "uname -m" is not consistent, so use $cputype instead. 386 1359 1530 # is converted to i386 for consistency with other x86 1360 1531 # operating systems. 1361 if test "$ cputype" = 386; then1532 if test "${cputype-}" = 386; then 1362 1533 UNAME_MACHINE=i386 1363 el se1364 UNAME_MACHINE= "$cputype"1365 fi 1366 echo "$UNAME_MACHINE"-unknown-plan91367 exit;;1534 elif test "x${cputype-}" != x; then 1535 UNAME_MACHINE=$cputype 1536 fi 1537 GUESS=$UNAME_MACHINE-unknown-plan9 1538 ;; 1368 1539 *:TOPS-10:*:*) 1369 echopdp10-unknown-tops101370 exit;;1540 GUESS=pdp10-unknown-tops10 1541 ;; 1371 1542 *:TENEX:*:*) 1372 echopdp10-unknown-tenex1373 exit;;1543 GUESS=pdp10-unknown-tenex 1544 ;; 1374 1545 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 1375 echopdp10-dec-tops201376 exit;;1546 GUESS=pdp10-dec-tops20 1547 ;; 1377 1548 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 1378 echopdp10-xkl-tops201379 exit;;1549 GUESS=pdp10-xkl-tops20 1550 ;; 1380 1551 *:TOPS-20:*:*) 1381 echopdp10-unknown-tops201382 exit;;1552 GUESS=pdp10-unknown-tops20 1553 ;; 1383 1554 *:ITS:*:*) 1384 echopdp10-unknown-its1385 exit;;1555 GUESS=pdp10-unknown-its 1556 ;; 1386 1557 SEI:*:*:SEIUX) 1387 echo mips-sei-seiux"$UNAME_RELEASE"1388 exit;;1558 GUESS=mips-sei-seiux$UNAME_RELEASE 1559 ;; 1389 1560 *:DragonFly:*:*) 1390 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" 1391 exit ;; 1561 DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` 1562 GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL 1563 ;; 1392 1564 *:*VMS:*:*) 1393 1565 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1394 case "$UNAME_MACHINE"in1395 A*) echo alpha-dec-vms ; exit;;1396 I*) echo ia64-dec-vms ; exit;;1397 V*) echo vax-dec-vms ; exit;;1566 case $UNAME_MACHINE in 1567 A*) GUESS=alpha-dec-vms ;; 1568 I*) GUESS=ia64-dec-vms ;; 1569 V*) GUESS=vax-dec-vms ;; 1398 1570 esac ;; 1399 1571 *:XENIX:*:SysV) 1400 echoi386-pc-xenix1401 exit;;1572 GUESS=i386-pc-xenix 1573 ;; 1402 1574 i*86:skyos:*:*) 1403 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" 1404 exit ;; 1575 SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` 1576 GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL 1577 ;; 1405 1578 i*86:rdos:*:*) 1406 echo "$UNAME_MACHINE"-pc-rdos 1407 exit ;; 1408 i*86:AROS:*:*) 1409 echo "$UNAME_MACHINE"-pc-aros 1410 exit ;; 1579 GUESS=$UNAME_MACHINE-pc-rdos 1580 ;; 1581 i*86:Fiwix:*:*) 1582 GUESS=$UNAME_MACHINE-pc-fiwix 1583 ;; 1584 *:AROS:*:*) 1585 GUESS=$UNAME_MACHINE-unknown-aros 1586 ;; 1411 1587 x86_64:VMkernel:*:*) 1412 echo "$UNAME_MACHINE"-unknown-esx1413 exit;;1588 GUESS=$UNAME_MACHINE-unknown-esx 1589 ;; 1414 1590 amd64:Isilon\ OneFS:*:*) 1415 echo x86_64-unknown-onefs 1416 exit ;; 1591 GUESS=x86_64-unknown-onefs 1592 ;; 1593 *:Unleashed:*:*) 1594 GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE 1595 ;; 1417 1596 esac 1418 1597 1598 # Do we have a guess based on uname results? 1599 if test "x$GUESS" != x; then 1600 echo "$GUESS" 1601 exit 1602 fi 1603 1604 # No uname command or uname output not recognized. 1605 set_cc_for_build 1606 cat > "$dummy.c" <<EOF 1607 #ifdef _SEQUENT_ 1608 #include <sys/types.h> 1609 #include <sys/utsname.h> 1610 #endif 1611 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) 1612 #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) 1613 #include <signal.h> 1614 #if defined(_SIZE_T_) || defined(SIGLOST) 1615 #include <sys/utsname.h> 1616 #endif 1617 #endif 1618 #endif 1619 main () 1620 { 1621 #if defined (sony) 1622 #if defined (MIPSEB) 1623 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, 1624 I don't know.... */ 1625 printf ("mips-sony-bsd\n"); exit (0); 1626 #else 1627 #include <sys/param.h> 1628 printf ("m68k-sony-newsos%s\n", 1629 #ifdef NEWSOS4 1630 "4" 1631 #else 1632 "" 1633 #endif 1634 ); exit (0); 1635 #endif 1636 #endif 1637 1638 #if defined (NeXT) 1639 #if !defined (__ARCHITECTURE__) 1640 #define __ARCHITECTURE__ "m68k" 1641 #endif 1642 int version; 1643 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; 1644 if (version < 4) 1645 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); 1646 else 1647 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); 1648 exit (0); 1649 #endif 1650 1651 #if defined (MULTIMAX) || defined (n16) 1652 #if defined (UMAXV) 1653 printf ("ns32k-encore-sysv\n"); exit (0); 1654 #else 1655 #if defined (CMU) 1656 printf ("ns32k-encore-mach\n"); exit (0); 1657 #else 1658 printf ("ns32k-encore-bsd\n"); exit (0); 1659 #endif 1660 #endif 1661 #endif 1662 1663 #if defined (__386BSD__) 1664 printf ("i386-pc-bsd\n"); exit (0); 1665 #endif 1666 1667 #if defined (sequent) 1668 #if defined (i386) 1669 printf ("i386-sequent-dynix\n"); exit (0); 1670 #endif 1671 #if defined (ns32000) 1672 printf ("ns32k-sequent-dynix\n"); exit (0); 1673 #endif 1674 #endif 1675 1676 #if defined (_SEQUENT_) 1677 struct utsname un; 1678 1679 uname(&un); 1680 if (strncmp(un.version, "V2", 2) == 0) { 1681 printf ("i386-sequent-ptx2\n"); exit (0); 1682 } 1683 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ 1684 printf ("i386-sequent-ptx1\n"); exit (0); 1685 } 1686 printf ("i386-sequent-ptx\n"); exit (0); 1687 #endif 1688 1689 #if defined (vax) 1690 #if !defined (ultrix) 1691 #include <sys/param.h> 1692 #if defined (BSD) 1693 #if BSD == 43 1694 printf ("vax-dec-bsd4.3\n"); exit (0); 1695 #else 1696 #if BSD == 199006 1697 printf ("vax-dec-bsd4.3reno\n"); exit (0); 1698 #else 1699 printf ("vax-dec-bsd\n"); exit (0); 1700 #endif 1701 #endif 1702 #else 1703 printf ("vax-dec-bsd\n"); exit (0); 1704 #endif 1705 #else 1706 #if defined(_SIZE_T_) || defined(SIGLOST) 1707 struct utsname un; 1708 uname (&un); 1709 printf ("vax-dec-ultrix%s\n", un.release); exit (0); 1710 #else 1711 printf ("vax-dec-ultrix\n"); exit (0); 1712 #endif 1713 #endif 1714 #endif 1715 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) 1716 #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) 1717 #if defined(_SIZE_T_) || defined(SIGLOST) 1718 struct utsname *un; 1719 uname (&un); 1720 printf ("mips-dec-ultrix%s\n", un.release); exit (0); 1721 #else 1722 printf ("mips-dec-ultrix\n"); exit (0); 1723 #endif 1724 #endif 1725 #endif 1726 1727 #if defined (alliant) && defined (i860) 1728 printf ("i860-alliant-bsd\n"); exit (0); 1729 #endif 1730 1731 exit (1); 1732 } 1733 EOF 1734 1735 $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && 1736 { echo "$SYSTEM_NAME"; exit; } 1737 1738 # Apollos put the system type in the environment. 1739 test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } 1740 1419 1741 echo "$0: unable to guess system type" >&2 1420 1742 1421 case "$UNAME_MACHINE:$UNAME_SYSTEM"in1743 case $UNAME_MACHINE:$UNAME_SYSTEM in 1422 1744 mips:Linux | mips64:Linux) 1423 1745 # If we got here on MIPS GNU/Linux, output extra information. … … 1436 1758 copies of config.guess and config.sub with the latest versions from: 1437 1759 1438 https://git.savannah.gnu.org/ gitweb/?p=config.git;a=blob_plain;f=config.guess1760 https://git.savannah.gnu.org/cgit/config.git/plain/config.guess 1439 1761 and 1440 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub 1762 https://git.savannah.gnu.org/cgit/config.git/plain/config.sub 1763 EOF 1764 1765 our_year=`echo $timestamp | sed 's,-.*,,'` 1766 thisyear=`date +%Y` 1767 # shellcheck disable=SC2003 1768 script_age=`expr "$thisyear" - "$our_year"` 1769 if test "$script_age" -lt 3 ; then 1770 cat >&2 <<EOF 1441 1771 1442 1772 If $0 has already been updated, send the following data and any … … 1466 1796 UNAME_VERSION = "$UNAME_VERSION" 1467 1797 EOF 1798 fi 1468 1799 1469 1800 exit 1 -
trunk/src/libs/libpng-1.6.42/config.h.in
r96425 r103316 4 4 #undef HAVE_DLFCN_H 5 5 6 /* Define to 1 if you have the `feenableexcept' function. */6 /* Define to 1 if you have the 'feenableexcept' function. */ 7 7 #undef HAVE_FEENABLEEXCEPT 8 8 … … 10 10 #undef HAVE_INTTYPES_H 11 11 12 /* Define to 1 if you have the `m' library (-lm). */12 /* Define to 1 if you have the 'm' library (-lm). */ 13 13 #undef HAVE_LIBM 14 14 15 /* Define to 1 if you have the `z' library (-lz). */15 /* Define to 1 if you have the 'z' library (-lz). */ 16 16 #undef HAVE_LIBZ 17 17 18 /* Define to 1 if you have the <memory.h> header file. */ 19 #undef HAVE_MEMORY_H 20 21 /* Define to 1 if you have the `pow' function. */ 18 /* Define to 1 if you have the 'pow' function. */ 22 19 #undef HAVE_POW 23 20 24 21 /* Define to 1 if you have the <stdint.h> header file. */ 25 22 #undef HAVE_STDINT_H 23 24 /* Define to 1 if you have the <stdio.h> header file. */ 25 #undef HAVE_STDIO_H 26 26 27 27 /* Define to 1 if you have the <stdlib.h> header file. */ … … 79 79 #undef PNG_INTEL_SSE_OPT 80 80 81 /* Enable LOONGARCH LSX optimizations */ 82 #undef PNG_LOONGARCH_LSX_OPT 83 84 /* Turn on MIPS MMI optimizations at run-time */ 85 #undef PNG_MIPS_MMI_API_SUPPORTED 86 87 /* Check for MIPS MMI support at run-time */ 88 #undef PNG_MIPS_MMI_CHECK_SUPPORTED 89 90 /* Enable MIPS MMI optimizations */ 91 #undef PNG_MIPS_MMI_OPT 92 81 93 /* Turn on MIPS MSA optimizations at run-time */ 82 94 #undef PNG_MIPS_MSA_API_SUPPORTED … … 97 109 #undef PNG_POWERPC_VSX_OPT 98 110 99 /* Define to 1 if you have the ANSI C header files. */ 111 /* Define to 1 if all of the C89 standard headers exist (not just the ones 112 required in a freestanding environment). This macro is provided for 113 backward compatibility; new code need not use it. */ 100 114 #undef STDC_HEADERS 101 115 102 /* Define to 1 if your <sys/time.h> declares `struct tm'. */116 /* Define to 1 if your <sys/time.h> declares 'struct tm'. */ 103 117 #undef TM_IN_SYS_TIME 104 118 … … 106 120 #undef VERSION 107 121 108 /* Define to empty if `const' does not conform to ANSI C. */109 #undef const110 111 122 /* Define to the equivalent of the C99 'restrict' keyword, or to 112 123 nothing if this is not supported. Do not define if restrict is 113 supported directly. */124 supported only directly. */ 114 125 #undef restrict 115 /* Work around a bug in Sun C++: it does not support _Restrict or 116 __restrict__, even though the corresponding Sun C compiler ends up with 117 "#define restrict _Restrict" or "#define restrict __restrict__" in the 118 previous line. Perhaps some future version of Sun C++ will work with 119 restrict; if so, hopefully it defines __RESTRICT like Sun C does. */ 120 #if defined __SUNPRO_CC && !defined __RESTRICT 126 /* Work around a bug in older versions of Sun C++, which did not 127 #define __restrict__ or support _Restrict or __restrict__ 128 even though the corresponding Sun C compiler ended up with 129 "#define restrict _Restrict" or "#define restrict __restrict__" 130 in the previous line. This workaround can be removed once 131 we assume Oracle Developer Studio 12.5 (2016) or later. */ 132 #if defined __SUNPRO_CC && !defined __RESTRICT && !defined __restrict__ 121 133 # define _Restrict 122 134 # define __restrict__ 123 135 #endif 124 125 /* Define to `unsigned int' if <sys/types.h> does not define. */126 #undef size_t -
trunk/src/libs/libpng-1.6.42/config.sub
r96425 r103316 1 1 #! /bin/sh 2 2 # Configuration validation subroutine script. 3 # Copyright 1992-2018 Free Software Foundation, Inc. 4 5 timestamp='2018-03-08' 3 # Copyright 1992-2023 Free Software Foundation, Inc. 4 5 # shellcheck disable=SC2006,SC2268 # see below for rationale 6 7 timestamp='2023-09-19' 6 8 7 9 # This file is free software; you can redistribute it and/or modify it 8 10 # under the terms of the GNU General Public License as published by 9 # the Free Software Foundation ;either version 3 of the License, or11 # the Free Software Foundation, either version 3 of the License, or 10 12 # (at your option) any later version. 11 13 # … … 34 36 35 37 # You can get the latest version of this script from: 36 # https://git.savannah.gnu.org/ gitweb/?p=config.git;a=blob_plain;f=config.sub38 # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub 37 39 38 40 # This file is supposed to be the same for all GNU packages … … 51 53 # It is wrong to echo any other type of specification. 52 54 55 # The "shellcheck disable" line above the timestamp inhibits complaints 56 # about features and limitations of the classic Bourne shell that were 57 # superseded or lifted in POSIX. However, this script identifies a wide 58 # variety of pre-POSIX systems that do not have POSIX shells at all, and 59 # even some reasonably current systems (Solaris 10 as case-in-point) still 60 # have a pre-POSIX /bin/sh. 61 53 62 me=`echo "$0" | sed -e 's,.*/,,'` 54 63 … … 68 77 GNU config.sub ($timestamp) 69 78 70 Copyright 1992-20 18Free Software Foundation, Inc.79 Copyright 1992-2023 Free Software Foundation, Inc. 71 80 72 81 This is free software; see the source for copying conditions. There is NO … … 74 83 75 84 help=" 76 Try \`$me --help' for more information."85 Try '$me --help' for more information." 77 86 78 87 # Parse command line … … 90 99 break ;; 91 100 -* ) 92 echo "$me: invalid option $1$help" 101 echo "$me: invalid option $1$help" >&2 93 102 exit 1 ;; 94 103 … … 111 120 esac 112 121 113 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 114 # Here we must recognize all the valid KERNEL-OS combinations. 115 maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 116 case $maybe_os in 117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ 118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ 119 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ 120 kopensolaris*-gnu* | cloudabi*-eabi* | \ 121 storm-chaos* | os2-emx* | rtmk-nova*) 122 os=-$maybe_os 123 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 124 ;; 125 android-linux) 126 os=-linux-android 127 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown 128 ;; 129 *) 130 basic_machine=`echo "$1" | sed 's/-[^-]*$//'` 131 if [ "$basic_machine" != "$1" ] 132 then os=`echo "$1" | sed 's/.*-/-/'` 133 else os=; fi 134 ;; 122 # Split fields of configuration type 123 # shellcheck disable=SC2162 124 saved_IFS=$IFS 125 IFS="-" read field1 field2 field3 field4 <<EOF 126 $1 127 EOF 128 IFS=$saved_IFS 129 130 # Separate into logical components for further validation 131 case $1 in 132 *-*-*-*-*) 133 echo "Invalid configuration '$1': more than four components" >&2 134 exit 1 135 ;; 136 *-*-*-*) 137 basic_machine=$field1-$field2 138 basic_os=$field3-$field4 139 ;; 140 *-*-*) 141 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two 142 # parts 143 maybe_os=$field2-$field3 144 case $maybe_os in 145 nto-qnx* | linux-* | uclinux-uclibc* \ 146 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ 147 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ 148 | storm-chaos* | os2-emx* | rtmk-nova* | managarm-* \ 149 | windows-* ) 150 basic_machine=$field1 151 basic_os=$maybe_os 152 ;; 153 android-linux) 154 basic_machine=$field1-unknown 155 basic_os=linux-android 156 ;; 157 *) 158 basic_machine=$field1-$field2 159 basic_os=$field3 160 ;; 161 esac 162 ;; 163 *-*) 164 # A lone config we happen to match not fitting any pattern 165 case $field1-$field2 in 166 decstation-3100) 167 basic_machine=mips-dec 168 basic_os= 169 ;; 170 *-*) 171 # Second component is usually, but not always the OS 172 case $field2 in 173 # Prevent following clause from handling this valid os 174 sun*os*) 175 basic_machine=$field1 176 basic_os=$field2 177 ;; 178 zephyr*) 179 basic_machine=$field1-unknown 180 basic_os=$field2 181 ;; 182 # Manufacturers 183 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ 184 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ 185 | unicom* | ibm* | next | hp | isi* | apollo | altos* \ 186 | convergent* | ncr* | news | 32* | 3600* | 3100* \ 187 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ 188 | ultra | tti* | harris | dolphin | highlevel | gould \ 189 | cbm | ns | masscomp | apple | axis | knuth | cray \ 190 | microblaze* | sim | cisco \ 191 | oki | wec | wrs | winbond) 192 basic_machine=$field1-$field2 193 basic_os= 194 ;; 195 *) 196 basic_machine=$field1 197 basic_os=$field2 198 ;; 199 esac 200 ;; 201 esac 202 ;; 203 *) 204 # Convert single-component short-hands not valid as part of 205 # multi-component configurations. 206 case $field1 in 207 386bsd) 208 basic_machine=i386-pc 209 basic_os=bsd 210 ;; 211 a29khif) 212 basic_machine=a29k-amd 213 basic_os=udi 214 ;; 215 adobe68k) 216 basic_machine=m68010-adobe 217 basic_os=scout 218 ;; 219 alliant) 220 basic_machine=fx80-alliant 221 basic_os= 222 ;; 223 altos | altos3068) 224 basic_machine=m68k-altos 225 basic_os= 226 ;; 227 am29k) 228 basic_machine=a29k-none 229 basic_os=bsd 230 ;; 231 amdahl) 232 basic_machine=580-amdahl 233 basic_os=sysv 234 ;; 235 amiga) 236 basic_machine=m68k-unknown 237 basic_os= 238 ;; 239 amigaos | amigados) 240 basic_machine=m68k-unknown 241 basic_os=amigaos 242 ;; 243 amigaunix | amix) 244 basic_machine=m68k-unknown 245 basic_os=sysv4 246 ;; 247 apollo68) 248 basic_machine=m68k-apollo 249 basic_os=sysv 250 ;; 251 apollo68bsd) 252 basic_machine=m68k-apollo 253 basic_os=bsd 254 ;; 255 aros) 256 basic_machine=i386-pc 257 basic_os=aros 258 ;; 259 aux) 260 basic_machine=m68k-apple 261 basic_os=aux 262 ;; 263 balance) 264 basic_machine=ns32k-sequent 265 basic_os=dynix 266 ;; 267 blackfin) 268 basic_machine=bfin-unknown 269 basic_os=linux 270 ;; 271 cegcc) 272 basic_machine=arm-unknown 273 basic_os=cegcc 274 ;; 275 convex-c1) 276 basic_machine=c1-convex 277 basic_os=bsd 278 ;; 279 convex-c2) 280 basic_machine=c2-convex 281 basic_os=bsd 282 ;; 283 convex-c32) 284 basic_machine=c32-convex 285 basic_os=bsd 286 ;; 287 convex-c34) 288 basic_machine=c34-convex 289 basic_os=bsd 290 ;; 291 convex-c38) 292 basic_machine=c38-convex 293 basic_os=bsd 294 ;; 295 cray) 296 basic_machine=j90-cray 297 basic_os=unicos 298 ;; 299 crds | unos) 300 basic_machine=m68k-crds 301 basic_os= 302 ;; 303 da30) 304 basic_machine=m68k-da30 305 basic_os= 306 ;; 307 decstation | pmax | pmin | dec3100 | decstatn) 308 basic_machine=mips-dec 309 basic_os= 310 ;; 311 delta88) 312 basic_machine=m88k-motorola 313 basic_os=sysv3 314 ;; 315 dicos) 316 basic_machine=i686-pc 317 basic_os=dicos 318 ;; 319 djgpp) 320 basic_machine=i586-pc 321 basic_os=msdosdjgpp 322 ;; 323 ebmon29k) 324 basic_machine=a29k-amd 325 basic_os=ebmon 326 ;; 327 es1800 | OSE68k | ose68k | ose | OSE) 328 basic_machine=m68k-ericsson 329 basic_os=ose 330 ;; 331 gmicro) 332 basic_machine=tron-gmicro 333 basic_os=sysv 334 ;; 335 go32) 336 basic_machine=i386-pc 337 basic_os=go32 338 ;; 339 h8300hms) 340 basic_machine=h8300-hitachi 341 basic_os=hms 342 ;; 343 h8300xray) 344 basic_machine=h8300-hitachi 345 basic_os=xray 346 ;; 347 h8500hms) 348 basic_machine=h8500-hitachi 349 basic_os=hms 350 ;; 351 harris) 352 basic_machine=m88k-harris 353 basic_os=sysv3 354 ;; 355 hp300 | hp300hpux) 356 basic_machine=m68k-hp 357 basic_os=hpux 358 ;; 359 hp300bsd) 360 basic_machine=m68k-hp 361 basic_os=bsd 362 ;; 363 hppaosf) 364 basic_machine=hppa1.1-hp 365 basic_os=osf 366 ;; 367 hppro) 368 basic_machine=hppa1.1-hp 369 basic_os=proelf 370 ;; 371 i386mach) 372 basic_machine=i386-mach 373 basic_os=mach 374 ;; 375 isi68 | isi) 376 basic_machine=m68k-isi 377 basic_os=sysv 378 ;; 379 m68knommu) 380 basic_machine=m68k-unknown 381 basic_os=linux 382 ;; 383 magnum | m3230) 384 basic_machine=mips-mips 385 basic_os=sysv 386 ;; 387 merlin) 388 basic_machine=ns32k-utek 389 basic_os=sysv 390 ;; 391 mingw64) 392 basic_machine=x86_64-pc 393 basic_os=mingw64 394 ;; 395 mingw32) 396 basic_machine=i686-pc 397 basic_os=mingw32 398 ;; 399 mingw32ce) 400 basic_machine=arm-unknown 401 basic_os=mingw32ce 402 ;; 403 monitor) 404 basic_machine=m68k-rom68k 405 basic_os=coff 406 ;; 407 morphos) 408 basic_machine=powerpc-unknown 409 basic_os=morphos 410 ;; 411 moxiebox) 412 basic_machine=moxie-unknown 413 basic_os=moxiebox 414 ;; 415 msdos) 416 basic_machine=i386-pc 417 basic_os=msdos 418 ;; 419 msys) 420 basic_machine=i686-pc 421 basic_os=msys 422 ;; 423 mvs) 424 basic_machine=i370-ibm 425 basic_os=mvs 426 ;; 427 nacl) 428 basic_machine=le32-unknown 429 basic_os=nacl 430 ;; 431 ncr3000) 432 basic_machine=i486-ncr 433 basic_os=sysv4 434 ;; 435 netbsd386) 436 basic_machine=i386-pc 437 basic_os=netbsd 438 ;; 439 netwinder) 440 basic_machine=armv4l-rebel 441 basic_os=linux 442 ;; 443 news | news700 | news800 | news900) 444 basic_machine=m68k-sony 445 basic_os=newsos 446 ;; 447 news1000) 448 basic_machine=m68030-sony 449 basic_os=newsos 450 ;; 451 necv70) 452 basic_machine=v70-nec 453 basic_os=sysv 454 ;; 455 nh3000) 456 basic_machine=m68k-harris 457 basic_os=cxux 458 ;; 459 nh[45]000) 460 basic_machine=m88k-harris 461 basic_os=cxux 462 ;; 463 nindy960) 464 basic_machine=i960-intel 465 basic_os=nindy 466 ;; 467 mon960) 468 basic_machine=i960-intel 469 basic_os=mon960 470 ;; 471 nonstopux) 472 basic_machine=mips-compaq 473 basic_os=nonstopux 474 ;; 475 os400) 476 basic_machine=powerpc-ibm 477 basic_os=os400 478 ;; 479 OSE68000 | ose68000) 480 basic_machine=m68000-ericsson 481 basic_os=ose 482 ;; 483 os68k) 484 basic_machine=m68k-none 485 basic_os=os68k 486 ;; 487 paragon) 488 basic_machine=i860-intel 489 basic_os=osf 490 ;; 491 parisc) 492 basic_machine=hppa-unknown 493 basic_os=linux 494 ;; 495 psp) 496 basic_machine=mipsallegrexel-sony 497 basic_os=psp 498 ;; 499 pw32) 500 basic_machine=i586-unknown 501 basic_os=pw32 502 ;; 503 rdos | rdos64) 504 basic_machine=x86_64-pc 505 basic_os=rdos 506 ;; 507 rdos32) 508 basic_machine=i386-pc 509 basic_os=rdos 510 ;; 511 rom68k) 512 basic_machine=m68k-rom68k 513 basic_os=coff 514 ;; 515 sa29200) 516 basic_machine=a29k-amd 517 basic_os=udi 518 ;; 519 sei) 520 basic_machine=mips-sei 521 basic_os=seiux 522 ;; 523 sequent) 524 basic_machine=i386-sequent 525 basic_os= 526 ;; 527 sps7) 528 basic_machine=m68k-bull 529 basic_os=sysv2 530 ;; 531 st2000) 532 basic_machine=m68k-tandem 533 basic_os= 534 ;; 535 stratus) 536 basic_machine=i860-stratus 537 basic_os=sysv4 538 ;; 539 sun2) 540 basic_machine=m68000-sun 541 basic_os= 542 ;; 543 sun2os3) 544 basic_machine=m68000-sun 545 basic_os=sunos3 546 ;; 547 sun2os4) 548 basic_machine=m68000-sun 549 basic_os=sunos4 550 ;; 551 sun3) 552 basic_machine=m68k-sun 553 basic_os= 554 ;; 555 sun3os3) 556 basic_machine=m68k-sun 557 basic_os=sunos3 558 ;; 559 sun3os4) 560 basic_machine=m68k-sun 561 basic_os=sunos4 562 ;; 563 sun4) 564 basic_machine=sparc-sun 565 basic_os= 566 ;; 567 sun4os3) 568 basic_machine=sparc-sun 569 basic_os=sunos3 570 ;; 571 sun4os4) 572 basic_machine=sparc-sun 573 basic_os=sunos4 574 ;; 575 sun4sol2) 576 basic_machine=sparc-sun 577 basic_os=solaris2 578 ;; 579 sun386 | sun386i | roadrunner) 580 basic_machine=i386-sun 581 basic_os= 582 ;; 583 sv1) 584 basic_machine=sv1-cray 585 basic_os=unicos 586 ;; 587 symmetry) 588 basic_machine=i386-sequent 589 basic_os=dynix 590 ;; 591 t3e) 592 basic_machine=alphaev5-cray 593 basic_os=unicos 594 ;; 595 t90) 596 basic_machine=t90-cray 597 basic_os=unicos 598 ;; 599 toad1) 600 basic_machine=pdp10-xkl 601 basic_os=tops20 602 ;; 603 tpf) 604 basic_machine=s390x-ibm 605 basic_os=tpf 606 ;; 607 udi29k) 608 basic_machine=a29k-amd 609 basic_os=udi 610 ;; 611 ultra3) 612 basic_machine=a29k-nyu 613 basic_os=sym1 614 ;; 615 v810 | necv810) 616 basic_machine=v810-nec 617 basic_os=none 618 ;; 619 vaxv) 620 basic_machine=vax-dec 621 basic_os=sysv 622 ;; 623 vms) 624 basic_machine=vax-dec 625 basic_os=vms 626 ;; 627 vsta) 628 basic_machine=i386-pc 629 basic_os=vsta 630 ;; 631 vxworks960) 632 basic_machine=i960-wrs 633 basic_os=vxworks 634 ;; 635 vxworks68) 636 basic_machine=m68k-wrs 637 basic_os=vxworks 638 ;; 639 vxworks29k) 640 basic_machine=a29k-wrs 641 basic_os=vxworks 642 ;; 643 xbox) 644 basic_machine=i686-pc 645 basic_os=mingw32 646 ;; 647 ymp) 648 basic_machine=ymp-cray 649 basic_os=unicos 650 ;; 651 *) 652 basic_machine=$1 653 basic_os= 654 ;; 655 esac 656 ;; 135 657 esac 136 658 137 ### Let's recognize common machines as not being operating systems so 138 ### that things like config.sub decstation-3100 work. We also 139 ### recognize some manufacturers as not being operating systems, so we 140 ### can provide default operating systems below. 141 case $os in 142 -sun*os*) 143 # Prevent following clause from handling this invalid input. 144 ;; 145 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 146 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 147 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 151 -apple | -axis | -knuth | -cray | -microblaze*) 152 os= 153 basic_machine=$1 154 ;; 155 -bluegene*) 156 os=-cnk 157 ;; 158 -sim | -cisco | -oki | -wec | -winbond) 159 os= 160 basic_machine=$1 161 ;; 162 -scout) 163 ;; 164 -wrs) 165 os=-vxworks 166 basic_machine=$1 167 ;; 168 -chorusos*) 169 os=-chorusos 170 basic_machine=$1 171 ;; 172 -chorusrdb) 173 os=-chorusrdb 174 basic_machine=$1 175 ;; 176 -hiux*) 177 os=-hiuxwe2 178 ;; 179 -sco6) 180 os=-sco5v6 181 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 182 ;; 183 -sco5) 184 os=-sco3.2v5 185 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 186 ;; 187 -sco4) 188 os=-sco3.2v4 189 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 190 ;; 191 -sco3.2.[4-9]*) 192 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 193 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 194 ;; 195 -sco3.2v[4-9]*) 196 # Don't forget version if it is 3.2v4 or newer. 197 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 198 ;; 199 -sco5v6*) 200 # Don't forget version if it is 3.2v4 or newer. 201 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 202 ;; 203 -sco*) 204 os=-sco3.2v2 205 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 206 ;; 207 -udk*) 208 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 209 ;; 210 -isc) 211 os=-isc2.2 212 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 213 ;; 214 -clix*) 215 basic_machine=clipper-intergraph 216 ;; 217 -isc*) 218 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` 219 ;; 220 -lynx*178) 221 os=-lynxos178 222 ;; 223 -lynx*5) 224 os=-lynxos5 225 ;; 226 -lynx*) 227 os=-lynxos 228 ;; 229 -ptx*) 230 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'` 231 ;; 232 -psos*) 233 os=-psos 234 ;; 235 -mint | -mint[0-9]*) 236 basic_machine=m68k-atari 237 os=-mint 238 ;; 239 esac 240 241 # Decode aliases for certain CPU-COMPANY combinations. 659 # Decode 1-component or ad-hoc basic machines 242 660 case $basic_machine in 243 # Recognize the basic CPU types without company name. 244 # Some are omitted here because they have special meanings below. 245 1750a | 580 \ 246 | a29k \ 247 | aarch64 | aarch64_be \ 248 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 249 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 250 | am33_2.0 \ 251 | arc | arceb \ 252 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ 253 | avr | avr32 \ 254 | ba \ 255 | be32 | be64 \ 256 | bfin \ 257 | c4x | c8051 | clipper \ 258 | d10v | d30v | dlx | dsp16xx \ 259 | e2k | epiphany \ 260 | fido | fr30 | frv | ft32 \ 261 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 262 | hexagon \ 263 | i370 | i860 | i960 | ia16 | ia64 \ 264 | ip2k | iq2000 \ 265 | k1om \ 266 | le32 | le64 \ 267 | lm32 \ 268 | m32c | m32r | m32rle | m68000 | m68k | m88k \ 269 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ 270 | mips | mipsbe | mipseb | mipsel | mipsle \ 271 | mips16 \ 272 | mips64 | mips64el \ 273 | mips64octeon | mips64octeonel \ 274 | mips64orion | mips64orionel \ 275 | mips64r5900 | mips64r5900el \ 276 | mips64vr | mips64vrel \ 277 | mips64vr4100 | mips64vr4100el \ 278 | mips64vr4300 | mips64vr4300el \ 279 | mips64vr5000 | mips64vr5000el \ 280 | mips64vr5900 | mips64vr5900el \ 281 | mipsisa32 | mipsisa32el \ 282 | mipsisa32r2 | mipsisa32r2el \ 283 | mipsisa32r6 | mipsisa32r6el \ 284 | mipsisa64 | mipsisa64el \ 285 | mipsisa64r2 | mipsisa64r2el \ 286 | mipsisa64r6 | mipsisa64r6el \ 287 | mipsisa64sb1 | mipsisa64sb1el \ 288 | mipsisa64sr71k | mipsisa64sr71kel \ 289 | mipsr5900 | mipsr5900el \ 290 | mipstx39 | mipstx39el \ 291 | mn10200 | mn10300 \ 292 | moxie \ 293 | mt \ 294 | msp430 \ 295 | nds32 | nds32le | nds32be \ 296 | nios | nios2 | nios2eb | nios2el \ 297 | ns16k | ns32k \ 298 | open8 | or1k | or1knd | or32 \ 299 | pdp10 | pj | pjl \ 300 | powerpc | powerpc64 | powerpc64le | powerpcle \ 301 | pru \ 302 | pyramid \ 303 | riscv32 | riscv64 \ 304 | rl78 | rx \ 305 | score \ 306 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 307 | sh64 | sh64le \ 308 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 309 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 310 | spu \ 311 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ 312 | ubicom32 \ 313 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ 314 | visium \ 315 | wasm32 \ 316 | x86 | xc16x | xstormy16 | xtensa \ 317 | z8k | z80) 318 basic_machine=$basic_machine-unknown 319 ;; 320 c54x) 321 basic_machine=tic54x-unknown 322 ;; 323 c55x) 324 basic_machine=tic55x-unknown 325 ;; 326 c6x) 327 basic_machine=tic6x-unknown 661 # Here we handle the default manufacturer of certain CPU types. It is in 662 # some cases the only manufacturer, in others, it is the most popular. 663 w89k) 664 cpu=hppa1.1 665 vendor=winbond 666 ;; 667 op50n) 668 cpu=hppa1.1 669 vendor=oki 670 ;; 671 op60c) 672 cpu=hppa1.1 673 vendor=oki 674 ;; 675 ibm*) 676 cpu=i370 677 vendor=ibm 678 ;; 679 orion105) 680 cpu=clipper 681 vendor=highlevel 682 ;; 683 mac | mpw | mac-mpw) 684 cpu=m68k 685 vendor=apple 686 ;; 687 pmac | pmac-mpw) 688 cpu=powerpc 689 vendor=apple 690 ;; 691 692 # Recognize the various machine names and aliases which stand 693 # for a CPU type and a company and sometimes even an OS. 694 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 695 cpu=m68000 696 vendor=att 697 ;; 698 3b*) 699 cpu=we32k 700 vendor=att 701 ;; 702 bluegene*) 703 cpu=powerpc 704 vendor=ibm 705 basic_os=cnk 706 ;; 707 decsystem10* | dec10*) 708 cpu=pdp10 709 vendor=dec 710 basic_os=tops10 711 ;; 712 decsystem20* | dec20*) 713 cpu=pdp10 714 vendor=dec 715 basic_os=tops20 716 ;; 717 delta | 3300 | motorola-3300 | motorola-delta \ 718 | 3300-motorola | delta-motorola) 719 cpu=m68k 720 vendor=motorola 721 ;; 722 dpx2*) 723 cpu=m68k 724 vendor=bull 725 basic_os=sysv3 726 ;; 727 encore | umax | mmax) 728 cpu=ns32k 729 vendor=encore 730 ;; 731 elxsi) 732 cpu=elxsi 733 vendor=elxsi 734 basic_os=${basic_os:-bsd} 735 ;; 736 fx2800) 737 cpu=i860 738 vendor=alliant 739 ;; 740 genix) 741 cpu=ns32k 742 vendor=ns 743 ;; 744 h3050r* | hiux*) 745 cpu=hppa1.1 746 vendor=hitachi 747 basic_os=hiuxwe2 748 ;; 749 hp3k9[0-9][0-9] | hp9[0-9][0-9]) 750 cpu=hppa1.0 751 vendor=hp 752 ;; 753 hp9k2[0-9][0-9] | hp9k31[0-9]) 754 cpu=m68000 755 vendor=hp 756 ;; 757 hp9k3[2-9][0-9]) 758 cpu=m68k 759 vendor=hp 760 ;; 761 hp9k6[0-9][0-9] | hp6[0-9][0-9]) 762 cpu=hppa1.0 763 vendor=hp 764 ;; 765 hp9k7[0-79][0-9] | hp7[0-79][0-9]) 766 cpu=hppa1.1 767 vendor=hp 768 ;; 769 hp9k78[0-9] | hp78[0-9]) 770 # FIXME: really hppa2.0-hp 771 cpu=hppa1.1 772 vendor=hp 773 ;; 774 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 775 # FIXME: really hppa2.0-hp 776 cpu=hppa1.1 777 vendor=hp 778 ;; 779 hp9k8[0-9][13679] | hp8[0-9][13679]) 780 cpu=hppa1.1 781 vendor=hp 782 ;; 783 hp9k8[0-9][0-9] | hp8[0-9][0-9]) 784 cpu=hppa1.0 785 vendor=hp 786 ;; 787 i*86v32) 788 cpu=`echo "$1" | sed -e 's/86.*/86/'` 789 vendor=pc 790 basic_os=sysv32 791 ;; 792 i*86v4*) 793 cpu=`echo "$1" | sed -e 's/86.*/86/'` 794 vendor=pc 795 basic_os=sysv4 796 ;; 797 i*86v) 798 cpu=`echo "$1" | sed -e 's/86.*/86/'` 799 vendor=pc 800 basic_os=sysv 801 ;; 802 i*86sol2) 803 cpu=`echo "$1" | sed -e 's/86.*/86/'` 804 vendor=pc 805 basic_os=solaris2 806 ;; 807 j90 | j90-cray) 808 cpu=j90 809 vendor=cray 810 basic_os=${basic_os:-unicos} 811 ;; 812 iris | iris4d) 813 cpu=mips 814 vendor=sgi 815 case $basic_os in 816 irix*) 817 ;; 818 *) 819 basic_os=irix4 820 ;; 821 esac 822 ;; 823 miniframe) 824 cpu=m68000 825 vendor=convergent 826 ;; 827 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) 828 cpu=m68k 829 vendor=atari 830 basic_os=mint 831 ;; 832 news-3600 | risc-news) 833 cpu=mips 834 vendor=sony 835 basic_os=newsos 836 ;; 837 next | m*-next) 838 cpu=m68k 839 vendor=next 840 case $basic_os in 841 openstep*) 842 ;; 843 nextstep*) 844 ;; 845 ns2*) 846 basic_os=nextstep2 847 ;; 848 *) 849 basic_os=nextstep3 850 ;; 851 esac 852 ;; 853 np1) 854 cpu=np1 855 vendor=gould 856 ;; 857 op50n-* | op60c-*) 858 cpu=hppa1.1 859 vendor=oki 860 basic_os=proelf 861 ;; 862 pa-hitachi) 863 cpu=hppa1.1 864 vendor=hitachi 865 basic_os=hiuxwe2 866 ;; 867 pbd) 868 cpu=sparc 869 vendor=tti 870 ;; 871 pbb) 872 cpu=m68k 873 vendor=tti 874 ;; 875 pc532) 876 cpu=ns32k 877 vendor=pc532 878 ;; 879 pn) 880 cpu=pn 881 vendor=gould 882 ;; 883 power) 884 cpu=power 885 vendor=ibm 886 ;; 887 ps2) 888 cpu=i386 889 vendor=ibm 890 ;; 891 rm[46]00) 892 cpu=mips 893 vendor=siemens 894 ;; 895 rtpc | rtpc-*) 896 cpu=romp 897 vendor=ibm 898 ;; 899 sde) 900 cpu=mipsisa32 901 vendor=sde 902 basic_os=${basic_os:-elf} 903 ;; 904 simso-wrs) 905 cpu=sparclite 906 vendor=wrs 907 basic_os=vxworks 908 ;; 909 tower | tower-32) 910 cpu=m68k 911 vendor=ncr 912 ;; 913 vpp*|vx|vx-*) 914 cpu=f301 915 vendor=fujitsu 916 ;; 917 w65) 918 cpu=w65 919 vendor=wdc 920 ;; 921 w89k-*) 922 cpu=hppa1.1 923 vendor=winbond 924 basic_os=proelf 925 ;; 926 none) 927 cpu=none 928 vendor=none 328 929 ;; 329 930 leon|leon[3-9]) 330 basic_machine=sparc-$basic_machine 331 ;; 332 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) 333 basic_machine=$basic_machine-unknown 334 os=-none 335 ;; 336 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) 337 ;; 338 ms1) 339 basic_machine=mt-unknown 340 ;; 341 342 strongarm | thumb | xscale) 343 basic_machine=arm-unknown 344 ;; 345 xgate) 346 basic_machine=$basic_machine-unknown 347 os=-none 348 ;; 349 xscaleeb) 350 basic_machine=armeb-unknown 351 ;; 352 353 xscaleel) 354 basic_machine=armel-unknown 355 ;; 356 357 # We use `pc' rather than `unknown' 931 cpu=sparc 932 vendor=$basic_machine 933 ;; 934 leon-*|leon[3-9]-*) 935 cpu=sparc 936 vendor=`echo "$basic_machine" | sed 's/-.*//'` 937 ;; 938 939 *-*) 940 # shellcheck disable=SC2162 941 saved_IFS=$IFS 942 IFS="-" read cpu vendor <<EOF 943 $basic_machine 944 EOF 945 IFS=$saved_IFS 946 ;; 947 # We use 'pc' rather than 'unknown' 358 948 # because (1) that's what they normally are, and 359 949 # (2) the word "unknown" tends to confuse beginning users. 360 950 i*86 | x86_64) 361 basic_machine=$basic_machine-pc 362 ;; 363 # Object if more than one company name word. 364 *-*-*) 365 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 366 exit 1 367 ;; 368 # Recognize the basic CPU types with company name. 369 580-* \ 370 | a29k-* \ 371 | aarch64-* | aarch64_be-* \ 372 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 373 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 374 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ 375 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 376 | avr-* | avr32-* \ 377 | ba-* \ 378 | be32-* | be64-* \ 379 | bfin-* | bs2000-* \ 380 | c[123]* | c30-* | [cjt]90-* | c4x-* \ 381 | c8051-* | clipper-* | craynv-* | cydra-* \ 382 | d10v-* | d30v-* | dlx-* \ 383 | e2k-* | elxsi-* \ 384 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 385 | h8300-* | h8500-* \ 386 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 387 | hexagon-* \ 388 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ 389 | ip2k-* | iq2000-* \ 390 | k1om-* \ 391 | le32-* | le64-* \ 392 | lm32-* \ 393 | m32c-* | m32r-* | m32rle-* \ 394 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 395 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ 396 | microblaze-* | microblazeel-* \ 397 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 398 | mips16-* \ 399 | mips64-* | mips64el-* \ 400 | mips64octeon-* | mips64octeonel-* \ 401 | mips64orion-* | mips64orionel-* \ 402 | mips64r5900-* | mips64r5900el-* \ 403 | mips64vr-* | mips64vrel-* \ 404 | mips64vr4100-* | mips64vr4100el-* \ 405 | mips64vr4300-* | mips64vr4300el-* \ 406 | mips64vr5000-* | mips64vr5000el-* \ 407 | mips64vr5900-* | mips64vr5900el-* \ 408 | mipsisa32-* | mipsisa32el-* \ 409 | mipsisa32r2-* | mipsisa32r2el-* \ 410 | mipsisa32r6-* | mipsisa32r6el-* \ 411 | mipsisa64-* | mipsisa64el-* \ 412 | mipsisa64r2-* | mipsisa64r2el-* \ 413 | mipsisa64r6-* | mipsisa64r6el-* \ 414 | mipsisa64sb1-* | mipsisa64sb1el-* \ 415 | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 416 | mipsr5900-* | mipsr5900el-* \ 417 | mipstx39-* | mipstx39el-* \ 418 | mmix-* \ 419 | mt-* \ 420 | msp430-* \ 421 | nds32-* | nds32le-* | nds32be-* \ 422 | nios-* | nios2-* | nios2eb-* | nios2el-* \ 423 | none-* | np1-* | ns16k-* | ns32k-* \ 424 | open8-* \ 425 | or1k*-* \ 426 | orion-* \ 427 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 428 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ 429 | pru-* \ 430 | pyramid-* \ 431 | riscv32-* | riscv64-* \ 432 | rl78-* | romp-* | rs6000-* | rx-* \ 433 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 434 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 435 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 436 | sparclite-* \ 437 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ 438 | tahoe-* \ 439 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 440 | tile*-* \ 441 | tron-* \ 442 | ubicom32-* \ 443 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ 444 | vax-* \ 445 | visium-* \ 446 | wasm32-* \ 447 | we32k-* \ 448 | x86-* | x86_64-* | xc16x-* | xps100-* \ 449 | xstormy16-* | xtensa*-* \ 450 | ymp-* \ 451 | z8k-* | z80-*) 452 ;; 453 # Recognize the basic CPU types without company name, with glob match. 454 xtensa*) 455 basic_machine=$basic_machine-unknown 456 ;; 457 # Recognize the various machine names and aliases which stand 458 # for a CPU type and a company and sometimes even an OS. 459 386bsd) 460 basic_machine=i386-pc 461 os=-bsd 462 ;; 463 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 464 basic_machine=m68000-att 465 ;; 466 3b*) 467 basic_machine=we32k-att 468 ;; 469 a29khif) 470 basic_machine=a29k-amd 471 os=-udi 472 ;; 473 abacus) 474 basic_machine=abacus-unknown 475 ;; 476 adobe68k) 477 basic_machine=m68010-adobe 478 os=-scout 479 ;; 480 alliant | fx80) 481 basic_machine=fx80-alliant 482 ;; 483 altos | altos3068) 484 basic_machine=m68k-altos 485 ;; 486 am29k) 487 basic_machine=a29k-none 488 os=-bsd 489 ;; 490 amd64) 491 basic_machine=x86_64-pc 492 ;; 951 cpu=$basic_machine 952 vendor=pc 953 ;; 954 # These rules are duplicated from below for sake of the special case above; 955 # i.e. things that normalized to x86 arches should also default to "pc" 956 pc98) 957 cpu=i386 958 vendor=pc 959 ;; 960 x64 | amd64) 961 cpu=x86_64 962 vendor=pc 963 ;; 964 # Recognize the basic CPU types without company name. 965 *) 966 cpu=$basic_machine 967 vendor=unknown 968 ;; 969 esac 970 971 unset -v basic_machine 972 973 # Decode basic machines in the full and proper CPU-Company form. 974 case $cpu-$vendor in 975 # Here we handle the default manufacturer of certain CPU types in canonical form. It is in 976 # some cases the only manufacturer, in others, it is the most popular. 977 craynv-unknown) 978 vendor=cray 979 basic_os=${basic_os:-unicosmp} 980 ;; 981 c90-unknown | c90-cray) 982 vendor=cray 983 basic_os=${Basic_os:-unicos} 984 ;; 985 fx80-unknown) 986 vendor=alliant 987 ;; 988 romp-unknown) 989 vendor=ibm 990 ;; 991 mmix-unknown) 992 vendor=knuth 993 ;; 994 microblaze-unknown | microblazeel-unknown) 995 vendor=xilinx 996 ;; 997 rs6000-unknown) 998 vendor=ibm 999 ;; 1000 vax-unknown) 1001 vendor=dec 1002 ;; 1003 pdp11-unknown) 1004 vendor=dec 1005 ;; 1006 we32k-unknown) 1007 vendor=att 1008 ;; 1009 cydra-unknown) 1010 vendor=cydrome 1011 ;; 1012 i370-ibm*) 1013 vendor=ibm 1014 ;; 1015 orion-unknown) 1016 vendor=highlevel 1017 ;; 1018 xps-unknown | xps100-unknown) 1019 cpu=xps100 1020 vendor=honeywell 1021 ;; 1022 1023 # Here we normalize CPU types with a missing or matching vendor 1024 armh-unknown | armh-alt) 1025 cpu=armv7l 1026 vendor=alt 1027 basic_os=${basic_os:-linux-gnueabihf} 1028 ;; 1029 dpx20-unknown | dpx20-bull) 1030 cpu=rs6000 1031 vendor=bull 1032 basic_os=${basic_os:-bosx} 1033 ;; 1034 1035 # Here we normalize CPU types irrespective of the vendor 493 1036 amd64-*) 494 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` 495 ;; 496 amdahl) 497 basic_machine=580-amdahl 498 os=-sysv 499 ;; 500 amiga | amiga-*) 501 basic_machine=m68k-unknown 502 ;; 503 amigaos | amigados) 504 basic_machine=m68k-unknown 505 os=-amigaos 506 ;; 507 amigaunix | amix) 508 basic_machine=m68k-unknown 509 os=-sysv4 510 ;; 511 apollo68) 512 basic_machine=m68k-apollo 513 os=-sysv 514 ;; 515 apollo68bsd) 516 basic_machine=m68k-apollo 517 os=-bsd 518 ;; 519 aros) 520 basic_machine=i386-pc 521 os=-aros 522 ;; 523 asmjs) 524 basic_machine=asmjs-unknown 525 ;; 526 aux) 527 basic_machine=m68k-apple 528 os=-aux 529 ;; 530 balance) 531 basic_machine=ns32k-sequent 532 os=-dynix 533 ;; 534 blackfin) 535 basic_machine=bfin-unknown 536 os=-linux 1037 cpu=x86_64 537 1038 ;; 538 1039 blackfin-*) 539 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` 540 os=-linux 541 ;; 542 bluegene*) 543 basic_machine=powerpc-ibm 544 os=-cnk 1040 cpu=bfin 1041 basic_os=linux 545 1042 ;; 546 1043 c54x-*) 547 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`1044 cpu=tic54x 548 1045 ;; 549 1046 c55x-*) 550 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`1047 cpu=tic55x 551 1048 ;; 552 1049 c6x-*) 553 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` 554 ;; 555 c90) 556 basic_machine=c90-cray 557 os=-unicos 558 ;; 559 cegcc) 560 basic_machine=arm-unknown 561 os=-cegcc 562 ;; 563 convex-c1) 564 basic_machine=c1-convex 565 os=-bsd 566 ;; 567 convex-c2) 568 basic_machine=c2-convex 569 os=-bsd 570 ;; 571 convex-c32) 572 basic_machine=c32-convex 573 os=-bsd 574 ;; 575 convex-c34) 576 basic_machine=c34-convex 577 os=-bsd 578 ;; 579 convex-c38) 580 basic_machine=c38-convex 581 os=-bsd 582 ;; 583 cray | j90) 584 basic_machine=j90-cray 585 os=-unicos 586 ;; 587 craynv) 588 basic_machine=craynv-cray 589 os=-unicosmp 590 ;; 591 cr16 | cr16-*) 592 basic_machine=cr16-unknown 593 os=-elf 594 ;; 595 crds | unos) 596 basic_machine=m68k-crds 597 ;; 598 crisv32 | crisv32-* | etraxfs*) 599 basic_machine=crisv32-axis 600 ;; 601 cris | cris-* | etrax*) 602 basic_machine=cris-axis 603 ;; 604 crx) 605 basic_machine=crx-unknown 606 os=-elf 607 ;; 608 da30 | da30-*) 609 basic_machine=m68k-da30 610 ;; 611 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 612 basic_machine=mips-dec 613 ;; 614 decsystem10* | dec10*) 615 basic_machine=pdp10-dec 616 os=-tops10 617 ;; 618 decsystem20* | dec20*) 619 basic_machine=pdp10-dec 620 os=-tops20 621 ;; 622 delta | 3300 | motorola-3300 | motorola-delta \ 623 | 3300-motorola | delta-motorola) 624 basic_machine=m68k-motorola 625 ;; 626 delta88) 627 basic_machine=m88k-motorola 628 os=-sysv3 629 ;; 630 dicos) 631 basic_machine=i686-pc 632 os=-dicos 633 ;; 634 djgpp) 635 basic_machine=i586-pc 636 os=-msdosdjgpp 637 ;; 638 dpx20 | dpx20-*) 639 basic_machine=rs6000-bull 640 os=-bosx 641 ;; 642 dpx2*) 643 basic_machine=m68k-bull 644 os=-sysv3 645 ;; 646 e500v[12]) 647 basic_machine=powerpc-unknown 648 os=$os"spe" 1050 cpu=tic6x 649 1051 ;; 650 1052 e500v[12]-*) 651 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` 652 os=$os"spe" 653 ;; 654 ebmon29k) 655 basic_machine=a29k-amd 656 os=-ebmon 657 ;; 658 elxsi) 659 basic_machine=elxsi-elxsi 660 os=-bsd 661 ;; 662 encore | umax | mmax) 663 basic_machine=ns32k-encore 664 ;; 665 es1800 | OSE68k | ose68k | ose | OSE) 666 basic_machine=m68k-ericsson 667 os=-ose 668 ;; 669 fx2800) 670 basic_machine=i860-alliant 671 ;; 672 genix) 673 basic_machine=ns32k-ns 674 ;; 675 gmicro) 676 basic_machine=tron-gmicro 677 os=-sysv 678 ;; 679 go32) 680 basic_machine=i386-pc 681 os=-go32 682 ;; 683 h3050r* | hiux*) 684 basic_machine=hppa1.1-hitachi 685 os=-hiuxwe2 686 ;; 687 h8300hms) 688 basic_machine=h8300-hitachi 689 os=-hms 690 ;; 691 h8300xray) 692 basic_machine=h8300-hitachi 693 os=-xray 694 ;; 695 h8500hms) 696 basic_machine=h8500-hitachi 697 os=-hms 698 ;; 699 harris) 700 basic_machine=m88k-harris 701 os=-sysv3 702 ;; 703 hp300-*) 704 basic_machine=m68k-hp 705 ;; 706 hp300bsd) 707 basic_machine=m68k-hp 708 os=-bsd 709 ;; 710 hp300hpux) 711 basic_machine=m68k-hp 712 os=-hpux 713 ;; 714 hp3k9[0-9][0-9] | hp9[0-9][0-9]) 715 basic_machine=hppa1.0-hp 716 ;; 717 hp9k2[0-9][0-9] | hp9k31[0-9]) 718 basic_machine=m68000-hp 719 ;; 720 hp9k3[2-9][0-9]) 721 basic_machine=m68k-hp 722 ;; 723 hp9k6[0-9][0-9] | hp6[0-9][0-9]) 724 basic_machine=hppa1.0-hp 725 ;; 726 hp9k7[0-79][0-9] | hp7[0-79][0-9]) 727 basic_machine=hppa1.1-hp 728 ;; 729 hp9k78[0-9] | hp78[0-9]) 730 # FIXME: really hppa2.0-hp 731 basic_machine=hppa1.1-hp 732 ;; 733 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 734 # FIXME: really hppa2.0-hp 735 basic_machine=hppa1.1-hp 736 ;; 737 hp9k8[0-9][13679] | hp8[0-9][13679]) 738 basic_machine=hppa1.1-hp 739 ;; 740 hp9k8[0-9][0-9] | hp8[0-9][0-9]) 741 basic_machine=hppa1.0-hp 742 ;; 743 hppaosf) 744 basic_machine=hppa1.1-hp 745 os=-osf 746 ;; 747 hppro) 748 basic_machine=hppa1.1-hp 749 os=-proelf 750 ;; 751 i370-ibm* | ibm*) 752 basic_machine=i370-ibm 753 ;; 754 i*86v32) 755 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` 756 os=-sysv32 757 ;; 758 i*86v4*) 759 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` 760 os=-sysv4 761 ;; 762 i*86v) 763 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` 764 os=-sysv 765 ;; 766 i*86sol2) 767 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` 768 os=-solaris2 769 ;; 770 i386mach) 771 basic_machine=i386-mach 772 os=-mach 773 ;; 774 vsta) 775 basic_machine=i386-unknown 776 os=-vsta 777 ;; 778 iris | iris4d) 779 basic_machine=mips-sgi 780 case $os in 781 -irix*) 782 ;; 783 *) 784 os=-irix4 785 ;; 1053 cpu=powerpc 1054 basic_os=${basic_os}"spe" 1055 ;; 1056 mips3*-*) 1057 cpu=mips64 1058 ;; 1059 ms1-*) 1060 cpu=mt 1061 ;; 1062 m68knommu-*) 1063 cpu=m68k 1064 basic_os=linux 1065 ;; 1066 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*) 1067 cpu=s12z 1068 ;; 1069 openrisc-*) 1070 cpu=or32 1071 ;; 1072 parisc-*) 1073 cpu=hppa 1074 basic_os=linux 1075 ;; 1076 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 1077 cpu=i586 1078 ;; 1079 pentiumpro-* | p6-* | 6x86-* | athlon-* | athlon_*-*) 1080 cpu=i686 1081 ;; 1082 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 1083 cpu=i686 1084 ;; 1085 pentium4-*) 1086 cpu=i786 1087 ;; 1088 pc98-*) 1089 cpu=i386 1090 ;; 1091 ppc-* | ppcbe-*) 1092 cpu=powerpc 1093 ;; 1094 ppcle-* | powerpclittle-*) 1095 cpu=powerpcle 1096 ;; 1097 ppc64-*) 1098 cpu=powerpc64 1099 ;; 1100 ppc64le-* | powerpc64little-*) 1101 cpu=powerpc64le 1102 ;; 1103 sb1-*) 1104 cpu=mipsisa64sb1 1105 ;; 1106 sb1el-*) 1107 cpu=mipsisa64sb1el 1108 ;; 1109 sh5e[lb]-*) 1110 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'` 1111 ;; 1112 spur-*) 1113 cpu=spur 1114 ;; 1115 strongarm-* | thumb-*) 1116 cpu=arm 1117 ;; 1118 tx39-*) 1119 cpu=mipstx39 1120 ;; 1121 tx39el-*) 1122 cpu=mipstx39el 1123 ;; 1124 x64-*) 1125 cpu=x86_64 1126 ;; 1127 xscale-* | xscalee[bl]-*) 1128 cpu=`echo "$cpu" | sed 's/^xscale/arm/'` 1129 ;; 1130 arm64-* | aarch64le-*) 1131 cpu=aarch64 1132 ;; 1133 1134 # Recognize the canonical CPU Types that limit and/or modify the 1135 # company names they are paired with. 1136 cr16-*) 1137 basic_os=${basic_os:-elf} 1138 ;; 1139 crisv32-* | etraxfs*-*) 1140 cpu=crisv32 1141 vendor=axis 1142 ;; 1143 cris-* | etrax*-*) 1144 cpu=cris 1145 vendor=axis 1146 ;; 1147 crx-*) 1148 basic_os=${basic_os:-elf} 1149 ;; 1150 neo-tandem) 1151 cpu=neo 1152 vendor=tandem 1153 ;; 1154 nse-tandem) 1155 cpu=nse 1156 vendor=tandem 1157 ;; 1158 nsr-tandem) 1159 cpu=nsr 1160 vendor=tandem 1161 ;; 1162 nsv-tandem) 1163 cpu=nsv 1164 vendor=tandem 1165 ;; 1166 nsx-tandem) 1167 cpu=nsx 1168 vendor=tandem 1169 ;; 1170 mipsallegrexel-sony) 1171 cpu=mipsallegrexel 1172 vendor=sony 1173 ;; 1174 tile*-*) 1175 basic_os=${basic_os:-linux-gnu} 1176 ;; 1177 1178 *) 1179 # Recognize the canonical CPU types that are allowed with any 1180 # company name. 1181 case $cpu in 1182 1750a | 580 \ 1183 | a29k \ 1184 | aarch64 | aarch64_be | aarch64c | arm64ec \ 1185 | abacus \ 1186 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \ 1187 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \ 1188 | alphapca5[67] | alpha64pca5[67] \ 1189 | am33_2.0 \ 1190 | amdgcn \ 1191 | arc | arceb | arc32 | arc64 \ 1192 | arm | arm[lb]e | arme[lb] | armv* \ 1193 | avr | avr32 \ 1194 | asmjs \ 1195 | ba \ 1196 | be32 | be64 \ 1197 | bfin | bpf | bs2000 \ 1198 | c[123]* | c30 | [cjt]90 | c4x \ 1199 | c8051 | clipper | craynv | csky | cydra \ 1200 | d10v | d30v | dlx | dsp16xx \ 1201 | e2k | elxsi | epiphany \ 1202 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \ 1203 | javascript \ 1204 | h8300 | h8500 \ 1205 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 1206 | hexagon \ 1207 | i370 | i*86 | i860 | i960 | ia16 | ia64 \ 1208 | ip2k | iq2000 \ 1209 | k1om \ 1210 | kvx \ 1211 | le32 | le64 \ 1212 | lm32 \ 1213 | loongarch32 | loongarch64 \ 1214 | m32c | m32r | m32rle \ 1215 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \ 1216 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \ 1217 | m88110 | m88k | maxq | mb | mcore | mep | metag \ 1218 | microblaze | microblazeel \ 1219 | mips* \ 1220 | mmix \ 1221 | mn10200 | mn10300 \ 1222 | moxie \ 1223 | mt \ 1224 | msp430 \ 1225 | nds32 | nds32le | nds32be \ 1226 | nfp \ 1227 | nios | nios2 | nios2eb | nios2el \ 1228 | none | np1 | ns16k | ns32k | nvptx \ 1229 | open8 \ 1230 | or1k* \ 1231 | or32 \ 1232 | orion \ 1233 | picochip \ 1234 | pdp10 | pdp11 | pj | pjl | pn | power \ 1235 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \ 1236 | pru \ 1237 | pyramid \ 1238 | riscv | riscv32 | riscv32be | riscv64 | riscv64be \ 1239 | rl78 | romp | rs6000 | rx \ 1240 | s390 | s390x \ 1241 | score \ 1242 | sh | shl \ 1243 | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \ 1244 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \ 1245 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \ 1246 | sparclite \ 1247 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \ 1248 | spu \ 1249 | tahoe \ 1250 | thumbv7* \ 1251 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \ 1252 | tron \ 1253 | ubicom32 \ 1254 | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \ 1255 | vax \ 1256 | visium \ 1257 | w65 \ 1258 | wasm32 | wasm64 \ 1259 | we32k \ 1260 | x86 | x86_64 | xc16x | xgate | xps100 \ 1261 | xstormy16 | xtensa* \ 1262 | ymp \ 1263 | z8k | z80) 1264 ;; 1265 1266 *) 1267 echo "Invalid configuration '$1': machine '$cpu-$vendor' not recognized" 1>&2 1268 exit 1 1269 ;; 786 1270 esac 787 1271 ;; 788 isi68 | isi) 789 basic_machine=m68k-isi 790 os=-sysv 791 ;; 792 leon-*|leon[3-9]-*) 793 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` 794 ;; 795 m68knommu) 796 basic_machine=m68k-unknown 797 os=-linux 798 ;; 799 m68knommu-*) 800 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` 801 os=-linux 802 ;; 803 magnum | m3230) 804 basic_machine=mips-mips 805 os=-sysv 806 ;; 807 merlin) 808 basic_machine=ns32k-utek 809 os=-sysv 810 ;; 811 microblaze*) 812 basic_machine=microblaze-xilinx 813 ;; 814 mingw64) 815 basic_machine=x86_64-pc 816 os=-mingw64 817 ;; 818 mingw32) 819 basic_machine=i686-pc 820 os=-mingw32 821 ;; 822 mingw32ce) 823 basic_machine=arm-unknown 824 os=-mingw32ce 825 ;; 826 miniframe) 827 basic_machine=m68000-convergent 828 ;; 829 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 830 basic_machine=m68k-atari 831 os=-mint 832 ;; 833 mips3*-*) 834 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` 835 ;; 836 mips3*) 837 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown 838 ;; 839 monitor) 840 basic_machine=m68k-rom68k 841 os=-coff 842 ;; 843 morphos) 844 basic_machine=powerpc-unknown 845 os=-morphos 846 ;; 847 moxiebox) 848 basic_machine=moxie-unknown 849 os=-moxiebox 850 ;; 851 msdos) 852 basic_machine=i386-pc 853 os=-msdos 854 ;; 855 ms1-*) 856 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` 857 ;; 858 msys) 859 basic_machine=i686-pc 860 os=-msys 861 ;; 862 mvs) 863 basic_machine=i370-ibm 864 os=-mvs 865 ;; 866 nacl) 867 basic_machine=le32-unknown 868 os=-nacl 869 ;; 870 ncr3000) 871 basic_machine=i486-ncr 872 os=-sysv4 873 ;; 874 netbsd386) 875 basic_machine=i386-unknown 876 os=-netbsd 877 ;; 878 netwinder) 879 basic_machine=armv4l-rebel 880 os=-linux 881 ;; 882 news | news700 | news800 | news900) 883 basic_machine=m68k-sony 884 os=-newsos 885 ;; 886 news1000) 887 basic_machine=m68030-sony 888 os=-newsos 889 ;; 890 news-3600 | risc-news) 891 basic_machine=mips-sony 892 os=-newsos 893 ;; 894 necv70) 895 basic_machine=v70-nec 896 os=-sysv 897 ;; 898 next | m*-next) 899 basic_machine=m68k-next 900 case $os in 901 -nextstep* ) 902 ;; 903 -ns2*) 904 os=-nextstep2 905 ;; 906 *) 907 os=-nextstep3 908 ;; 909 esac 910 ;; 911 nh3000) 912 basic_machine=m68k-harris 913 os=-cxux 914 ;; 915 nh[45]000) 916 basic_machine=m88k-harris 917 os=-cxux 918 ;; 919 nindy960) 920 basic_machine=i960-intel 921 os=-nindy 922 ;; 923 mon960) 924 basic_machine=i960-intel 925 os=-mon960 926 ;; 927 nonstopux) 928 basic_machine=mips-compaq 929 os=-nonstopux 930 ;; 931 np1) 932 basic_machine=np1-gould 933 ;; 934 neo-tandem) 935 basic_machine=neo-tandem 936 ;; 937 nse-tandem) 938 basic_machine=nse-tandem 939 ;; 940 nsr-tandem) 941 basic_machine=nsr-tandem 942 ;; 943 nsv-tandem) 944 basic_machine=nsv-tandem 945 ;; 946 nsx-tandem) 947 basic_machine=nsx-tandem 948 ;; 949 op50n-* | op60c-*) 950 basic_machine=hppa1.1-oki 951 os=-proelf 952 ;; 953 openrisc | openrisc-*) 954 basic_machine=or32-unknown 955 ;; 956 os400) 957 basic_machine=powerpc-ibm 958 os=-os400 959 ;; 960 OSE68000 | ose68000) 961 basic_machine=m68000-ericsson 962 os=-ose 963 ;; 964 os68k) 965 basic_machine=m68k-none 966 os=-os68k 967 ;; 968 pa-hitachi) 969 basic_machine=hppa1.1-hitachi 970 os=-hiuxwe2 971 ;; 972 paragon) 973 basic_machine=i860-intel 974 os=-osf 975 ;; 976 parisc) 977 basic_machine=hppa-unknown 978 os=-linux 979 ;; 980 parisc-*) 981 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` 982 os=-linux 983 ;; 984 pbd) 985 basic_machine=sparc-tti 986 ;; 987 pbb) 988 basic_machine=m68k-tti 989 ;; 990 pc532 | pc532-*) 991 basic_machine=ns32k-pc532 992 ;; 993 pc98) 994 basic_machine=i386-pc 995 ;; 996 pc98-*) 997 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` 998 ;; 999 pentium | p5 | k5 | k6 | nexgen | viac3) 1000 basic_machine=i586-pc 1001 ;; 1002 pentiumpro | p6 | 6x86 | athlon | athlon_*) 1003 basic_machine=i686-pc 1004 ;; 1005 pentiumii | pentium2 | pentiumiii | pentium3) 1006 basic_machine=i686-pc 1007 ;; 1008 pentium4) 1009 basic_machine=i786-pc 1010 ;; 1011 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) 1012 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1013 ;; 1014 pentiumpro-* | p6-* | 6x86-* | athlon-*) 1015 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1016 ;; 1017 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) 1018 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1019 ;; 1020 pentium4-*) 1021 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1022 ;; 1023 pn) 1024 basic_machine=pn-gould 1025 ;; 1026 power) basic_machine=power-ibm 1027 ;; 1028 ppc | ppcbe) basic_machine=powerpc-unknown 1029 ;; 1030 ppc-* | ppcbe-*) 1031 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1032 ;; 1033 ppcle | powerpclittle) 1034 basic_machine=powerpcle-unknown 1035 ;; 1036 ppcle-* | powerpclittle-*) 1037 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1038 ;; 1039 ppc64) basic_machine=powerpc64-unknown 1040 ;; 1041 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1042 ;; 1043 ppc64le | powerpc64little) 1044 basic_machine=powerpc64le-unknown 1045 ;; 1046 ppc64le-* | powerpc64little-*) 1047 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1048 ;; 1049 ps2) 1050 basic_machine=i386-ibm 1051 ;; 1052 pw32) 1053 basic_machine=i586-unknown 1054 os=-pw32 1055 ;; 1056 rdos | rdos64) 1057 basic_machine=x86_64-pc 1058 os=-rdos 1059 ;; 1060 rdos32) 1061 basic_machine=i386-pc 1062 os=-rdos 1063 ;; 1064 rom68k) 1065 basic_machine=m68k-rom68k 1066 os=-coff 1067 ;; 1068 rm[46]00) 1069 basic_machine=mips-siemens 1070 ;; 1071 rtpc | rtpc-*) 1072 basic_machine=romp-ibm 1073 ;; 1074 s390 | s390-*) 1075 basic_machine=s390-ibm 1076 ;; 1077 s390x | s390x-*) 1078 basic_machine=s390x-ibm 1079 ;; 1080 sa29200) 1081 basic_machine=a29k-amd 1082 os=-udi 1083 ;; 1084 sb1) 1085 basic_machine=mipsisa64sb1-unknown 1086 ;; 1087 sb1el) 1088 basic_machine=mipsisa64sb1el-unknown 1089 ;; 1090 sde) 1091 basic_machine=mipsisa32-sde 1092 os=-elf 1093 ;; 1094 sei) 1095 basic_machine=mips-sei 1096 os=-seiux 1097 ;; 1098 sequent) 1099 basic_machine=i386-sequent 1100 ;; 1101 sh5el) 1102 basic_machine=sh5le-unknown 1103 ;; 1104 simso-wrs) 1105 basic_machine=sparclite-wrs 1106 os=-vxworks 1107 ;; 1108 sps7) 1109 basic_machine=m68k-bull 1110 os=-sysv2 1111 ;; 1112 spur) 1113 basic_machine=spur-unknown 1114 ;; 1115 st2000) 1116 basic_machine=m68k-tandem 1117 ;; 1118 stratus) 1119 basic_machine=i860-stratus 1120 os=-sysv4 1121 ;; 1122 strongarm-* | thumb-*) 1123 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` 1124 ;; 1125 sun2) 1126 basic_machine=m68000-sun 1127 ;; 1128 sun2os3) 1129 basic_machine=m68000-sun 1130 os=-sunos3 1131 ;; 1132 sun2os4) 1133 basic_machine=m68000-sun 1134 os=-sunos4 1135 ;; 1136 sun3os3) 1137 basic_machine=m68k-sun 1138 os=-sunos3 1139 ;; 1140 sun3os4) 1141 basic_machine=m68k-sun 1142 os=-sunos4 1143 ;; 1144 sun4os3) 1145 basic_machine=sparc-sun 1146 os=-sunos3 1147 ;; 1148 sun4os4) 1149 basic_machine=sparc-sun 1150 os=-sunos4 1151 ;; 1152 sun4sol2) 1153 basic_machine=sparc-sun 1154 os=-solaris2 1155 ;; 1156 sun3 | sun3-*) 1157 basic_machine=m68k-sun 1158 ;; 1159 sun4) 1160 basic_machine=sparc-sun 1161 ;; 1162 sun386 | sun386i | roadrunner) 1163 basic_machine=i386-sun 1164 ;; 1165 sv1) 1166 basic_machine=sv1-cray 1167 os=-unicos 1168 ;; 1169 symmetry) 1170 basic_machine=i386-sequent 1171 os=-dynix 1172 ;; 1173 t3e) 1174 basic_machine=alphaev5-cray 1175 os=-unicos 1176 ;; 1177 t90) 1178 basic_machine=t90-cray 1179 os=-unicos 1180 ;; 1181 tile*) 1182 basic_machine=$basic_machine-unknown 1183 os=-linux-gnu 1184 ;; 1185 tx39) 1186 basic_machine=mipstx39-unknown 1187 ;; 1188 tx39el) 1189 basic_machine=mipstx39el-unknown 1190 ;; 1191 toad1) 1192 basic_machine=pdp10-xkl 1193 os=-tops20 1194 ;; 1195 tower | tower-32) 1196 basic_machine=m68k-ncr 1197 ;; 1198 tpf) 1199 basic_machine=s390x-ibm 1200 os=-tpf 1201 ;; 1202 udi29k) 1203 basic_machine=a29k-amd 1204 os=-udi 1205 ;; 1206 ultra3) 1207 basic_machine=a29k-nyu 1208 os=-sym1 1209 ;; 1210 v810 | necv810) 1211 basic_machine=v810-nec 1212 os=-none 1213 ;; 1214 vaxv) 1215 basic_machine=vax-dec 1216 os=-sysv 1217 ;; 1218 vms) 1219 basic_machine=vax-dec 1220 os=-vms 1221 ;; 1222 vpp*|vx|vx-*) 1223 basic_machine=f301-fujitsu 1224 ;; 1225 vxworks960) 1226 basic_machine=i960-wrs 1227 os=-vxworks 1228 ;; 1229 vxworks68) 1230 basic_machine=m68k-wrs 1231 os=-vxworks 1232 ;; 1233 vxworks29k) 1234 basic_machine=a29k-wrs 1235 os=-vxworks 1236 ;; 1237 w65*) 1238 basic_machine=w65-wdc 1239 os=-none 1240 ;; 1241 w89k-*) 1242 basic_machine=hppa1.1-winbond 1243 os=-proelf 1244 ;; 1245 x64) 1246 basic_machine=x86_64-pc 1247 ;; 1248 xbox) 1249 basic_machine=i686-pc 1250 os=-mingw32 1251 ;; 1252 xps | xps100) 1253 basic_machine=xps100-honeywell 1254 ;; 1255 xscale-* | xscalee[bl]-*) 1256 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` 1257 ;; 1258 ymp) 1259 basic_machine=ymp-cray 1260 os=-unicos 1261 ;; 1262 none) 1263 basic_machine=none-none 1264 os=-none 1265 ;; 1266 1267 # Here we handle the default manufacturer of certain CPU types. It is in 1268 # some cases the only manufacturer, in others, it is the most popular. 1269 w89k) 1270 basic_machine=hppa1.1-winbond 1271 ;; 1272 op50n) 1273 basic_machine=hppa1.1-oki 1274 ;; 1275 op60c) 1276 basic_machine=hppa1.1-oki 1277 ;; 1278 romp) 1279 basic_machine=romp-ibm 1280 ;; 1281 mmix) 1282 basic_machine=mmix-knuth 1283 ;; 1284 rs6000) 1285 basic_machine=rs6000-ibm 1286 ;; 1287 vax) 1288 basic_machine=vax-dec 1289 ;; 1290 pdp11) 1291 basic_machine=pdp11-dec 1292 ;; 1293 we32k) 1294 basic_machine=we32k-att 1295 ;; 1296 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) 1297 basic_machine=sh-unknown 1298 ;; 1299 cydra) 1300 basic_machine=cydra-cydrome 1301 ;; 1302 orion) 1303 basic_machine=orion-highlevel 1304 ;; 1305 orion105) 1306 basic_machine=clipper-highlevel 1307 ;; 1308 mac | mpw | mac-mpw) 1309 basic_machine=m68k-apple 1310 ;; 1311 pmac | pmac-mpw) 1312 basic_machine=powerpc-apple 1313 ;; 1314 *-unknown) 1315 # Make sure to match an already-canonicalized machine name. 1272 esac 1273 1274 # Here we canonicalize certain aliases for manufacturers. 1275 case $vendor in 1276 digital*) 1277 vendor=dec 1278 ;; 1279 commodore*) 1280 vendor=cbm 1316 1281 ;; 1317 1282 *) 1318 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&21319 exit 11320 1283 ;; 1321 1284 esac 1322 1285 1323 # Here we canonicalize certain aliases for manufacturers. 1324 case $basic_machine in 1325 *-digital*) 1326 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'` 1327 ;; 1328 *-commodore*) 1329 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'` 1286 # Decode manufacturer-specific aliases for certain operating systems. 1287 1288 if test x"$basic_os" != x 1289 then 1290 1291 # First recognize some ad-hoc cases, or perhaps split kernel-os, or else just 1292 # set os. 1293 obj= 1294 case $basic_os in 1295 gnu/linux*) 1296 kernel=linux 1297 os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'` 1298 ;; 1299 os2-emx) 1300 kernel=os2 1301 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'` 1302 ;; 1303 nto-qnx*) 1304 kernel=nto 1305 os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'` 1306 ;; 1307 *-*) 1308 # shellcheck disable=SC2162 1309 saved_IFS=$IFS 1310 IFS="-" read kernel os <<EOF 1311 $basic_os 1312 EOF 1313 IFS=$saved_IFS 1314 ;; 1315 # Default OS when just kernel was specified 1316 nto*) 1317 kernel=nto 1318 os=`echo "$basic_os" | sed -e 's|nto|qnx|'` 1319 ;; 1320 linux*) 1321 kernel=linux 1322 os=`echo "$basic_os" | sed -e 's|linux|gnu|'` 1323 ;; 1324 managarm*) 1325 kernel=managarm 1326 os=`echo "$basic_os" | sed -e 's|managarm|mlibc|'` 1330 1327 ;; 1331 1328 *) 1329 kernel= 1330 os=$basic_os 1332 1331 ;; 1333 1332 esac 1334 1333 1335 # Decode manufacturer-specific aliases for certain operating systems. 1336 1337 if [ x"$os" != x"" ] 1338 then 1334 # Now, normalize the OS (knowing we just have one component, it's not a kernel, 1335 # etc.) 1339 1336 case $os in 1340 1337 # First match some system type aliases that might get confused 1341 1338 # with valid system types. 1342 # -solaris* is a basic system type, with this one exception.1343 -auroraux)1344 os= -auroraux1345 ;; 1346 -solaris1 | -solaris1.*)1347 os= `echo $os | sed -e 's|solaris1|sunos4|'`1348 ;; 1349 -solaris)1350 os= -solaris21351 ;; 1352 -unixware*)1353 os= -sysv4.2uw1354 ;; 1355 -gnu/linux*)1356 os= `echo $os | sed -e 's|gnu/linux|linux-gnu|'`1339 # solaris* is a basic system type, with this one exception. 1340 auroraux) 1341 os=auroraux 1342 ;; 1343 bluegene*) 1344 os=cnk 1345 ;; 1346 solaris1 | solaris1.*) 1347 os=`echo "$os" | sed -e 's|solaris1|sunos4|'` 1348 ;; 1349 solaris) 1350 os=solaris2 1351 ;; 1352 unixware*) 1353 os=sysv4.2uw 1357 1354 ;; 1358 1355 # es1800 is here to avoid being matched by es* (a different OS) 1359 -es1800*) 1360 os=-ose 1361 ;; 1362 # Now accept the basic system types. 1363 # The portable systems comes first. 1364 # Each alternative MUST end in a * to match a version number. 1365 # -sysv* is not here because it comes later, after sysvr4. 1366 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 1367 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ 1368 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ 1369 | -sym* | -kopensolaris* | -plan9* \ 1370 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 1371 | -aos* | -aros* | -cloudabi* | -sortix* \ 1372 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1373 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1374 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \ 1375 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ 1376 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1377 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 1378 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 1379 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* | -hcos* \ 1380 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ 1381 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1382 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ 1383 | -linux-newlib* | -linux-musl* | -linux-uclibc* \ 1384 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ 1385 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \ 1386 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 1387 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 1388 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1389 | -morphos* | -superux* | -rtmk* | -windiss* \ 1390 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1391 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ 1392 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \ 1393 | -midnightbsd*) 1394 # Remember, each alternative MUST END IN *, to match a version number. 1395 ;; 1396 -qnx*) 1397 case $basic_machine in 1398 x86-* | i*86-*) 1399 ;; 1400 *) 1401 os=-nto$os 1402 ;; 1403 esac 1404 ;; 1405 -nto-qnx*) 1406 ;; 1407 -nto*) 1408 os=`echo $os | sed -e 's|nto|nto-qnx|'` 1409 ;; 1410 -sim | -xray | -os68k* | -v88r* \ 1411 | -windows* | -osx | -abug | -netware* | -os9* \ 1412 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1413 ;; 1414 -mac*) 1356 es1800*) 1357 os=ose 1358 ;; 1359 # Some version numbers need modification 1360 chorusos*) 1361 os=chorusos 1362 ;; 1363 isc) 1364 os=isc2.2 1365 ;; 1366 sco6) 1367 os=sco5v6 1368 ;; 1369 sco5) 1370 os=sco3.2v5 1371 ;; 1372 sco4) 1373 os=sco3.2v4 1374 ;; 1375 sco3.2.[4-9]*) 1376 os=`echo "$os" | sed -e 's/sco3.2./sco3.2v/'` 1377 ;; 1378 sco*v* | scout) 1379 # Don't match below 1380 ;; 1381 sco*) 1382 os=sco3.2v2 1383 ;; 1384 psos*) 1385 os=psos 1386 ;; 1387 qnx*) 1388 os=qnx 1389 ;; 1390 hiux*) 1391 os=hiuxwe2 1392 ;; 1393 lynx*178) 1394 os=lynxos178 1395 ;; 1396 lynx*5) 1397 os=lynxos5 1398 ;; 1399 lynxos*) 1400 # don't get caught up in next wildcard 1401 ;; 1402 lynx*) 1403 os=lynxos 1404 ;; 1405 mac[0-9]*) 1415 1406 os=`echo "$os" | sed -e 's|mac|macos|'` 1416 1407 ;; 1417 -linux-dietlibc)1418 os= -linux-dietlibc1419 ;; 1420 -linux*)1421 os= `echo $os | sed -e 's|linux|linux-gnu|'`1422 ;; 1423 -sunos5*)1408 opened*) 1409 os=openedition 1410 ;; 1411 os400*) 1412 os=os400 1413 ;; 1414 sunos5*) 1424 1415 os=`echo "$os" | sed -e 's|sunos5|solaris2|'` 1425 1416 ;; 1426 -sunos6*)1417 sunos6*) 1427 1418 os=`echo "$os" | sed -e 's|sunos6|solaris3|'` 1428 1419 ;; 1429 -opened*) 1430 os=-openedition 1431 ;; 1432 -os400*) 1433 os=-os400 1434 ;; 1435 -wince*) 1436 os=-wince 1437 ;; 1438 -utek*) 1439 os=-bsd 1440 ;; 1441 -dynix*) 1442 os=-bsd 1443 ;; 1444 -acis*) 1445 os=-aos 1446 ;; 1447 -atheos*) 1448 os=-atheos 1449 ;; 1450 -syllable*) 1451 os=-syllable 1452 ;; 1453 -386bsd) 1454 os=-bsd 1455 ;; 1456 -ctix* | -uts*) 1457 os=-sysv 1458 ;; 1459 -nova*) 1460 os=-rtmk-nova 1461 ;; 1462 -ns2) 1463 os=-nextstep2 1464 ;; 1465 -nsk*) 1466 os=-nsk 1420 wince*) 1421 os=wince 1422 ;; 1423 utek*) 1424 os=bsd 1425 ;; 1426 dynix*) 1427 os=bsd 1428 ;; 1429 acis*) 1430 os=aos 1431 ;; 1432 atheos*) 1433 os=atheos 1434 ;; 1435 syllable*) 1436 os=syllable 1437 ;; 1438 386bsd) 1439 os=bsd 1440 ;; 1441 ctix* | uts*) 1442 os=sysv 1443 ;; 1444 nova*) 1445 os=rtmk-nova 1446 ;; 1447 ns2) 1448 os=nextstep2 1467 1449 ;; 1468 1450 # Preserve the version number of sinix5. 1469 -sinix5.*) 1470 os=`echo $os | sed -e 's|sinix|sysv|'` 1471 ;; 1472 -sinix*) 1473 os=-sysv4 1474 ;; 1475 -tpf*) 1476 os=-tpf 1477 ;; 1478 -triton*) 1479 os=-sysv3 1480 ;; 1481 -oss*) 1482 os=-sysv3 1483 ;; 1484 -svr4*) 1485 os=-sysv4 1486 ;; 1487 -svr3) 1488 os=-sysv3 1489 ;; 1490 -sysvr4) 1491 os=-sysv4 1492 ;; 1493 # This must come after -sysvr4. 1494 -sysv*) 1495 ;; 1496 -ose*) 1497 os=-ose 1498 ;; 1499 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 1500 os=-mint 1501 ;; 1502 -zvmoe) 1503 os=-zvmoe 1504 ;; 1505 -dicos*) 1506 os=-dicos 1507 ;; 1508 -pikeos*) 1451 sinix5.*) 1452 os=`echo "$os" | sed -e 's|sinix|sysv|'` 1453 ;; 1454 sinix*) 1455 os=sysv4 1456 ;; 1457 tpf*) 1458 os=tpf 1459 ;; 1460 triton*) 1461 os=sysv3 1462 ;; 1463 oss*) 1464 os=sysv3 1465 ;; 1466 svr4*) 1467 os=sysv4 1468 ;; 1469 svr3) 1470 os=sysv3 1471 ;; 1472 sysvr4) 1473 os=sysv4 1474 ;; 1475 ose*) 1476 os=ose 1477 ;; 1478 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) 1479 os=mint 1480 ;; 1481 dicos*) 1482 os=dicos 1483 ;; 1484 pikeos*) 1509 1485 # Until real need of OS specific support for 1510 1486 # particular features comes up, bare metal 1511 1487 # configurations are quite functional. 1512 case $ basic_machinein1488 case $cpu in 1513 1489 arm*) 1514 os= -eabi1490 os=eabi 1515 1491 ;; 1516 1492 *) 1517 os=-elf 1493 os= 1494 obj=elf 1518 1495 ;; 1519 1496 esac 1520 1497 ;; 1521 -nacl*) 1522 ;; 1523 -ios) 1524 ;; 1525 -none) 1498 aout* | coff* | elf* | pe*) 1499 # These are machine code file formats, not OSes 1500 obj=$os 1501 os= 1526 1502 ;; 1527 1503 *) 1528 # Get rid of the `-' at the beginning of $os. 1529 os=`echo $os | sed 's/[^-]*-//'` 1530 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 1531 exit 1 1504 # No normalization, but not necessarily accepted, that comes below. 1532 1505 ;; 1533 1506 esac 1507 1534 1508 else 1535 1509 … … 1544 1518 # system, and we'll never get to this point. 1545 1519 1546 case $basic_machine in 1520 kernel= 1521 obj= 1522 case $cpu-$vendor in 1547 1523 score-*) 1548 os=-elf 1524 os= 1525 obj=elf 1549 1526 ;; 1550 1527 spu-*) 1551 os=-elf 1528 os= 1529 obj=elf 1552 1530 ;; 1553 1531 *-acorn) 1554 os= -riscix1.21532 os=riscix1.2 1555 1533 ;; 1556 1534 arm*-rebel) 1557 os=-linux 1535 kernel=linux 1536 os=gnu 1558 1537 ;; 1559 1538 arm*-semi) 1560 os=-aout 1539 os= 1540 obj=aout 1561 1541 ;; 1562 1542 c4x-* | tic4x-*) 1563 os=-coff 1543 os= 1544 obj=coff 1564 1545 ;; 1565 1546 c8051-*) 1566 os=-elf 1547 os= 1548 obj=elf 1549 ;; 1550 clipper-intergraph) 1551 os=clix 1567 1552 ;; 1568 1553 hexagon-*) 1569 os=-elf 1554 os= 1555 obj=elf 1570 1556 ;; 1571 1557 tic54x-*) 1572 os=-coff 1558 os= 1559 obj=coff 1573 1560 ;; 1574 1561 tic55x-*) 1575 os=-coff 1562 os= 1563 obj=coff 1576 1564 ;; 1577 1565 tic6x-*) 1578 os=-coff 1566 os= 1567 obj=coff 1579 1568 ;; 1580 1569 # This must come before the *-dec entry. 1581 1570 pdp10-*) 1582 os= -tops201571 os=tops20 1583 1572 ;; 1584 1573 pdp11-*) 1585 os= -none1574 os=none 1586 1575 ;; 1587 1576 *-dec | vax-*) 1588 os= -ultrix4.21577 os=ultrix4.2 1589 1578 ;; 1590 1579 m68*-apollo) 1591 os= -domain1580 os=domain 1592 1581 ;; 1593 1582 i386-sun) 1594 os= -sunos4.0.21583 os=sunos4.0.2 1595 1584 ;; 1596 1585 m68000-sun) 1597 os= -sunos31586 os=sunos3 1598 1587 ;; 1599 1588 m68*-cisco) 1600 os=-aout 1589 os= 1590 obj=aout 1601 1591 ;; 1602 1592 mep-*) 1603 os=-elf 1593 os= 1594 obj=elf 1604 1595 ;; 1605 1596 mips*-cisco) 1606 os=-elf 1597 os= 1598 obj=elf 1607 1599 ;; 1608 1600 mips*-*) 1609 os=-elf 1601 os= 1602 obj=elf 1610 1603 ;; 1611 1604 or32-*) 1612 os=-coff 1605 os= 1606 obj=coff 1613 1607 ;; 1614 1608 *-tti) # must be before sparc entry or we get the wrong os. 1615 os= -sysv31609 os=sysv3 1616 1610 ;; 1617 1611 sparc-* | *-sun) 1618 os= -sunos4.1.11612 os=sunos4.1.1 1619 1613 ;; 1620 1614 pru-*) 1621 os=-elf 1615 os= 1616 obj=elf 1622 1617 ;; 1623 1618 *-be) 1624 os= -beos1619 os=beos 1625 1620 ;; 1626 1621 *-ibm) 1627 os= -aix1622 os=aix 1628 1623 ;; 1629 1624 *-knuth) 1630 os= -mmixware1625 os=mmixware 1631 1626 ;; 1632 1627 *-wec) 1633 os= -proelf1628 os=proelf 1634 1629 ;; 1635 1630 *-winbond) 1636 os= -proelf1631 os=proelf 1637 1632 ;; 1638 1633 *-oki) 1639 os= -proelf1634 os=proelf 1640 1635 ;; 1641 1636 *-hp) 1642 os= -hpux1637 os=hpux 1643 1638 ;; 1644 1639 *-hitachi) 1645 os= -hiux1640 os=hiux 1646 1641 ;; 1647 1642 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 1648 os= -sysv1643 os=sysv 1649 1644 ;; 1650 1645 *-cbm) 1651 os= -amigaos1646 os=amigaos 1652 1647 ;; 1653 1648 *-dg) 1654 os= -dgux1649 os=dgux 1655 1650 ;; 1656 1651 *-dolphin) 1657 os= -sysv31652 os=sysv3 1658 1653 ;; 1659 1654 m68k-ccur) 1660 os= -rtu1655 os=rtu 1661 1656 ;; 1662 1657 m88k-omron*) 1663 os= -luna1658 os=luna 1664 1659 ;; 1665 1660 *-next) 1666 os= -nextstep1661 os=nextstep 1667 1662 ;; 1668 1663 *-sequent) 1669 os= -ptx1664 os=ptx 1670 1665 ;; 1671 1666 *-crds) 1672 os= -unos1667 os=unos 1673 1668 ;; 1674 1669 *-ns) 1675 os= -genix1670 os=genix 1676 1671 ;; 1677 1672 i370-*) 1678 os= -mvs1673 os=mvs 1679 1674 ;; 1680 1675 *-gould) 1681 os= -sysv1676 os=sysv 1682 1677 ;; 1683 1678 *-highlevel) 1684 os= -bsd1679 os=bsd 1685 1680 ;; 1686 1681 *-encore) 1687 os= -bsd1682 os=bsd 1688 1683 ;; 1689 1684 *-sgi) 1690 os= -irix1685 os=irix 1691 1686 ;; 1692 1687 *-siemens) 1693 os= -sysv41688 os=sysv4 1694 1689 ;; 1695 1690 *-masscomp) 1696 os= -rtu1691 os=rtu 1697 1692 ;; 1698 1693 f30[01]-fujitsu | f700-fujitsu) 1699 os= -uxpv1694 os=uxpv 1700 1695 ;; 1701 1696 *-rom68k) 1702 os=-coff 1697 os= 1698 obj=coff 1703 1699 ;; 1704 1700 *-*bug) 1705 os=-coff 1701 os= 1702 obj=coff 1706 1703 ;; 1707 1704 *-apple) 1708 os= -macos1705 os=macos 1709 1706 ;; 1710 1707 *-atari*) 1711 os=-mint 1708 os=mint 1709 ;; 1710 *-wrs) 1711 os=vxworks 1712 1712 ;; 1713 1713 *) 1714 os= -none1714 os=none 1715 1715 ;; 1716 1716 esac 1717 1717 1718 fi 1719 1720 # Now, validate our (potentially fixed-up) individual pieces (OS, OBJ). 1721 1722 case $os in 1723 # Sometimes we do "kernel-libc", so those need to count as OSes. 1724 musl* | newlib* | relibc* | uclibc*) 1725 ;; 1726 # Likewise for "kernel-abi" 1727 eabi* | gnueabi*) 1728 ;; 1729 # VxWorks passes extra cpu info in the 4th filed. 1730 simlinux | simwindows | spe) 1731 ;; 1732 # See `case $cpu-$os` validation below 1733 ghcjs) 1734 ;; 1735 # Now accept the basic system types. 1736 # The portable systems comes first. 1737 # Each alternative MUST end in a * to match a version number. 1738 gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ 1739 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ 1740 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ 1741 | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ 1742 | hiux* | abug | nacl* | netware* | windows* \ 1743 | os9* | macos* | osx* | ios* | tvos* | watchos* \ 1744 | mpw* | magic* | mmixware* | mon960* | lnews* \ 1745 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ 1746 | aos* | aros* | cloudabi* | sortix* | twizzler* \ 1747 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \ 1748 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \ 1749 | mirbsd* | netbsd* | dicos* | openedition* | ose* \ 1750 | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \ 1751 | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \ 1752 | bosx* | nextstep* | cxux* | oabi* \ 1753 | ptx* | ecoff* | winnt* | domain* | vsta* \ 1754 | udi* | lites* | ieee* | go32* | aux* | hcos* \ 1755 | chorusrdb* | cegcc* | glidix* | serenity* \ 1756 | cygwin* | msys* | moss* | proelf* | rtems* \ 1757 | midipix* | mingw32* | mingw64* | mint* \ 1758 | uxpv* | beos* | mpeix* | udk* | moxiebox* \ 1759 | interix* | uwin* | mks* | rhapsody* | darwin* \ 1760 | openstep* | oskit* | conix* | pw32* | nonstopux* \ 1761 | storm-chaos* | tops10* | tenex* | tops20* | its* \ 1762 | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \ 1763 | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \ 1764 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \ 1765 | skyos* | haiku* | rdos* | toppers* | drops* | es* \ 1766 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ 1767 | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ 1768 | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ 1769 | fiwix* | mlibc* | cos* | mbr* ) 1770 ;; 1771 # This one is extra strict with allowed versions 1772 sco3.2v2 | sco3.2v[4-9]* | sco5v6*) 1773 # Don't forget version if it is 3.2v4 or newer. 1774 ;; 1775 none) 1776 ;; 1777 kernel* | msvc* ) 1778 # Restricted further below 1779 ;; 1780 '') 1781 if test x"$obj" = x 1782 then 1783 echo "Invalid configuration '$1': Blank OS only allowed with explicit machine code file format" 1>&2 1784 fi 1785 ;; 1786 *) 1787 echo "Invalid configuration '$1': OS '$os' not recognized" 1>&2 1788 exit 1 1789 ;; 1790 esac 1791 1792 case $obj in 1793 aout* | coff* | elf* | pe*) 1794 ;; 1795 '') 1796 # empty is fine 1797 ;; 1798 *) 1799 echo "Invalid configuration '$1': Machine code format '$obj' not recognized" 1>&2 1800 exit 1 1801 ;; 1802 esac 1803 1804 # Here we handle the constraint that a (synthetic) cpu and os are 1805 # valid only in combination with each other and nowhere else. 1806 case $cpu-$os in 1807 # The "javascript-unknown-ghcjs" triple is used by GHC; we 1808 # accept it here in order to tolerate that, but reject any 1809 # variations. 1810 javascript-ghcjs) 1811 ;; 1812 javascript-* | *-ghcjs) 1813 echo "Invalid configuration '$1': cpu '$cpu' is not valid with os '$os$obj'" 1>&2 1814 exit 1 1815 ;; 1816 esac 1817 1818 # As a final step for OS-related things, validate the OS-kernel combination 1819 # (given a valid OS), if there is a kernel. 1820 case $kernel-$os-$obj in 1821 linux-gnu*- | linux-dietlibc*- | linux-android*- | linux-newlib*- \ 1822 | linux-musl*- | linux-relibc*- | linux-uclibc*- | linux-mlibc*- ) 1823 ;; 1824 uclinux-uclibc*- ) 1825 ;; 1826 managarm-mlibc*- | managarm-kernel*- ) 1827 ;; 1828 windows*-msvc*-) 1829 ;; 1830 -dietlibc*- | -newlib*- | -musl*- | -relibc*- | -uclibc*- | -mlibc*- ) 1831 # These are just libc implementations, not actual OSes, and thus 1832 # require a kernel. 1833 echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2 1834 exit 1 1835 ;; 1836 -kernel*- ) 1837 echo "Invalid configuration '$1': '$os' needs explicit kernel." 1>&2 1838 exit 1 1839 ;; 1840 *-kernel*- ) 1841 echo "Invalid configuration '$1': '$kernel' does not support '$os'." 1>&2 1842 exit 1 1843 ;; 1844 *-msvc*- ) 1845 echo "Invalid configuration '$1': '$os' needs 'windows'." 1>&2 1846 exit 1 1847 ;; 1848 kfreebsd*-gnu*- | kopensolaris*-gnu*-) 1849 ;; 1850 vxworks-simlinux- | vxworks-simwindows- | vxworks-spe-) 1851 ;; 1852 nto-qnx*-) 1853 ;; 1854 os2-emx-) 1855 ;; 1856 *-eabi*- | *-gnueabi*-) 1857 ;; 1858 none--*) 1859 # None (no kernel, i.e. freestanding / bare metal), 1860 # can be paired with an machine code file format 1861 ;; 1862 -*-) 1863 # Blank kernel with real OS is always fine. 1864 ;; 1865 --*) 1866 # Blank kernel and OS with real machine code file format is always fine. 1867 ;; 1868 *-*-*) 1869 echo "Invalid configuration '$1': Kernel '$kernel' not known to work with OS '$os'." 1>&2 1870 exit 1 1871 ;; 1872 esac 1718 1873 1719 1874 # Here we handle the case where we know the os, and the CPU type, but not the 1720 1875 # manufacturer. We pick the logical manufacturer. 1721 vendor=unknown 1722 case $basic_machine in 1723 *-unknown) 1724 case $os in 1725 -riscix*) 1876 case $vendor in 1877 unknown) 1878 case $cpu-$os in 1879 *-riscix*) 1726 1880 vendor=acorn 1727 1881 ;; 1728 -sunos*)1882 *-sunos*) 1729 1883 vendor=sun 1730 1884 ;; 1731 -cnk*|-aix*)1885 *-cnk* | *-aix*) 1732 1886 vendor=ibm 1733 1887 ;; 1734 -beos*)1888 *-beos*) 1735 1889 vendor=be 1736 1890 ;; 1737 -hpux*)1891 *-hpux*) 1738 1892 vendor=hp 1739 1893 ;; 1740 -mpeix*)1894 *-mpeix*) 1741 1895 vendor=hp 1742 1896 ;; 1743 -hiux*)1897 *-hiux*) 1744 1898 vendor=hitachi 1745 1899 ;; 1746 -unos*)1900 *-unos*) 1747 1901 vendor=crds 1748 1902 ;; 1749 -dgux*)1903 *-dgux*) 1750 1904 vendor=dg 1751 1905 ;; 1752 -luna*)1906 *-luna*) 1753 1907 vendor=omron 1754 1908 ;; 1755 -genix*)1909 *-genix*) 1756 1910 vendor=ns 1757 1911 ;; 1758 -mvs* | -opened*) 1912 *-clix*) 1913 vendor=intergraph 1914 ;; 1915 *-mvs* | *-opened*) 1759 1916 vendor=ibm 1760 1917 ;; 1761 -os400*)1918 *-os400*) 1762 1919 vendor=ibm 1763 1920 ;; 1764 -ptx*) 1921 s390-* | s390x-*) 1922 vendor=ibm 1923 ;; 1924 *-ptx*) 1765 1925 vendor=sequent 1766 1926 ;; 1767 -tpf*)1927 *-tpf*) 1768 1928 vendor=ibm 1769 1929 ;; 1770 -vxsim* | -vxworks* |-windiss*)1930 *-vxsim* | *-vxworks* | *-windiss*) 1771 1931 vendor=wrs 1772 1932 ;; 1773 -aux*)1933 *-aux*) 1774 1934 vendor=apple 1775 1935 ;; 1776 -hms*)1936 *-hms*) 1777 1937 vendor=hitachi 1778 1938 ;; 1779 -mpw* |-macos*)1939 *-mpw* | *-macos*) 1780 1940 vendor=apple 1781 1941 ;; 1782 -*mint | -mint[0-9]* | -*MiNT |-MiNT[0-9]*)1942 *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*) 1783 1943 vendor=atari 1784 1944 ;; 1785 -vos*)1945 *-vos*) 1786 1946 vendor=stratus 1787 1947 ;; 1788 1948 esac 1789 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`1790 1949 ;; 1791 1950 esac 1792 1951 1793 echo "$ basic_machine$os"1952 echo "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}" 1794 1953 exit 1795 1954 -
trunk/src/libs/libpng-1.6.42/configure
r96425 r103316 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2. 69 for libpng 1.6.37.3 # Generated by GNU Autoconf 2.72 for libpng 1.6.42. 4 4 # 5 5 # Report bugs to <[email protected]>. 6 6 # 7 7 # 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9 # Inc. 9 10 # 10 11 # … … 17 18 # Be more Bourne compatible 18 19 DUALCASE=1; export DUALCASE # for MKS sh 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 20 22 emulate sh 21 23 NULLCMD=: … … 24 26 alias -g '${1+"$@"}'='"$@"' 25 27 setopt NO_GLOB_SUBST 26 else 27 case `(set -o) 2>/dev/null` in #(28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 28 30 *posix*) : 29 31 set -o posix ;; #( 30 32 *) : 31 33 ;; 32 esac 33 fi 34 35 34 esac ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 36 47 as_nl=' 37 48 ' 38 49 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 73 76 74 77 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then78 if ${PATH_SEPARATOR+false} :; then 76 79 PATH_SEPARATOR=: 77 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { … … 81 84 fi 82 85 83 84 # IFS85 # We need space, tab and new line, in precisely that order. Quoting is86 # there to prevent editors from complaining about space-tab.87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word88 # splitting by setting IFS to empty value.)89 IFS=" "" $as_nl"90 86 91 87 # Find who we are. Look in the path if we contain no directory separator. … … 97 93 do 98 94 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 101 done 102 102 IFS=$as_save_IFS … … 104 104 ;; 105 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND'106 # We did not find ourselves, most probably we were run as 'sh COMMAND' 107 107 # in which case we are not to be found in the path. 108 108 if test "x$as_myself" = x; then … … 110 110 fi 111 111 if test ! -f "$as_myself"; then 112 $as_echo"$as_myself: error: cannot find myself; rerun with an absolute file name" >&2112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 113 exit 1 114 114 fi 115 115 116 # Unset variables that we do not need and which cause bugs (e.g. in117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"118 # suppresses any "Segmentation fault" message there. '((' could119 # trigger a bug in pdksh 5.2.14.120 for as_var in BASH_ENV ENV MAIL MAILPATH121 do eval test x\${$as_var+set} = xset \122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :123 done124 PS1='$ '125 PS2='> '126 PS4='+ '127 128 # NLS nuisances.129 LC_ALL=C130 export LC_ALL131 LANGUAGE=C132 export LANGUAGE133 134 # CDPATH.135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH136 116 137 117 # Use a proper internal environment variable to ensure we don't fall … … 154 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 135 # Admittedly, this is quite paranoid, since all the known shells bail 156 # out after a failed `exec'.157 $as_echo"$0: could not re-execute with $CONFIG_SHELL" >&2158 as_fn_exit 255136 # out after a failed 'exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 159 139 fi 160 140 # We don't want this to propagate to other subprocesses. 161 141 { _as_can_reexec=; unset _as_can_reexec;} 162 142 if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144 then : 164 145 emulate sh 165 146 NULLCMD=: … … 168 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 150 setopt NO_GLOB_SUBST 170 else 171 case \`(set -o) 2>/dev/null\` in #(151 else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 172 153 *posix*) : 173 154 set -o posix ;; #( 174 155 *) : 175 156 ;; 157 esac ;; 176 158 esac 177 159 fi … … 188 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177 esac 194 178 fi 195 179 test x\$exitcode = x0 || exit 1 180 blah=\$(echo \$(echo blah)) 181 test x\"\$blah\" = xblah || exit 1 196 182 test -x / || exit 1" 197 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO … … 208 194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 196 if (eval "$as_required") 2>/dev/null 197 then : 211 198 as_have_required=yes 212 else 213 as_have_required=no 214 fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217 else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 199 else case e in #( 200 e) as_have_required=no ;; 201 esac 202 fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204 then : 205 206 else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219 208 as_found=false 220 209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221 210 do 222 211 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 224 217 as_found=: 225 218 case $as_dir in #( … … 227 220 for as_base in sh bash ksh sh5; do 228 221 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir /$as_base222 as_shell=$as_dir$as_base 230 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225 then : 232 226 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228 then : 234 229 break 2 235 230 fi … … 239 234 as_found=false 240 235 done 241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 236 IFS=$as_save_IFS 237 if $as_found 238 then : 239 240 else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243 then : 243 244 CONFIG_SHELL=$SHELL as_have_required=yes 244 fi; } 245 IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 245 fi ;; 246 esac 247 fi 248 249 250 if test "x$CONFIG_SHELL" != x 251 then : 249 252 export CONFIG_SHELL 250 253 # We cannot yet assume a decent shell, so we have to provide a … … 263 266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264 267 # Admittedly, this is quite paranoid, since all the known shells bail 265 # out after a failed `exec'.266 $as_echo"$0: could not re-execute with $CONFIG_SHELL" >&2268 # out after a failed 'exec'. 269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267 270 exit 255 268 271 fi 269 272 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 273 if test x$as_have_required = xno 274 then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 276 280 else 277 $as_echo"$0: Please tell [email protected] and281 printf "%s\n" "$0: Please tell [email protected] and 278 282 $0: [email protected] about your 279 283 $0: system, including any error possibly output before this … … 282 286 fi 283 287 exit 1 284 fi 288 fi ;; 289 esac 285 290 fi 286 291 fi … … 303 308 as_unset=as_fn_unset 304 309 310 305 311 # as_fn_set_status STATUS 306 312 # ----------------------- … … 334 340 while :; do 335 341 case $as_dir in #( 336 *\'*) as_qdir=` $as_echo"$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 343 *) as_qdir=$as_dir;; 338 344 esac … … 343 349 X"$as_dir" : 'X\(//\)$' \| \ 344 350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345 $as_echoX"$as_dir" |351 printf "%s\n" X"$as_dir" | 346 352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 353 s//\1/ … … 382 388 # repeated appends, instead of the typical quadratic growth present in naive 383 389 # implementations. 384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 391 then : 385 392 eval 'as_fn_append () 386 393 { 387 394 eval $1+=\$2 388 395 }' 389 else 390 as_fn_append ()396 else case e in #( 397 e) as_fn_append () 391 398 { 392 399 eval $1=\$$1\$2 393 } 400 } ;; 401 esac 394 402 fi # as_fn_append 395 403 … … 399 407 # global $as_val. Take advantage of shells that can avoid forks. The arguments 400 408 # must be portable across $(()) and expr. 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 410 then : 402 411 eval 'as_fn_arith () 403 412 { 404 413 as_val=$(( $* )) 405 414 }' 406 else 407 as_fn_arith ()415 else case e in #( 416 e) as_fn_arith () 408 417 { 409 418 as_val=`expr "$@" || test $? -eq 1` 410 } 419 } ;; 420 esac 411 421 fi # as_fn_arith 412 422 … … 422 432 if test "$4"; then 423 433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo"$as_me:${as_lineno-$LINENO}: error: $2" >&$4434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 435 fi 426 $as_echo"$as_me: error: $2" >&2436 printf "%s\n" "$as_me: error: $2" >&2 427 437 as_fn_exit $as_status 428 438 } # as_fn_error … … 451 461 X"$0" : 'X\(//\)$' \| \ 452 462 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453 $as_echoX/"$0" |463 printf "%s\n" X/"$0" | 454 464 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 465 s//\1/ … … 484 494 ' <$as_myself | 485 495 sed ' 496 t clear 497 :clear 486 498 s/[$]LINENO.*/&-/ 487 499 t lineno … … 495 507 ' >$as_me.lineno && 496 508 chmod +x "$as_me.lineno" || 497 { $as_echo"$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 510 499 511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have … … 509 521 } 510 522 523 524 # Determine whether it's possible to make 'echo' print without a newline. 525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 526 # for compatibility with existing Makefiles. 511 527 ECHO_C= ECHO_N= ECHO_T= 512 528 case `echo -n x` in #((((( … … 522 538 esac 523 539 540 # For backward compatibility with old third-party macros, we provide 541 # the shell variables $as_echo and $as_echo_n. New code should use 542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 543 as_echo='printf %s\n' 544 as_echo_n='printf %s' 545 524 546 rm -f conf$$ conf$$.exe conf$$.file 525 547 if test -d conf$$.dir; then … … 533 555 as_ln_s='ln -s' 534 556 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.537 # In both cases, we have to default to `cp -pR'.557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 559 # In both cases, we have to default to 'cp -pR'. 538 560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 561 as_ln_s='cp -pR' … … 560 582 561 583 # Sed expression to map a string onto a valid CPP name. 562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 563 586 564 587 # Sed expression to map a string onto a valid variable name. 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 566 590 567 591 SHELL=${CONFIG_SHELL-/bin/sh} … … 591 615 PACKAGE_NAME='libpng' 592 616 PACKAGE_TARNAME='libpng' 593 PACKAGE_VERSION='1.6. 37'594 PACKAGE_STRING='libpng 1.6. 37'617 PACKAGE_VERSION='1.6.42' 618 PACKAGE_STRING='libpng 1.6.42' 595 619 PACKAGE_BUGREPORT='[email protected]' 596 620 PACKAGE_URL='' … … 599 623 # Factoring default headers for most tests. 600 624 ac_includes_default="\ 601 #include <std io.h>602 #ifdef HAVE_S YS_TYPES_H603 # include <s ys/types.h>625 #include <stddef.h> 626 #ifdef HAVE_STDIO_H 627 # include <stdio.h> 604 628 #endif 605 #ifdef HAVE_SYS_STAT_H 606 # include <sys/stat.h> 607 #endif 608 #ifdef STDC_HEADERS 629 #ifdef HAVE_STDLIB_H 609 630 # include <stdlib.h> 610 # include <stddef.h>611 #else612 # ifdef HAVE_STDLIB_H613 # include <stdlib.h>614 # endif615 631 #endif 616 632 #ifdef HAVE_STRING_H 617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H618 # include <memory.h>619 # endif620 633 # include <string.h> 621 #endif622 #ifdef HAVE_STRINGS_H623 # include <strings.h>624 634 #endif 625 635 #ifdef HAVE_INTTYPES_H … … 629 639 # include <stdint.h> 630 640 #endif 641 #ifdef HAVE_STRINGS_H 642 # include <strings.h> 643 #endif 644 #ifdef HAVE_SYS_TYPES_H 645 # include <sys/types.h> 646 #endif 647 #ifdef HAVE_SYS_STAT_H 648 # include <sys/stat.h> 649 #endif 631 650 #ifdef HAVE_UNISTD_H 632 651 # include <unistd.h> 633 652 #endif" 634 653 654 ac_header_c_list= 635 655 ac_subst_vars='am__EXEEXT_FALSE 636 656 am__EXEEXT_TRUE 637 657 LTLIBOBJS 658 LIBOBJS 659 PNG_LOONGARCH_LSX_FALSE 660 PNG_LOONGARCH_LSX_TRUE 638 661 PNG_POWERPC_VSX_FALSE 639 662 PNG_POWERPC_VSX_TRUE 640 663 PNG_INTEL_SSE_FALSE 641 664 PNG_INTEL_SSE_TRUE 665 PNG_MIPS_MMI_FALSE 666 PNG_MIPS_MMI_TRUE 642 667 PNG_MIPS_MSA_FALSE 643 668 PNG_MIPS_MSA_TRUE … … 666 691 HAVE_CLOCK_GETTIME_FALSE 667 692 HAVE_CLOCK_GETTIME_TRUE 668 LIBOBJS669 POW_LIB670 693 PNG_COPTS 694 ENABLE_TOOLS_FALSE 695 ENABLE_TOOLS_TRUE 696 ENABLE_TESTS_FALSE 697 ENABLE_TESTS_TRUE 671 698 DFNCPP 672 699 LT_SYS_LIBRARY_PATH … … 680 707 ac_ct_AR 681 708 AR 709 FILECMD 682 710 NM 683 711 ac_ct_DUMPBIN … … 730 758 AM_DEFAULT_V 731 759 AM_V 760 CSCOPE 761 ETAGS 762 CTAGS 732 763 am__untar 733 764 am__tar … … 772 803 oldincludedir 773 804 includedir 805 runstatedir 774 806 localstatedir 775 807 sharedstatedir … … 806 838 with_sysroot 807 839 enable_libtool_lock 840 enable_tests 841 enable_tools 808 842 enable_werror 809 843 with_zlib_prefix … … 817 851 enable_arm_neon 818 852 enable_mips_msa 853 enable_mips_mmi 819 854 enable_intel_sse 820 855 enable_powerpc_vsx 856 enable_loongarch_lsx 821 857 ' 822 858 ac_precious_vars='build_alias … … 871 907 sharedstatedir='${prefix}/com' 872 908 localstatedir='${prefix}/var' 909 runstatedir='${localstatedir}/run' 873 910 includedir='${prefix}/include' 874 911 oldincludedir='/usr/include' … … 900 937 esac 901 938 902 # Accept the important Cygnus configure options, so we can diagnose typos.903 904 939 case $ac_dashdash$ac_option in 905 940 --) … … 942 977 # Reject names that are not valid shell variable names. 943 978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 944 as_fn_error $? "invalid feature name: $ac_useropt"979 as_fn_error $? "invalid feature name: '$ac_useropt'" 945 980 ac_useropt_orig=$ac_useropt 946 ac_useropt=` $as_echo"$ac_useropt" | sed 's/[-+.]/_/g'`981 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 947 982 case $ac_user_opts in 948 983 *" … … 968 1003 # Reject names that are not valid shell variable names. 969 1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 970 as_fn_error $? "invalid feature name: $ac_useropt"1005 as_fn_error $? "invalid feature name: '$ac_useropt'" 971 1006 ac_useropt_orig=$ac_useropt 972 ac_useropt=` $as_echo"$ac_useropt" | sed 's/[-+.]/_/g'`1007 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 973 1008 case $ac_user_opts in 974 1009 *" … … 1123 1158 silent=yes ;; 1124 1159 1160 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1161 | --runstate | --runstat | --runsta | --runst | --runs \ 1162 | --run | --ru | --r) 1163 ac_prev=runstatedir ;; 1164 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1165 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1166 | --run=* | --ru=* | --r=*) 1167 runstatedir=$ac_optarg ;; 1168 1125 1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1126 1170 ac_prev=sbindir ;; … … 1172 1216 # Reject names that are not valid shell variable names. 1173 1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1174 as_fn_error $? "invalid package name: $ac_useropt"1218 as_fn_error $? "invalid package name: '$ac_useropt'" 1175 1219 ac_useropt_orig=$ac_useropt 1176 ac_useropt=` $as_echo"$ac_useropt" | sed 's/[-+.]/_/g'`1220 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1177 1221 case $ac_user_opts in 1178 1222 *" … … 1188 1232 # Reject names that are not valid shell variable names. 1189 1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1190 as_fn_error $? "invalid package name: $ac_useropt"1234 as_fn_error $? "invalid package name: '$ac_useropt'" 1191 1235 ac_useropt_orig=$ac_useropt 1192 ac_useropt=` $as_echo"$ac_useropt" | sed 's/[-+.]/_/g'`1236 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1193 1237 case $ac_user_opts in 1194 1238 *" … … 1218 1262 x_libraries=$ac_optarg ;; 1219 1263 1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'1221 Try \`$0 --help' for more information"1264 -*) as_fn_error $? "unrecognized option: '$ac_option' 1265 Try '$0 --help' for more information" 1222 1266 ;; 1223 1267 … … 1227 1271 case $ac_envvar in #( 1228 1272 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;1273 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1230 1274 esac 1231 1275 eval $ac_envvar=\$ac_optarg … … 1234 1278 *) 1235 1279 # FIXME: should be removed in autoconf 3.0. 1236 $as_echo"$as_me: WARNING: you should use --build, --host, --target" >&21280 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1237 1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1238 $as_echo"$as_me: WARNING: invalid host type: $ac_option" >&21282 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1239 1283 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1240 1284 ;; … … 1252 1296 no) ;; 1253 1297 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1254 *) $as_echo"$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;1298 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1255 1299 esac 1256 1300 fi … … 1260 1304 datadir sysconfdir sharedstatedir localstatedir includedir \ 1261 1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1262 libdir localedir mandir 1306 libdir localedir mandir runstatedir 1263 1307 do 1264 1308 eval ac_val=\$$ac_var … … 1277 1321 done 1278 1322 1279 # There might be people who depend on the old broken behavior: `$host'1323 # There might be people who depend on the old broken behavior: '$host' 1280 1324 # used to hold the argument of --host etc. 1281 1325 # FIXME: To remove some day. … … 1316 1360 X"$as_myself" : 'X\(//\)$' \| \ 1317 1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1318 $as_echoX"$as_myself" |1362 printf "%s\n" X"$as_myself" | 1319 1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1320 1364 s//\1/ … … 1345 1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1346 1390 fi 1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"1391 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1348 1392 ac_abs_confdir=`( 1349 1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" … … 1373 1417 # This message is too long to be a string in the A/UX 3.1 sh. 1374 1418 cat <<_ACEOF 1375 \`configure' configures libpng 1.6.37to adapt to many kinds of systems.1419 'configure' configures libpng 1.6.42 to adapt to many kinds of systems. 1376 1420 1377 1421 Usage: $0 [OPTION]... [VAR=VALUE]... … … 1387 1431 --help=recursive display the short help of all the included packages 1388 1432 -V, --version display version information and exit 1389 -q, --quiet, --silent do not print \`checking ...' messages1433 -q, --quiet, --silent do not print 'checking ...' messages 1390 1434 --cache-file=FILE cache test results in FILE [disabled] 1391 -C, --config-cache alias for \`--cache-file=config.cache'1435 -C, --config-cache alias for '--cache-file=config.cache' 1392 1436 -n, --no-create do not create output files 1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']1437 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1394 1438 1395 1439 Installation directories: … … 1399 1443 [PREFIX] 1400 1444 1401 By default, \`make install' will install all the files in1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',1404 for instance \`--prefix=\$HOME'.1445 By default, 'make install' will install all the files in 1446 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1447 an installation prefix other than '$ac_default_prefix' using '--prefix', 1448 for instance '--prefix=\$HOME'. 1405 1449 1406 1450 For better control, use the options below. … … 1413 1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1414 1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1459 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1415 1460 --libdir=DIR object code libraries [EPREFIX/lib] 1416 1461 --includedir=DIR C header files [PREFIX/include] … … 1443 1488 if test -n "$ac_init_help"; then 1444 1489 case $ac_init_help in 1445 short | recursive ) echo "Configuration of libpng 1.6. 37:";;1490 short | recursive ) echo "Configuration of libpng 1.6.42:";; 1446 1491 esac 1447 1492 cat <<\_ACEOF … … 1465 1510 optimize for fast installation [default=yes] 1466 1511 --disable-libtool-lock avoid locking (might break parallel builds) 1512 --disable-tests do not build the test programs (default is to build) 1513 --disable-tools do not build the auxiliary tools (default is to 1514 build) 1467 1515 --enable-werror[=OPT] Pass -Werror or the given argument to the compiler 1468 1516 if it is supported … … 1511 1559 unconditionally. If not specified: determined by the 1512 1560 compiler. 1561 --enable-mips-mmi Enable MIPS MMI optimizations: =no/off, check, api, 1562 yes/on: no/off: disable the optimizations; check: 1563 use internal checking code (deprecated and poorly 1564 supported); api: disable by default, enable by a 1565 call to png_set_option; yes/on: turn on 1566 unconditionally. If not specified: determined by the 1567 compiler. 1513 1568 --enable-intel-sse Enable Intel SSE optimizations: =no/off, yes/on: 1514 1569 no/off: disable the optimizations; yes/on: enable … … 1521 1576 turn on unconditionally. If not specified: 1522 1577 determined by the compiler. 1578 --enable-loongarch-lsx 1579 Enable LOONGARCH LSX optimizations: =no/off, yes/on: 1580 no/off: disable the optimizations; yes/on: turn on 1581 unconditionally. If not specified: determined by the 1582 compiler. 1523 1583 1524 1584 Optional Packages: … … 1557 1617 would cause configure itself to fail 1558 1618 1559 Use these variables to override the choices made by `configure' or to help1619 Use these variables to override the choices made by 'configure' or to help 1560 1620 it to find libraries and programs with nonstandard names/locations. 1561 1621 … … 1576 1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1577 1637 *) 1578 ac_dir_suffix=/` $as_echo"$ac_dir" | sed 's|^\.[\\/]||'`1638 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1579 1639 # A ".." for each directory in $ac_dir_suffix. 1580 ac_top_builddir_sub=` $as_echo"$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`1640 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1581 1641 case $ac_top_builddir_sub in 1582 1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; … … 1606 1666 1607 1667 cd "$ac_dir" || { ac_status=$?; continue; } 1608 # Check for guested configure. 1668 # Check for configure.gnu first; this name is used for a wrapper for 1669 # Metaconfig's "Configure" on case-insensitive file systems. 1609 1670 if test -f "$ac_srcdir/configure.gnu"; then 1610 1671 echo && … … 1614 1675 $SHELL "$ac_srcdir/configure" --help=recursive 1615 1676 else 1616 $as_echo"$as_me: WARNING: no configuration information is in $ac_dir" >&21677 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1617 1678 fi || ac_status=$? 1618 1679 cd "$ac_pwd" || { ac_status=$?; break; } … … 1623 1684 if $ac_init_version; then 1624 1685 cat <<\_ACEOF 1625 libpng configure 1.6. 371626 generated by GNU Autoconf 2. 691627 1628 Copyright (C) 20 12Free Software Foundation, Inc.1686 libpng configure 1.6.42 1687 generated by GNU Autoconf 2.72 1688 1689 Copyright (C) 2023 Free Software Foundation, Inc. 1629 1690 This configure script is free software; the Free Software Foundation 1630 1691 gives unlimited permission to copy, distribute and modify it. … … 1643 1704 { 1644 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 rm -f conftest.$ac_objext 1706 rm -f conftest.$ac_objext conftest.beam 1646 1707 if { { ac_try="$ac_compile" 1647 1708 case "(($ac_try" in … … 1650 1711 esac 1651 1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1652 $as_echo"$ac_try_echo"; } >&51713 printf "%s\n" "$ac_try_echo"; } >&5 1653 1714 (eval "$ac_compile") 2>conftest.err 1654 1715 ac_status=$? … … 1658 1719 mv -f conftest.er1 conftest.err 1659 1720 fi 1660 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1661 1722 test $ac_status = 0; } && { 1662 1723 test -z "$ac_c_werror_flag" || 1663 1724 test ! -s conftest.err 1664 } && test -s conftest.$ac_objext; then : 1725 } && test -s conftest.$ac_objext 1726 then : 1665 1727 ac_retval=0 1666 else 1667 $as_echo"$as_me: failed program was:" >&51728 else case e in #( 1729 e) printf "%s\n" "$as_me: failed program was:" >&5 1668 1730 sed 's/^/| /' conftest.$ac_ext >&5 1669 1731 1670 ac_retval=1 1732 ac_retval=1 ;; 1733 esac 1671 1734 fi 1672 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno … … 1687 1750 esac 1688 1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689 $as_echo"$ac_try_echo"; } >&51752 printf "%s\n" "$ac_try_echo"; } >&5 1690 1753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1691 1754 ac_status=$? … … 1695 1758 mv -f conftest.er1 conftest.err 1696 1759 fi 1697 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1698 1761 test $ac_status = 0; } > conftest.i && { 1699 1762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1700 1763 test ! -s conftest.err 1701 }; then : 1764 } 1765 then : 1702 1766 ac_retval=0 1703 else 1704 $as_echo"$as_me: failed program was:" >&51767 else case e in #( 1768 e) printf "%s\n" "$as_me: failed program was:" >&5 1705 1769 sed 's/^/| /' conftest.$ac_ext >&5 1706 1770 1707 ac_retval=1 1771 ac_retval=1 ;; 1772 esac 1708 1773 fi 1709 1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno … … 1718 1783 { 1719 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 rm -f conftest.$ac_objext conftest $ac_exeext1785 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1721 1786 if { { ac_try="$ac_link" 1722 1787 case "(($ac_try" in … … 1725 1790 esac 1726 1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1727 $as_echo"$ac_try_echo"; } >&51792 printf "%s\n" "$ac_try_echo"; } >&5 1728 1793 (eval "$ac_link") 2>conftest.err 1729 1794 ac_status=$? … … 1733 1798 mv -f conftest.er1 conftest.err 1734 1799 fi 1735 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1736 1801 test $ac_status = 0; } && { 1737 1802 test -z "$ac_c_werror_flag" || … … 1740 1805 test "$cross_compiling" = yes || 1741 1806 test -x conftest$ac_exeext 1742 }; then : 1807 } 1808 then : 1743 1809 ac_retval=0 1744 else 1745 $as_echo"$as_me: failed program was:" >&51810 else case e in #( 1811 e) printf "%s\n" "$as_me: failed program was:" >&5 1746 1812 sed 's/^/| /' conftest.$ac_ext >&5 1747 1813 1748 ac_retval=1 1814 ac_retval=1 ;; 1815 esac 1749 1816 fi 1750 1817 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information … … 1765 1832 { 1766 1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1768 $as_echo_n "checking for $2... " >&6; } 1769 if eval \${$3+:} false; then : 1770 $as_echo_n "(cached) " >&6 1771 else 1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1835 printf %s "checking for $2... " >&6; } 1836 if eval test \${$3+y} 1837 then : 1838 printf %s "(cached) " >&6 1839 else case e in #( 1840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1773 1841 /* end confdefs.h. */ 1774 1842 $4 1775 1843 #include <$2> 1776 1844 _ACEOF 1777 if ac_fn_c_try_compile "$LINENO"; then : 1845 if ac_fn_c_try_compile "$LINENO" 1846 then : 1778 1847 eval "$3=yes" 1779 else 1780 eval "$3=no" 1781 fi 1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1848 else case e in #( 1849 e) eval "$3=no" ;; 1850 esac 1851 fi 1852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1853 esac 1783 1854 fi 1784 1855 eval ac_res=\$$3 1785 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51786 $as_echo"$ac_res" >&6; }1856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1857 printf "%s\n" "$ac_res" >&6; } 1787 1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1788 1859 1789 1860 } # ac_fn_c_check_header_compile 1790 1791 # ac_fn_c_try_run LINENO1792 # ----------------------1793 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes1794 # that executables *can* be run.1795 ac_fn_c_try_run ()1796 {1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1798 if { { ac_try="$ac_link"1799 case "(($ac_try" in1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1801 *) ac_try_echo=$ac_try;;1802 esac1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1804 $as_echo "$ac_try_echo"; } >&51805 (eval "$ac_link") 2>&51806 ac_status=$?1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51808 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'1809 { { case "(($ac_try" in1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1811 *) ac_try_echo=$ac_try;;1812 esac1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1814 $as_echo "$ac_try_echo"; } >&51815 (eval "$ac_try") 2>&51816 ac_status=$?1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51818 test $ac_status = 0; }; }; then :1819 ac_retval=01820 else1821 $as_echo "$as_me: program exited with status $ac_status" >&51822 $as_echo "$as_me: failed program was:" >&51823 sed 's/^/| /' conftest.$ac_ext >&51824 1825 ac_retval=$ac_status1826 fi1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1829 as_fn_set_status $ac_retval1830 1831 } # ac_fn_c_try_run1832 1861 1833 1862 # ac_fn_c_check_func LINENO FUNC VAR … … 1837 1866 { 1838 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1840 $as_echo_n "checking for $2... " >&6; } 1841 if eval \${$3+:} false; then : 1842 $as_echo_n "(cached) " >&6 1843 else 1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1869 printf %s "checking for $2... " >&6; } 1870 if eval test \${$3+y} 1871 then : 1872 printf %s "(cached) " >&6 1873 else case e in #( 1874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845 1875 /* end confdefs.h. */ 1846 1876 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. … … 1849 1879 1850 1880 /* System header to define __stub macros and hopefully few prototypes, 1851 which can conflict with char $2 (); below. 1852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1853 <limits.h> exists even on freestanding compilers. */ 1854 1855 #ifdef __STDC__ 1856 # include <limits.h> 1857 #else 1858 # include <assert.h> 1859 #endif 1860 1881 which can conflict with char $2 (void); below. */ 1882 1883 #include <limits.h> 1861 1884 #undef $2 1862 1885 … … 1867 1890 extern "C" 1868 1891 #endif 1869 char $2 ( );1892 char $2 (void); 1870 1893 /* The GNU C library defines this for functions which it implements 1871 1894 to always fail with ENOSYS. Some functions are actually named … … 1876 1899 1877 1900 int 1878 main ( )1901 main (void) 1879 1902 { 1880 1903 return $2 (); … … 1883 1906 } 1884 1907 _ACEOF 1885 if ac_fn_c_try_link "$LINENO"; then : 1908 if ac_fn_c_try_link "$LINENO" 1909 then : 1886 1910 eval "$3=yes" 1887 else 1888 eval "$3=no" 1889 fi 1890 rm -f core conftest.err conftest.$ac_objext \ 1891 conftest$ac_exeext conftest.$ac_ext 1911 else case e in #( 1912 e) eval "$3=no" ;; 1913 esac 1914 fi 1915 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1916 conftest$ac_exeext conftest.$ac_ext ;; 1917 esac 1892 1918 fi 1893 1919 eval ac_res=\$$3 1894 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51895 $as_echo"$ac_res" >&6; }1920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1921 printf "%s\n" "$ac_res" >&6; } 1896 1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1897 1923 1898 1924 } # ac_fn_c_check_func 1899 1900 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1901 # ------------------------------------------- 1902 # Tests whether TYPE exists after having included INCLUDES, setting cache 1903 # variable VAR accordingly. 1904 ac_fn_c_check_type () 1905 { 1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1908 $as_echo_n "checking for $2... " >&6; } 1909 if eval \${$3+:} false; then : 1910 $as_echo_n "(cached) " >&6 1911 else 1912 eval "$3=no" 1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1914 /* end confdefs.h. */ 1915 $4 1916 int 1917 main () 1918 { 1919 if (sizeof ($2)) 1920 return 0; 1921 ; 1922 return 0; 1923 } 1924 _ACEOF 1925 if ac_fn_c_try_compile "$LINENO"; then : 1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1927 /* end confdefs.h. */ 1928 $4 1929 int 1930 main () 1931 { 1932 if (sizeof (($2))) 1933 return 0; 1934 ; 1935 return 0; 1936 } 1937 _ACEOF 1938 if ac_fn_c_try_compile "$LINENO"; then : 1939 1940 else 1941 eval "$3=yes" 1942 fi 1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1944 fi 1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1946 fi 1947 eval ac_res=\$$3 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1949 $as_echo "$ac_res" >&6; } 1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1951 1952 } # ac_fn_c_check_type 1925 ac_configure_args_raw= 1926 for ac_arg 1927 do 1928 case $ac_arg in 1929 *\'*) 1930 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1931 esac 1932 as_fn_append ac_configure_args_raw " '$ac_arg'" 1933 done 1934 1935 case $ac_configure_args_raw in 1936 *$as_nl*) 1937 ac_safe_unquote= ;; 1938 *) 1939 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1940 ac_unsafe_a="$ac_unsafe_z#~" 1941 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1942 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1943 esac 1944 1953 1945 cat >config.log <<_ACEOF 1954 1946 This file contains any messages produced by compilers while 1955 1947 running configure, to aid debugging if configure makes a mistake. 1956 1948 1957 It was created by libpng $as_me 1.6. 37, which was1958 generated by GNU Autoconf 2. 69. Invocation command line was1959 1960 $ $0 $@1949 It was created by libpng $as_me 1.6.42, which was 1950 generated by GNU Autoconf 2.72. Invocation command line was 1951 1952 $ $0$ac_configure_args_raw 1961 1953 1962 1954 _ACEOF … … 1991 1983 do 1992 1984 IFS=$as_save_IFS 1993 test -z "$as_dir" && as_dir=. 1994 $as_echo "PATH: $as_dir" 1985 case $as_dir in #((( 1986 '') as_dir=./ ;; 1987 */) ;; 1988 *) as_dir=$as_dir/ ;; 1989 esac 1990 printf "%s\n" "PATH: $as_dir" 1995 1991 done 1996 1992 IFS=$as_save_IFS … … 2027 2023 continue ;; 2028 2024 *\'*) 2029 ac_arg=` $as_echo"$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;2025 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2030 2026 esac 2031 2027 case $ac_pass in … … 2062 2058 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2063 2059 trap 'exit_status=$? 2060 # Sanitize IFS. 2061 IFS=" "" $as_nl" 2064 2062 # Save into config.log some information that might help in debugging. 2065 2063 { 2066 2064 echo 2067 2065 2068 $as_echo"## ---------------- ##2066 printf "%s\n" "## ---------------- ## 2069 2067 ## Cache variables. ## 2070 2068 ## ---------------- ##" … … 2077 2075 *${as_nl}*) 2078 2076 case $ac_var in #( 2079 *_cv_*) { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&52080 $as_echo"$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;2077 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2078 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2081 2079 esac 2082 2080 case $ac_var in #( … … 2102 2100 echo 2103 2101 2104 $as_echo"## ----------------- ##2102 printf "%s\n" "## ----------------- ## 2105 2103 ## Output variables. ## 2106 2104 ## ----------------- ##" … … 2110 2108 eval ac_val=\$$ac_var 2111 2109 case $ac_val in 2112 *\'\''*) ac_val=` $as_echo"$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;2110 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2113 2111 esac 2114 $as_echo"$ac_var='\''$ac_val'\''"2112 printf "%s\n" "$ac_var='\''$ac_val'\''" 2115 2113 done | sort 2116 2114 echo 2117 2115 2118 2116 if test -n "$ac_subst_files"; then 2119 $as_echo"## ------------------- ##2117 printf "%s\n" "## ------------------- ## 2120 2118 ## File substitutions. ## 2121 2119 ## ------------------- ##" … … 2125 2123 eval ac_val=\$$ac_var 2126 2124 case $ac_val in 2127 *\'\''*) ac_val=` $as_echo"$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;2125 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2128 2126 esac 2129 $as_echo"$ac_var='\''$ac_val'\''"2127 printf "%s\n" "$ac_var='\''$ac_val'\''" 2130 2128 done | sort 2131 2129 echo … … 2133 2131 2134 2132 if test -s confdefs.h; then 2135 $as_echo"## ----------- ##2133 printf "%s\n" "## ----------- ## 2136 2134 ## confdefs.h. ## 2137 2135 ## ----------- ##" … … 2141 2139 fi 2142 2140 test "$ac_signal" != 0 && 2143 $as_echo"$as_me: caught signal $ac_signal"2144 $as_echo"$as_me: exit $exit_status"2141 printf "%s\n" "$as_me: caught signal $ac_signal" 2142 printf "%s\n" "$as_me: exit $exit_status" 2145 2143 } >&5 2146 2144 rm -f core *.core core.conftest.* && … … 2156 2154 rm -f -r conftest* confdefs.h 2157 2155 2158 $as_echo"/* confdefs.h */" > confdefs.h2156 printf "%s\n" "/* confdefs.h */" > confdefs.h 2159 2157 2160 2158 # Predefined preprocessor variables. 2161 2159 2162 cat >>confdefs.h <<_ACEOF 2163 #define PACKAGE_NAME "$PACKAGE_NAME" 2164 _ACEOF 2165 2166 cat >>confdefs.h <<_ACEOF 2167 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2168 _ACEOF 2169 2170 cat >>confdefs.h <<_ACEOF 2171 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2172 _ACEOF 2173 2174 cat >>confdefs.h <<_ACEOF 2175 #define PACKAGE_STRING "$PACKAGE_STRING" 2176 _ACEOF 2177 2178 cat >>confdefs.h <<_ACEOF 2179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2180 _ACEOF 2181 2182 cat >>confdefs.h <<_ACEOF 2183 #define PACKAGE_URL "$PACKAGE_URL" 2184 _ACEOF 2160 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2161 2162 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2163 2164 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2165 2166 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2167 2168 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2169 2170 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2185 2171 2186 2172 2187 2173 # Let the site file select an alternate cache file if it wants to. 2188 2174 # Prefer an explicitly selected file to automatically selected ones. 2189 ac_site_file1=NONE2190 ac_site_file2=NONE2191 2175 if test -n "$CONFIG_SITE"; then 2192 # We do not want a PATH search for config.site. 2193 case $CONFIG_SITE in #(( 2194 -*) ac_site_file1=./$CONFIG_SITE;; 2195 */*) ac_site_file1=$CONFIG_SITE;; 2196 *) ac_site_file1=./$CONFIG_SITE;; 2197 esac 2176 ac_site_files="$CONFIG_SITE" 2198 2177 elif test "x$prefix" != xNONE; then 2199 ac_site_file1=$prefix/share/config.site 2200 ac_site_file2=$prefix/etc/config.site 2201 else 2202 ac_site_file1=$ac_default_prefix/share/config.site 2203 ac_site_file2=$ac_default_prefix/etc/config.site 2204 fi 2205 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2178 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2179 else 2180 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2181 fi 2182 2183 for ac_site_file in $ac_site_files 2206 2184 do 2207 test "x$ac_site_file" = xNONE && continue 2208 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2210 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2185 case $ac_site_file in #( 2186 */*) : 2187 ;; #( 2188 *) : 2189 ac_site_file=./$ac_site_file ;; 2190 esac 2191 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2193 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2211 2194 sed 's/^/| /' "$ac_site_file" >&5 2212 2195 . "$ac_site_file" \ 2213 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&52214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2196 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2197 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2215 2198 as_fn_error $? "failed to load site script $ac_site_file 2216 See \`config.log' for more details" "$LINENO" 5; }2199 See 'config.log' for more details" "$LINENO" 5; } 2217 2200 fi 2218 2201 done … … 2222 2205 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2223 2206 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2224 { $as_echo"$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&52225 $as_echo"$as_me: loading cache $cache_file" >&6;}2207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2208 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2226 2209 case $cache_file in 2227 2210 [\\/]* | ?:[\\/]* ) . "$cache_file";; … … 2230 2213 fi 2231 2214 else 2232 { $as_echo"$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&52233 $as_echo"$as_me: creating cache $cache_file" >&6;}2215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2216 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2234 2217 >$cache_file 2218 fi 2219 2220 # Test code for whether the C compiler supports C89 (global declarations) 2221 ac_c_conftest_c89_globals=' 2222 /* Does the compiler advertise C89 conformance? 2223 Do not test the value of __STDC__, because some compilers set it to 0 2224 while being otherwise adequately conformant. */ 2225 #if !defined __STDC__ 2226 # error "Compiler does not advertise C89 conformance" 2227 #endif 2228 2229 #include <stddef.h> 2230 #include <stdarg.h> 2231 struct stat; 2232 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2233 struct buf { int x; }; 2234 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2235 static char *e (char **p, int i) 2236 { 2237 return p[i]; 2238 } 2239 static char *f (char * (*g) (char **, int), char **p, ...) 2240 { 2241 char *s; 2242 va_list v; 2243 va_start (v,p); 2244 s = g (p, va_arg (v,int)); 2245 va_end (v); 2246 return s; 2247 } 2248 2249 /* C89 style stringification. */ 2250 #define noexpand_stringify(a) #a 2251 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2252 2253 /* C89 style token pasting. Exercises some of the corner cases that 2254 e.g. old MSVC gets wrong, but not very hard. */ 2255 #define noexpand_concat(a,b) a##b 2256 #define expand_concat(a,b) noexpand_concat(a,b) 2257 extern int vA; 2258 extern int vbee; 2259 #define aye A 2260 #define bee B 2261 int *pvA = &expand_concat(v,aye); 2262 int *pvbee = &noexpand_concat(v,bee); 2263 2264 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2265 function prototypes and stuff, but not \xHH hex character constants. 2266 These do not provoke an error unfortunately, instead are silently treated 2267 as an "x". The following induces an error, until -std is added to get 2268 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2269 array size at least. It is necessary to write \x00 == 0 to get something 2270 that is true only with -std. */ 2271 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2272 2273 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2274 inside strings and character constants. */ 2275 #define FOO(x) '\''x'\'' 2276 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2277 2278 int test (int i, double x); 2279 struct s1 {int (*f) (int a);}; 2280 struct s2 {int (*f) (double a);}; 2281 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2282 int, int);' 2283 2284 # Test code for whether the C compiler supports C89 (body of main). 2285 ac_c_conftest_c89_main=' 2286 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2287 ' 2288 2289 # Test code for whether the C compiler supports C99 (global declarations) 2290 ac_c_conftest_c99_globals=' 2291 /* Does the compiler advertise C99 conformance? */ 2292 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2293 # error "Compiler does not advertise C99 conformance" 2294 #endif 2295 2296 // See if C++-style comments work. 2297 2298 #include <stdbool.h> 2299 extern int puts (const char *); 2300 extern int printf (const char *, ...); 2301 extern int dprintf (int, const char *, ...); 2302 extern void *malloc (size_t); 2303 extern void free (void *); 2304 2305 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2306 // dprintf is used instead of fprintf to avoid needing to declare 2307 // FILE and stderr. 2308 #define debug(...) dprintf (2, __VA_ARGS__) 2309 #define showlist(...) puts (#__VA_ARGS__) 2310 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2311 static void 2312 test_varargs_macros (void) 2313 { 2314 int x = 1234; 2315 int y = 5678; 2316 debug ("Flag"); 2317 debug ("X = %d\n", x); 2318 showlist (The first, second, and third items.); 2319 report (x>y, "x is %d but y is %d", x, y); 2320 } 2321 2322 // Check long long types. 2323 #define BIG64 18446744073709551615ull 2324 #define BIG32 4294967295ul 2325 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2326 #if !BIG_OK 2327 #error "your preprocessor is broken" 2328 #endif 2329 #if BIG_OK 2330 #else 2331 #error "your preprocessor is broken" 2332 #endif 2333 static long long int bignum = -9223372036854775807LL; 2334 static unsigned long long int ubignum = BIG64; 2335 2336 struct incomplete_array 2337 { 2338 int datasize; 2339 double data[]; 2340 }; 2341 2342 struct named_init { 2343 int number; 2344 const wchar_t *name; 2345 double average; 2346 }; 2347 2348 typedef const char *ccp; 2349 2350 static inline int 2351 test_restrict (ccp restrict text) 2352 { 2353 // Iterate through items via the restricted pointer. 2354 // Also check for declarations in for loops. 2355 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2356 continue; 2357 return 0; 2358 } 2359 2360 // Check varargs and va_copy. 2361 static bool 2362 test_varargs (const char *format, ...) 2363 { 2364 va_list args; 2365 va_start (args, format); 2366 va_list args_copy; 2367 va_copy (args_copy, args); 2368 2369 const char *str = ""; 2370 int number = 0; 2371 float fnumber = 0; 2372 2373 while (*format) 2374 { 2375 switch (*format++) 2376 { 2377 case '\''s'\'': // string 2378 str = va_arg (args_copy, const char *); 2379 break; 2380 case '\''d'\'': // int 2381 number = va_arg (args_copy, int); 2382 break; 2383 case '\''f'\'': // float 2384 fnumber = va_arg (args_copy, double); 2385 break; 2386 default: 2387 break; 2388 } 2389 } 2390 va_end (args_copy); 2391 va_end (args); 2392 2393 return *str && number && fnumber; 2394 } 2395 ' 2396 2397 # Test code for whether the C compiler supports C99 (body of main). 2398 ac_c_conftest_c99_main=' 2399 // Check bool. 2400 _Bool success = false; 2401 success |= (argc != 0); 2402 2403 // Check restrict. 2404 if (test_restrict ("String literal") == 0) 2405 success = true; 2406 char *restrict newvar = "Another string"; 2407 2408 // Check varargs. 2409 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2410 test_varargs_macros (); 2411 2412 // Check flexible array members. 2413 struct incomplete_array *ia = 2414 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2415 ia->datasize = 10; 2416 for (int i = 0; i < ia->datasize; ++i) 2417 ia->data[i] = i * 1.234; 2418 // Work around memory leak warnings. 2419 free (ia); 2420 2421 // Check named initializers. 2422 struct named_init ni = { 2423 .number = 34, 2424 .name = L"Test wide string", 2425 .average = 543.34343, 2426 }; 2427 2428 ni.number = 58; 2429 2430 int dynamic_array[ni.number]; 2431 dynamic_array[0] = argv[0][0]; 2432 dynamic_array[ni.number - 1] = 543; 2433 2434 // work around unused variable warnings 2435 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2436 || dynamic_array[ni.number - 1] != 543); 2437 ' 2438 2439 # Test code for whether the C compiler supports C11 (global declarations) 2440 ac_c_conftest_c11_globals=' 2441 /* Does the compiler advertise C11 conformance? */ 2442 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2443 # error "Compiler does not advertise C11 conformance" 2444 #endif 2445 2446 // Check _Alignas. 2447 char _Alignas (double) aligned_as_double; 2448 char _Alignas (0) no_special_alignment; 2449 extern char aligned_as_int; 2450 char _Alignas (0) _Alignas (int) aligned_as_int; 2451 2452 // Check _Alignof. 2453 enum 2454 { 2455 int_alignment = _Alignof (int), 2456 int_array_alignment = _Alignof (int[100]), 2457 char_alignment = _Alignof (char) 2458 }; 2459 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2460 2461 // Check _Noreturn. 2462 int _Noreturn does_not_return (void) { for (;;) continue; } 2463 2464 // Check _Static_assert. 2465 struct test_static_assert 2466 { 2467 int x; 2468 _Static_assert (sizeof (int) <= sizeof (long int), 2469 "_Static_assert does not work in struct"); 2470 long int y; 2471 }; 2472 2473 // Check UTF-8 literals. 2474 #define u8 syntax error! 2475 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2476 2477 // Check duplicate typedefs. 2478 typedef long *long_ptr; 2479 typedef long int *long_ptr; 2480 typedef long_ptr long_ptr; 2481 2482 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2483 struct anonymous 2484 { 2485 union { 2486 struct { int i; int j; }; 2487 struct { int k; long int l; } w; 2488 }; 2489 int m; 2490 } v1; 2491 ' 2492 2493 # Test code for whether the C compiler supports C11 (body of main). 2494 ac_c_conftest_c11_main=' 2495 _Static_assert ((offsetof (struct anonymous, i) 2496 == offsetof (struct anonymous, w.k)), 2497 "Anonymous union alignment botch"); 2498 v1.i = 2; 2499 v1.w.k = 5; 2500 ok |= v1.i != 5; 2501 ' 2502 2503 # Test code for whether the C compiler supports C11 (complete). 2504 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2505 ${ac_c_conftest_c99_globals} 2506 ${ac_c_conftest_c11_globals} 2507 2508 int 2509 main (int argc, char **argv) 2510 { 2511 int ok = 0; 2512 ${ac_c_conftest_c89_main} 2513 ${ac_c_conftest_c99_main} 2514 ${ac_c_conftest_c11_main} 2515 return ok; 2516 } 2517 " 2518 2519 # Test code for whether the C compiler supports C99 (complete). 2520 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2521 ${ac_c_conftest_c99_globals} 2522 2523 int 2524 main (int argc, char **argv) 2525 { 2526 int ok = 0; 2527 ${ac_c_conftest_c89_main} 2528 ${ac_c_conftest_c99_main} 2529 return ok; 2530 } 2531 " 2532 2533 # Test code for whether the C compiler supports C89 (complete). 2534 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2535 2536 int 2537 main (int argc, char **argv) 2538 { 2539 int ok = 0; 2540 ${ac_c_conftest_c89_main} 2541 return ok; 2542 } 2543 " 2544 2545 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2546 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2547 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2548 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2549 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2550 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2551 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2552 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2553 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2554 2555 # Auxiliary files required by this configure script. 2556 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2557 2558 # Locations in which to look for auxiliary files. 2559 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2560 2561 # Search for a directory containing all of the required auxiliary files, 2562 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2563 # If we don't find one directory that contains all the files we need, 2564 # we report the set of missing files from the *first* directory in 2565 # $ac_aux_dir_candidates and give up. 2566 ac_missing_aux_files="" 2567 ac_first_candidate=: 2568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2570 as_found=false 2571 for as_dir in $ac_aux_dir_candidates 2572 do 2573 IFS=$as_save_IFS 2574 case $as_dir in #((( 2575 '') as_dir=./ ;; 2576 */) ;; 2577 *) as_dir=$as_dir/ ;; 2578 esac 2579 as_found=: 2580 2581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2582 ac_aux_dir_found=yes 2583 ac_install_sh= 2584 for ac_aux in $ac_aux_files 2585 do 2586 # As a special case, if "install-sh" is required, that requirement 2587 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2588 # and $ac_install_sh is set appropriately for whichever one is found. 2589 if test x"$ac_aux" = x"install-sh" 2590 then 2591 if test -f "${as_dir}install-sh"; then 2592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2593 ac_install_sh="${as_dir}install-sh -c" 2594 elif test -f "${as_dir}install.sh"; then 2595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2596 ac_install_sh="${as_dir}install.sh -c" 2597 elif test -f "${as_dir}shtool"; then 2598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2599 ac_install_sh="${as_dir}shtool install -c" 2600 else 2601 ac_aux_dir_found=no 2602 if $ac_first_candidate; then 2603 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2604 else 2605 break 2606 fi 2607 fi 2608 else 2609 if test -f "${as_dir}${ac_aux}"; then 2610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2611 else 2612 ac_aux_dir_found=no 2613 if $ac_first_candidate; then 2614 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2615 else 2616 break 2617 fi 2618 fi 2619 fi 2620 done 2621 if test "$ac_aux_dir_found" = yes; then 2622 ac_aux_dir="$as_dir" 2623 break 2624 fi 2625 ac_first_candidate=false 2626 2627 as_found=false 2628 done 2629 IFS=$as_save_IFS 2630 if $as_found 2631 then : 2632 2633 else case e in #( 2634 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2635 esac 2636 fi 2637 2638 2639 # These three variables are undocumented and unsupported, 2640 # and are intended to be withdrawn in a future Autoconf release. 2641 # They can cause serious problems if a builder's source tree is in a directory 2642 # whose full name contains unusual characters. 2643 if test -f "${ac_aux_dir}config.guess"; then 2644 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2645 fi 2646 if test -f "${ac_aux_dir}config.sub"; then 2647 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2648 fi 2649 if test -f "$ac_aux_dir/configure"; then 2650 ac_configure="$SHELL ${ac_aux_dir}configure" 2235 2651 fi 2236 2652 … … 2245 2661 case $ac_old_set,$ac_new_set in 2246 2662 set,) 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&52248 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}2663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2664 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2249 2665 ac_cache_corrupted=: ;; 2250 2666 ,set) 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&52252 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2668 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2253 2669 ac_cache_corrupted=: ;; 2254 2670 ,);; … … 2259 2675 ac_new_val_w=`echo x $ac_new_val` 2260 2676 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&52262 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2678 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2263 2679 ac_cache_corrupted=: 2264 2680 else 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&52266 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}2681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2682 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2267 2683 eval $ac_var=\$ac_old_val 2268 2684 fi 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&52270 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}2271 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&52272 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2686 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2688 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2273 2689 fi;; 2274 2690 esac … … 2276 2692 if test "$ac_new_set" = set; then 2277 2693 case $ac_new_val in 2278 *\'*) ac_arg=$ac_var=` $as_echo"$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;2694 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2279 2695 *) ac_arg=$ac_var=$ac_new_val ;; 2280 2696 esac … … 2286 2702 done 2287 2703 if $ac_cache_corrupted; then 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2291 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2292 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2705 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2707 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2708 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2709 and start over" "$LINENO" 5 2293 2710 fi 2294 2711 ## -------------------- ## … … 2313 2730 am__api_version='1.16' 2314 2731 2315 ac_aux_dir= 2316 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2317 if test -f "$ac_dir/install-sh"; then 2318 ac_aux_dir=$ac_dir 2319 ac_install_sh="$ac_aux_dir/install-sh -c" 2320 break 2321 elif test -f "$ac_dir/install.sh"; then 2322 ac_aux_dir=$ac_dir 2323 ac_install_sh="$ac_aux_dir/install.sh -c" 2324 break 2325 elif test -f "$ac_dir/shtool"; then 2326 ac_aux_dir=$ac_dir 2327 ac_install_sh="$ac_aux_dir/shtool install -c" 2328 break 2329 fi 2330 done 2331 if test -z "$ac_aux_dir"; then 2332 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2333 fi 2334 2335 # These three variables are undocumented and unsupported, 2336 # and are intended to be withdrawn in a future Autoconf release. 2337 # They can cause serious problems if a builder's source tree is in a directory 2338 # whose full name contains unusual characters. 2339 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2340 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2341 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2342 2343 2344 # Find a good install program. We prefer a C program (faster), 2732 2733 2734 # Find a good install program. We prefer a C program (faster), 2345 2735 # so one script is as good as another. But avoid the broken or 2346 2736 # incompatible versions: … … 2356 2746 # ./install, which can be erroneously created by make from ./install.sh. 2357 2747 # Reject install programs that cannot install multiple files. 2358 { $as_echo"$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&52359 $as_echo_n"checking for a BSD-compatible install... " >&6; }2748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2749 printf %s "checking for a BSD-compatible install... " >&6; } 2360 2750 if test -z "$INSTALL"; then 2361 if ${ac_cv_path_install+:} false; then : 2362 $as_echo_n "(cached) " >&6 2363 else 2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2751 if test ${ac_cv_path_install+y} 2752 then : 2753 printf %s "(cached) " >&6 2754 else case e in #( 2755 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2365 2756 for as_dir in $PATH 2366 2757 do 2367 2758 IFS=$as_save_IFS 2368 test -z "$as_dir" && as_dir=. 2369 # Account for people who put trailing slashes in PATH elements. 2370 case $as_dir/ in #(( 2371 ./ | .// | /[cC]/* | \ 2759 case $as_dir in #((( 2760 '') as_dir=./ ;; 2761 */) ;; 2762 *) as_dir=$as_dir/ ;; 2763 esac 2764 # Account for fact that we put trailing slashes in our PATH walk. 2765 case $as_dir in #(( 2766 ./ | /[cC]/* | \ 2372 2767 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2373 2768 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ … … 2379 2774 for ac_prog in ginstall scoinst install; do 2380 2775 for ac_exec_ext in '' $ac_executable_extensions; do 2381 if as_fn_executable_p "$as_dir /$ac_prog$ac_exec_ext"; then2776 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2382 2777 if test $ac_prog = install && 2383 grep dspmsg "$as_dir /$ac_prog$ac_exec_ext" >/dev/null 2>&1; then2778 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2384 2779 # AIX install. It has an incompatible calling convention. 2385 2780 : 2386 2781 elif test $ac_prog = install && 2387 grep pwplus "$as_dir /$ac_prog$ac_exec_ext" >/dev/null 2>&1; then2782 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2388 2783 # program-specific install script used by HP pwplus--don't use. 2389 2784 : … … 2393 2788 echo two > conftest.two 2394 2789 mkdir conftest.dir 2395 if "$as_dir /$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&2790 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2396 2791 test -s conftest.one && test -s conftest.two && 2397 2792 test -s conftest.dir/conftest.one && 2398 2793 test -s conftest.dir/conftest.two 2399 2794 then 2400 ac_cv_path_install="$as_dir /$ac_prog$ac_exec_ext -c"2795 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2401 2796 break 3 2402 2797 fi … … 2412 2807 2413 2808 rm -rf conftest.one conftest.two conftest.dir 2414 2415 fi 2416 if test "${ac_cv_path_install+set}" = set; then 2809 ;; 2810 esac 2811 fi 2812 if test ${ac_cv_path_install+y}; then 2417 2813 INSTALL=$ac_cv_path_install 2418 2814 else … … 2424 2820 fi 2425 2821 fi 2426 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&52427 $as_echo"$INSTALL" >&6; }2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2823 printf "%s\n" "$INSTALL" >&6; } 2428 2824 2429 2825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. … … 2435 2831 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2436 2832 2437 { $as_echo"$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&52438 $as_echo_n"checking whether build environment is sane... " >&6; }2833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2834 printf %s "checking whether build environment is sane... " >&6; } 2439 2835 # Reject unsafe characters in $srcdir or the absolute working directory 2440 2836 # name. Accept space and tab only in the latter. … … 2490 2886 Check your system clock" "$LINENO" 5 2491 2887 fi 2492 { $as_echo"$as_me:${as_lineno-$LINENO}: result: yes" >&52493 $as_echo"yes" >&6; }2888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2889 printf "%s\n" "yes" >&6; } 2494 2890 # If we didn't sleep, we still need to ensure time stamps of config.status and 2495 2891 # generated files are strictly newer. … … 2508 2904 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2509 2905 # Double any \ or $. 2510 # By default was `s,x,x', remove it if useless.2906 # By default was 's,x,x', remove it if useless. 2511 2907 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2512 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2908 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2909 2513 2910 2514 2911 # Expand $ac_aux_dir to an absolute path. 2515 2912 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2516 2913 2517 if test x"${MISSING+set}" != xset; then 2518 case $am_aux_dir in 2519 *\ * | *\ *) 2520 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2521 *) 2522 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2523 esac 2914 2915 if test x"${MISSING+set}" != xset; then 2916 MISSING="\${SHELL} '$am_aux_dir/missing'" 2524 2917 fi 2525 2918 # Use eval to expand $SHELL … … 2528 2921 else 2529 2922 am_missing_run= 2530 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&52531 $as_echo"$as_me: WARNING: 'missing' script is too old or missing" >&2;}2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2924 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2532 2925 fi 2533 2926 … … 2549 2942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2550 2943 set dummy ${ac_tool_prefix}strip; ac_word=$2 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2552 $as_echo_n "checking for $ac_word... " >&6; } 2553 if ${ac_cv_prog_STRIP+:} false; then : 2554 $as_echo_n "(cached) " >&6 2555 else 2556 if test -n "$STRIP"; then 2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2945 printf %s "checking for $ac_word... " >&6; } 2946 if test ${ac_cv_prog_STRIP+y} 2947 then : 2948 printf %s "(cached) " >&6 2949 else case e in #( 2950 e) if test -n "$STRIP"; then 2557 2951 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2558 2952 else … … 2561 2955 do 2562 2956 IFS=$as_save_IFS 2563 test -z "$as_dir" && as_dir=. 2957 case $as_dir in #((( 2958 '') as_dir=./ ;; 2959 */) ;; 2960 *) as_dir=$as_dir/ ;; 2961 esac 2564 2962 for ac_exec_ext in '' $ac_executable_extensions; do 2565 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then2963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2566 2964 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&52965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2568 2966 break 2 2569 2967 fi … … 2572 2970 IFS=$as_save_IFS 2573 2971 2574 fi 2972 fi ;; 2973 esac 2575 2974 fi 2576 2975 STRIP=$ac_cv_prog_STRIP 2577 2976 if test -n "$STRIP"; then 2578 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $STRIP" >&52579 $as_echo"$STRIP" >&6; }2580 else 2581 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&52582 $as_echo"no" >&6; }2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2978 printf "%s\n" "$STRIP" >&6; } 2979 else 2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2981 printf "%s\n" "no" >&6; } 2583 2982 fi 2584 2983 … … 2589 2988 # Extract the first word of "strip", so it can be a program name with args. 2590 2989 set dummy strip; ac_word=$2 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2592 $as_echo_n "checking for $ac_word... " >&6; } 2593 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2594 $as_echo_n "(cached) " >&6 2595 else 2596 if test -n "$ac_ct_STRIP"; then 2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2991 printf %s "checking for $ac_word... " >&6; } 2992 if test ${ac_cv_prog_ac_ct_STRIP+y} 2993 then : 2994 printf %s "(cached) " >&6 2995 else case e in #( 2996 e) if test -n "$ac_ct_STRIP"; then 2597 2997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2598 2998 else … … 2601 3001 do 2602 3002 IFS=$as_save_IFS 2603 test -z "$as_dir" && as_dir=. 3003 case $as_dir in #((( 3004 '') as_dir=./ ;; 3005 */) ;; 3006 *) as_dir=$as_dir/ ;; 3007 esac 2604 3008 for ac_exec_ext in '' $ac_executable_extensions; do 2605 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then3009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2606 3010 ac_cv_prog_ac_ct_STRIP="strip" 2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2608 3012 break 2 2609 3013 fi … … 2612 3016 IFS=$as_save_IFS 2613 3017 2614 fi 3018 fi ;; 3019 esac 2615 3020 fi 2616 3021 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2617 3022 if test -n "$ac_ct_STRIP"; then 2618 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&52619 $as_echo"$ac_ct_STRIP" >&6; }2620 else 2621 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&52622 $as_echo"no" >&6; }3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3024 printf "%s\n" "$ac_ct_STRIP" >&6; } 3025 else 3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3027 printf "%s\n" "no" >&6; } 2623 3028 fi 2624 3029 … … 2628 3033 case $cross_compiling:$ac_tool_warned in 2629 3034 yes:) 2630 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&52631 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3036 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2632 3037 ac_tool_warned=yes ;; 2633 3038 esac … … 2641 3046 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2642 3047 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2644 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3048 3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3050 printf %s "checking for a race-free mkdir -p... " >&6; } 2645 3051 if test -z "$MKDIR_P"; then 2646 if ${ac_cv_path_mkdir+:} false; then : 2647 $as_echo_n "(cached) " >&6 2648 else 2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3052 if test ${ac_cv_path_mkdir+y} 3053 then : 3054 printf %s "(cached) " >&6 3055 else case e in #( 3056 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2650 3057 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2651 3058 do 2652 3059 IFS=$as_save_IFS 2653 test -z "$as_dir" && as_dir=. 3060 case $as_dir in #((( 3061 '') as_dir=./ ;; 3062 */) ;; 3063 *) as_dir=$as_dir/ ;; 3064 esac 2654 3065 for ac_prog in mkdir gmkdir; do 2655 3066 for ac_exec_ext in '' $ac_executable_extensions; do 2656 as_fn_executable_p "$as_dir /$ac_prog$ac_exec_ext" || continue2657 case `"$as_dir /$ac_prog$ac_exec_ext" --version 2>&1` in #(2658 'mkdir ( GNUcoreutils) '* | \2659 'mkdir (coreutils)'* | \3067 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3068 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3069 'mkdir ('*'coreutils) '* | \ 3070 *'BusyBox '* | \ 2660 3071 'mkdir (fileutils) '4.1*) 2661 ac_cv_path_mkdir=$as_dir /$ac_prog$ac_exec_ext3072 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2662 3073 break 3;; 2663 3074 esac … … 2666 3077 done 2667 3078 IFS=$as_save_IFS 2668 3079 ;; 3080 esac 2669 3081 fi 2670 3082 2671 3083 test -d ./--version && rmdir ./--version 2672 if test "${ac_cv_path_mkdir+set}" = set; then3084 if test ${ac_cv_path_mkdir+y}; then 2673 3085 MKDIR_P="$ac_cv_path_mkdir -p" 2674 3086 else 2675 # As a last resort, use the slow shell script. Don't cache a 2676 # value for MKDIR_P within a source directory, because that will 2677 # break other packages using the cache if that directory is 2678 # removed, or if the value is a relative name. 2679 MKDIR_P="$ac_install_sh -d" 3087 # As a last resort, use plain mkdir -p, 3088 # in the hope it doesn't have the bugs of ancient mkdir. 3089 MKDIR_P='mkdir -p' 2680 3090 fi 2681 3091 fi 2682 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&52683 $as_echo"$MKDIR_P" >&6; }3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3093 printf "%s\n" "$MKDIR_P" >&6; } 2684 3094 2685 3095 for ac_prog in gawk mawk nawk awk … … 2687 3097 # Extract the first word of "$ac_prog", so it can be a program name with args. 2688 3098 set dummy $ac_prog; ac_word=$2 2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2690 $as_echo_n "checking for $ac_word... " >&6; } 2691 if ${ac_cv_prog_AWK+:} false; then : 2692 $as_echo_n "(cached) " >&6 2693 else 2694 if test -n "$AWK"; then 3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3100 printf %s "checking for $ac_word... " >&6; } 3101 if test ${ac_cv_prog_AWK+y} 3102 then : 3103 printf %s "(cached) " >&6 3104 else case e in #( 3105 e) if test -n "$AWK"; then 2695 3106 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2696 3107 else … … 2699 3110 do 2700 3111 IFS=$as_save_IFS 2701 test -z "$as_dir" && as_dir=. 3112 case $as_dir in #((( 3113 '') as_dir=./ ;; 3114 */) ;; 3115 *) as_dir=$as_dir/ ;; 3116 esac 2702 3117 for ac_exec_ext in '' $ac_executable_extensions; do 2703 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then3118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2704 3119 ac_cv_prog_AWK="$ac_prog" 2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2706 3121 break 2 2707 3122 fi … … 2710 3125 IFS=$as_save_IFS 2711 3126 2712 fi 3127 fi ;; 3128 esac 2713 3129 fi 2714 3130 AWK=$ac_cv_prog_AWK 2715 3131 if test -n "$AWK"; then 2716 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $AWK" >&52717 $as_echo"$AWK" >&6; }2718 else 2719 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&52720 $as_echo"no" >&6; }3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3133 printf "%s\n" "$AWK" >&6; } 3134 else 3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3136 printf "%s\n" "no" >&6; } 2721 3137 fi 2722 3138 … … 2725 3141 done 2726 3142 2727 { $as_echo"$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&52728 $as_echo_n"checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }3143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3144 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2729 3145 set x ${MAKE-make} 2730 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2731 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2732 $as_echo_n "(cached) " >&6 2733 else 2734 cat >conftest.make <<\_ACEOF 3146 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3147 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3148 then : 3149 printf %s "(cached) " >&6 3150 else case e in #( 3151 e) cat >conftest.make <<\_ACEOF 2735 3152 SHELL = /bin/sh 2736 3153 all: … … 2744 3161 eval ac_cv_prog_make_${ac_make}_set=no;; 2745 3162 esac 2746 rm -f conftest.make 3163 rm -f conftest.make ;; 3164 esac 2747 3165 fi 2748 3166 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2749 { $as_echo"$as_me:${as_lineno-$LINENO}: result: yes" >&52750 $as_echo"yes" >&6; }3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3168 printf "%s\n" "yes" >&6; } 2751 3169 SET_MAKE= 2752 3170 else 2753 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&52754 $as_echo"no" >&6; }3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3172 printf "%s\n" "no" >&6; } 2755 3173 SET_MAKE="MAKE=${MAKE-make}" 2756 3174 fi … … 2766 3184 2767 3185 # Check whether --enable-silent-rules was given. 2768 if test "${enable_silent_rules+set}" = set; then : 3186 if test ${enable_silent_rules+y} 3187 then : 2769 3188 enableval=$enable_silent_rules; 2770 3189 fi … … 2776 3195 esac 2777 3196 am_make=${MAKE-make} 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2779 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2780 if ${am_cv_make_support_nested_variables+:} false; then : 2781 $as_echo_n "(cached) " >&6 2782 else 2783 if $as_echo 'TRUE=$(BAR$(V)) 3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3198 printf %s "checking whether $am_make supports nested variables... " >&6; } 3199 if test ${am_cv_make_support_nested_variables+y} 3200 then : 3201 printf %s "(cached) " >&6 3202 else case e in #( 3203 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 2784 3204 BAR0=false 2785 3205 BAR1=true … … 2791 3211 else 2792 3212 am_cv_make_support_nested_variables=no 2793 fi 2794 fi 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2796 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3213 fi ;; 3214 esac 3215 fi 3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3217 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 2797 3218 if test $am_cv_make_support_nested_variables = yes; then 2798 3219 AM_V='$(V)' … … 2826 3247 # Define the identity of the package. 2827 3248 PACKAGE='libpng' 2828 VERSION='1.6.37' 2829 2830 2831 cat >>confdefs.h <<_ACEOF 2832 #define PACKAGE "$PACKAGE" 2833 _ACEOF 2834 2835 2836 cat >>confdefs.h <<_ACEOF 2837 #define VERSION "$VERSION" 2838 _ACEOF 3249 VERSION='1.6.42' 3250 3251 3252 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3253 3254 3255 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 2839 3256 2840 3257 # Some tools Automake needs. … … 2874 3291 2875 3292 3293 3294 3295 # Variables for tags utilities; see am/tags.am 3296 if test -z "$CTAGS"; then 3297 CTAGS=ctags 3298 fi 3299 3300 if test -z "$ETAGS"; then 3301 ETAGS=etags 3302 fi 3303 3304 if test -z "$CSCOPE"; then 3305 CSCOPE=cscope 3306 fi 2876 3307 2877 3308 … … 2923 3354 # time stamps of the autotools generated files being correct 2924 3355 2925 { $as_echo"$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&52926 $as_echo_n"checking whether to enable maintainer-specific portions of Makefiles... " >&6; }3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3357 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2927 3358 # Check whether --enable-maintainer-mode was given. 2928 if test "${enable_maintainer_mode+set}" = set; then : 3359 if test ${enable_maintainer_mode+y} 3360 then : 2929 3361 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2930 else 2931 USE_MAINTAINER_MODE=no 2932 fi 2933 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2935 $as_echo "$USE_MAINTAINER_MODE" >&6; } 3362 else case e in #( 3363 e) USE_MAINTAINER_MODE=no ;; 3364 esac 3365 fi 3366 3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3368 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 2936 3369 if test $USE_MAINTAINER_MODE = yes; then 2937 3370 MAINTAINER_MODE_TRUE= … … 2947 3380 2948 3381 2949 PNGLIB_VERSION=1.6. 373382 PNGLIB_VERSION=1.6.42 2950 3383 PNGLIB_MAJOR=1 2951 3384 PNGLIB_MINOR=6 2952 PNGLIB_RELEASE= 373385 PNGLIB_RELEASE=41 2953 3386 2954 3387 … … 2963 3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2964 3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3398 3399 3400 3401 3402 3403 3404 3405 3406 2965 3407 2966 3408 ac_ext=c … … 2972 3414 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2973 3415 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2975 $as_echo_n "checking for $ac_word... " >&6; } 2976 if ${ac_cv_prog_CC+:} false; then : 2977 $as_echo_n "(cached) " >&6 2978 else 2979 if test -n "$CC"; then 3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3417 printf %s "checking for $ac_word... " >&6; } 3418 if test ${ac_cv_prog_CC+y} 3419 then : 3420 printf %s "(cached) " >&6 3421 else case e in #( 3422 e) if test -n "$CC"; then 2980 3423 ac_cv_prog_CC="$CC" # Let the user override the test. 2981 3424 else … … 2984 3427 do 2985 3428 IFS=$as_save_IFS 2986 test -z "$as_dir" && as_dir=. 3429 case $as_dir in #((( 3430 '') as_dir=./ ;; 3431 */) ;; 3432 *) as_dir=$as_dir/ ;; 3433 esac 2987 3434 for ac_exec_ext in '' $ac_executable_extensions; do 2988 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then3435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2989 3436 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2991 3438 break 2 2992 3439 fi … … 2995 3442 IFS=$as_save_IFS 2996 3443 2997 fi 3444 fi ;; 3445 esac 2998 3446 fi 2999 3447 CC=$ac_cv_prog_CC 3000 3448 if test -n "$CC"; then 3001 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $CC" >&53002 $as_echo"$CC" >&6; }3003 else 3004 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&53005 $as_echo"no" >&6; }3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3450 printf "%s\n" "$CC" >&6; } 3451 else 3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3453 printf "%s\n" "no" >&6; } 3006 3454 fi 3007 3455 … … 3012 3460 # Extract the first word of "gcc", so it can be a program name with args. 3013 3461 set dummy gcc; ac_word=$2 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3015 $as_echo_n "checking for $ac_word... " >&6; } 3016 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3017 $as_echo_n "(cached) " >&6 3018 else 3019 if test -n "$ac_ct_CC"; then 3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3463 printf %s "checking for $ac_word... " >&6; } 3464 if test ${ac_cv_prog_ac_ct_CC+y} 3465 then : 3466 printf %s "(cached) " >&6 3467 else case e in #( 3468 e) if test -n "$ac_ct_CC"; then 3020 3469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3021 3470 else … … 3024 3473 do 3025 3474 IFS=$as_save_IFS 3026 test -z "$as_dir" && as_dir=. 3475 case $as_dir in #((( 3476 '') as_dir=./ ;; 3477 */) ;; 3478 *) as_dir=$as_dir/ ;; 3479 esac 3027 3480 for ac_exec_ext in '' $ac_executable_extensions; do 3028 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then3481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3029 3482 ac_cv_prog_ac_ct_CC="gcc" 3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3031 3484 break 2 3032 3485 fi … … 3035 3488 IFS=$as_save_IFS 3036 3489 3037 fi 3490 fi ;; 3491 esac 3038 3492 fi 3039 3493 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3040 3494 if test -n "$ac_ct_CC"; then 3041 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&53042 $as_echo"$ac_ct_CC" >&6; }3043 else 3044 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&53045 $as_echo"no" >&6; }3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3496 printf "%s\n" "$ac_ct_CC" >&6; } 3497 else 3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3499 printf "%s\n" "no" >&6; } 3046 3500 fi 3047 3501 … … 3051 3505 case $cross_compiling:$ac_tool_warned in 3052 3506 yes:) 3053 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&53054 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3508 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3055 3509 ac_tool_warned=yes ;; 3056 3510 esac … … 3065 3519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3066 3520 set dummy ${ac_tool_prefix}cc; ac_word=$2 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3068 $as_echo_n "checking for $ac_word... " >&6; } 3069 if ${ac_cv_prog_CC+:} false; then : 3070 $as_echo_n "(cached) " >&6 3071 else 3072 if test -n "$CC"; then 3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3522 printf %s "checking for $ac_word... " >&6; } 3523 if test ${ac_cv_prog_CC+y} 3524 then : 3525 printf %s "(cached) " >&6 3526 else case e in #( 3527 e) if test -n "$CC"; then 3073 3528 ac_cv_prog_CC="$CC" # Let the user override the test. 3074 3529 else … … 3077 3532 do 3078 3533 IFS=$as_save_IFS 3079 test -z "$as_dir" && as_dir=. 3534 case $as_dir in #((( 3535 '') as_dir=./ ;; 3536 */) ;; 3537 *) as_dir=$as_dir/ ;; 3538 esac 3080 3539 for ac_exec_ext in '' $ac_executable_extensions; do 3081 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then3540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3082 3541 ac_cv_prog_CC="${ac_tool_prefix}cc" 3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3084 3543 break 2 3085 3544 fi … … 3088 3547 IFS=$as_save_IFS 3089 3548 3090 fi 3549 fi ;; 3550 esac 3091 3551 fi 3092 3552 CC=$ac_cv_prog_CC 3093 3553 if test -n "$CC"; then 3094 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $CC" >&53095 $as_echo"$CC" >&6; }3096 else 3097 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&53098 $as_echo"no" >&6; }3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3555 printf "%s\n" "$CC" >&6; } 3556 else 3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3558 printf "%s\n" "no" >&6; } 3099 3559 fi 3100 3560 … … 3105 3565 # Extract the first word of "cc", so it can be a program name with args. 3106 3566 set dummy cc; ac_word=$2 3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3108 $as_echo_n "checking for $ac_word... " >&6; } 3109 if ${ac_cv_prog_CC+:} false; then : 3110 $as_echo_n "(cached) " >&6 3111 else 3112 if test -n "$CC"; then 3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3568 printf %s "checking for $ac_word... " >&6; } 3569 if test ${ac_cv_prog_CC+y} 3570 then : 3571 printf %s "(cached) " >&6 3572 else case e in #( 3573 e) if test -n "$CC"; then 3113 3574 ac_cv_prog_CC="$CC" # Let the user override the test. 3114 3575 else … … 3118 3579 do 3119 3580 IFS=$as_save_IFS 3120 test -z "$as_dir" && as_dir=. 3581 case $as_dir in #((( 3582 '') as_dir=./ ;; 3583 */) ;; 3584 *) as_dir=$as_dir/ ;; 3585 esac 3121 3586 for ac_exec_ext in '' $ac_executable_extensions; do 3122 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then3123 if test "$as_dir /$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then3587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3588 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3124 3589 ac_prog_rejected=yes 3125 3590 continue 3126 3591 fi 3127 3592 ac_cv_prog_CC="cc" 3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3129 3594 break 2 3130 3595 fi … … 3142 3607 # first if we set CC to just the basename; use the full file name. 3143 3608 shift 3144 ac_cv_prog_CC="$as_dir /$ac_word${1+' '}$@"3609 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3145 3610 fi 3146 3611 fi 3147 fi 3612 fi ;; 3613 esac 3148 3614 fi 3149 3615 CC=$ac_cv_prog_CC 3150 3616 if test -n "$CC"; then 3151 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $CC" >&53152 $as_echo"$CC" >&6; }3153 else 3154 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&53155 $as_echo"no" >&6; }3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3618 printf "%s\n" "$CC" >&6; } 3619 else 3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3621 printf "%s\n" "no" >&6; } 3156 3622 fi 3157 3623 … … 3164 3630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3165 3631 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3167 $as_echo_n "checking for $ac_word... " >&6; } 3168 if ${ac_cv_prog_CC+:} false; then : 3169 $as_echo_n "(cached) " >&6 3170 else 3171 if test -n "$CC"; then 3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3633 printf %s "checking for $ac_word... " >&6; } 3634 if test ${ac_cv_prog_CC+y} 3635 then : 3636 printf %s "(cached) " >&6 3637 else case e in #( 3638 e) if test -n "$CC"; then 3172 3639 ac_cv_prog_CC="$CC" # Let the user override the test. 3173 3640 else … … 3176 3643 do 3177 3644 IFS=$as_save_IFS 3178 test -z "$as_dir" && as_dir=. 3645 case $as_dir in #((( 3646 '') as_dir=./ ;; 3647 */) ;; 3648 *) as_dir=$as_dir/ ;; 3649 esac 3179 3650 for ac_exec_ext in '' $ac_executable_extensions; do 3180 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then3651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3181 3652 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3183 3654 break 2 3184 3655 fi … … 3187 3658 IFS=$as_save_IFS 3188 3659 3189 fi 3660 fi ;; 3661 esac 3190 3662 fi 3191 3663 CC=$ac_cv_prog_CC 3192 3664 if test -n "$CC"; then 3193 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $CC" >&53194 $as_echo"$CC" >&6; }3195 else 3196 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&53197 $as_echo"no" >&6; }3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3666 printf "%s\n" "$CC" >&6; } 3667 else 3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3669 printf "%s\n" "no" >&6; } 3198 3670 fi 3199 3671 … … 3208 3680 # Extract the first word of "$ac_prog", so it can be a program name with args. 3209 3681 set dummy $ac_prog; ac_word=$2 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3211 $as_echo_n "checking for $ac_word... " >&6; } 3212 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3213 $as_echo_n "(cached) " >&6 3214 else 3215 if test -n "$ac_ct_CC"; then 3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3683 printf %s "checking for $ac_word... " >&6; } 3684 if test ${ac_cv_prog_ac_ct_CC+y} 3685 then : 3686 printf %s "(cached) " >&6 3687 else case e in #( 3688 e) if test -n "$ac_ct_CC"; then 3216 3689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3217 3690 else … … 3220 3693 do 3221 3694 IFS=$as_save_IFS 3222 test -z "$as_dir" && as_dir=. 3695 case $as_dir in #((( 3696 '') as_dir=./ ;; 3697 */) ;; 3698 *) as_dir=$as_dir/ ;; 3699 esac 3223 3700 for ac_exec_ext in '' $ac_executable_extensions; do 3224 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then3701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3225 3702 ac_cv_prog_ac_ct_CC="$ac_prog" 3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&53703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3227 3704 break 2 3228 3705 fi … … 3231 3708 IFS=$as_save_IFS 3232 3709 3233 fi 3710 fi ;; 3711 esac 3234 3712 fi 3235 3713 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3236 3714 if test -n "$ac_ct_CC"; then 3237 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&53238 $as_echo"$ac_ct_CC" >&6; }3239 else 3240 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&53241 $as_echo"no" >&6; }3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3716 printf "%s\n" "$ac_ct_CC" >&6; } 3717 else 3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3719 printf "%s\n" "no" >&6; } 3242 3720 fi 3243 3721 … … 3251 3729 case $cross_compiling:$ac_tool_warned in 3252 3730 yes:) 3253 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&53254 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3732 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3255 3733 ac_tool_warned=yes ;; 3256 3734 esac … … 3260 3738 3261 3739 fi 3262 3263 3264 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3740 if test -z "$CC"; then 3741 if test -n "$ac_tool_prefix"; then 3742 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3743 set dummy ${ac_tool_prefix}clang; ac_word=$2 3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3745 printf %s "checking for $ac_word... " >&6; } 3746 if test ${ac_cv_prog_CC+y} 3747 then : 3748 printf %s "(cached) " >&6 3749 else case e in #( 3750 e) if test -n "$CC"; then 3751 ac_cv_prog_CC="$CC" # Let the user override the test. 3752 else 3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3754 for as_dir in $PATH 3755 do 3756 IFS=$as_save_IFS 3757 case $as_dir in #((( 3758 '') as_dir=./ ;; 3759 */) ;; 3760 *) as_dir=$as_dir/ ;; 3761 esac 3762 for ac_exec_ext in '' $ac_executable_extensions; do 3763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3764 ac_cv_prog_CC="${ac_tool_prefix}clang" 3765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3766 break 2 3767 fi 3768 done 3769 done 3770 IFS=$as_save_IFS 3771 3772 fi ;; 3773 esac 3774 fi 3775 CC=$ac_cv_prog_CC 3776 if test -n "$CC"; then 3777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3778 printf "%s\n" "$CC" >&6; } 3779 else 3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3781 printf "%s\n" "no" >&6; } 3782 fi 3783 3784 3785 fi 3786 if test -z "$ac_cv_prog_CC"; then 3787 ac_ct_CC=$CC 3788 # Extract the first word of "clang", so it can be a program name with args. 3789 set dummy clang; ac_word=$2 3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3791 printf %s "checking for $ac_word... " >&6; } 3792 if test ${ac_cv_prog_ac_ct_CC+y} 3793 then : 3794 printf %s "(cached) " >&6 3795 else case e in #( 3796 e) if test -n "$ac_ct_CC"; then 3797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3798 else 3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3800 for as_dir in $PATH 3801 do 3802 IFS=$as_save_IFS 3803 case $as_dir in #((( 3804 '') as_dir=./ ;; 3805 */) ;; 3806 *) as_dir=$as_dir/ ;; 3807 esac 3808 for ac_exec_ext in '' $ac_executable_extensions; do 3809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3810 ac_cv_prog_ac_ct_CC="clang" 3811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3812 break 2 3813 fi 3814 done 3815 done 3816 IFS=$as_save_IFS 3817 3818 fi ;; 3819 esac 3820 fi 3821 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3822 if test -n "$ac_ct_CC"; then 3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3824 printf "%s\n" "$ac_ct_CC" >&6; } 3825 else 3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3827 printf "%s\n" "no" >&6; } 3828 fi 3829 3830 if test "x$ac_ct_CC" = x; then 3831 CC="" 3832 else 3833 case $cross_compiling:$ac_tool_warned in 3834 yes:) 3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3836 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3837 ac_tool_warned=yes ;; 3838 esac 3839 CC=$ac_ct_CC 3840 fi 3841 else 3842 CC="$ac_cv_prog_CC" 3843 fi 3844 3845 fi 3846 3847 3848 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3849 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3266 3850 as_fn_error $? "no acceptable C compiler found in \$PATH 3267 See \`config.log' for more details" "$LINENO" 5; }3851 See 'config.log' for more details" "$LINENO" 5; } 3268 3852 3269 3853 # Provide some information about the compiler. 3270 $as_echo"$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&53854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3271 3855 set X $ac_compile 3272 3856 ac_compiler=$2 3273 for ac_option in --version -v -V -qversion ; do3857 for ac_option in --version -v -V -qversion -version; do 3274 3858 { { ac_try="$ac_compiler $ac_option >&5" 3275 3859 case "(($ac_try" in … … 3278 3862 esac 3279 3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3280 $as_echo"$ac_try_echo"; } >&53864 printf "%s\n" "$ac_try_echo"; } >&5 3281 3865 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3282 3866 ac_status=$? … … 3288 3872 fi 3289 3873 rm -f conftest.er1 conftest.err 3290 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&53874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3291 3875 test $ac_status = 0; } 3292 3876 done … … 3296 3880 3297 3881 int 3298 main ( )3882 main (void) 3299 3883 { 3300 3884 … … 3308 3892 # It will help us diagnose broken compilers, and finding out an intuition 3309 3893 # of exeext. 3310 { $as_echo"$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&53311 $as_echo_n"checking whether the C compiler works... " >&6; }3312 ac_link_default=` $as_echo"$ac_link" | sed 's/ -o *conftest[^ ]*//'`3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3895 printf %s "checking whether the C compiler works... " >&6; } 3896 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3313 3897 3314 3898 # The possible output files: … … 3331 3915 esac 3332 3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3333 $as_echo"$ac_try_echo"; } >&53917 printf "%s\n" "$ac_try_echo"; } >&5 3334 3918 (eval "$ac_link_default") 2>&5 3335 3919 ac_status=$? 3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3337 test $ac_status = 0; }; then : 3338 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3339 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3921 test $ac_status = 0; } 3922 then : 3923 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3924 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3340 3925 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3341 3926 # so that the user can short-circuit this test for compilers unknown to … … 3352 3937 break;; 3353 3938 *.* ) 3354 if test "${ac_cv_exeext+set}" = set&& test "$ac_cv_exeext" != no;3939 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3355 3940 then :; else 3356 3941 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3357 3942 fi 3358 3943 # We set ac_cv_exeext here because the later test for it is not 3359 # safe: cross compilers may not add the suffix if given an `-o'3944 # safe: cross compilers may not add the suffix if given an '-o' 3360 3945 # argument, so we may need to know it at that point already. 3361 3946 # Even if this section looks crufty: it has the advantage of … … 3368 3953 test "$ac_cv_exeext" = no && ac_cv_exeext= 3369 3954 3370 else 3371 ac_file='' 3372 fi 3373 if test -z "$ac_file"; then : 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3375 $as_echo "no" >&6; } 3376 $as_echo "$as_me: failed program was:" >&5 3955 else case e in #( 3956 e) ac_file='' ;; 3957 esac 3958 fi 3959 if test -z "$ac_file" 3960 then : 3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3962 printf "%s\n" "no" >&6; } 3963 printf "%s\n" "$as_me: failed program was:" >&5 3377 3964 sed 's/^/| /' conftest.$ac_ext >&5 3378 3965 3379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&53380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}3966 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3967 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3381 3968 as_fn_error 77 "C compiler cannot create executables 3382 See \`config.log' for more details" "$LINENO" 5; } 3383 else 3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3385 $as_echo "yes" >&6; } 3386 fi 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3388 $as_echo_n "checking for C compiler default output file name... " >&6; } 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3390 $as_echo "$ac_file" >&6; } 3969 See 'config.log' for more details" "$LINENO" 5; } 3970 else case e in #( 3971 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3972 printf "%s\n" "yes" >&6; } ;; 3973 esac 3974 fi 3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3976 printf %s "checking for C compiler default output file name... " >&6; } 3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3978 printf "%s\n" "$ac_file" >&6; } 3391 3979 ac_exeext=$ac_cv_exeext 3392 3980 3393 3981 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3394 3982 ac_clean_files=$ac_clean_files_save 3395 { $as_echo"$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&53396 $as_echo_n"checking for suffix of executables... " >&6; }3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3984 printf %s "checking for suffix of executables... " >&6; } 3397 3985 if { { ac_try="$ac_link" 3398 3986 case "(($ac_try" in … … 3401 3989 esac 3402 3990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3403 $as_echo"$ac_try_echo"; } >&53991 printf "%s\n" "$ac_try_echo"; } >&5 3404 3992 (eval "$ac_link") 2>&5 3405 3993 ac_status=$? 3406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3407 test $ac_status = 0; }; then : 3408 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3409 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3410 # work properly (i.e., refer to `conftest.exe'), while it won't with 3411 # `rm'. 3994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3995 test $ac_status = 0; } 3996 then : 3997 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3998 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3999 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4000 # 'rm'. 3412 4001 for ac_file in conftest.exe conftest conftest.*; do 3413 4002 test -f "$ac_file" || continue … … 3419 4008 esac 3420 4009 done 3421 else 3422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&53423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}4010 else case e in #( 4011 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4012 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3424 4013 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3425 See \`config.log' for more details" "$LINENO" 5; } 4014 See 'config.log' for more details" "$LINENO" 5; } ;; 4015 esac 3426 4016 fi 3427 4017 rm -f conftest conftest$ac_cv_exeext 3428 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&53429 $as_echo"$ac_cv_exeext" >&6; }4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4019 printf "%s\n" "$ac_cv_exeext" >&6; } 3430 4020 3431 4021 rm -f conftest.$ac_ext … … 3436 4026 #include <stdio.h> 3437 4027 int 3438 main ( )4028 main (void) 3439 4029 { 3440 4030 FILE *f = fopen ("conftest.out", "w"); 4031 if (!f) 4032 return 1; 3441 4033 return ferror (f) || fclose (f) != 0; 3442 4034 … … 3448 4040 # Check that the compiler produces executables we can run. If not, either 3449 4041 # the compiler is broken, or we cross compile. 3450 { $as_echo"$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&53451 $as_echo_n"checking whether we are cross compiling... " >&6; }4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4043 printf %s "checking whether we are cross compiling... " >&6; } 3452 4044 if test "$cross_compiling" != yes; then 3453 4045 { { ac_try="$ac_link" … … 3457 4049 esac 3458 4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3459 $as_echo"$ac_try_echo"; } >&54051 printf "%s\n" "$ac_try_echo"; } >&5 3460 4052 (eval "$ac_link") 2>&5 3461 4053 ac_status=$? 3462 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&54054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3463 4055 test $ac_status = 0; } 3464 4056 if { ac_try='./conftest$ac_cv_exeext' … … 3468 4060 esac 3469 4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3470 $as_echo"$ac_try_echo"; } >&54062 printf "%s\n" "$ac_try_echo"; } >&5 3471 4063 (eval "$ac_try") 2>&5 3472 4064 ac_status=$? 3473 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&54065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3474 4066 test $ac_status = 0; }; }; then 3475 4067 cross_compiling=no … … 3478 4070 cross_compiling=yes 3479 4071 else 3480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&53481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}3482 as_fn_error $?"cannot run C compiled programs.3483 If you meant to cross compile, use \`--host'.3484 See \`config.log' for more details" "$LINENO" 5; }4072 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4073 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4074 as_fn_error 77 "cannot run C compiled programs. 4075 If you meant to cross compile, use '--host'. 4076 See 'config.log' for more details" "$LINENO" 5; } 3485 4077 fi 3486 4078 fi 3487 4079 fi 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3489 $as_echo "$cross_compiling" >&6; } 3490 3491 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4081 printf "%s\n" "$cross_compiling" >&6; } 4082 4083 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4084 conftest.o conftest.obj conftest.out 3492 4085 ac_clean_files=$ac_clean_files_save 3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3494 $as_echo_n "checking for suffix of object files... " >&6; } 3495 if ${ac_cv_objext+:} false; then : 3496 $as_echo_n "(cached) " >&6 3497 else 3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4087 printf %s "checking for suffix of object files... " >&6; } 4088 if test ${ac_cv_objext+y} 4089 then : 4090 printf %s "(cached) " >&6 4091 else case e in #( 4092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3499 4093 /* end confdefs.h. */ 3500 4094 3501 4095 int 3502 main ( )4096 main (void) 3503 4097 { 3504 4098 … … 3514 4108 esac 3515 4109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3516 $as_echo"$ac_try_echo"; } >&54110 printf "%s\n" "$ac_try_echo"; } >&5 3517 4111 (eval "$ac_compile") 2>&5 3518 4112 ac_status=$? 3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3520 test $ac_status = 0; }; then : 4113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4114 test $ac_status = 0; } 4115 then : 3521 4116 for ac_file in conftest.o conftest.obj conftest.*; do 3522 4117 test -f "$ac_file" || continue; … … 3527 4122 esac 3528 4123 done 3529 else 3530 $as_echo"$as_me: failed program was:" >&54124 else case e in #( 4125 e) printf "%s\n" "$as_me: failed program was:" >&5 3531 4126 sed 's/^/| /' conftest.$ac_ext >&5 3532 4127 3533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&53534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}4128 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4129 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3535 4130 as_fn_error $? "cannot compute suffix of object files: cannot compile 3536 See \`config.log' for more details" "$LINENO" 5; } 3537 fi 3538 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3539 fi 3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3541 $as_echo "$ac_cv_objext" >&6; } 4131 See 'config.log' for more details" "$LINENO" 5; } ;; 4132 esac 4133 fi 4134 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4135 esac 4136 fi 4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4138 printf "%s\n" "$ac_cv_objext" >&6; } 3542 4139 OBJEXT=$ac_cv_objext 3543 4140 ac_objext=$OBJEXT 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3545 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3546 if ${ac_cv_c_compiler_gnu+:} false; then : 3547 $as_echo_n "(cached) " >&6 3548 else 3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4142 printf %s "checking whether the compiler supports GNU C... " >&6; } 4143 if test ${ac_cv_c_compiler_gnu+y} 4144 then : 4145 printf %s "(cached) " >&6 4146 else case e in #( 4147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3550 4148 /* end confdefs.h. */ 3551 4149 3552 4150 int 3553 main ( )4151 main (void) 3554 4152 { 3555 4153 #ifndef __GNUC__ … … 3561 4159 } 3562 4160 _ACEOF 3563 if ac_fn_c_try_compile "$LINENO"; then : 4161 if ac_fn_c_try_compile "$LINENO" 4162 then : 3564 4163 ac_compiler_gnu=yes 3565 else 3566 ac_compiler_gnu=no 3567 fi 3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4164 else case e in #( 4165 e) ac_compiler_gnu=no ;; 4166 esac 4167 fi 4168 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3569 4169 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3570 3571 fi 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3573 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4170 ;; 4171 esac 4172 fi 4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4174 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4175 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4176 3574 4177 if test $ac_compiler_gnu = yes; then 3575 4178 GCC=yes … … 3577 4180 GCC= 3578 4181 fi 3579 ac_test_CFLAGS=${CFLAGS+ set}4182 ac_test_CFLAGS=${CFLAGS+y} 3580 4183 ac_save_CFLAGS=$CFLAGS 3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3582 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3583 if ${ac_cv_prog_cc_g+:} false; then : 3584 $as_echo_n "(cached) " >&6 3585 else 3586 ac_save_c_werror_flag=$ac_c_werror_flag 4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4185 printf %s "checking whether $CC accepts -g... " >&6; } 4186 if test ${ac_cv_prog_cc_g+y} 4187 then : 4188 printf %s "(cached) " >&6 4189 else case e in #( 4190 e) ac_save_c_werror_flag=$ac_c_werror_flag 3587 4191 ac_c_werror_flag=yes 3588 4192 ac_cv_prog_cc_g=no … … 3592 4196 3593 4197 int 3594 main ( )4198 main (void) 3595 4199 { 3596 4200 … … 3599 4203 } 3600 4204 _ACEOF 3601 if ac_fn_c_try_compile "$LINENO"; then : 4205 if ac_fn_c_try_compile "$LINENO" 4206 then : 3602 4207 ac_cv_prog_cc_g=yes 3603 else 3604 CFLAGS=""4208 else case e in #( 4209 e) CFLAGS="" 3605 4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3606 4211 /* end confdefs.h. */ 3607 4212 3608 4213 int 3609 main ( )4214 main (void) 3610 4215 { 3611 4216 … … 3614 4219 } 3615 4220 _ACEOF 3616 if ac_fn_c_try_compile "$LINENO"; then : 3617 3618 else 3619 ac_c_werror_flag=$ac_save_c_werror_flag 4221 if ac_fn_c_try_compile "$LINENO" 4222 then : 4223 4224 else case e in #( 4225 e) ac_c_werror_flag=$ac_save_c_werror_flag 3620 4226 CFLAGS="-g" 3621 4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext … … 3623 4229 3624 4230 int 3625 main ( )4231 main (void) 3626 4232 { 3627 4233 … … 3630 4236 } 3631 4237 _ACEOF 3632 if ac_fn_c_try_compile "$LINENO"; then : 4238 if ac_fn_c_try_compile "$LINENO" 4239 then : 3633 4240 ac_cv_prog_cc_g=yes 3634 4241 fi 3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3636 fi 3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3638 fi 3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3640 ac_c_werror_flag=$ac_save_c_werror_flag 3641 fi 3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3643 $as_echo "$ac_cv_prog_cc_g" >&6; } 3644 if test "$ac_test_CFLAGS" = set; then 4242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4243 esac 4244 fi 4245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4246 esac 4247 fi 4248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4249 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4250 esac 4251 fi 4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4253 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4254 if test $ac_test_CFLAGS; then 3645 4255 CFLAGS=$ac_save_CFLAGS 3646 4256 elif test $ac_cv_prog_cc_g = yes; then … … 3657 4267 fi 3658 4268 fi 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3660 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3661 if ${ac_cv_prog_cc_c89+:} false; then : 3662 $as_echo_n "(cached) " >&6 3663 else 3664 ac_cv_prog_cc_c89=no 4269 ac_prog_cc_stdc=no 4270 if test x$ac_prog_cc_stdc = xno 4271 then : 4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4273 printf %s "checking for $CC option to enable C11 features... " >&6; } 4274 if test ${ac_cv_prog_cc_c11+y} 4275 then : 4276 printf %s "(cached) " >&6 4277 else case e in #( 4278 e) ac_cv_prog_cc_c11=no 3665 4279 ac_save_CC=$CC 3666 4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3667 4281 /* end confdefs.h. */ 3668 #include <stdarg.h> 3669 #include <stdio.h> 3670 struct stat; 3671 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3672 struct buf { int x; }; 3673 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3674 static char *e (p, i) 3675 char **p; 3676 int i; 3677 { 3678 return p[i]; 3679 } 3680 static char *f (char * (*g) (char **, int), char **p, ...) 3681 { 3682 char *s; 3683 va_list v; 3684 va_start (v,p); 3685 s = g (p, va_arg (v,int)); 3686 va_end (v); 3687 return s; 3688 } 3689 3690 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3691 function prototypes and stuff, but not '\xHH' hex character constants. 3692 These don't provoke an error unfortunately, instead are silently treated 3693 as 'x'. The following induces an error, until -std is added to get 3694 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3695 array size at least. It's necessary to write '\x00'==0 to get something 3696 that's true only with -std. */ 3697 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3698 3699 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3700 inside strings and character constants. */ 3701 #define FOO(x) 'x' 3702 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3703 3704 int test (int i, double x); 3705 struct s1 {int (*f) (int a);}; 3706 struct s2 {int (*f) (double a);}; 3707 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3708 int argc; 3709 char **argv; 3710 int 3711 main () 3712 { 3713 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3714 ; 3715 return 0; 3716 } 4282 $ac_c_conftest_c11_program 3717 4283 _ACEOF 3718 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3719 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4284 for ac_arg in '' -std=gnu11 3720 4285 do 3721 4286 CC="$ac_save_CC $ac_arg" 3722 if ac_fn_c_try_compile "$LINENO"; then : 4287 if ac_fn_c_try_compile "$LINENO" 4288 then : 4289 ac_cv_prog_cc_c11=$ac_arg 4290 fi 4291 rm -f core conftest.err conftest.$ac_objext conftest.beam 4292 test "x$ac_cv_prog_cc_c11" != "xno" && break 4293 done 4294 rm -f conftest.$ac_ext 4295 CC=$ac_save_CC ;; 4296 esac 4297 fi 4298 4299 if test "x$ac_cv_prog_cc_c11" = xno 4300 then : 4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4302 printf "%s\n" "unsupported" >&6; } 4303 else case e in #( 4304 e) if test "x$ac_cv_prog_cc_c11" = x 4305 then : 4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4307 printf "%s\n" "none needed" >&6; } 4308 else case e in #( 4309 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4310 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4311 CC="$CC $ac_cv_prog_cc_c11" ;; 4312 esac 4313 fi 4314 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4315 ac_prog_cc_stdc=c11 ;; 4316 esac 4317 fi 4318 fi 4319 if test x$ac_prog_cc_stdc = xno 4320 then : 4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4322 printf %s "checking for $CC option to enable C99 features... " >&6; } 4323 if test ${ac_cv_prog_cc_c99+y} 4324 then : 4325 printf %s "(cached) " >&6 4326 else case e in #( 4327 e) ac_cv_prog_cc_c99=no 4328 ac_save_CC=$CC 4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4330 /* end confdefs.h. */ 4331 $ac_c_conftest_c99_program 4332 _ACEOF 4333 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4334 do 4335 CC="$ac_save_CC $ac_arg" 4336 if ac_fn_c_try_compile "$LINENO" 4337 then : 4338 ac_cv_prog_cc_c99=$ac_arg 4339 fi 4340 rm -f core conftest.err conftest.$ac_objext conftest.beam 4341 test "x$ac_cv_prog_cc_c99" != "xno" && break 4342 done 4343 rm -f conftest.$ac_ext 4344 CC=$ac_save_CC ;; 4345 esac 4346 fi 4347 4348 if test "x$ac_cv_prog_cc_c99" = xno 4349 then : 4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4351 printf "%s\n" "unsupported" >&6; } 4352 else case e in #( 4353 e) if test "x$ac_cv_prog_cc_c99" = x 4354 then : 4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4356 printf "%s\n" "none needed" >&6; } 4357 else case e in #( 4358 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4359 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4360 CC="$CC $ac_cv_prog_cc_c99" ;; 4361 esac 4362 fi 4363 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4364 ac_prog_cc_stdc=c99 ;; 4365 esac 4366 fi 4367 fi 4368 if test x$ac_prog_cc_stdc = xno 4369 then : 4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4371 printf %s "checking for $CC option to enable C89 features... " >&6; } 4372 if test ${ac_cv_prog_cc_c89+y} 4373 then : 4374 printf %s "(cached) " >&6 4375 else case e in #( 4376 e) ac_cv_prog_cc_c89=no 4377 ac_save_CC=$CC 4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4379 /* end confdefs.h. */ 4380 $ac_c_conftest_c89_program 4381 _ACEOF 4382 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4383 do 4384 CC="$ac_save_CC $ac_arg" 4385 if ac_fn_c_try_compile "$LINENO" 4386 then : 3723 4387 ac_cv_prog_cc_c89=$ac_arg 3724 4388 fi 3725 rm -f core conftest.err conftest.$ac_objext 4389 rm -f core conftest.err conftest.$ac_objext conftest.beam 3726 4390 test "x$ac_cv_prog_cc_c89" != "xno" && break 3727 4391 done 3728 4392 rm -f conftest.$ac_ext 3729 CC=$ac_save_CC 3730 3731 fi 3732 # AC_CACHE_VAL 3733 case "x$ac_cv_prog_cc_c89" in 3734 x) 3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3736 $as_echo "none needed" >&6; } ;; 3737 xno) 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3739 $as_echo "unsupported" >&6; } ;; 3740 *) 3741 CC="$CC $ac_cv_prog_cc_c89" 3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3743 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3744 esac 3745 if test "x$ac_cv_prog_cc_c89" != xno; then : 3746 4393 CC=$ac_save_CC ;; 4394 esac 4395 fi 4396 4397 if test "x$ac_cv_prog_cc_c89" = xno 4398 then : 4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4400 printf "%s\n" "unsupported" >&6; } 4401 else case e in #( 4402 e) if test "x$ac_cv_prog_cc_c89" = x 4403 then : 4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4405 printf "%s\n" "none needed" >&6; } 4406 else case e in #( 4407 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4408 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4409 CC="$CC $ac_cv_prog_cc_c89" ;; 4410 esac 4411 fi 4412 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4413 ac_prog_cc_stdc=c89 ;; 4414 esac 4415 fi 3747 4416 fi 3748 4417 … … 3753 4422 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3754 4423 3755 ac_ext=c 4424 4425 ac_ext=c 3756 4426 ac_cpp='$CPP $CPPFLAGS' 3757 4427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3758 4428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3759 4429 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3761 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3762 if ${am_cv_prog_cc_c_o+:} false; then : 3763 $as_echo_n "(cached) " >&6 3764 else 3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4431 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4432 if test ${am_cv_prog_cc_c_o+y} 4433 then : 4434 printf %s "(cached) " >&6 4435 else case e in #( 4436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3766 4437 /* end confdefs.h. */ 3767 4438 3768 4439 int 3769 main ( )4440 main (void) 3770 4441 { 3771 4442 … … 3793 4464 done 3794 4465 rm -f core conftest* 3795 unset am_i 3796 fi 3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3798 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4466 unset am_i ;; 4467 esac 4468 fi 4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4470 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3799 4471 if test "$am_cv_prog_cc_c_o" != yes; then 3800 4472 # Losing compiler, so override with the script. … … 3815 4487 ac_config_commands="$ac_config_commands depfiles" 3816 4488 3817 { $as_echo"$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&53818 $as_echo_n"checking whether ${MAKE-make} supports the include directive... " >&6; }4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4490 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3819 4491 cat > confinc.mk << 'END' 3820 4492 am__doit: … … 3852 4524 done 3853 4525 rm -f confinc.* confmf.* 3854 { $as_echo"$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&53855 $as_echo"${_am_result}" >&6; }4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4527 printf "%s\n" "${_am_result}" >&6; } 3856 4528 3857 4529 # Check whether --enable-dependency-tracking was given. 3858 if test "${enable_dependency_tracking+set}" = set; then : 4530 if test ${enable_dependency_tracking+y} 4531 then : 3859 4532 enableval=$enable_dependency_tracking; 3860 4533 fi … … 3877 4550 depcc="$CC" am_compiler_list= 3878 4551 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3880 $as_echo_n "checking dependency style of $depcc... " >&6; } 3881 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3882 $as_echo_n "(cached) " >&6 3883 else 3884 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4553 printf %s "checking dependency style of $depcc... " >&6; } 4554 if test ${am_cv_CC_dependencies_compiler_type+y} 4555 then : 4556 printf %s "(cached) " >&6 4557 else case e in #( 4558 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3885 4559 # We make a subdir and do the tests there. Otherwise we can end up 3886 4560 # making bogus files that we don't know about and never remove. For … … 3986 4660 am_cv_CC_dependencies_compiler_type=none 3987 4661 fi 3988 3989 fi 3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3991 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4662 ;; 4663 esac 4664 fi 4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4666 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 3992 4667 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3993 4668 … … 4012 4687 depcc="$CCAS" am_compiler_list= 4013 4688 4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4015 $as_echo_n "checking dependency style of $depcc... " >&6; } 4016 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : 4017 $as_echo_n "(cached) " >&6 4018 else 4019 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4690 printf %s "checking dependency style of $depcc... " >&6; } 4691 if test ${am_cv_CCAS_dependencies_compiler_type+y} 4692 then : 4693 printf %s "(cached) " >&6 4694 else case e in #( 4695 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4020 4696 # We make a subdir and do the tests there. Otherwise we can end up 4021 4697 # making bogus files that we don't know about and never remove. For … … 4119 4795 am_cv_CCAS_dependencies_compiler_type=none 4120 4796 fi 4121 4122 fi 4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 4124 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 4797 ;; 4798 esac 4799 fi 4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 4801 printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; } 4125 4802 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 4126 4803 … … 4136 4813 4137 4814 4138 # Make sure we can run config.sub. 4139 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4140 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4141 4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4143 $as_echo_n "checking build system type... " >&6; } 4144 if ${ac_cv_build+:} false; then : 4145 $as_echo_n "(cached) " >&6 4146 else 4147 ac_build_alias=$build_alias 4815 4816 4817 # Make sure we can run config.sub. 4818 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4819 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4820 4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4822 printf %s "checking build system type... " >&6; } 4823 if test ${ac_cv_build+y} 4824 then : 4825 printf %s "(cached) " >&6 4826 else case e in #( 4827 e) ac_build_alias=$build_alias 4148 4828 test "x$ac_build_alias" = x && 4149 ac_build_alias=`$SHELL "$ ac_aux_dir/config.guess"`4829 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4150 4830 test "x$ac_build_alias" = x && 4151 4831 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4152 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4153 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4154 4155 fi 4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4157 $as_echo "$ac_cv_build" >&6; } 4832 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4833 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4834 ;; 4835 esac 4836 fi 4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4838 printf "%s\n" "$ac_cv_build" >&6; } 4158 4839 case $ac_cv_build in 4159 4840 *-*-*) ;; … … 4174 4855 4175 4856 4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4177 $as_echo_n "checking host system type... " >&6; } 4178 if ${ac_cv_host+:} false; then : 4179 $as_echo_n "(cached) " >&6 4180 else 4181 if test "x$host_alias" = x; then 4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4858 printf %s "checking host system type... " >&6; } 4859 if test ${ac_cv_host+y} 4860 then : 4861 printf %s "(cached) " >&6 4862 else case e in #( 4863 e) if test "x$host_alias" = x; then 4182 4864 ac_cv_host=$ac_cv_build 4183 4865 else 4184 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4185 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4186 fi 4187 4188 fi 4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4190 $as_echo "$ac_cv_host" >&6; } 4866 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4867 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4868 fi 4869 ;; 4870 esac 4871 fi 4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4873 printf "%s\n" "$ac_cv_host" >&6; } 4191 4874 case $ac_cv_host in 4192 4875 *-*-*) ;; … … 4207 4890 4208 4891 4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4210 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4211 if ${ac_cv_path_SED+:} false; then : 4212 $as_echo_n "(cached) " >&6 4213 else 4214 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4893 printf %s "checking for a sed that does not truncate output... " >&6; } 4894 if test ${ac_cv_path_SED+y} 4895 then : 4896 printf %s "(cached) " >&6 4897 else case e in #( 4898 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4215 4899 for ac_i in 1 2 3 4 5 6 7; do 4216 4900 ac_script="$ac_script$as_nl$ac_script" … … 4225 4909 do 4226 4910 IFS=$as_save_IFS 4227 test -z "$as_dir" && as_dir=. 4228 for ac_prog in sed gsed; do 4911 case $as_dir in #((( 4912 '') as_dir=./ ;; 4913 */) ;; 4914 *) as_dir=$as_dir/ ;; 4915 esac 4916 for ac_prog in sed gsed 4917 do 4229 4918 for ac_exec_ext in '' $ac_executable_extensions; do 4230 ac_path_SED="$as_dir /$ac_prog$ac_exec_ext"4919 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4231 4920 as_fn_executable_p "$ac_path_SED" || continue 4232 4921 # Check for GNU ac_path_SED and select it if it is found. 4233 4922 # Check for GNU $ac_path_SED 4234 case `"$ac_path_SED" --version 2>&1` in 4923 case `"$ac_path_SED" --version 2>&1` in #( 4235 4924 *GNU*) 4236 4925 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4926 #( 4237 4927 *) 4238 4928 ac_count=0 4239 $as_echo_n0123456789 >"conftest.in"4929 printf %s 0123456789 >"conftest.in" 4240 4930 while : 4241 4931 do … … 4243 4933 mv "conftest.tmp" "conftest.in" 4244 4934 cp "conftest.in" "conftest.nl" 4245 $as_echo'' >> "conftest.nl"4935 printf "%s\n" '' >> "conftest.nl" 4246 4936 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4247 4937 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break … … 4269 4959 ac_cv_path_SED=$SED 4270 4960 fi 4271 4272 fi 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4274 $as_echo "$ac_cv_path_SED" >&6; } 4961 ;; 4962 esac 4963 fi 4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4965 printf "%s\n" "$ac_cv_path_SED" >&6; } 4275 4966 SED="$ac_cv_path_SED" 4276 4967 rm -f conftest.sed … … 4289 4980 4290 4981 4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4292 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4293 if ${ac_cv_path_GREP+:} false; then : 4294 $as_echo_n "(cached) " >&6 4295 else 4296 if test -z "$GREP"; then 4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4983 printf %s "checking for grep that handles long lines and -e... " >&6; } 4984 if test ${ac_cv_path_GREP+y} 4985 then : 4986 printf %s "(cached) " >&6 4987 else case e in #( 4988 e) if test -z "$GREP"; then 4297 4989 ac_path_GREP_found=false 4298 4990 # Loop through the user's path and test for each of PROGNAME-LIST … … 4301 4993 do 4302 4994 IFS=$as_save_IFS 4303 test -z "$as_dir" && as_dir=. 4304 for ac_prog in grep ggrep; do 4995 case $as_dir in #((( 4996 '') as_dir=./ ;; 4997 */) ;; 4998 *) as_dir=$as_dir/ ;; 4999 esac 5000 for ac_prog in grep ggrep 5001 do 4305 5002 for ac_exec_ext in '' $ac_executable_extensions; do 4306 ac_path_GREP="$as_dir /$ac_prog$ac_exec_ext"5003 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4307 5004 as_fn_executable_p "$ac_path_GREP" || continue 4308 5005 # Check for GNU ac_path_GREP and select it if it is found. 4309 5006 # Check for GNU $ac_path_GREP 4310 case `"$ac_path_GREP" --version 2>&1` in 5007 case `"$ac_path_GREP" --version 2>&1` in #( 4311 5008 *GNU*) 4312 5009 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5010 #( 4313 5011 *) 4314 5012 ac_count=0 4315 $as_echo_n0123456789 >"conftest.in"5013 printf %s 0123456789 >"conftest.in" 4316 5014 while : 4317 5015 do … … 4319 5017 mv "conftest.tmp" "conftest.in" 4320 5018 cp "conftest.in" "conftest.nl" 4321 $as_echo'GREP' >> "conftest.nl"5019 printf "%s\n" 'GREP' >> "conftest.nl" 4322 5020 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4323 5021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break … … 4345 5043 ac_cv_path_GREP=$GREP 4346 5044 fi 4347 4348 fi 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4350 $as_echo "$ac_cv_path_GREP" >&6; } 5045 ;; 5046 esac 5047 fi 5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5049 printf "%s\n" "$ac_cv_path_GREP" >&6; } 4351 5050 GREP="$ac_cv_path_GREP" 4352 5051 4353 5052 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4355 $as_echo_n "checking for egrep... " >&6; } 4356 if ${ac_cv_path_EGREP+:} false; then : 4357 $as_echo_n "(cached) " >&6 4358 else 4359 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5054 printf %s "checking for egrep... " >&6; } 5055 if test ${ac_cv_path_EGREP+y} 5056 then : 5057 printf %s "(cached) " >&6 5058 else case e in #( 5059 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4360 5060 then ac_cv_path_EGREP="$GREP -E" 4361 5061 else … … 4367 5067 do 4368 5068 IFS=$as_save_IFS 4369 test -z "$as_dir" && as_dir=. 4370 for ac_prog in egrep; do 5069 case $as_dir in #((( 5070 '') as_dir=./ ;; 5071 */) ;; 5072 *) as_dir=$as_dir/ ;; 5073 esac 5074 for ac_prog in egrep 5075 do 4371 5076 for ac_exec_ext in '' $ac_executable_extensions; do 4372 ac_path_EGREP="$as_dir /$ac_prog$ac_exec_ext"5077 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4373 5078 as_fn_executable_p "$ac_path_EGREP" || continue 4374 5079 # Check for GNU ac_path_EGREP and select it if it is found. 4375 5080 # Check for GNU $ac_path_EGREP 4376 case `"$ac_path_EGREP" --version 2>&1` in 5081 case `"$ac_path_EGREP" --version 2>&1` in #( 4377 5082 *GNU*) 4378 5083 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5084 #( 4379 5085 *) 4380 5086 ac_count=0 4381 $as_echo_n0123456789 >"conftest.in"5087 printf %s 0123456789 >"conftest.in" 4382 5088 while : 4383 5089 do … … 4385 5091 mv "conftest.tmp" "conftest.in" 4386 5092 cp "conftest.in" "conftest.nl" 4387 $as_echo'EGREP' >> "conftest.nl"5093 printf "%s\n" 'EGREP' >> "conftest.nl" 4388 5094 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4389 5095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break … … 4412 5118 fi 4413 5119 4414 fi 4415 fi 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4417 $as_echo "$ac_cv_path_EGREP" >&6; } 5120 fi ;; 5121 esac 5122 fi 5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5124 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4418 5125 EGREP="$ac_cv_path_EGREP" 4419 5126 4420 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4422 $as_echo_n "checking for fgrep... " >&6; } 4423 if ${ac_cv_path_FGREP+:} false; then : 4424 $as_echo_n "(cached) " >&6 4425 else 4426 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5127 EGREP_TRADITIONAL=$EGREP 5128 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5129 5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5131 printf %s "checking for fgrep... " >&6; } 5132 if test ${ac_cv_path_FGREP+y} 5133 then : 5134 printf %s "(cached) " >&6 5135 else case e in #( 5136 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4427 5137 then ac_cv_path_FGREP="$GREP -F" 4428 5138 else … … 4434 5144 do 4435 5145 IFS=$as_save_IFS 4436 test -z "$as_dir" && as_dir=. 4437 for ac_prog in fgrep; do 5146 case $as_dir in #((( 5147 '') as_dir=./ ;; 5148 */) ;; 5149 *) as_dir=$as_dir/ ;; 5150 esac 5151 for ac_prog in fgrep 5152 do 4438 5153 for ac_exec_ext in '' $ac_executable_extensions; do 4439 ac_path_FGREP="$as_dir /$ac_prog$ac_exec_ext"5154 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 4440 5155 as_fn_executable_p "$ac_path_FGREP" || continue 4441 5156 # Check for GNU ac_path_FGREP and select it if it is found. 4442 5157 # Check for GNU $ac_path_FGREP 4443 case `"$ac_path_FGREP" --version 2>&1` in 5158 case `"$ac_path_FGREP" --version 2>&1` in #( 4444 5159 *GNU*) 4445 5160 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5161 #( 4446 5162 *) 4447 5163 ac_count=0 4448 $as_echo_n0123456789 >"conftest.in"5164 printf %s 0123456789 >"conftest.in" 4449 5165 while : 4450 5166 do … … 4452 5168 mv "conftest.tmp" "conftest.in" 4453 5169 cp "conftest.in" "conftest.nl" 4454 $as_echo'FGREP' >> "conftest.nl"5170 printf "%s\n" 'FGREP' >> "conftest.nl" 4455 5171 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4456 5172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break … … 4479 5195 fi 4480 5196 4481 fi 4482 fi 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4484 $as_echo "$ac_cv_path_FGREP" >&6; } 5197 fi ;; 5198 esac 5199 fi 5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5201 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 4485 5202 FGREP="$ac_cv_path_FGREP" 4486 5203 … … 4508 5225 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4509 5226 4510 { $as_echo"$as_me:${as_lineno-$LINENO}: checking how to print strings" >&54511 $as_echo_n"checking how to print strings... " >&6; }5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5228 printf %s "checking how to print strings... " >&6; } 4512 5229 # Test print first, because it will be a builtin if present. 4513 5230 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ … … 4535 5252 4536 5253 case $ECHO in 4537 printf*) { $as_echo"$as_me:${as_lineno-$LINENO}: result: printf" >&54538 $as_echo"printf" >&6; } ;;4539 print*) { $as_echo"$as_me:${as_lineno-$LINENO}: result: print -r" >&54540 $as_echo"print -r" >&6; } ;;4541 *) { $as_echo"$as_me:${as_lineno-$LINENO}: result: cat" >&54542 $as_echo"cat" >&6; } ;;5254 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5255 printf "%s\n" "printf" >&6; } ;; 5256 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5257 printf "%s\n" "print -r" >&6; } ;; 5258 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5259 printf "%s\n" "cat" >&6; } ;; 4543 5260 esac 4544 5261 … … 4559 5276 4560 5277 # Check whether --with-gnu-ld was given. 4561 if test "${with_gnu_ld+set}" = set; then : 5278 if test ${with_gnu_ld+y} 5279 then : 4562 5280 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4563 else 4564 with_gnu_ld=no 5281 else case e in #( 5282 e) with_gnu_ld=no ;; 5283 esac 4565 5284 fi 4566 5285 … … 4568 5287 if test yes = "$GCC"; then 4569 5288 # Check if gcc -print-prog-name=ld gives a path. 4570 { $as_echo"$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&54571 $as_echo_n"checking for ld used by $CC... " >&6; }5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5290 printf %s "checking for ld used by $CC... " >&6; } 4572 5291 case $host in 4573 5292 *-*-mingw*) … … 4598 5317 esac 4599 5318 elif test yes = "$with_gnu_ld"; then 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4601 $as_echo_n "checking for GNU ld... " >&6; } 4602 else 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4604 $as_echo_n "checking for non-GNU ld... " >&6; } 4605 fi 4606 if ${lt_cv_path_LD+:} false; then : 4607 $as_echo_n "(cached) " >&6 4608 else 4609 if test -z "$LD"; then 5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5320 printf %s "checking for GNU ld... " >&6; } 5321 else 5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5323 printf %s "checking for non-GNU ld... " >&6; } 5324 fi 5325 if test ${lt_cv_path_LD+y} 5326 then : 5327 printf %s "(cached) " >&6 5328 else case e in #( 5329 e) if test -z "$LD"; then 4610 5330 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4611 5331 for ac_dir in $PATH; do … … 4630 5350 else 4631 5351 lt_cv_path_LD=$LD # Let the user override the test with a path. 4632 fi 5352 fi ;; 5353 esac 4633 5354 fi 4634 5355 4635 5356 LD=$lt_cv_path_LD 4636 5357 if test -n "$LD"; then 4637 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $LD" >&54638 $as_echo"$LD" >&6; }4639 else 4640 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&54641 $as_echo"no" >&6; }5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5359 printf "%s\n" "$LD" >&6; } 5360 else 5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5362 printf "%s\n" "no" >&6; } 4642 5363 fi 4643 5364 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4645 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4646 if ${lt_cv_prog_gnu_ld+:} false; then : 4647 $as_echo_n "(cached) " >&6 4648 else 4649 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5366 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5367 if test ${lt_cv_prog_gnu_ld+y} 5368 then : 5369 printf %s "(cached) " >&6 5370 else case e in #( 5371 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 4650 5372 case `$LD -v 2>&1 </dev/null` in 4651 5373 *GNU* | *'with BFD'*) … … 4655 5377 lt_cv_prog_gnu_ld=no 4656 5378 ;; 4657 esac 4658 fi 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4660 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 5379 esac ;; 5380 esac 5381 fi 5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5383 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 4661 5384 with_gnu_ld=$lt_cv_prog_gnu_ld 4662 5385 … … 4674 5397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4675 5398 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4676 { $as_echo"$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&54677 $as_echo_n"checking how to run the C preprocessor... " >&6; }5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5400 printf %s "checking how to run the C preprocessor... " >&6; } 4678 5401 # On Suns, sometimes $CPP names a directory. 4679 5402 if test -n "$CPP" && test -d "$CPP"; then … … 4681 5404 fi 4682 5405 if test -z "$CPP"; then 4683 if ${ac_cv_prog_CPP+:} false; then : 4684 $as_echo_n "(cached) " >&6 4685 else 4686 # Double quotes because CPP needs to be expanded 4687 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5406 if test ${ac_cv_prog_CPP+y} 5407 then : 5408 printf %s "(cached) " >&6 5409 else case e in #( 5410 e) # Double quotes because $CC needs to be expanded 5411 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 4688 5412 do 4689 5413 ac_preproc_ok=false … … 4692 5416 # Use a header file that comes with gcc, so configuring glibc 4693 5417 # with a fresh cross-compiler works. 4694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since4695 # <limits.h> exists even on freestanding compilers.4696 5418 # On the NeXT, cc -E runs the code through the compiler's parser, 4697 5419 # not just through cpp. "Syntax error" is here to catch this case. 4698 5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4699 5421 /* end confdefs.h. */ 4700 #ifdef __STDC__ 4701 # include <limits.h> 4702 #else 4703 # include <assert.h> 4704 #endif 5422 #include <limits.h> 4705 5423 Syntax error 4706 5424 _ACEOF 4707 if ac_fn_c_try_cpp "$LINENO"; then : 4708 4709 else 4710 # Broken: fails on valid input. 4711 continue 5425 if ac_fn_c_try_cpp "$LINENO" 5426 then : 5427 5428 else case e in #( 5429 e) # Broken: fails on valid input. 5430 continue ;; 5431 esac 4712 5432 fi 4713 5433 rm -f conftest.err conftest.i conftest.$ac_ext … … 4719 5439 #include <ac_nonexistent.h> 4720 5440 _ACEOF 4721 if ac_fn_c_try_cpp "$LINENO"; then : 5441 if ac_fn_c_try_cpp "$LINENO" 5442 then : 4722 5443 # Broken: success on invalid input. 4723 5444 continue 4724 else 4725 # Passes both tests.5445 else case e in #( 5446 e) # Passes both tests. 4726 5447 ac_preproc_ok=: 4727 break 5448 break ;; 5449 esac 4728 5450 fi 4729 5451 rm -f conftest.err conftest.i conftest.$ac_ext 4730 5452 4731 5453 done 4732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.5454 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4733 5455 rm -f conftest.i conftest.err conftest.$ac_ext 4734 if $ac_preproc_ok; then : 5456 if $ac_preproc_ok 5457 then : 4735 5458 break 4736 5459 fi … … 4738 5461 done 4739 5462 ac_cv_prog_CPP=$CPP 4740 5463 ;; 5464 esac 4741 5465 fi 4742 5466 CPP=$ac_cv_prog_CPP … … 4744 5468 ac_cv_prog_CPP=$CPP 4745 5469 fi 4746 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $CPP" >&54747 $as_echo"$CPP" >&6; }5470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5471 printf "%s\n" "$CPP" >&6; } 4748 5472 ac_preproc_ok=false 4749 5473 for ac_c_preproc_warn_flag in '' yes … … 4751 5475 # Use a header file that comes with gcc, so configuring glibc 4752 5476 # with a fresh cross-compiler works. 4753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since4754 # <limits.h> exists even on freestanding compilers.4755 5477 # On the NeXT, cc -E runs the code through the compiler's parser, 4756 5478 # not just through cpp. "Syntax error" is here to catch this case. 4757 5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4758 5480 /* end confdefs.h. */ 4759 #ifdef __STDC__ 4760 # include <limits.h> 4761 #else 4762 # include <assert.h> 4763 #endif 5481 #include <limits.h> 4764 5482 Syntax error 4765 5483 _ACEOF 4766 if ac_fn_c_try_cpp "$LINENO"; then : 4767 4768 else 4769 # Broken: fails on valid input. 4770 continue 5484 if ac_fn_c_try_cpp "$LINENO" 5485 then : 5486 5487 else case e in #( 5488 e) # Broken: fails on valid input. 5489 continue ;; 5490 esac 4771 5491 fi 4772 5492 rm -f conftest.err conftest.i conftest.$ac_ext … … 4778 5498 #include <ac_nonexistent.h> 4779 5499 _ACEOF 4780 if ac_fn_c_try_cpp "$LINENO"; then : 5500 if ac_fn_c_try_cpp "$LINENO" 5501 then : 4781 5502 # Broken: success on invalid input. 4782 5503 continue 4783 else 4784 # Passes both tests.5504 else case e in #( 5505 e) # Passes both tests. 4785 5506 ac_preproc_ok=: 4786 break 5507 break ;; 5508 esac 4787 5509 fi 4788 5510 rm -f conftest.err conftest.i conftest.$ac_ext 4789 5511 4790 5512 done 4791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.5513 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4792 5514 rm -f conftest.i conftest.err conftest.$ac_ext 4793 if $ac_preproc_ok; then : 4794 4795 else 4796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5515 if $ac_preproc_ok 5516 then : 5517 5518 else case e in #( 5519 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5520 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4798 5521 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4799 See \`config.log' for more details" "$LINENO" 5; } 5522 See 'config.log' for more details" "$LINENO" 5; } ;; 5523 esac 4800 5524 fi 4801 5525 … … 4810 5534 # Extract the first word of "$ac_prog", so it can be a program name with args. 4811 5535 set dummy $ac_prog; ac_word=$2 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4813 $as_echo_n "checking for $ac_word... " >&6; } 4814 if ${ac_cv_prog_AWK+:} false; then : 4815 $as_echo_n "(cached) " >&6 4816 else 4817 if test -n "$AWK"; then 5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5537 printf %s "checking for $ac_word... " >&6; } 5538 if test ${ac_cv_prog_AWK+y} 5539 then : 5540 printf %s "(cached) " >&6 5541 else case e in #( 5542 e) if test -n "$AWK"; then 4818 5543 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4819 5544 else … … 4822 5547 do 4823 5548 IFS=$as_save_IFS 4824 test -z "$as_dir" && as_dir=. 5549 case $as_dir in #((( 5550 '') as_dir=./ ;; 5551 */) ;; 5552 *) as_dir=$as_dir/ ;; 5553 esac 4825 5554 for ac_exec_ext in '' $ac_executable_extensions; do 4826 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then5555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4827 5556 ac_cv_prog_AWK="$ac_prog" 4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4829 5558 break 2 4830 5559 fi … … 4833 5562 IFS=$as_save_IFS 4834 5563 4835 fi 5564 fi ;; 5565 esac 4836 5566 fi 4837 5567 AWK=$ac_cv_prog_AWK 4838 5568 if test -n "$AWK"; then 4839 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $AWK" >&54840 $as_echo"$AWK" >&6; }4841 else 4842 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&54843 $as_echo"no" >&6; }5569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5570 printf "%s\n" "$AWK" >&6; } 5571 else 5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5573 printf "%s\n" "no" >&6; } 4844 5574 fi 4845 5575 … … 4849 5579 4850 5580 4851 { $as_echo"$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&54852 $as_echo_n"checking whether ln -s works... " >&6; }5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5582 printf %s "checking whether ln -s works... " >&6; } 4853 5583 LN_S=$as_ln_s 4854 5584 if test "$LN_S" = "ln -s"; then 4855 { $as_echo"$as_me:${as_lineno-$LINENO}: result: yes" >&54856 $as_echo"yes" >&6; }4857 else 4858 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&54859 $as_echo"no, using $LN_S" >&6; }4860 fi 4861 4862 { $as_echo"$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&54863 $as_echo_n"checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5586 printf "%s\n" "yes" >&6; } 5587 else 5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5589 printf "%s\n" "no, using $LN_S" >&6; } 5590 fi 5591 5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5593 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4864 5594 set x ${MAKE-make} 4865 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4866 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4867 $as_echo_n "(cached) " >&6 4868 else 4869 cat >conftest.make <<\_ACEOF 5595 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5596 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 5597 then : 5598 printf %s "(cached) " >&6 5599 else case e in #( 5600 e) cat >conftest.make <<\_ACEOF 4870 5601 SHELL = /bin/sh 4871 5602 all: … … 4879 5610 eval ac_cv_prog_make_${ac_make}_set=no;; 4880 5611 esac 4881 rm -f conftest.make 5612 rm -f conftest.make ;; 5613 esac 4882 5614 fi 4883 5615 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4884 { $as_echo"$as_me:${as_lineno-$LINENO}: result: yes" >&54885 $as_echo"yes" >&6; }5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5617 printf "%s\n" "yes" >&6; } 4886 5618 SET_MAKE= 4887 5619 else 4888 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&54889 $as_echo"no" >&6; }5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5621 printf "%s\n" "no" >&6; } 4890 5622 SET_MAKE="MAKE=${MAKE-make}" 4891 5623 fi … … 4894 5626 case `pwd` in 4895 5627 *\ * | *\ *) 4896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4897 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4898 esac 4899 4900 4901 4902 macro_version='2.4.6' 4903 macro_revision='2.4.6' 5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5629 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5630 esac 5631 5632 5633 5634 macro_version='2.4.7' 5635 macro_revision='2.4.7' 5636 4904 5637 4905 5638 … … 4934 5667 no_glob_subst='s/\*/\\\*/g' 4935 5668 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4937 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4938 if ${lt_cv_path_NM+:} false; then : 4939 $as_echo_n "(cached) " >&6 4940 else 4941 if test -n "$NM"; then 5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5670 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5671 if test ${lt_cv_path_NM+y} 5672 then : 5673 printf %s "(cached) " >&6 5674 else case e in #( 5675 e) if test -n "$NM"; then 4942 5676 # Let the user override the test. 4943 5677 lt_cv_path_NM=$NM … … 4963 5697 *) lt_bad_file=/dev/null ;; 4964 5698 esac 4965 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed'1q'` in5699 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 4966 5700 *$lt_bad_file* | *'Invalid file or object type'*) 4967 5701 lt_cv_path_NM="$tmp_nm -B" … … 4969 5703 ;; 4970 5704 *) 4971 case `"$tmp_nm" -p /dev/null 2>&1 | sed'1q'` in5705 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 4972 5706 */dev/null*) 4973 5707 lt_cv_path_NM="$tmp_nm -p" … … 4986 5720 done 4987 5721 : ${lt_cv_path_NM=no} 4988 fi 4989 fi 4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4991 $as_echo "$lt_cv_path_NM" >&6; } 5722 fi ;; 5723 esac 5724 fi 5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5726 printf "%s\n" "$lt_cv_path_NM" >&6; } 4992 5727 if test no != "$lt_cv_path_NM"; then 4993 5728 NM=$lt_cv_path_NM … … 5002 5737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5003 5738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5005 $as_echo_n "checking for $ac_word... " >&6; } 5006 if ${ac_cv_prog_DUMPBIN+:} false; then : 5007 $as_echo_n "(cached) " >&6 5008 else 5009 if test -n "$DUMPBIN"; then 5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5740 printf %s "checking for $ac_word... " >&6; } 5741 if test ${ac_cv_prog_DUMPBIN+y} 5742 then : 5743 printf %s "(cached) " >&6 5744 else case e in #( 5745 e) if test -n "$DUMPBIN"; then 5010 5746 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5011 5747 else … … 5014 5750 do 5015 5751 IFS=$as_save_IFS 5016 test -z "$as_dir" && as_dir=. 5752 case $as_dir in #((( 5753 '') as_dir=./ ;; 5754 */) ;; 5755 *) as_dir=$as_dir/ ;; 5756 esac 5017 5757 for ac_exec_ext in '' $ac_executable_extensions; do 5018 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then5758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5019 5759 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5021 5761 break 2 5022 5762 fi … … 5025 5765 IFS=$as_save_IFS 5026 5766 5027 fi 5767 fi ;; 5768 esac 5028 5769 fi 5029 5770 DUMPBIN=$ac_cv_prog_DUMPBIN 5030 5771 if test -n "$DUMPBIN"; then 5031 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&55032 $as_echo"$DUMPBIN" >&6; }5033 else 5034 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&55035 $as_echo"no" >&6; }5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5773 printf "%s\n" "$DUMPBIN" >&6; } 5774 else 5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5776 printf "%s\n" "no" >&6; } 5036 5777 fi 5037 5778 … … 5046 5787 # Extract the first word of "$ac_prog", so it can be a program name with args. 5047 5788 set dummy $ac_prog; ac_word=$2 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5049 $as_echo_n "checking for $ac_word... " >&6; } 5050 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5051 $as_echo_n "(cached) " >&6 5052 else 5053 if test -n "$ac_ct_DUMPBIN"; then 5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5790 printf %s "checking for $ac_word... " >&6; } 5791 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5792 then : 5793 printf %s "(cached) " >&6 5794 else case e in #( 5795 e) if test -n "$ac_ct_DUMPBIN"; then 5054 5796 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5055 5797 else … … 5058 5800 do 5059 5801 IFS=$as_save_IFS 5060 test -z "$as_dir" && as_dir=. 5802 case $as_dir in #((( 5803 '') as_dir=./ ;; 5804 */) ;; 5805 *) as_dir=$as_dir/ ;; 5806 esac 5061 5807 for ac_exec_ext in '' $ac_executable_extensions; do 5062 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then5808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5063 5809 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5065 5811 break 2 5066 5812 fi … … 5069 5815 IFS=$as_save_IFS 5070 5816 5071 fi 5817 fi ;; 5818 esac 5072 5819 fi 5073 5820 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5074 5821 if test -n "$ac_ct_DUMPBIN"; then 5075 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&55076 $as_echo"$ac_ct_DUMPBIN" >&6; }5077 else 5078 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&55079 $as_echo"no" >&6; }5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5823 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5824 else 5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5826 printf "%s\n" "no" >&6; } 5080 5827 fi 5081 5828 … … 5089 5836 case $cross_compiling:$ac_tool_warned in 5090 5837 yes:) 5091 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&55092 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5839 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5093 5840 ac_tool_warned=yes ;; 5094 5841 esac … … 5097 5844 fi 5098 5845 5099 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed'1q'` in5846 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5100 5847 *COFF*) 5101 5848 DUMPBIN="$DUMPBIN -symbols -headers" … … 5118 5865 5119 5866 5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5121 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5122 if ${lt_cv_nm_interface+:} false; then : 5123 $as_echo_n "(cached) " >&6 5124 else 5125 lt_cv_nm_interface="BSD nm" 5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5868 printf %s "checking the name lister ($NM) interface... " >&6; } 5869 if test ${lt_cv_nm_interface+y} 5870 then : 5871 printf %s "(cached) " >&6 5872 else case e in #( 5873 e) lt_cv_nm_interface="BSD nm" 5126 5874 echo "int some_variable = 0;" > conftest.$ac_ext 5127 5875 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) … … 5136 5884 lt_cv_nm_interface="MS dumpbin" 5137 5885 fi 5138 rm -f conftest* 5139 fi 5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5141 $as_echo "$lt_cv_nm_interface" >&6; } 5886 rm -f conftest* ;; 5887 esac 5888 fi 5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5890 printf "%s\n" "$lt_cv_nm_interface" >&6; } 5142 5891 5143 5892 # find the maximum length of command line arguments 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5145 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5146 if ${lt_cv_sys_max_cmd_len+:} false; then : 5147 $as_echo_n "(cached) " >&6 5148 else 5149 i=0 5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5894 printf %s "checking the maximum length of command line arguments... " >&6; } 5895 if test ${lt_cv_sys_max_cmd_len+y} 5896 then : 5897 printf %s "(cached) " >&6 5898 else case e in #( 5899 e) i=0 5150 5900 teststring=ABCD 5151 5901 … … 5188 5938 ;; 5189 5939 5190 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)5940 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5191 5941 # This has been around since 386BSD, at least. Likely further. 5192 5942 if test -x /sbin/sysctl; then … … 5231 5981 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5232 5982 if test -n "$kargmax"; then 5233 lt_cv_sys_max_cmd_len=`echo $kargmax | sed's/.*[ ]//'`5983 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5234 5984 else 5235 5985 lt_cv_sys_max_cmd_len=32768 … … 5269 6019 ;; 5270 6020 esac 5271 6021 ;; 6022 esac 5272 6023 fi 5273 6024 5274 6025 if test -n "$lt_cv_sys_max_cmd_len"; then 5275 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&55276 $as_echo"$lt_cv_sys_max_cmd_len" >&6; }5277 else 5278 { $as_echo"$as_me:${as_lineno-$LINENO}: result: none" >&55279 $as_echo"none" >&6; }6026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6027 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6028 else 6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6030 printf "%s\n" "none" >&6; } 5280 6031 fi 5281 6032 max_cmd_len=$lt_cv_sys_max_cmd_len … … 5321 6072 5322 6073 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5324 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5325 if ${lt_cv_to_host_file_cmd+:} false; then : 5326 $as_echo_n "(cached) " >&6 5327 else 5328 case $host in 6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6075 printf %s "checking how to convert $build file names to $host format... " >&6; } 6076 if test ${lt_cv_to_host_file_cmd+y} 6077 then : 6078 printf %s "(cached) " >&6 6079 else case e in #( 6080 e) case $host in 5329 6081 *-*-mingw* ) 5330 6082 case $build in … … 5357 6109 ;; 5358 6110 esac 5359 6111 ;; 6112 esac 5360 6113 fi 5361 6114 5362 6115 to_host_file_cmd=$lt_cv_to_host_file_cmd 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5364 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 5365 5366 5367 5368 5369 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5371 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5372 if ${lt_cv_to_tool_file_cmd+:} false; then : 5373 $as_echo_n "(cached) " >&6 5374 else 5375 #assume ordinary cross tools, or native build. 6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6117 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6118 6119 6120 6121 6122 6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6124 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6125 if test ${lt_cv_to_tool_file_cmd+y} 6126 then : 6127 printf %s "(cached) " >&6 6128 else case e in #( 6129 e) #assume ordinary cross tools, or native build. 5376 6130 lt_cv_to_tool_file_cmd=func_convert_file_noop 5377 6131 case $host in … … 5384 6138 ;; 5385 6139 esac 5386 6140 ;; 6141 esac 5387 6142 fi 5388 6143 5389 6144 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5391 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5392 5393 5394 5395 5396 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5398 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5399 if ${lt_cv_ld_reload_flag+:} false; then : 5400 $as_echo_n "(cached) " >&6 5401 else 5402 lt_cv_ld_reload_flag='-r' 5403 fi 5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5405 $as_echo "$lt_cv_ld_reload_flag" >&6; } 6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6146 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6147 6148 6149 6150 6151 6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6153 printf %s "checking for $LD option to reload object files... " >&6; } 6154 if test ${lt_cv_ld_reload_flag+y} 6155 then : 6156 printf %s "(cached) " >&6 6157 else case e in #( 6158 e) lt_cv_ld_reload_flag='-r' ;; 6159 esac 6160 fi 6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6162 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5406 6163 reload_flag=$lt_cv_ld_reload_flag 5407 6164 case $reload_flag in … … 5434 6191 5435 6192 if test -n "$ac_tool_prefix"; then 5436 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5437 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5439 $as_echo_n "checking for $ac_word... " >&6; } 5440 if ${ac_cv_prog_OBJDUMP+:} false; then : 5441 $as_echo_n "(cached) " >&6 5442 else 5443 if test -n "$OBJDUMP"; then 5444 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6193 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6194 set dummy ${ac_tool_prefix}file; ac_word=$2 6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6196 printf %s "checking for $ac_word... " >&6; } 6197 if test ${ac_cv_prog_FILECMD+y} 6198 then : 6199 printf %s "(cached) " >&6 6200 else case e in #( 6201 e) if test -n "$FILECMD"; then 6202 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5445 6203 else 5446 6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 5448 6206 do 5449 6207 IFS=$as_save_IFS 5450 test -z "$as_dir" && as_dir=. 6208 case $as_dir in #((( 6209 '') as_dir=./ ;; 6210 */) ;; 6211 *) as_dir=$as_dir/ ;; 6212 esac 5451 6213 for ac_exec_ext in '' $ac_executable_extensions; do 5452 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then5453 ac_cv_prog_ OBJDUMP="${ac_tool_prefix}objdump"5454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6215 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5455 6217 break 2 5456 6218 fi … … 5459 6221 IFS=$as_save_IFS 5460 6222 5461 fi 5462 fi 5463 OBJDUMP=$ac_cv_prog_OBJDUMP 5464 if test -n "$OBJDUMP"; then 5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5466 $as_echo "$OBJDUMP" >&6; } 5467 else 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5469 $as_echo "no" >&6; } 5470 fi 5471 5472 5473 fi 5474 if test -z "$ac_cv_prog_OBJDUMP"; then 5475 ac_ct_OBJDUMP=$OBJDUMP 5476 # Extract the first word of "objdump", so it can be a program name with args. 5477 set dummy objdump; ac_word=$2 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5479 $as_echo_n "checking for $ac_word... " >&6; } 5480 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5481 $as_echo_n "(cached) " >&6 5482 else 5483 if test -n "$ac_ct_OBJDUMP"; then 5484 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6223 fi ;; 6224 esac 6225 fi 6226 FILECMD=$ac_cv_prog_FILECMD 6227 if test -n "$FILECMD"; then 6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6229 printf "%s\n" "$FILECMD" >&6; } 6230 else 6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6232 printf "%s\n" "no" >&6; } 6233 fi 6234 6235 6236 fi 6237 if test -z "$ac_cv_prog_FILECMD"; then 6238 ac_ct_FILECMD=$FILECMD 6239 # Extract the first word of "file", so it can be a program name with args. 6240 set dummy file; ac_word=$2 6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6242 printf %s "checking for $ac_word... " >&6; } 6243 if test ${ac_cv_prog_ac_ct_FILECMD+y} 6244 then : 6245 printf %s "(cached) " >&6 6246 else case e in #( 6247 e) if test -n "$ac_ct_FILECMD"; then 6248 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5485 6249 else 5486 6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 5488 6252 do 5489 6253 IFS=$as_save_IFS 5490 test -z "$as_dir" && as_dir=. 6254 case $as_dir in #((( 6255 '') as_dir=./ ;; 6256 */) ;; 6257 *) as_dir=$as_dir/ ;; 6258 esac 5491 6259 for ac_exec_ext in '' $ac_executable_extensions; do 5492 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then5493 ac_cv_prog_ac_ct_ OBJDUMP="objdump"5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6261 ac_cv_prog_ac_ct_FILECMD="file" 6262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5495 6263 break 2 5496 6264 fi … … 5499 6267 IFS=$as_save_IFS 5500 6268 5501 fi 6269 fi ;; 6270 esac 6271 fi 6272 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6273 if test -n "$ac_ct_FILECMD"; then 6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6275 printf "%s\n" "$ac_ct_FILECMD" >&6; } 6276 else 6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6278 printf "%s\n" "no" >&6; } 6279 fi 6280 6281 if test "x$ac_ct_FILECMD" = x; then 6282 FILECMD=":" 6283 else 6284 case $cross_compiling:$ac_tool_warned in 6285 yes:) 6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6287 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6288 ac_tool_warned=yes ;; 6289 esac 6290 FILECMD=$ac_ct_FILECMD 6291 fi 6292 else 6293 FILECMD="$ac_cv_prog_FILECMD" 6294 fi 6295 6296 6297 6298 6299 6300 6301 6302 if test -n "$ac_tool_prefix"; then 6303 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6304 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6306 printf %s "checking for $ac_word... " >&6; } 6307 if test ${ac_cv_prog_OBJDUMP+y} 6308 then : 6309 printf %s "(cached) " >&6 6310 else case e in #( 6311 e) if test -n "$OBJDUMP"; then 6312 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6313 else 6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6315 for as_dir in $PATH 6316 do 6317 IFS=$as_save_IFS 6318 case $as_dir in #((( 6319 '') as_dir=./ ;; 6320 */) ;; 6321 *) as_dir=$as_dir/ ;; 6322 esac 6323 for ac_exec_ext in '' $ac_executable_extensions; do 6324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6325 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6327 break 2 6328 fi 6329 done 6330 done 6331 IFS=$as_save_IFS 6332 6333 fi ;; 6334 esac 6335 fi 6336 OBJDUMP=$ac_cv_prog_OBJDUMP 6337 if test -n "$OBJDUMP"; then 6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6339 printf "%s\n" "$OBJDUMP" >&6; } 6340 else 6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6342 printf "%s\n" "no" >&6; } 6343 fi 6344 6345 6346 fi 6347 if test -z "$ac_cv_prog_OBJDUMP"; then 6348 ac_ct_OBJDUMP=$OBJDUMP 6349 # Extract the first word of "objdump", so it can be a program name with args. 6350 set dummy objdump; ac_word=$2 6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6352 printf %s "checking for $ac_word... " >&6; } 6353 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6354 then : 6355 printf %s "(cached) " >&6 6356 else case e in #( 6357 e) if test -n "$ac_ct_OBJDUMP"; then 6358 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6359 else 6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6361 for as_dir in $PATH 6362 do 6363 IFS=$as_save_IFS 6364 case $as_dir in #((( 6365 '') as_dir=./ ;; 6366 */) ;; 6367 *) as_dir=$as_dir/ ;; 6368 esac 6369 for ac_exec_ext in '' $ac_executable_extensions; do 6370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6371 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6373 break 2 6374 fi 6375 done 6376 done 6377 IFS=$as_save_IFS 6378 6379 fi ;; 6380 esac 5502 6381 fi 5503 6382 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5504 6383 if test -n "$ac_ct_OBJDUMP"; then 5505 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&55506 $as_echo"$ac_ct_OBJDUMP" >&6; }5507 else 5508 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&55509 $as_echo"no" >&6; }6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6385 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6386 else 6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6388 printf "%s\n" "no" >&6; } 5510 6389 fi 5511 6390 … … 5515 6394 case $cross_compiling:$ac_tool_warned in 5516 6395 yes:) 5517 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&55518 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6397 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5519 6398 ac_tool_warned=yes ;; 5520 6399 esac … … 5532 6411 5533 6412 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5535 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5536 if ${lt_cv_deplibs_check_method+:} false; then : 5537 $as_echo_n "(cached) " >&6 5538 else 5539 lt_cv_file_magic_cmd='$MAGIC_CMD' 6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6414 printf %s "checking how to recognize dependent libraries... " >&6; } 6415 if test ${lt_cv_deplibs_check_method+y} 6416 then : 6417 printf %s "(cached) " >&6 6418 else case e in #( 6419 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 5540 6420 lt_cv_file_magic_test_file= 5541 6421 lt_cv_deplibs_check_method='unknown' … … 5562 6442 bsdi[45]*) 5563 6443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5564 lt_cv_file_magic_cmd=' /usr/bin/file-L'6444 lt_cv_file_magic_cmd='$FILECMD -L' 5565 6445 lt_cv_file_magic_test_file=/shlib/libc.so 5566 6446 ;; … … 5596 6476 ;; 5597 6477 5598 freebsd* | dragonfly* )6478 freebsd* | dragonfly* | midnightbsd*) 5599 6479 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5600 6480 case $host_cpu in … … 5603 6483 # Let's accept both of them until this is cleared up. 5604 6484 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5605 lt_cv_file_magic_cmd= /usr/bin/file6485 lt_cv_file_magic_cmd=$FILECMD 5606 6486 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5607 6487 ;; … … 5617 6497 5618 6498 hpux10.20* | hpux11*) 5619 lt_cv_file_magic_cmd= /usr/bin/file6499 lt_cv_file_magic_cmd=$FILECMD 5620 6500 case $host_cpu in 5621 6501 ia64*) … … 5664 6544 newos6*) 5665 6545 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5666 lt_cv_file_magic_cmd= /usr/bin/file6546 lt_cv_file_magic_cmd=$FILECMD 5667 6547 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5668 6548 ;; … … 5730 6610 ;; 5731 6611 esac 5732 5733 fi 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5735 $as_echo "$lt_cv_deplibs_check_method" >&6; } 6612 ;; 6613 esac 6614 fi 6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6616 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 5736 6617 5737 6618 file_magic_glob= … … 5777 6658 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5778 6659 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5780 $as_echo_n "checking for $ac_word... " >&6; } 5781 if ${ac_cv_prog_DLLTOOL+:} false; then : 5782 $as_echo_n "(cached) " >&6 5783 else 5784 if test -n "$DLLTOOL"; then 6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6661 printf %s "checking for $ac_word... " >&6; } 6662 if test ${ac_cv_prog_DLLTOOL+y} 6663 then : 6664 printf %s "(cached) " >&6 6665 else case e in #( 6666 e) if test -n "$DLLTOOL"; then 5785 6667 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5786 6668 else … … 5789 6671 do 5790 6672 IFS=$as_save_IFS 5791 test -z "$as_dir" && as_dir=. 6673 case $as_dir in #((( 6674 '') as_dir=./ ;; 6675 */) ;; 6676 *) as_dir=$as_dir/ ;; 6677 esac 5792 6678 for ac_exec_ext in '' $ac_executable_extensions; do 5793 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then6679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5794 6680 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5796 6682 break 2 5797 6683 fi … … 5800 6686 IFS=$as_save_IFS 5801 6687 5802 fi 6688 fi ;; 6689 esac 5803 6690 fi 5804 6691 DLLTOOL=$ac_cv_prog_DLLTOOL 5805 6692 if test -n "$DLLTOOL"; then 5806 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&55807 $as_echo"$DLLTOOL" >&6; }5808 else 5809 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&55810 $as_echo"no" >&6; }6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6694 printf "%s\n" "$DLLTOOL" >&6; } 6695 else 6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6697 printf "%s\n" "no" >&6; } 5811 6698 fi 5812 6699 … … 5817 6704 # Extract the first word of "dlltool", so it can be a program name with args. 5818 6705 set dummy dlltool; ac_word=$2 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5820 $as_echo_n "checking for $ac_word... " >&6; } 5821 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5822 $as_echo_n "(cached) " >&6 5823 else 5824 if test -n "$ac_ct_DLLTOOL"; then 6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6707 printf %s "checking for $ac_word... " >&6; } 6708 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6709 then : 6710 printf %s "(cached) " >&6 6711 else case e in #( 6712 e) if test -n "$ac_ct_DLLTOOL"; then 5825 6713 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5826 6714 else … … 5829 6717 do 5830 6718 IFS=$as_save_IFS 5831 test -z "$as_dir" && as_dir=. 6719 case $as_dir in #((( 6720 '') as_dir=./ ;; 6721 */) ;; 6722 *) as_dir=$as_dir/ ;; 6723 esac 5832 6724 for ac_exec_ext in '' $ac_executable_extensions; do 5833 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then6725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5834 6726 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5836 6728 break 2 5837 6729 fi … … 5840 6732 IFS=$as_save_IFS 5841 6733 5842 fi 6734 fi ;; 6735 esac 5843 6736 fi 5844 6737 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5845 6738 if test -n "$ac_ct_DLLTOOL"; then 5846 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&55847 $as_echo"$ac_ct_DLLTOOL" >&6; }5848 else 5849 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&55850 $as_echo"no" >&6; }6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6740 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6741 else 6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6743 printf "%s\n" "no" >&6; } 5851 6744 fi 5852 6745 … … 5856 6749 case $cross_compiling:$ac_tool_warned in 5857 6750 yes:) 5858 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&55859 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6752 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5860 6753 ac_tool_warned=yes ;; 5861 6754 esac … … 5874 6767 5875 6768 5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5877 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5878 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5879 $as_echo_n "(cached) " >&6 5880 else 5881 lt_cv_sharedlib_from_linklib_cmd='unknown' 6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6770 printf %s "checking how to associate runtime and link libraries... " >&6; } 6771 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6772 then : 6773 printf %s "(cached) " >&6 6774 else case e in #( 6775 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 5882 6776 5883 6777 case $host_os in … … 5899 6793 ;; 5900 6794 esac 5901 5902 fi 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5904 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6795 ;; 6796 esac 6797 fi 6798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6799 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5905 6800 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5906 6801 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO … … 5918 6813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5919 6814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5921 $as_echo_n "checking for $ac_word... " >&6; } 5922 if ${ac_cv_prog_AR+:} false; then : 5923 $as_echo_n "(cached) " >&6 5924 else 5925 if test -n "$AR"; then 6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6816 printf %s "checking for $ac_word... " >&6; } 6817 if test ${ac_cv_prog_AR+y} 6818 then : 6819 printf %s "(cached) " >&6 6820 else case e in #( 6821 e) if test -n "$AR"; then 5926 6822 ac_cv_prog_AR="$AR" # Let the user override the test. 5927 6823 else … … 5930 6826 do 5931 6827 IFS=$as_save_IFS 5932 test -z "$as_dir" && as_dir=. 6828 case $as_dir in #((( 6829 '') as_dir=./ ;; 6830 */) ;; 6831 *) as_dir=$as_dir/ ;; 6832 esac 5933 6833 for ac_exec_ext in '' $ac_executable_extensions; do 5934 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then6834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5935 6835 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5937 6837 break 2 5938 6838 fi … … 5941 6841 IFS=$as_save_IFS 5942 6842 5943 fi 6843 fi ;; 6844 esac 5944 6845 fi 5945 6846 AR=$ac_cv_prog_AR 5946 6847 if test -n "$AR"; then 5947 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $AR" >&55948 $as_echo"$AR" >&6; }5949 else 5950 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&55951 $as_echo"no" >&6; }6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6849 printf "%s\n" "$AR" >&6; } 6850 else 6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6852 printf "%s\n" "no" >&6; } 5952 6853 fi 5953 6854 … … 5962 6863 # Extract the first word of "$ac_prog", so it can be a program name with args. 5963 6864 set dummy $ac_prog; ac_word=$2 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5965 $as_echo_n "checking for $ac_word... " >&6; } 5966 if ${ac_cv_prog_ac_ct_AR+:} false; then : 5967 $as_echo_n "(cached) " >&6 5968 else 5969 if test -n "$ac_ct_AR"; then 6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6866 printf %s "checking for $ac_word... " >&6; } 6867 if test ${ac_cv_prog_ac_ct_AR+y} 6868 then : 6869 printf %s "(cached) " >&6 6870 else case e in #( 6871 e) if test -n "$ac_ct_AR"; then 5970 6872 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5971 6873 else … … 5974 6876 do 5975 6877 IFS=$as_save_IFS 5976 test -z "$as_dir" && as_dir=. 6878 case $as_dir in #((( 6879 '') as_dir=./ ;; 6880 */) ;; 6881 *) as_dir=$as_dir/ ;; 6882 esac 5977 6883 for ac_exec_ext in '' $ac_executable_extensions; do 5978 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then6884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5979 6885 ac_cv_prog_ac_ct_AR="$ac_prog" 5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5981 6887 break 2 5982 6888 fi … … 5985 6891 IFS=$as_save_IFS 5986 6892 5987 fi 6893 fi ;; 6894 esac 5988 6895 fi 5989 6896 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5990 6897 if test -n "$ac_ct_AR"; then 5991 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&55992 $as_echo"$ac_ct_AR" >&6; }5993 else 5994 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&55995 $as_echo"no" >&6; }6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6899 printf "%s\n" "$ac_ct_AR" >&6; } 6900 else 6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6902 printf "%s\n" "no" >&6; } 5996 6903 fi 5997 6904 … … 6005 6912 case $cross_compiling:$ac_tool_warned in 6006 6913 yes:) 6007 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56008 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6915 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6009 6916 ac_tool_warned=yes ;; 6010 6917 esac … … 6014 6921 6015 6922 : ${AR=ar} 6016 : ${AR_FLAGS=cru} 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6029 $as_echo_n "checking for archiver @FILE support... " >&6; } 6030 if ${lt_cv_ar_at_file+:} false; then : 6031 $as_echo_n "(cached) " >&6 6032 else 6033 lt_cv_ar_at_file=no 6923 6924 6925 6926 6927 6928 6929 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 6930 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6931 # higher priority because thats what people were doing historically (setting 6932 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6933 # variable obsoleted/removed. 6934 6935 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6936 lt_ar_flags=$AR_FLAGS 6937 6938 6939 6940 6941 6942 6943 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6944 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6945 6946 6947 6948 6949 6950 6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6952 printf %s "checking for archiver @FILE support... " >&6; } 6953 if test ${lt_cv_ar_at_file+y} 6954 then : 6955 printf %s "(cached) " >&6 6956 else case e in #( 6957 e) lt_cv_ar_at_file=no 6034 6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6035 6959 /* end confdefs.h. */ 6036 6960 6037 6961 int 6038 main ( )6962 main (void) 6039 6963 { 6040 6964 … … 6043 6967 } 6044 6968 _ACEOF 6045 if ac_fn_c_try_compile "$LINENO"; then : 6969 if ac_fn_c_try_compile "$LINENO" 6970 then : 6046 6971 echo conftest.$ac_objext > conftest.lst 6047 6972 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' … … 6049 6974 (eval $lt_ar_try) 2>&5 6050 6975 ac_status=$? 6051 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6052 6977 test $ac_status = 0; } 6053 6978 if test 0 -eq "$ac_status"; then … … 6057 6982 (eval $lt_ar_try) 2>&5 6058 6983 ac_status=$? 6059 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6060 6985 test $ac_status = 0; } 6061 6986 if test 0 -ne "$ac_status"; then … … 6066 6991 6067 6992 fi 6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6069 6070 fi 6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6072 $as_echo "$lt_cv_ar_at_file" >&6; } 6993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6994 ;; 6995 esac 6996 fi 6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6998 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6073 6999 6074 7000 if test no = "$lt_cv_ar_at_file"; then … … 6087 7013 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6088 7014 set dummy ${ac_tool_prefix}strip; ac_word=$2 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6090 $as_echo_n "checking for $ac_word... " >&6; } 6091 if ${ac_cv_prog_STRIP+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093 else 6094 if test -n "$STRIP"; then 7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7016 printf %s "checking for $ac_word... " >&6; } 7017 if test ${ac_cv_prog_STRIP+y} 7018 then : 7019 printf %s "(cached) " >&6 7020 else case e in #( 7021 e) if test -n "$STRIP"; then 6095 7022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6096 7023 else … … 6099 7026 do 6100 7027 IFS=$as_save_IFS 6101 test -z "$as_dir" && as_dir=. 7028 case $as_dir in #((( 7029 '') as_dir=./ ;; 7030 */) ;; 7031 *) as_dir=$as_dir/ ;; 7032 esac 6102 7033 for ac_exec_ext in '' $ac_executable_extensions; do 6103 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then7034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6104 7035 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6106 7037 break 2 6107 7038 fi … … 6110 7041 IFS=$as_save_IFS 6111 7042 6112 fi 7043 fi ;; 7044 esac 6113 7045 fi 6114 7046 STRIP=$ac_cv_prog_STRIP 6115 7047 if test -n "$STRIP"; then 6116 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $STRIP" >&56117 $as_echo"$STRIP" >&6; }6118 else 6119 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&56120 $as_echo"no" >&6; }7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7049 printf "%s\n" "$STRIP" >&6; } 7050 else 7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7052 printf "%s\n" "no" >&6; } 6121 7053 fi 6122 7054 … … 6127 7059 # Extract the first word of "strip", so it can be a program name with args. 6128 7060 set dummy strip; ac_word=$2 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6130 $as_echo_n "checking for $ac_word... " >&6; } 6131 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6132 $as_echo_n "(cached) " >&6 6133 else 6134 if test -n "$ac_ct_STRIP"; then 7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7062 printf %s "checking for $ac_word... " >&6; } 7063 if test ${ac_cv_prog_ac_ct_STRIP+y} 7064 then : 7065 printf %s "(cached) " >&6 7066 else case e in #( 7067 e) if test -n "$ac_ct_STRIP"; then 6135 7068 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6136 7069 else … … 6139 7072 do 6140 7073 IFS=$as_save_IFS 6141 test -z "$as_dir" && as_dir=. 7074 case $as_dir in #((( 7075 '') as_dir=./ ;; 7076 */) ;; 7077 *) as_dir=$as_dir/ ;; 7078 esac 6142 7079 for ac_exec_ext in '' $ac_executable_extensions; do 6143 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then7080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6144 7081 ac_cv_prog_ac_ct_STRIP="strip" 6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6146 7083 break 2 6147 7084 fi … … 6150 7087 IFS=$as_save_IFS 6151 7088 6152 fi 7089 fi ;; 7090 esac 6153 7091 fi 6154 7092 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6155 7093 if test -n "$ac_ct_STRIP"; then 6156 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&56157 $as_echo"$ac_ct_STRIP" >&6; }6158 else 6159 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&56160 $as_echo"no" >&6; }7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7095 printf "%s\n" "$ac_ct_STRIP" >&6; } 7096 else 7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7098 printf "%s\n" "no" >&6; } 6161 7099 fi 6162 7100 … … 6166 7104 case $cross_compiling:$ac_tool_warned in 6167 7105 yes:) 6168 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56169 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7107 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6170 7108 ac_tool_warned=yes ;; 6171 7109 esac … … 6186 7124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6187 7125 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6189 $as_echo_n "checking for $ac_word... " >&6; } 6190 if ${ac_cv_prog_RANLIB+:} false; then : 6191 $as_echo_n "(cached) " >&6 6192 else 6193 if test -n "$RANLIB"; then 7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7127 printf %s "checking for $ac_word... " >&6; } 7128 if test ${ac_cv_prog_RANLIB+y} 7129 then : 7130 printf %s "(cached) " >&6 7131 else case e in #( 7132 e) if test -n "$RANLIB"; then 6194 7133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6195 7134 else … … 6198 7137 do 6199 7138 IFS=$as_save_IFS 6200 test -z "$as_dir" && as_dir=. 7139 case $as_dir in #((( 7140 '') as_dir=./ ;; 7141 */) ;; 7142 *) as_dir=$as_dir/ ;; 7143 esac 6201 7144 for ac_exec_ext in '' $ac_executable_extensions; do 6202 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then7145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6203 7146 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6205 7148 break 2 6206 7149 fi … … 6209 7152 IFS=$as_save_IFS 6210 7153 6211 fi 7154 fi ;; 7155 esac 6212 7156 fi 6213 7157 RANLIB=$ac_cv_prog_RANLIB 6214 7158 if test -n "$RANLIB"; then 6215 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&56216 $as_echo"$RANLIB" >&6; }6217 else 6218 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&56219 $as_echo"no" >&6; }7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7160 printf "%s\n" "$RANLIB" >&6; } 7161 else 7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7163 printf "%s\n" "no" >&6; } 6220 7164 fi 6221 7165 … … 6226 7170 # Extract the first word of "ranlib", so it can be a program name with args. 6227 7171 set dummy ranlib; ac_word=$2 6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6229 $as_echo_n "checking for $ac_word... " >&6; } 6230 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6231 $as_echo_n "(cached) " >&6 6232 else 6233 if test -n "$ac_ct_RANLIB"; then 7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7173 printf %s "checking for $ac_word... " >&6; } 7174 if test ${ac_cv_prog_ac_ct_RANLIB+y} 7175 then : 7176 printf %s "(cached) " >&6 7177 else case e in #( 7178 e) if test -n "$ac_ct_RANLIB"; then 6234 7179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6235 7180 else … … 6238 7183 do 6239 7184 IFS=$as_save_IFS 6240 test -z "$as_dir" && as_dir=. 7185 case $as_dir in #((( 7186 '') as_dir=./ ;; 7187 */) ;; 7188 *) as_dir=$as_dir/ ;; 7189 esac 6241 7190 for ac_exec_ext in '' $ac_executable_extensions; do 6242 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then7191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6243 7192 ac_cv_prog_ac_ct_RANLIB="ranlib" 6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6245 7194 break 2 6246 7195 fi … … 6249 7198 IFS=$as_save_IFS 6250 7199 6251 fi 7200 fi ;; 7201 esac 6252 7202 fi 6253 7203 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6254 7204 if test -n "$ac_ct_RANLIB"; then 6255 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&56256 $as_echo"$ac_ct_RANLIB" >&6; }6257 else 6258 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&56259 $as_echo"no" >&6; }7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7206 printf "%s\n" "$ac_ct_RANLIB" >&6; } 7207 else 7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7209 printf "%s\n" "no" >&6; } 6260 7210 fi 6261 7211 … … 6265 7215 case $cross_compiling:$ac_tool_warned in 6266 7216 yes:) 6267 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56268 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7218 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6269 7219 ac_tool_warned=yes ;; 6270 7220 esac … … 6355 7305 6356 7306 # Check for command to grab the raw symbol name followed by C symbol from nm. 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6358 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6359 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6360 $as_echo_n "(cached) " >&6 6361 else 6362 7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7308 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7309 if test ${lt_cv_sys_global_symbol_pipe+y} 7310 then : 7311 printf %s "(cached) " >&6 7312 else case e in #( 7313 e) 6363 7314 # These are sane defaults that work on at least a few old systems. 6364 7315 # [They come from Ultrix. What could be older than Ultrix?!! ;)] … … 6414 7365 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6415 7366 # Gets list of data symbols to import. 6416 lt_cv_sys_global_symbol_to_import=" sed-n -e 's/^I .* \(.*\)$/\1/p'"7367 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6417 7368 # Adjust the below global symbol transforms to fixup imported variables. 6418 7369 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" … … 6432 7383 # Some systems (esp. on ia64) link data and code symbols differently, 6433 7384 # so use this general approach. 6434 lt_cv_sys_global_symbol_to_cdecl=" sed-n"\7385 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6435 7386 $lt_cdecl_hook\ 6436 7387 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ … … 6438 7389 6439 7390 # Transform an extracted symbol line into symbol name and symbol address 6440 lt_cv_sys_global_symbol_to_c_name_address=" sed-n"\7391 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6441 7392 $lt_c_name_hook\ 6442 7393 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ … … 6445 7396 # Transform an extracted symbol line into symbol name with lib prefix and 6446 7397 # symbol address. 6447 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix=" sed-n"\7398 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6448 7399 $lt_c_name_lib_hook\ 6449 7400 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ … … 6469 7420 # Fake it for dumpbin and say T for any non-static function, 6470 7421 # D for any global variable and I for any imported variable. 6471 # Also find C++ and __fastcall symbols from MSVC++ ,7422 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6472 7423 # which start with @ or ?. 6473 7424 lt_cv_sys_global_symbol_pipe="$AWK '"\ … … 6487 7438 " ' prfx=^$ac_symprfx" 6488 7439 else 6489 lt_cv_sys_global_symbol_pipe=" sed-n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"7440 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6490 7441 fi 6491 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed'/ __gnu_lto/d'"7442 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 6492 7443 6493 7444 # Check to see that the pipe works correctly. … … 6511 7462 (eval $ac_compile) 2>&5 6512 7463 ac_status=$? 6513 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6514 7465 test $ac_status = 0; }; then 6515 7466 # Now try to grab the symbols. … … 6518 7469 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6519 7470 ac_status=$? 6520 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6521 7472 test $ac_status = 0; } && test -s "$nlist"; then 6522 7473 # Try sorting and uniquifying the output. … … 6587 7538 (eval $ac_link) 2>&5 6588 7539 ac_status=$? 6589 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6590 7541 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6591 7542 pipe_works=yes … … 6615 7566 fi 6616 7567 done 6617 7568 ;; 7569 esac 6618 7570 fi 6619 7571 … … 6622 7574 fi 6623 7575 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6624 { $as_echo"$as_me:${as_lineno-$LINENO}: result: failed" >&56625 $as_echo"failed" >&6; }6626 else 6627 { $as_echo"$as_me:${as_lineno-$LINENO}: result: ok" >&56628 $as_echo"ok" >&6; }7576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7577 printf "%s\n" "failed" >&6; } 7578 else 7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7580 printf "%s\n" "ok" >&6; } 6629 7581 fi 6630 7582 … … 6672 7624 6673 7625 6674 { $as_echo"$as_me:${as_lineno-$LINENO}: checking for sysroot" >&56675 $as_echo_n"checking for sysroot... " >&6; }7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7627 printf %s "checking for sysroot... " >&6; } 6676 7628 6677 7629 # Check whether --with-sysroot was given. 6678 if test "${with_sysroot+set}" = set; then : 7630 if test ${with_sysroot+y} 7631 then : 6679 7632 withval=$with_sysroot; 6680 else 6681 with_sysroot=no 7633 else case e in #( 7634 e) with_sysroot=no ;; 7635 esac 6682 7636 fi 6683 7637 … … 6691 7645 ;; #( 6692 7646 /*) 6693 lt_sysroot=`echo "$with_sysroot" | sed-e "$sed_quote_subst"`7647 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 6694 7648 ;; #( 6695 7649 no|'') 6696 7650 ;; #( 6697 7651 *) 6698 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&56699 $as_echo"$with_sysroot" >&6; }7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7653 printf "%s\n" "$with_sysroot" >&6; } 6700 7654 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6701 7655 ;; 6702 7656 esac 6703 7657 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6705 $as_echo "${lt_sysroot:-no}" >&6; } 6706 6707 6708 6709 6710 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6712 $as_echo_n "checking for a working dd... " >&6; } 6713 if ${ac_cv_path_lt_DD+:} false; then : 6714 $as_echo_n "(cached) " >&6 6715 else 6716 printf 0123456789abcdef0123456789abcdef >conftest.i 7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7659 printf "%s\n" "${lt_sysroot:-no}" >&6; } 7660 7661 7662 7663 7664 7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7666 printf %s "checking for a working dd... " >&6; } 7667 if test ${ac_cv_path_lt_DD+y} 7668 then : 7669 printf %s "(cached) " >&6 7670 else case e in #( 7671 e) printf 0123456789abcdef0123456789abcdef >conftest.i 6717 7672 cat conftest.i conftest.i >conftest2.i 6718 7673 : ${lt_DD:=$DD} … … 6724 7679 do 6725 7680 IFS=$as_save_IFS 6726 test -z "$as_dir" && as_dir=. 6727 for ac_prog in dd; do 7681 case $as_dir in #((( 7682 '') as_dir=./ ;; 7683 */) ;; 7684 *) as_dir=$as_dir/ ;; 7685 esac 7686 for ac_prog in dd 7687 do 6728 7688 for ac_exec_ext in '' $ac_executable_extensions; do 6729 ac_path_lt_DD="$as_dir /$ac_prog$ac_exec_ext"7689 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 6730 7690 as_fn_executable_p "$ac_path_lt_DD" || continue 6731 7691 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then … … 6745 7705 fi 6746 7706 6747 rm -f conftest.i conftest2.i conftest.out 6748 fi 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6750 $as_echo "$ac_cv_path_lt_DD" >&6; } 6751 6752 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6754 $as_echo_n "checking how to truncate binary pipes... " >&6; } 6755 if ${lt_cv_truncate_bin+:} false; then : 6756 $as_echo_n "(cached) " >&6 6757 else 6758 printf 0123456789abcdef0123456789abcdef >conftest.i 7707 rm -f conftest.i conftest2.i conftest.out ;; 7708 esac 7709 fi 7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7711 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7712 7713 7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7715 printf %s "checking how to truncate binary pipes... " >&6; } 7716 if test ${lt_cv_truncate_bin+y} 7717 then : 7718 printf %s "(cached) " >&6 7719 else case e in #( 7720 e) printf 0123456789abcdef0123456789abcdef >conftest.i 6759 7721 cat conftest.i conftest.i >conftest2.i 6760 7722 lt_cv_truncate_bin= … … 6764 7726 fi 6765 7727 rm -f conftest.i conftest2.i conftest.out 6766 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6767 fi 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6769 $as_echo "$lt_cv_truncate_bin" >&6; } 7728 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7729 esac 7730 fi 7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7732 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 6770 7733 6771 7734 … … 6790 7753 6791 7754 # Check whether --enable-libtool-lock was given. 6792 if test "${enable_libtool_lock+set}" = set; then : 7755 if test ${enable_libtool_lock+y} 7756 then : 6793 7757 enableval=$enable_libtool_lock; 6794 7758 fi … … 6806 7770 (eval $ac_compile) 2>&5 6807 7771 ac_status=$? 6808 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6809 7773 test $ac_status = 0; }; then 6810 case ` /usr/bin/fileconftest.$ac_objext` in7774 case `$FILECMD conftest.$ac_objext` in 6811 7775 *ELF-32*) 6812 7776 HPUX_IA64_MODE=32 … … 6826 7790 (eval $ac_compile) 2>&5 6827 7791 ac_status=$? 6828 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6829 7793 test $ac_status = 0; }; then 6830 7794 if test yes = "$lt_cv_prog_gnu_ld"; then 6831 case ` /usr/bin/fileconftest.$ac_objext` in7795 case `$FILECMD conftest.$ac_objext` in 6832 7796 *32-bit*) 6833 7797 LD="${LD-ld} -melf32bsmip" … … 6841 7805 esac 6842 7806 else 6843 case ` /usr/bin/fileconftest.$ac_objext` in7807 case `$FILECMD conftest.$ac_objext` in 6844 7808 *32-bit*) 6845 7809 LD="${LD-ld} -32" … … 6864 7828 (eval $ac_compile) 2>&5 6865 7829 ac_status=$? 6866 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6867 7831 test $ac_status = 0; }; then 6868 7832 emul=elf 6869 case ` /usr/bin/fileconftest.$ac_objext` in7833 case `$FILECMD conftest.$ac_objext` in 6870 7834 *32-bit*) 6871 7835 emul="${emul}32" … … 6875 7839 ;; 6876 7840 esac 6877 case ` /usr/bin/fileconftest.$ac_objext` in7841 case `$FILECMD conftest.$ac_objext` in 6878 7842 *MSB*) 6879 7843 emul="${emul}btsmip" … … 6883 7847 ;; 6884 7848 esac 6885 case ` /usr/bin/fileconftest.$ac_objext` in7849 case `$FILECMD conftest.$ac_objext` in 6886 7850 *N32*) 6887 7851 emul="${emul}n32" … … 6905 7869 (eval $ac_compile) 2>&5 6906 7870 ac_status=$? 6907 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6908 7872 test $ac_status = 0; }; then 6909 case ` /usr/bin/fileconftest.o` in7873 case `$FILECMD conftest.o` in 6910 7874 *32-bit*) 6911 7875 case $host in … … 6914 7878 ;; 6915 7879 x86_64-*linux*) 6916 case ` /usr/bin/fileconftest.o` in7880 case `$FILECMD conftest.o` in 6917 7881 *x86-64*) 6918 7882 LD="${LD-ld} -m elf32_x86_64" … … 6968 7932 SAVE_CFLAGS=$CFLAGS 6969 7933 CFLAGS="$CFLAGS -belf" 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6971 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6972 if ${lt_cv_cc_needs_belf+:} false; then : 6973 $as_echo_n "(cached) " >&6 6974 else 6975 ac_ext=c 7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7935 printf %s "checking whether the C compiler needs -belf... " >&6; } 7936 if test ${lt_cv_cc_needs_belf+y} 7937 then : 7938 printf %s "(cached) " >&6 7939 else case e in #( 7940 e) ac_ext=c 6976 7941 ac_cpp='$CPP $CPPFLAGS' 6977 7942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' … … 6983 7948 6984 7949 int 6985 main ( )7950 main (void) 6986 7951 { 6987 7952 … … 6990 7955 } 6991 7956 _ACEOF 6992 if ac_fn_c_try_link "$LINENO"; then : 7957 if ac_fn_c_try_link "$LINENO" 7958 then : 6993 7959 lt_cv_cc_needs_belf=yes 6994 else 6995 lt_cv_cc_needs_belf=no 6996 fi 6997 rm -f core conftest.err conftest.$ac_objext \ 7960 else case e in #( 7961 e) lt_cv_cc_needs_belf=no ;; 7962 esac 7963 fi 7964 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6998 7965 conftest$ac_exeext conftest.$ac_ext 6999 7966 ac_ext=c … … 7002 7969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7003 7970 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7004 7005 fi 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7007 $as_echo "$lt_cv_cc_needs_belf" >&6; } 7971 ;; 7972 esac 7973 fi 7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7975 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7008 7976 if test yes != "$lt_cv_cc_needs_belf"; then 7009 7977 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf … … 7018 7986 (eval $ac_compile) 2>&5 7019 7987 ac_status=$? 7020 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7021 7989 test $ac_status = 0; }; then 7022 case ` /usr/bin/fileconftest.o` in7990 case `$FILECMD conftest.o` in 7023 7991 *64-bit*) 7024 7992 case $lt_cv_prog_gnu_ld in … … 7055 8023 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7056 8024 set dummy ${ac_tool_prefix}mt; ac_word=$2 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7058 $as_echo_n "checking for $ac_word... " >&6; } 7059 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7060 $as_echo_n "(cached) " >&6 7061 else 7062 if test -n "$MANIFEST_TOOL"; then 8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8026 printf %s "checking for $ac_word... " >&6; } 8027 if test ${ac_cv_prog_MANIFEST_TOOL+y} 8028 then : 8029 printf %s "(cached) " >&6 8030 else case e in #( 8031 e) if test -n "$MANIFEST_TOOL"; then 7063 8032 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7064 8033 else … … 7067 8036 do 7068 8037 IFS=$as_save_IFS 7069 test -z "$as_dir" && as_dir=. 8038 case $as_dir in #((( 8039 '') as_dir=./ ;; 8040 */) ;; 8041 *) as_dir=$as_dir/ ;; 8042 esac 7070 8043 for ac_exec_ext in '' $ac_executable_extensions; do 7071 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then8044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7072 8045 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7074 8047 break 2 7075 8048 fi … … 7078 8051 IFS=$as_save_IFS 7079 8052 7080 fi 8053 fi ;; 8054 esac 7081 8055 fi 7082 8056 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7083 8057 if test -n "$MANIFEST_TOOL"; then 7084 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&57085 $as_echo"$MANIFEST_TOOL" >&6; }7086 else 7087 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&57088 $as_echo"no" >&6; }8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8059 printf "%s\n" "$MANIFEST_TOOL" >&6; } 8060 else 8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8062 printf "%s\n" "no" >&6; } 7089 8063 fi 7090 8064 … … 7095 8069 # Extract the first word of "mt", so it can be a program name with args. 7096 8070 set dummy mt; ac_word=$2 7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7098 $as_echo_n "checking for $ac_word... " >&6; } 7099 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7100 $as_echo_n "(cached) " >&6 7101 else 7102 if test -n "$ac_ct_MANIFEST_TOOL"; then 8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8072 printf %s "checking for $ac_word... " >&6; } 8073 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8074 then : 8075 printf %s "(cached) " >&6 8076 else case e in #( 8077 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 7103 8078 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7104 8079 else … … 7107 8082 do 7108 8083 IFS=$as_save_IFS 7109 test -z "$as_dir" && as_dir=. 8084 case $as_dir in #((( 8085 '') as_dir=./ ;; 8086 */) ;; 8087 *) as_dir=$as_dir/ ;; 8088 esac 7110 8089 for ac_exec_ext in '' $ac_executable_extensions; do 7111 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then8090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7112 8091 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7114 8093 break 2 7115 8094 fi … … 7118 8097 IFS=$as_save_IFS 7119 8098 7120 fi 8099 fi ;; 8100 esac 7121 8101 fi 7122 8102 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7123 8103 if test -n "$ac_ct_MANIFEST_TOOL"; then 7124 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&57125 $as_echo"$ac_ct_MANIFEST_TOOL" >&6; }7126 else 7127 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&57128 $as_echo"no" >&6; }8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8105 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8106 else 8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8108 printf "%s\n" "no" >&6; } 7129 8109 fi 7130 8110 … … 7134 8114 case $cross_compiling:$ac_tool_warned in 7135 8115 yes:) 7136 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57137 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8117 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7138 8118 ac_tool_warned=yes ;; 7139 8119 esac … … 7145 8125 7146 8126 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7148 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7149 if ${lt_cv_path_mainfest_tool+:} false; then : 7150 $as_echo_n "(cached) " >&6 7151 else 7152 lt_cv_path_mainfest_tool=no 8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8128 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8129 if test ${lt_cv_path_mainfest_tool+y} 8130 then : 8131 printf %s "(cached) " >&6 8132 else case e in #( 8133 e) lt_cv_path_mainfest_tool=no 7153 8134 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7154 8135 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out … … 7157 8138 lt_cv_path_mainfest_tool=yes 7158 8139 fi 7159 rm -f conftest* 7160 fi 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7162 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 8140 rm -f conftest* ;; 8141 esac 8142 fi 8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8144 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7163 8145 if test yes != "$lt_cv_path_mainfest_tool"; then 7164 8146 MANIFEST_TOOL=: … … 7175 8157 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7176 8158 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7178 $as_echo_n "checking for $ac_word... " >&6; } 7179 if ${ac_cv_prog_DSYMUTIL+:} false; then : 7180 $as_echo_n "(cached) " >&6 7181 else 7182 if test -n "$DSYMUTIL"; then 8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8160 printf %s "checking for $ac_word... " >&6; } 8161 if test ${ac_cv_prog_DSYMUTIL+y} 8162 then : 8163 printf %s "(cached) " >&6 8164 else case e in #( 8165 e) if test -n "$DSYMUTIL"; then 7183 8166 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7184 8167 else … … 7187 8170 do 7188 8171 IFS=$as_save_IFS 7189 test -z "$as_dir" && as_dir=. 8172 case $as_dir in #((( 8173 '') as_dir=./ ;; 8174 */) ;; 8175 *) as_dir=$as_dir/ ;; 8176 esac 7190 8177 for ac_exec_ext in '' $ac_executable_extensions; do 7191 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then8178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7192 8179 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7194 8181 break 2 7195 8182 fi … … 7198 8185 IFS=$as_save_IFS 7199 8186 7200 fi 8187 fi ;; 8188 esac 7201 8189 fi 7202 8190 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7203 8191 if test -n "$DSYMUTIL"; then 7204 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&57205 $as_echo"$DSYMUTIL" >&6; }7206 else 7207 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&57208 $as_echo"no" >&6; }8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8193 printf "%s\n" "$DSYMUTIL" >&6; } 8194 else 8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8196 printf "%s\n" "no" >&6; } 7209 8197 fi 7210 8198 … … 7215 8203 # Extract the first word of "dsymutil", so it can be a program name with args. 7216 8204 set dummy dsymutil; ac_word=$2 7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7218 $as_echo_n "checking for $ac_word... " >&6; } 7219 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7220 $as_echo_n "(cached) " >&6 7221 else 7222 if test -n "$ac_ct_DSYMUTIL"; then 8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8206 printf %s "checking for $ac_word... " >&6; } 8207 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8208 then : 8209 printf %s "(cached) " >&6 8210 else case e in #( 8211 e) if test -n "$ac_ct_DSYMUTIL"; then 7223 8212 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7224 8213 else … … 7227 8216 do 7228 8217 IFS=$as_save_IFS 7229 test -z "$as_dir" && as_dir=. 8218 case $as_dir in #((( 8219 '') as_dir=./ ;; 8220 */) ;; 8221 *) as_dir=$as_dir/ ;; 8222 esac 7230 8223 for ac_exec_ext in '' $ac_executable_extensions; do 7231 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then8224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7232 8225 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7234 8227 break 2 7235 8228 fi … … 7238 8231 IFS=$as_save_IFS 7239 8232 7240 fi 8233 fi ;; 8234 esac 7241 8235 fi 7242 8236 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7243 8237 if test -n "$ac_ct_DSYMUTIL"; then 7244 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&57245 $as_echo"$ac_ct_DSYMUTIL" >&6; }7246 else 7247 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&57248 $as_echo"no" >&6; }8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8239 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8240 else 8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8242 printf "%s\n" "no" >&6; } 7249 8243 fi 7250 8244 … … 7254 8248 case $cross_compiling:$ac_tool_warned in 7255 8249 yes:) 7256 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57257 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8251 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7258 8252 ac_tool_warned=yes ;; 7259 8253 esac … … 7267 8261 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7268 8262 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7270 $as_echo_n "checking for $ac_word... " >&6; } 7271 if ${ac_cv_prog_NMEDIT+:} false; then : 7272 $as_echo_n "(cached) " >&6 7273 else 7274 if test -n "$NMEDIT"; then 8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8264 printf %s "checking for $ac_word... " >&6; } 8265 if test ${ac_cv_prog_NMEDIT+y} 8266 then : 8267 printf %s "(cached) " >&6 8268 else case e in #( 8269 e) if test -n "$NMEDIT"; then 7275 8270 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7276 8271 else … … 7279 8274 do 7280 8275 IFS=$as_save_IFS 7281 test -z "$as_dir" && as_dir=. 8276 case $as_dir in #((( 8277 '') as_dir=./ ;; 8278 */) ;; 8279 *) as_dir=$as_dir/ ;; 8280 esac 7282 8281 for ac_exec_ext in '' $ac_executable_extensions; do 7283 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then8282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7284 8283 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7286 8285 break 2 7287 8286 fi … … 7290 8289 IFS=$as_save_IFS 7291 8290 7292 fi 8291 fi ;; 8292 esac 7293 8293 fi 7294 8294 NMEDIT=$ac_cv_prog_NMEDIT 7295 8295 if test -n "$NMEDIT"; then 7296 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&57297 $as_echo"$NMEDIT" >&6; }7298 else 7299 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&57300 $as_echo"no" >&6; }8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8297 printf "%s\n" "$NMEDIT" >&6; } 8298 else 8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8300 printf "%s\n" "no" >&6; } 7301 8301 fi 7302 8302 … … 7307 8307 # Extract the first word of "nmedit", so it can be a program name with args. 7308 8308 set dummy nmedit; ac_word=$2 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7310 $as_echo_n "checking for $ac_word... " >&6; } 7311 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7312 $as_echo_n "(cached) " >&6 7313 else 7314 if test -n "$ac_ct_NMEDIT"; then 8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8310 printf %s "checking for $ac_word... " >&6; } 8311 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8312 then : 8313 printf %s "(cached) " >&6 8314 else case e in #( 8315 e) if test -n "$ac_ct_NMEDIT"; then 7315 8316 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7316 8317 else … … 7319 8320 do 7320 8321 IFS=$as_save_IFS 7321 test -z "$as_dir" && as_dir=. 8322 case $as_dir in #((( 8323 '') as_dir=./ ;; 8324 */) ;; 8325 *) as_dir=$as_dir/ ;; 8326 esac 7322 8327 for ac_exec_ext in '' $ac_executable_extensions; do 7323 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then8328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7324 8329 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7326 8331 break 2 7327 8332 fi … … 7330 8335 IFS=$as_save_IFS 7331 8336 7332 fi 8337 fi ;; 8338 esac 7333 8339 fi 7334 8340 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7335 8341 if test -n "$ac_ct_NMEDIT"; then 7336 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&57337 $as_echo"$ac_ct_NMEDIT" >&6; }7338 else 7339 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&57340 $as_echo"no" >&6; }8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8343 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8344 else 8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8346 printf "%s\n" "no" >&6; } 7341 8347 fi 7342 8348 … … 7346 8352 case $cross_compiling:$ac_tool_warned in 7347 8353 yes:) 7348 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57349 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8355 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7350 8356 ac_tool_warned=yes ;; 7351 8357 esac … … 7359 8365 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7360 8366 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7362 $as_echo_n "checking for $ac_word... " >&6; } 7363 if ${ac_cv_prog_LIPO+:} false; then : 7364 $as_echo_n "(cached) " >&6 7365 else 7366 if test -n "$LIPO"; then 8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8368 printf %s "checking for $ac_word... " >&6; } 8369 if test ${ac_cv_prog_LIPO+y} 8370 then : 8371 printf %s "(cached) " >&6 8372 else case e in #( 8373 e) if test -n "$LIPO"; then 7367 8374 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7368 8375 else … … 7371 8378 do 7372 8379 IFS=$as_save_IFS 7373 test -z "$as_dir" && as_dir=. 8380 case $as_dir in #((( 8381 '') as_dir=./ ;; 8382 */) ;; 8383 *) as_dir=$as_dir/ ;; 8384 esac 7374 8385 for ac_exec_ext in '' $ac_executable_extensions; do 7375 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then8386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7376 8387 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7378 8389 break 2 7379 8390 fi … … 7382 8393 IFS=$as_save_IFS 7383 8394 7384 fi 8395 fi ;; 8396 esac 7385 8397 fi 7386 8398 LIPO=$ac_cv_prog_LIPO 7387 8399 if test -n "$LIPO"; then 7388 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $LIPO" >&57389 $as_echo"$LIPO" >&6; }7390 else 7391 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&57392 $as_echo"no" >&6; }8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8401 printf "%s\n" "$LIPO" >&6; } 8402 else 8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8404 printf "%s\n" "no" >&6; } 7393 8405 fi 7394 8406 … … 7399 8411 # Extract the first word of "lipo", so it can be a program name with args. 7400 8412 set dummy lipo; ac_word=$2 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7402 $as_echo_n "checking for $ac_word... " >&6; } 7403 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7404 $as_echo_n "(cached) " >&6 7405 else 7406 if test -n "$ac_ct_LIPO"; then 8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8414 printf %s "checking for $ac_word... " >&6; } 8415 if test ${ac_cv_prog_ac_ct_LIPO+y} 8416 then : 8417 printf %s "(cached) " >&6 8418 else case e in #( 8419 e) if test -n "$ac_ct_LIPO"; then 7407 8420 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7408 8421 else … … 7411 8424 do 7412 8425 IFS=$as_save_IFS 7413 test -z "$as_dir" && as_dir=. 8426 case $as_dir in #((( 8427 '') as_dir=./ ;; 8428 */) ;; 8429 *) as_dir=$as_dir/ ;; 8430 esac 7414 8431 for ac_exec_ext in '' $ac_executable_extensions; do 7415 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then8432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7416 8433 ac_cv_prog_ac_ct_LIPO="lipo" 7417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7418 8435 break 2 7419 8436 fi … … 7422 8439 IFS=$as_save_IFS 7423 8440 7424 fi 8441 fi ;; 8442 esac 7425 8443 fi 7426 8444 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7427 8445 if test -n "$ac_ct_LIPO"; then 7428 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&57429 $as_echo"$ac_ct_LIPO" >&6; }7430 else 7431 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&57432 $as_echo"no" >&6; }8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8447 printf "%s\n" "$ac_ct_LIPO" >&6; } 8448 else 8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8450 printf "%s\n" "no" >&6; } 7433 8451 fi 7434 8452 … … 7438 8456 case $cross_compiling:$ac_tool_warned in 7439 8457 yes:) 7440 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57441 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8459 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7442 8460 ac_tool_warned=yes ;; 7443 8461 esac … … 7451 8469 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7452 8470 set dummy ${ac_tool_prefix}otool; ac_word=$2 7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7454 $as_echo_n "checking for $ac_word... " >&6; } 7455 if ${ac_cv_prog_OTOOL+:} false; then : 7456 $as_echo_n "(cached) " >&6 7457 else 7458 if test -n "$OTOOL"; then 8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8472 printf %s "checking for $ac_word... " >&6; } 8473 if test ${ac_cv_prog_OTOOL+y} 8474 then : 8475 printf %s "(cached) " >&6 8476 else case e in #( 8477 e) if test -n "$OTOOL"; then 7459 8478 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7460 8479 else … … 7463 8482 do 7464 8483 IFS=$as_save_IFS 7465 test -z "$as_dir" && as_dir=. 8484 case $as_dir in #((( 8485 '') as_dir=./ ;; 8486 */) ;; 8487 *) as_dir=$as_dir/ ;; 8488 esac 7466 8489 for ac_exec_ext in '' $ac_executable_extensions; do 7467 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then8490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7468 8491 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7470 8493 break 2 7471 8494 fi … … 7474 8497 IFS=$as_save_IFS 7475 8498 7476 fi 8499 fi ;; 8500 esac 7477 8501 fi 7478 8502 OTOOL=$ac_cv_prog_OTOOL 7479 8503 if test -n "$OTOOL"; then 7480 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&57481 $as_echo"$OTOOL" >&6; }7482 else 7483 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&57484 $as_echo"no" >&6; }8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8505 printf "%s\n" "$OTOOL" >&6; } 8506 else 8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8508 printf "%s\n" "no" >&6; } 7485 8509 fi 7486 8510 … … 7491 8515 # Extract the first word of "otool", so it can be a program name with args. 7492 8516 set dummy otool; ac_word=$2 7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7494 $as_echo_n "checking for $ac_word... " >&6; } 7495 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7496 $as_echo_n "(cached) " >&6 7497 else 7498 if test -n "$ac_ct_OTOOL"; then 8517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8518 printf %s "checking for $ac_word... " >&6; } 8519 if test ${ac_cv_prog_ac_ct_OTOOL+y} 8520 then : 8521 printf %s "(cached) " >&6 8522 else case e in #( 8523 e) if test -n "$ac_ct_OTOOL"; then 7499 8524 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7500 8525 else … … 7503 8528 do 7504 8529 IFS=$as_save_IFS 7505 test -z "$as_dir" && as_dir=. 8530 case $as_dir in #((( 8531 '') as_dir=./ ;; 8532 */) ;; 8533 *) as_dir=$as_dir/ ;; 8534 esac 7506 8535 for ac_exec_ext in '' $ac_executable_extensions; do 7507 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then8536 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7508 8537 ac_cv_prog_ac_ct_OTOOL="otool" 7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7510 8539 break 2 7511 8540 fi … … 7514 8543 IFS=$as_save_IFS 7515 8544 7516 fi 8545 fi ;; 8546 esac 7517 8547 fi 7518 8548 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7519 8549 if test -n "$ac_ct_OTOOL"; then 7520 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&57521 $as_echo"$ac_ct_OTOOL" >&6; }7522 else 7523 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&57524 $as_echo"no" >&6; }8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8551 printf "%s\n" "$ac_ct_OTOOL" >&6; } 8552 else 8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8554 printf "%s\n" "no" >&6; } 7525 8555 fi 7526 8556 … … 7530 8560 case $cross_compiling:$ac_tool_warned in 7531 8561 yes:) 7532 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57533 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8563 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7534 8564 ac_tool_warned=yes ;; 7535 8565 esac … … 7543 8573 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7544 8574 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7546 $as_echo_n "checking for $ac_word... " >&6; } 7547 if ${ac_cv_prog_OTOOL64+:} false; then : 7548 $as_echo_n "(cached) " >&6 7549 else 7550 if test -n "$OTOOL64"; then 8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8576 printf %s "checking for $ac_word... " >&6; } 8577 if test ${ac_cv_prog_OTOOL64+y} 8578 then : 8579 printf %s "(cached) " >&6 8580 else case e in #( 8581 e) if test -n "$OTOOL64"; then 7551 8582 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7552 8583 else … … 7555 8586 do 7556 8587 IFS=$as_save_IFS 7557 test -z "$as_dir" && as_dir=. 8588 case $as_dir in #((( 8589 '') as_dir=./ ;; 8590 */) ;; 8591 *) as_dir=$as_dir/ ;; 8592 esac 7558 8593 for ac_exec_ext in '' $ac_executable_extensions; do 7559 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then8594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7560 8595 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7562 8597 break 2 7563 8598 fi … … 7566 8601 IFS=$as_save_IFS 7567 8602 7568 fi 8603 fi ;; 8604 esac 7569 8605 fi 7570 8606 OTOOL64=$ac_cv_prog_OTOOL64 7571 8607 if test -n "$OTOOL64"; then 7572 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&57573 $as_echo"$OTOOL64" >&6; }7574 else 7575 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&57576 $as_echo"no" >&6; }8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8609 printf "%s\n" "$OTOOL64" >&6; } 8610 else 8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8612 printf "%s\n" "no" >&6; } 7577 8613 fi 7578 8614 … … 7583 8619 # Extract the first word of "otool64", so it can be a program name with args. 7584 8620 set dummy otool64; ac_word=$2 7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7586 $as_echo_n "checking for $ac_word... " >&6; } 7587 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7588 $as_echo_n "(cached) " >&6 7589 else 7590 if test -n "$ac_ct_OTOOL64"; then 8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8622 printf %s "checking for $ac_word... " >&6; } 8623 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8624 then : 8625 printf %s "(cached) " >&6 8626 else case e in #( 8627 e) if test -n "$ac_ct_OTOOL64"; then 7591 8628 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7592 8629 else … … 7595 8632 do 7596 8633 IFS=$as_save_IFS 7597 test -z "$as_dir" && as_dir=. 8634 case $as_dir in #((( 8635 '') as_dir=./ ;; 8636 */) ;; 8637 *) as_dir=$as_dir/ ;; 8638 esac 7598 8639 for ac_exec_ext in '' $ac_executable_extensions; do 7599 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then8640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7600 8641 ac_cv_prog_ac_ct_OTOOL64="otool64" 7601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7602 8643 break 2 7603 8644 fi … … 7606 8647 IFS=$as_save_IFS 7607 8648 7608 fi 8649 fi ;; 8650 esac 7609 8651 fi 7610 8652 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7611 8653 if test -n "$ac_ct_OTOOL64"; then 7612 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&57613 $as_echo"$ac_ct_OTOOL64" >&6; }7614 else 7615 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&57616 $as_echo"no" >&6; }8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8655 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8656 else 8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8658 printf "%s\n" "no" >&6; } 7617 8659 fi 7618 8660 … … 7622 8664 case $cross_compiling:$ac_tool_warned in 7623 8665 yes:) 7624 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57625 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8667 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7626 8668 ac_tool_warned=yes ;; 7627 8669 esac … … 7658 8700 7659 8701 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7661 $as_echo_n "checking for -single_module linker flag... " >&6; } 7662 if ${lt_cv_apple_cc_single_mod+:} false; then : 7663 $as_echo_n "(cached) " >&6 7664 else 7665 lt_cv_apple_cc_single_mod=no 8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8703 printf %s "checking for -single_module linker flag... " >&6; } 8704 if test ${lt_cv_apple_cc_single_mod+y} 8705 then : 8706 printf %s "(cached) " >&6 8707 else case e in #( 8708 e) lt_cv_apple_cc_single_mod=no 7666 8709 if test -z "$LT_MULTI_MODULE"; then 7667 8710 # By default we will add the -single_module flag. You can override … … 7689 8732 rm -rf libconftest.dylib* 7690 8733 rm -f conftest.* 7691 fi 7692 fi 7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7694 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7695 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7697 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7698 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7699 $as_echo_n "(cached) " >&6 7700 else 7701 lt_cv_ld_exported_symbols_list=no 8734 fi ;; 8735 esac 8736 fi 8737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8738 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8739 8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8741 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8742 if test ${lt_cv_ld_exported_symbols_list+y} 8743 then : 8744 printf %s "(cached) " >&6 8745 else case e in #( 8746 e) lt_cv_ld_exported_symbols_list=no 7702 8747 save_LDFLAGS=$LDFLAGS 7703 8748 echo "_main" > conftest.sym … … 7707 8752 7708 8753 int 7709 main ( )8754 main (void) 7710 8755 { 7711 8756 … … 7714 8759 } 7715 8760 _ACEOF 7716 if ac_fn_c_try_link "$LINENO"; then : 8761 if ac_fn_c_try_link "$LINENO" 8762 then : 7717 8763 lt_cv_ld_exported_symbols_list=yes 7718 else 7719 lt_cv_ld_exported_symbols_list=no 7720 fi 7721 rm -f core conftest.err conftest.$ac_objext \ 8764 else case e in #( 8765 e) lt_cv_ld_exported_symbols_list=no ;; 8766 esac 8767 fi 8768 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7722 8769 conftest$ac_exeext conftest.$ac_ext 7723 8770 LDFLAGS=$save_LDFLAGS 7724 7725 fi 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7727 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7728 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7730 $as_echo_n "checking for -force_load linker flag... " >&6; } 7731 if ${lt_cv_ld_force_load+:} false; then : 7732 $as_echo_n "(cached) " >&6 7733 else 7734 lt_cv_ld_force_load=no 8771 ;; 8772 esac 8773 fi 8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8775 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8776 8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8778 printf %s "checking for -force_load linker flag... " >&6; } 8779 if test ${lt_cv_ld_force_load+y} 8780 then : 8781 printf %s "(cached) " >&6 8782 else case e in #( 8783 e) lt_cv_ld_force_load=no 7735 8784 cat > conftest.c << _LT_EOF 7736 8785 int forced_loaded() { return 2;} … … 7738 8787 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7739 8788 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7740 echo "$AR crulibconftest.a conftest.o" >&57741 $AR crulibconftest.a conftest.o 2>&58789 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8790 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 7742 8791 echo "$RANLIB libconftest.a" >&5 7743 8792 $RANLIB libconftest.a 2>&5 … … 7757 8806 rm -f conftest.err libconftest.a conftest conftest.c 7758 8807 rm -rf conftest.dSYM 7759 7760 fi 7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7762 $as_echo "$lt_cv_ld_force_load" >&6; } 8808 ;; 8809 esac 8810 fi 8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8812 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 7763 8813 case $host_os in 7764 8814 rhapsody* | darwin1.[012]) … … 7766 8816 darwin1.*) 7767 8817 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7768 darwin*) # darwin 5.x on 7769 # if running on 10.5 or later, the deployment target defaults 7770 # to the OS version, if on x86, and 10.4, the deployment 7771 # target defaults to 10.4. Don't you love it? 7772 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7773 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7774 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7775 10.[012][,.]*) 7776 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7777 10.*) 7778 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8818 darwin*) 8819 case $MACOSX_DEPLOYMENT_TARGET,$host in 8820 10.[012],*|,*powerpc*-darwin[5-8]*) 8821 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8822 *) 8823 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7779 8824 esac 7780 8825 ;; … … 7831 8876 } 7832 8877 7833 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7835 $as_echo_n "checking for ANSI C header files... " >&6; } 7836 if ${ac_cv_header_stdc+:} false; then : 7837 $as_echo_n "(cached) " >&6 7838 else 7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7840 /* end confdefs.h. */ 7841 #include <stdlib.h> 7842 #include <stdarg.h> 7843 #include <string.h> 7844 #include <float.h> 7845 7846 int 7847 main () 7848 { 7849 7850 ; 7851 return 0; 7852 } 7853 _ACEOF 7854 if ac_fn_c_try_compile "$LINENO"; then : 7855 ac_cv_header_stdc=yes 7856 else 7857 ac_cv_header_stdc=no 7858 fi 7859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7860 7861 if test $ac_cv_header_stdc = yes; then 7862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7864 /* end confdefs.h. */ 7865 #include <string.h> 7866 7867 _ACEOF 7868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7869 $EGREP "memchr" >/dev/null 2>&1; then : 7870 7871 else 7872 ac_cv_header_stdc=no 7873 fi 7874 rm -f conftest* 7875 7876 fi 7877 7878 if test $ac_cv_header_stdc = yes; then 7879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7881 /* end confdefs.h. */ 7882 #include <stdlib.h> 7883 7884 _ACEOF 7885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7886 $EGREP "free" >/dev/null 2>&1; then : 7887 7888 else 7889 ac_cv_header_stdc=no 7890 fi 7891 rm -f conftest* 7892 7893 fi 7894 7895 if test $ac_cv_header_stdc = yes; then 7896 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7897 if test "$cross_compiling" = yes; then : 7898 : 7899 else 7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7901 /* end confdefs.h. */ 7902 #include <ctype.h> 7903 #include <stdlib.h> 7904 #if ((' ' & 0x0FF) == 0x020) 7905 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7906 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7907 #else 7908 # define ISLOWER(c) \ 7909 (('a' <= (c) && (c) <= 'i') \ 7910 || ('j' <= (c) && (c) <= 'r') \ 7911 || ('s' <= (c) && (c) <= 'z')) 7912 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7913 #endif 7914 7915 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7916 int 7917 main () 7918 { 7919 int i; 7920 for (i = 0; i < 256; i++) 7921 if (XOR (islower (i), ISLOWER (i)) 7922 || toupper (i) != TOUPPER (i)) 7923 return 2; 7924 return 0; 7925 } 7926 _ACEOF 7927 if ac_fn_c_try_run "$LINENO"; then : 7928 7929 else 7930 ac_cv_header_stdc=no 7931 fi 7932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7933 conftest.$ac_objext conftest.beam conftest.$ac_ext 7934 fi 7935 7936 fi 7937 fi 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7939 $as_echo "$ac_cv_header_stdc" >&6; } 7940 if test $ac_cv_header_stdc = yes; then 7941 7942 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7943 7944 fi 7945 7946 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7947 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7948 inttypes.h stdint.h unistd.h 7949 do : 7950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7951 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8878 ac_header= ac_cache= 8879 for ac_item in $ac_header_c_list 8880 do 8881 if test $ac_cache; then 8882 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8883 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8884 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8885 fi 8886 ac_header= ac_cache= 8887 elif test $ac_header; then 8888 ac_cache=$ac_item 8889 else 8890 ac_header=$ac_item 8891 fi 8892 done 8893 8894 8895 8896 8897 8898 8899 8900 8901 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8902 then : 8903 8904 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8905 8906 fi 8907 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7952 8908 " 7953 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7954 cat >>confdefs.h <<_ACEOF 7955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7956 _ACEOF 7957 7958 fi 7959 7960 done 7961 7962 7963 for ac_header in dlfcn.h 7964 do : 7965 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7966 " 7967 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7968 cat >>confdefs.h <<_ACEOF 7969 #define HAVE_DLFCN_H 1 7970 _ACEOF 7971 7972 fi 7973 7974 done 8909 if test "x$ac_cv_header_dlfcn_h" = xyes 8910 then : 8911 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8912 8913 fi 7975 8914 7976 8915 … … 7986 8925 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 7987 8926 set dummy ${ac_tool_prefix}as; ac_word=$2 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7989 $as_echo_n "checking for $ac_word... " >&6; } 7990 if ${ac_cv_prog_AS+:} false; then : 7991 $as_echo_n "(cached) " >&6 7992 else 7993 if test -n "$AS"; then 8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8928 printf %s "checking for $ac_word... " >&6; } 8929 if test ${ac_cv_prog_AS+y} 8930 then : 8931 printf %s "(cached) " >&6 8932 else case e in #( 8933 e) if test -n "$AS"; then 7994 8934 ac_cv_prog_AS="$AS" # Let the user override the test. 7995 8935 else … … 7998 8938 do 7999 8939 IFS=$as_save_IFS 8000 test -z "$as_dir" && as_dir=. 8940 case $as_dir in #((( 8941 '') as_dir=./ ;; 8942 */) ;; 8943 *) as_dir=$as_dir/ ;; 8944 esac 8001 8945 for ac_exec_ext in '' $ac_executable_extensions; do 8002 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then8946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8003 8947 ac_cv_prog_AS="${ac_tool_prefix}as" 8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8005 8949 break 2 8006 8950 fi … … 8009 8953 IFS=$as_save_IFS 8010 8954 8011 fi 8955 fi ;; 8956 esac 8012 8957 fi 8013 8958 AS=$ac_cv_prog_AS 8014 8959 if test -n "$AS"; then 8015 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $AS" >&58016 $as_echo"$AS" >&6; }8017 else 8018 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&58019 $as_echo"no" >&6; }8960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8961 printf "%s\n" "$AS" >&6; } 8962 else 8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8964 printf "%s\n" "no" >&6; } 8020 8965 fi 8021 8966 … … 8026 8971 # Extract the first word of "as", so it can be a program name with args. 8027 8972 set dummy as; ac_word=$2 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8029 $as_echo_n "checking for $ac_word... " >&6; } 8030 if ${ac_cv_prog_ac_ct_AS+:} false; then : 8031 $as_echo_n "(cached) " >&6 8032 else 8033 if test -n "$ac_ct_AS"; then 8973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8974 printf %s "checking for $ac_word... " >&6; } 8975 if test ${ac_cv_prog_ac_ct_AS+y} 8976 then : 8977 printf %s "(cached) " >&6 8978 else case e in #( 8979 e) if test -n "$ac_ct_AS"; then 8034 8980 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8035 8981 else … … 8038 8984 do 8039 8985 IFS=$as_save_IFS 8040 test -z "$as_dir" && as_dir=. 8986 case $as_dir in #((( 8987 '') as_dir=./ ;; 8988 */) ;; 8989 *) as_dir=$as_dir/ ;; 8990 esac 8041 8991 for ac_exec_ext in '' $ac_executable_extensions; do 8042 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then8992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8043 8993 ac_cv_prog_ac_ct_AS="as" 8044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8045 8995 break 2 8046 8996 fi … … 8049 8999 IFS=$as_save_IFS 8050 9000 8051 fi 9001 fi ;; 9002 esac 8052 9003 fi 8053 9004 ac_ct_AS=$ac_cv_prog_ac_ct_AS 8054 9005 if test -n "$ac_ct_AS"; then 8055 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&58056 $as_echo"$ac_ct_AS" >&6; }8057 else 8058 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&58059 $as_echo"no" >&6; }9006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 9007 printf "%s\n" "$ac_ct_AS" >&6; } 9008 else 9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9010 printf "%s\n" "no" >&6; } 8060 9011 fi 8061 9012 … … 8065 9016 case $cross_compiling:$ac_tool_warned in 8066 9017 yes:) 8067 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&58068 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9019 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8069 9020 ac_tool_warned=yes ;; 8070 9021 esac … … 8078 9029 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8079 9030 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8081 $as_echo_n "checking for $ac_word... " >&6; } 8082 if ${ac_cv_prog_DLLTOOL+:} false; then : 8083 $as_echo_n "(cached) " >&6 8084 else 8085 if test -n "$DLLTOOL"; then 9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9032 printf %s "checking for $ac_word... " >&6; } 9033 if test ${ac_cv_prog_DLLTOOL+y} 9034 then : 9035 printf %s "(cached) " >&6 9036 else case e in #( 9037 e) if test -n "$DLLTOOL"; then 8086 9038 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8087 9039 else … … 8090 9042 do 8091 9043 IFS=$as_save_IFS 8092 test -z "$as_dir" && as_dir=. 9044 case $as_dir in #((( 9045 '') as_dir=./ ;; 9046 */) ;; 9047 *) as_dir=$as_dir/ ;; 9048 esac 8093 9049 for ac_exec_ext in '' $ac_executable_extensions; do 8094 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then9050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8095 9051 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&59052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8097 9053 break 2 8098 9054 fi … … 8101 9057 IFS=$as_save_IFS 8102 9058 8103 fi 9059 fi ;; 9060 esac 8104 9061 fi 8105 9062 DLLTOOL=$ac_cv_prog_DLLTOOL 8106 9063 if test -n "$DLLTOOL"; then 8107 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&58108 $as_echo"$DLLTOOL" >&6; }8109 else 8110 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&58111 $as_echo"no" >&6; }9064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9065 printf "%s\n" "$DLLTOOL" >&6; } 9066 else 9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9068 printf "%s\n" "no" >&6; } 8112 9069 fi 8113 9070 … … 8118 9075 # Extract the first word of "dlltool", so it can be a program name with args. 8119 9076 set dummy dlltool; ac_word=$2 8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8121 $as_echo_n "checking for $ac_word... " >&6; } 8122 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8123 $as_echo_n "(cached) " >&6 8124 else 8125 if test -n "$ac_ct_DLLTOOL"; then 9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9078 printf %s "checking for $ac_word... " >&6; } 9079 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 9080 then : 9081 printf %s "(cached) " >&6 9082 else case e in #( 9083 e) if test -n "$ac_ct_DLLTOOL"; then 8126 9084 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8127 9085 else … … 8130 9088 do 8131 9089 IFS=$as_save_IFS 8132 test -z "$as_dir" && as_dir=. 9090 case $as_dir in #((( 9091 '') as_dir=./ ;; 9092 */) ;; 9093 *) as_dir=$as_dir/ ;; 9094 esac 8133 9095 for ac_exec_ext in '' $ac_executable_extensions; do 8134 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then9096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8135 9097 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&59098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8137 9099 break 2 8138 9100 fi … … 8141 9103 IFS=$as_save_IFS 8142 9104 8143 fi 9105 fi ;; 9106 esac 8144 9107 fi 8145 9108 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8146 9109 if test -n "$ac_ct_DLLTOOL"; then 8147 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&58148 $as_echo"$ac_ct_DLLTOOL" >&6; }8149 else 8150 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&58151 $as_echo"no" >&6; }9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9111 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 9112 else 9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9114 printf "%s\n" "no" >&6; } 8152 9115 fi 8153 9116 … … 8157 9120 case $cross_compiling:$ac_tool_warned in 8158 9121 yes:) 8159 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&58160 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9123 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8161 9124 ac_tool_warned=yes ;; 8162 9125 esac … … 8170 9133 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8171 9134 set dummy ${ac_tool_prefix}objdump; ac_word=$2 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8173 $as_echo_n "checking for $ac_word... " >&6; } 8174 if ${ac_cv_prog_OBJDUMP+:} false; then : 8175 $as_echo_n "(cached) " >&6 8176 else 8177 if test -n "$OBJDUMP"; then 9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9136 printf %s "checking for $ac_word... " >&6; } 9137 if test ${ac_cv_prog_OBJDUMP+y} 9138 then : 9139 printf %s "(cached) " >&6 9140 else case e in #( 9141 e) if test -n "$OBJDUMP"; then 8178 9142 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8179 9143 else … … 8182 9146 do 8183 9147 IFS=$as_save_IFS 8184 test -z "$as_dir" && as_dir=. 9148 case $as_dir in #((( 9149 '') as_dir=./ ;; 9150 */) ;; 9151 *) as_dir=$as_dir/ ;; 9152 esac 8185 9153 for ac_exec_ext in '' $ac_executable_extensions; do 8186 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then9154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8187 9155 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&59156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8189 9157 break 2 8190 9158 fi … … 8193 9161 IFS=$as_save_IFS 8194 9162 8195 fi 9163 fi ;; 9164 esac 8196 9165 fi 8197 9166 OBJDUMP=$ac_cv_prog_OBJDUMP 8198 9167 if test -n "$OBJDUMP"; then 8199 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&58200 $as_echo"$OBJDUMP" >&6; }8201 else 8202 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&58203 $as_echo"no" >&6; }9168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9169 printf "%s\n" "$OBJDUMP" >&6; } 9170 else 9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9172 printf "%s\n" "no" >&6; } 8204 9173 fi 8205 9174 … … 8210 9179 # Extract the first word of "objdump", so it can be a program name with args. 8211 9180 set dummy objdump; ac_word=$2 8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8213 $as_echo_n "checking for $ac_word... " >&6; } 8214 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8215 $as_echo_n "(cached) " >&6 8216 else 8217 if test -n "$ac_ct_OBJDUMP"; then 9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9182 printf %s "checking for $ac_word... " >&6; } 9183 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 9184 then : 9185 printf %s "(cached) " >&6 9186 else case e in #( 9187 e) if test -n "$ac_ct_OBJDUMP"; then 8218 9188 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8219 9189 else … … 8222 9192 do 8223 9193 IFS=$as_save_IFS 8224 test -z "$as_dir" && as_dir=. 9194 case $as_dir in #((( 9195 '') as_dir=./ ;; 9196 */) ;; 9197 *) as_dir=$as_dir/ ;; 9198 esac 8225 9199 for ac_exec_ext in '' $ac_executable_extensions; do 8226 if as_fn_executable_p "$as_dir /$ac_word$ac_exec_ext"; then9200 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8227 9201 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&59202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8229 9203 break 2 8230 9204 fi … … 8233 9207 IFS=$as_save_IFS 8234 9208 8235 fi 9209 fi ;; 9210 esac 8236 9211 fi 8237 9212 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8238 9213 if test -n "$ac_ct_OBJDUMP"; then 8239 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&58240 $as_echo"$ac_ct_OBJDUMP" >&6; }8241 else 8242 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&58243 $as_echo"no" >&6; }9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9215 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 9216 else 9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9218 printf "%s\n" "no" >&6; } 8244 9219 fi 8245 9220 … … 8249 9224 case $cross_compiling:$ac_tool_warned in 8250 9225 yes:) 8251 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&58252 $as_echo"$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}9226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9227 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8253 9228 ac_tool_warned=yes ;; 8254 9229 esac … … 8287 9262 8288 9263 # Check whether --enable-shared was given. 8289 if test "${enable_shared+set}" = set; then : 9264 if test ${enable_shared+y} 9265 then : 8290 9266 enableval=$enable_shared; p=${PACKAGE-default} 8291 9267 case $enableval in … … 8305 9281 ;; 8306 9282 esac 8307 else 8308 enable_shared=yes 9283 else case e in #( 9284 e) enable_shared=yes ;; 9285 esac 8309 9286 fi 8310 9287 … … 8318 9295 8319 9296 # Check whether --enable-static was given. 8320 if test "${enable_static+set}" = set; then : 9297 if test ${enable_static+y} 9298 then : 8321 9299 enableval=$enable_static; p=${PACKAGE-default} 8322 9300 case $enableval in … … 8336 9314 ;; 8337 9315 esac 8338 else 8339 enable_static=yes 9316 else case e in #( 9317 e) enable_static=yes ;; 9318 esac 8340 9319 fi 8341 9320 … … 8350 9329 8351 9330 # Check whether --with-pic was given. 8352 if test "${with_pic+set}" = set; then : 9331 if test ${with_pic+y} 9332 then : 8353 9333 withval=$with_pic; lt_p=${PACKAGE-default} 8354 9334 case $withval in … … 8367 9347 ;; 8368 9348 esac 8369 else 8370 pic_mode=default 9349 else case e in #( 9350 e) pic_mode=default ;; 9351 esac 8371 9352 fi 8372 9353 … … 8379 9360 8380 9361 # Check whether --enable-fast-install was given. 8381 if test "${enable_fast_install+set}" = set; then : 9362 if test ${enable_fast_install+y} 9363 then : 8382 9364 enableval=$enable_fast_install; p=${PACKAGE-default} 8383 9365 case $enableval in … … 8397 9379 ;; 8398 9380 esac 8399 else 8400 enable_fast_install=yes 9381 else case e in #( 9382 e) enable_fast_install=yes ;; 9383 esac 8401 9384 fi 8402 9385 … … 8411 9394 case $host,$enable_shared in 8412 9395 power*-*-aix[5-9]*,yes) 8413 { $as_echo"$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&58414 $as_echo_n"checking which variant of shared library versioning to provide... " >&6; }9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9397 printf %s "checking which variant of shared library versioning to provide... " >&6; } 8415 9398 8416 9399 # Check whether --with-aix-soname was given. 8417 if test "${with_aix_soname+set}" = set; then : 9400 if test ${with_aix_soname+y} 9401 then : 8418 9402 withval=$with_aix_soname; case $withval in 8419 9403 aix|svr4|both) … … 8424 9408 esac 8425 9409 lt_cv_with_aix_soname=$with_aix_soname 8426 else 8427 if ${lt_cv_with_aix_soname+:} false; then : 8428 $as_echo_n "(cached) " >&6 8429 else 8430 lt_cv_with_aix_soname=aix 8431 fi 8432 8433 with_aix_soname=$lt_cv_with_aix_soname 8434 fi 8435 8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8437 $as_echo "$with_aix_soname" >&6; } 9410 else case e in #( 9411 e) if test ${lt_cv_with_aix_soname+y} 9412 then : 9413 printf %s "(cached) " >&6 9414 else case e in #( 9415 e) lt_cv_with_aix_soname=aix ;; 9416 esac 9417 fi 9418 9419 with_aix_soname=$lt_cv_with_aix_soname ;; 9420 esac 9421 fi 9422 9423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9424 printf "%s\n" "$with_aix_soname" >&6; } 8438 9425 if test aix != "$with_aix_soname"; then 8439 9426 # For the AIX way of multilib, we name the shared archive member … … 8517 9504 fi 8518 9505 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8520 $as_echo_n "checking for objdir... " >&6; } 8521 if ${lt_cv_objdir+:} false; then : 8522 $as_echo_n "(cached) " >&6 8523 else 8524 rm -f .libs 2>/dev/null 9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9507 printf %s "checking for objdir... " >&6; } 9508 if test ${lt_cv_objdir+y} 9509 then : 9510 printf %s "(cached) " >&6 9511 else case e in #( 9512 e) rm -f .libs 2>/dev/null 8525 9513 mkdir .libs 2>/dev/null 8526 9514 if test -d .libs; then … … 8530 9518 lt_cv_objdir=_libs 8531 9519 fi 8532 rmdir .libs 2>/dev/null 8533 fi 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8535 $as_echo "$lt_cv_objdir" >&6; } 9520 rmdir .libs 2>/dev/null ;; 9521 esac 9522 fi 9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9524 printf "%s\n" "$lt_cv_objdir" >&6; } 8536 9525 objdir=$lt_cv_objdir 8537 9526 … … 8540 9529 8541 9530 8542 cat >>confdefs.h <<_ACEOF 8543 #define LT_OBJDIR "$lt_cv_objdir/" 8544 _ACEOF 9531 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8545 9532 8546 9533 … … 8563 9550 can_build_shared=yes 8564 9551 8565 # All known linkers require a '.a' archive for static linking (except MSVC ,8566 # which needs'.lib').9552 # All known linkers require a '.a' archive for static linking (except MSVC and 9553 # ICC, which need '.lib'). 8567 9554 libext=a 8568 9555 … … 8588 9575 file_magic*) 8589 9576 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8591 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8592 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8593 $as_echo_n "(cached) " >&6 8594 else 8595 case $MAGIC_CMD in 9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9578 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9579 if test ${lt_cv_path_MAGIC_CMD+y} 9580 then : 9581 printf %s "(cached) " >&6 9582 else case e in #( 9583 e) case $MAGIC_CMD in 8596 9584 [\\/*] | ?:[\\/]*) 8597 9585 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. … … 8636 9624 MAGIC_CMD=$lt_save_MAGIC_CMD 8637 9625 ;; 9626 esac ;; 8638 9627 esac 8639 9628 fi … … 8641 9630 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8642 9631 if test -n "$MAGIC_CMD"; then 8643 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&58644 $as_echo"$MAGIC_CMD" >&6; }8645 else 8646 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&58647 $as_echo"no" >&6; }9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9633 printf "%s\n" "$MAGIC_CMD" >&6; } 9634 else 9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9636 printf "%s\n" "no" >&6; } 8648 9637 fi 8649 9638 … … 8654 9643 if test -z "$lt_cv_path_MAGIC_CMD"; then 8655 9644 if test -n "$ac_tool_prefix"; then 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8657 $as_echo_n "checking for file... " >&6; } 8658 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8659 $as_echo_n "(cached) " >&6 8660 else 8661 case $MAGIC_CMD in 9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9646 printf %s "checking for file... " >&6; } 9647 if test ${lt_cv_path_MAGIC_CMD+y} 9648 then : 9649 printf %s "(cached) " >&6 9650 else case e in #( 9651 e) case $MAGIC_CMD in 8662 9652 [\\/*] | ?:[\\/]*) 8663 9653 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. … … 8702 9692 MAGIC_CMD=$lt_save_MAGIC_CMD 8703 9693 ;; 9694 esac ;; 8704 9695 esac 8705 9696 fi … … 8707 9698 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8708 9699 if test -n "$MAGIC_CMD"; then 8709 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&58710 $as_echo"$MAGIC_CMD" >&6; }8711 else 8712 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&58713 $as_echo"no" >&6; }9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9701 printf "%s\n" "$MAGIC_CMD" >&6; } 9702 else 9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9704 printf "%s\n" "no" >&6; } 8714 9705 fi 8715 9706 … … 8796 9787 esac 8797 9788 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8799 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8800 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8801 $as_echo_n "(cached) " >&6 8802 else 8803 lt_cv_prog_compiler_rtti_exceptions=no 9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9790 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9791 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9792 then : 9793 printf %s "(cached) " >&6 9794 else case e in #( 9795 e) lt_cv_prog_compiler_rtti_exceptions=no 8804 9796 ac_outfile=conftest.$ac_objext 8805 9797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext … … 8829 9821 fi 8830 9822 $RM conftest* 8831 8832 fi 8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8834 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9823 ;; 9824 esac 9825 fi 9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9827 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8835 9828 8836 9829 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then … … 9073 10066 ;; 9074 10067 *) 9075 case `$CC -V 2>&1 | sed5q` in10068 case `$CC -V 2>&1 | $SED 5q` in 9076 10069 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9077 10070 # Sun Fortran 8.3 passes all unrecognized flags to the linker … … 9189 10182 esac 9190 10183 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9192 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9193 if ${lt_cv_prog_compiler_pic+:} false; then : 9194 $as_echo_n "(cached) " >&6 9195 else 9196 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9197 fi 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9199 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 10184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10185 printf %s "checking for $compiler option to produce PIC... " >&6; } 10186 if test ${lt_cv_prog_compiler_pic+y} 10187 then : 10188 printf %s "(cached) " >&6 10189 else case e in #( 10190 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 10191 esac 10192 fi 10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10194 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9200 10195 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9201 10196 … … 9204 10199 # 9205 10200 if test -n "$lt_prog_compiler_pic"; then 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9207 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9208 if ${lt_cv_prog_compiler_pic_works+:} false; then : 9209 $as_echo_n "(cached) " >&6 9210 else 9211 lt_cv_prog_compiler_pic_works=no 10201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10202 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10203 if test ${lt_cv_prog_compiler_pic_works+y} 10204 then : 10205 printf %s "(cached) " >&6 10206 else case e in #( 10207 e) lt_cv_prog_compiler_pic_works=no 9212 10208 ac_outfile=conftest.$ac_objext 9213 10209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext … … 9237 10233 fi 9238 10234 $RM conftest* 9239 9240 fi 9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9242 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10235 ;; 10236 esac 10237 fi 10238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10239 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9243 10240 9244 10241 if test yes = "$lt_cv_prog_compiler_pic_works"; then … … 9268 10265 # 9269 10266 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9271 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9272 if ${lt_cv_prog_compiler_static_works+:} false; then : 9273 $as_echo_n "(cached) " >&6 9274 else 9275 lt_cv_prog_compiler_static_works=no 10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10268 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10269 if test ${lt_cv_prog_compiler_static_works+y} 10270 then : 10271 printf %s "(cached) " >&6 10272 else case e in #( 10273 e) lt_cv_prog_compiler_static_works=no 9276 10274 save_LDFLAGS=$LDFLAGS 9277 10275 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" … … 9294 10292 $RM -r conftest* 9295 10293 LDFLAGS=$save_LDFLAGS 9296 9297 fi 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9299 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10294 ;; 10295 esac 10296 fi 10297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10298 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9300 10299 9301 10300 if test yes = "$lt_cv_prog_compiler_static_works"; then … … 9311 10310 9312 10311 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9314 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9315 if ${lt_cv_prog_compiler_c_o+:} false; then : 9316 $as_echo_n "(cached) " >&6 9317 else 9318 lt_cv_prog_compiler_c_o=no 10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10313 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10314 if test ${lt_cv_prog_compiler_c_o+y} 10315 then : 10316 printf %s "(cached) " >&6 10317 else case e in #( 10318 e) lt_cv_prog_compiler_c_o=no 9319 10319 $RM -r conftest 2>/dev/null 9320 10320 mkdir conftest … … 9356 10356 $RM -r conftest 9357 10357 $RM conftest* 9358 9359 fi 9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9361 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9362 9363 9364 9365 9366 9367 9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9369 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9370 if ${lt_cv_prog_compiler_c_o+:} false; then : 9371 $as_echo_n "(cached) " >&6 9372 else 9373 lt_cv_prog_compiler_c_o=no 10358 ;; 10359 esac 10360 fi 10361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10362 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10363 10364 10365 10366 10367 10368 10369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10370 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10371 if test ${lt_cv_prog_compiler_c_o+y} 10372 then : 10373 printf %s "(cached) " >&6 10374 else case e in #( 10375 e) lt_cv_prog_compiler_c_o=no 9374 10376 $RM -r conftest 2>/dev/null 9375 10377 mkdir conftest … … 9411 10413 $RM -r conftest 9412 10414 $RM conftest* 9413 9414 fi 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9416 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10415 ;; 10416 esac 10417 fi 10418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10419 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9417 10420 9418 10421 … … 9422 10425 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9423 10426 # do not overwrite the value of need_locks provided by the user 9424 { $as_echo"$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&59425 $as_echo_n"checking if we can lock with hard links... " >&6; }10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10428 printf %s "checking if we can lock with hard links... " >&6; } 9426 10429 hard_links=yes 9427 10430 $RM conftest* … … 9430 10433 ln conftest.a conftest.b 2>&5 || hard_links=no 9431 10434 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9432 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $hard_links" >&59433 $as_echo"$hard_links" >&6; }10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10436 printf "%s\n" "$hard_links" >&6; } 9434 10437 if test no = "$hard_links"; then 9435 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&59436 $as_echo"$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}10438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10439 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9437 10440 need_locks=warn 9438 10441 fi … … 9446 10449 9447 10450 9448 { $as_echo"$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&59449 $as_echo_n"checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }10451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10452 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9450 10453 9451 10454 runpath_var= … … 9491 10494 case $host_os in 9492 10495 cygwin* | mingw* | pw32* | cegcc*) 9493 # FIXME: the MSVC++ port hasn't been tested in a loooong time10496 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9494 10497 # When not using gcc, we currently assume that we are using 9495 # Microsoft Visual C++ .10498 # Microsoft Visual C++ or Intel C++ Compiler. 9496 10499 if test yes != "$GCC"; then 9497 10500 with_gnu_ld=no … … 9499 10502 ;; 9500 10503 interix*) 9501 # we just hope/assume this is gcc and not c89 (= MSVC++ )10504 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9502 10505 with_gnu_ld=yes 9503 10506 ;; … … 9551 10554 fi 9552 10555 supports_anon_versioning=no 9553 case `$LD -v | $SED -e 's/( ^)\+)\s\+//' 2>&1` in10556 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9554 10557 *GNU\ gold*) supports_anon_versioning=yes ;; 9555 10558 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 … … 9663 10666 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9664 10667 enable_shared_with_static_runtimes=yes 10668 file_list_spec='@' 9665 10669 ;; 9666 10670 … … 9677 10681 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9678 10682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9679 archive_expsym_cmds=' sed"s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'10683 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9680 10684 ;; 9681 10685 … … 9720 10724 ;; 9721 10725 esac 9722 case `$CC -V 2>&1 | sed5q` in10726 case `$CC -V 2>&1 | $SED 5q` in 9723 10727 *Sun\ C*) # Sun C 5.9 9724 10728 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' … … 9732 10736 if test yes = "$supports_anon_versioning"; then 9733 10737 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9734 cat $export_symbols | sed-e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~10738 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9735 10739 echo "local: *; };" >> $output_objdir/$libname.ver~ 9736 10740 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' … … 9748 10752 if test yes = "$supports_anon_versioning"; then 9749 10753 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9750 cat $export_symbols | sed-e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~10754 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9751 10755 echo "local: *; };" >> $output_objdir/$libname.ver~ 9752 10756 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' … … 9880 10884 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9881 10885 else 9882 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == " W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'10886 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9883 10887 fi 9884 10888 aix_use_runtimelinking=no … … 10002 11006 aix_libpath=$lt_cv_aix_libpath 10003 11007 else 10004 if ${lt_cv_aix_libpath_+:} false; then : 10005 $as_echo_n "(cached) " >&6 10006 else 10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11008 if test ${lt_cv_aix_libpath_+y} 11009 then : 11010 printf %s "(cached) " >&6 11011 else case e in #( 11012 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10008 11013 /* end confdefs.h. */ 10009 11014 10010 11015 int 10011 main ( )11016 main (void) 10012 11017 { 10013 11018 … … 10016 11021 } 10017 11022 _ACEOF 10018 if ac_fn_c_try_link "$LINENO"; then : 11023 if ac_fn_c_try_link "$LINENO" 11024 then : 10019 11025 10020 11026 lt_aix_libpath_sed=' … … 10031 11037 fi 10032 11038 fi 10033 rm -f core conftest.err conftest.$ac_objext \11039 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10034 11040 conftest$ac_exeext conftest.$ac_ext 10035 11041 if test -z "$lt_cv_aix_libpath_"; then 10036 11042 lt_cv_aix_libpath_=/usr/lib:/lib 10037 11043 fi 10038 11044 ;; 11045 esac 10039 11046 fi 10040 11047 … … 10055 11062 aix_libpath=$lt_cv_aix_libpath 10056 11063 else 10057 if ${lt_cv_aix_libpath_+:} false; then : 10058 $as_echo_n "(cached) " >&6 10059 else 10060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11064 if test ${lt_cv_aix_libpath_+y} 11065 then : 11066 printf %s "(cached) " >&6 11067 else case e in #( 11068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10061 11069 /* end confdefs.h. */ 10062 11070 10063 11071 int 10064 main ( )11072 main (void) 10065 11073 { 10066 11074 … … 10069 11077 } 10070 11078 _ACEOF 10071 if ac_fn_c_try_link "$LINENO"; then : 11079 if ac_fn_c_try_link "$LINENO" 11080 then : 10072 11081 10073 11082 lt_aix_libpath_sed=' … … 10084 11093 fi 10085 11094 fi 10086 rm -f core conftest.err conftest.$ac_objext \11095 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10087 11096 conftest$ac_exeext conftest.$ac_ext 10088 11097 if test -z "$lt_cv_aix_libpath_"; then 10089 11098 lt_cv_aix_libpath_=/usr/lib:/lib 10090 11099 fi 10091 11100 ;; 11101 esac 10092 11102 fi 10093 11103 … … 10147 11157 cygwin* | mingw* | pw32* | cegcc*) 10148 11158 # When not using gcc, we currently assume that we are using 10149 # Microsoft Visual C++ .11159 # Microsoft Visual C++ or Intel C++ Compiler. 10150 11160 # hardcode_libdir_flag_spec is actually meaningless, as there is 10151 11161 # no search path for DLLs. 10152 11162 case $cc_basename in 10153 cl* )10154 # Native MSVC 11163 cl* | icl*) 11164 # Native MSVC or ICC 10155 11165 hardcode_libdir_flag_spec=' ' 10156 11166 allow_undefined_flag=unsupported … … 10193 11203 ;; 10194 11204 *) 10195 # Assume MSVC wrapper11205 # Assume MSVC and ICC wrapper 10196 11206 hardcode_libdir_flag_spec=' ' 10197 11207 allow_undefined_flag=unsupported … … 10234 11244 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10235 11245 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10236 archive_expsym_cmds=" sed's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"10237 module_expsym_cmds=" sed-e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"11246 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 11247 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 10238 11248 10239 11249 else … … 10269 11279 10270 11280 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10271 freebsd* | dragonfly* )11281 freebsd* | dragonfly* | midnightbsd*) 10272 11282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10273 11283 hardcode_libdir_flag_spec='-R$libdir' … … 10335 11345 # Older versions of the 11.00 compiler do not understand -b yet 10336 11346 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10338 $as_echo_n "checking if $CC understands -b... " >&6; } 10339 if ${lt_cv_prog_compiler__b+:} false; then : 10340 $as_echo_n "(cached) " >&6 10341 else 10342 lt_cv_prog_compiler__b=no 11347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11348 printf %s "checking if $CC understands -b... " >&6; } 11349 if test ${lt_cv_prog_compiler__b+y} 11350 then : 11351 printf %s "(cached) " >&6 11352 else case e in #( 11353 e) lt_cv_prog_compiler__b=no 10343 11354 save_LDFLAGS=$LDFLAGS 10344 11355 LDFLAGS="$LDFLAGS -b" … … 10361 11372 $RM -r conftest* 10362 11373 LDFLAGS=$save_LDFLAGS 10363 10364 fi 10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10366 $as_echo "$lt_cv_prog_compiler__b" >&6; } 11374 ;; 11375 esac 11376 fi 11377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11378 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10367 11379 10368 11380 if test yes = "$lt_cv_prog_compiler__b"; then … … 10404 11416 # implicitly export all symbols. 10405 11417 # This should be the same for all languages, so no per-tag cache variable. 10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10407 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10408 if ${lt_cv_irix_exported_symbol+:} false; then : 10409 $as_echo_n "(cached) " >&6 10410 else 10411 save_LDFLAGS=$LDFLAGS 11418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11419 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11420 if test ${lt_cv_irix_exported_symbol+y} 11421 then : 11422 printf %s "(cached) " >&6 11423 else case e in #( 11424 e) save_LDFLAGS=$LDFLAGS 10412 11425 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10413 11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext … … 10415 11428 int foo (void) { return 0; } 10416 11429 _ACEOF 10417 if ac_fn_c_try_link "$LINENO"; then : 11430 if ac_fn_c_try_link "$LINENO" 11431 then : 10418 11432 lt_cv_irix_exported_symbol=yes 10419 else 10420 lt_cv_irix_exported_symbol=no 10421 fi 10422 rm -f core conftest.err conftest.$ac_objext \ 11433 else case e in #( 11434 e) lt_cv_irix_exported_symbol=no ;; 11435 esac 11436 fi 11437 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10423 11438 conftest$ac_exeext conftest.$ac_ext 10424 LDFLAGS=$save_LDFLAGS 10425 fi 10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10427 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 11439 LDFLAGS=$save_LDFLAGS ;; 11440 esac 11441 fi 11442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11443 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10428 11444 if test yes = "$lt_cv_irix_exported_symbol"; then 10429 11445 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' … … 10517 11533 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10518 11534 enable_shared_with_static_runtimes=yes 11535 file_list_spec='@' 10519 11536 ;; 10520 11537 … … 10705 11722 fi 10706 11723 10707 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&510708 $as_echo"$ld_shlibs" >&6; }11724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11725 printf "%s\n" "$ld_shlibs" >&6; } 10709 11726 test no = "$ld_shlibs" && can_build_shared=no 10710 11727 … … 10742 11759 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10743 11760 # to ld, don't add -lc before -lgcc. 10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10745 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10746 if ${lt_cv_archive_cmds_need_lc+:} false; then : 10747 $as_echo_n "(cached) " >&6 10748 else 10749 $RM conftest* 11761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11762 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11763 if test ${lt_cv_archive_cmds_need_lc+y} 11764 then : 11765 printf %s "(cached) " >&6 11766 else case e in #( 11767 e) $RM conftest* 10750 11768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10751 11769 … … 10753 11771 (eval $ac_compile) 2>&5 10754 11772 ac_status=$? 10755 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&511773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10756 11774 test $ac_status = 0; } 2>conftest.err; then 10757 11775 soname=conftest … … 10771 11789 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10772 11790 ac_status=$? 10773 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&511791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10774 11792 test $ac_status = 0; } 10775 11793 then … … 10783 11801 fi 10784 11802 $RM conftest* 10785 10786 fi 10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10788 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11803 ;; 11804 esac 11805 fi 11806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11807 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10789 11808 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10790 11809 ;; … … 10945 11964 10946 11965 10947 { $as_echo"$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&510948 $as_echo_n"checking dynamic linker characteristics... " >&6; }11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11967 printf %s "checking dynamic linker characteristics... " >&6; } 10949 11968 10950 11969 if test yes = "$GCC"; then … … 11208 12227 cygwin*) 11209 12228 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11210 soname_spec='`echo $libname | sed-e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'12229 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11211 12230 11212 12231 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" … … 11218 12237 pw32*) 11219 12238 # pw32 DLLs use 'pw' prefix rather than 'lib' 11220 library_names_spec='`echo $libname | sed-e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'12239 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11221 12240 ;; 11222 12241 esac … … 11224 12243 ;; 11225 12244 11226 *,cl* )11227 # Native MSVC 12245 *,cl* | *,icl*) 12246 # Native MSVC or ICC 11228 12247 libname_spec='$name' 11229 12248 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' … … 11244 12263 IFS=$lt_save_ifs 11245 12264 # Convert to MSYS style. 11246 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed-e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`12265 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11247 12266 ;; 11248 12267 cygwin*) … … 11281 12300 11282 12301 *) 11283 # Assume MSVC wrapper12302 # Assume MSVC and ICC wrapper 11284 12303 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11285 12304 dynamic_linker='Win32 ld.exe' … … 11314 12333 ;; 11315 12334 11316 freebsd* | dragonfly* )12335 freebsd* | dragonfly* | midnightbsd*) 11317 12336 # DragonFly does not have aout. When/if they implement a new 11318 12337 # versioning mechanism, adjust this. … … 11507 12526 11508 12527 # Some binutils ld are patched to set DT_RUNPATH 11509 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11510 $as_echo_n "(cached) " >&6 11511 else 11512 lt_cv_shlibpath_overrides_runpath=no 12528 if test ${lt_cv_shlibpath_overrides_runpath+y} 12529 then : 12530 printf %s "(cached) " >&6 12531 else case e in #( 12532 e) lt_cv_shlibpath_overrides_runpath=no 11513 12533 save_LDFLAGS=$LDFLAGS 11514 12534 save_libdir=$libdir … … 11519 12539 11520 12540 int 11521 main ( )12541 main (void) 11522 12542 { 11523 12543 … … 11526 12546 } 11527 12547 _ACEOF 11528 if ac_fn_c_try_link "$LINENO"; then : 11529 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12548 if ac_fn_c_try_link "$LINENO" 12549 then : 12550 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12551 then : 11530 12552 lt_cv_shlibpath_overrides_runpath=yes 11531 12553 fi 11532 12554 fi 11533 rm -f core conftest.err conftest.$ac_objext \12555 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11534 12556 conftest$ac_exeext conftest.$ac_ext 11535 12557 LDFLAGS=$save_LDFLAGS 11536 12558 libdir=$save_libdir 11537 12559 ;; 12560 esac 11538 12561 fi 11539 12562 … … 11763 12786 ;; 11764 12787 esac 11765 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&511766 $as_echo"$dynamic_linker" >&6; }12788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12789 printf "%s\n" "$dynamic_linker" >&6; } 11767 12790 test no = "$dynamic_linker" && can_build_shared=no 11768 12791 … … 11885 12908 11886 12909 11887 { $as_echo"$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&511888 $as_echo_n"checking how to hardcode library paths into programs... " >&6; }12910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12911 printf %s "checking how to hardcode library paths into programs... " >&6; } 11889 12912 hardcode_action= 11890 12913 if test -n "$hardcode_libdir_flag_spec" || … … 11910 12933 hardcode_action=unsupported 11911 12934 fi 11912 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&511913 $as_echo"$hardcode_action" >&6; }12935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12936 printf "%s\n" "$hardcode_action" >&6; } 11914 12937 11915 12938 if test relink = "$hardcode_action" || … … 11955 12978 darwin*) 11956 12979 # if libdl is installed we need to link against it 11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11958 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11959 if ${ac_cv_lib_dl_dlopen+:} false; then : 11960 $as_echo_n "(cached) " >&6 11961 else 11962 ac_check_lib_save_LIBS=$LIBS 12980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12981 printf %s "checking for dlopen in -ldl... " >&6; } 12982 if test ${ac_cv_lib_dl_dlopen+y} 12983 then : 12984 printf %s "(cached) " >&6 12985 else case e in #( 12986 e) ac_check_lib_save_LIBS=$LIBS 11963 12987 LIBS="-ldl $LIBS" 11964 12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext … … 11967 12991 /* Override any GCC internal prototype to avoid an error. 11968 12992 Use char because int might match the return type of a GCC 11969 builtin and then its argument prototype would still apply. */ 12993 builtin and then its argument prototype would still apply. 12994 The 'extern "C"' is for builds by C++ compilers; 12995 although this is not generally supported in C code supporting it here 12996 has little cost and some practical benefit (sr 110532). */ 11970 12997 #ifdef __cplusplus 11971 12998 extern "C" 11972 12999 #endif 11973 char dlopen ( );13000 char dlopen (void); 11974 13001 int 11975 main ( )13002 main (void) 11976 13003 { 11977 13004 return dlopen (); … … 11980 13007 } 11981 13008 _ACEOF 11982 if ac_fn_c_try_link "$LINENO"; then : 13009 if ac_fn_c_try_link "$LINENO" 13010 then : 11983 13011 ac_cv_lib_dl_dlopen=yes 11984 else 11985 ac_cv_lib_dl_dlopen=no 11986 fi 11987 rm -f core conftest.err conftest.$ac_objext \ 13012 else case e in #( 13013 e) ac_cv_lib_dl_dlopen=no ;; 13014 esac 13015 fi 13016 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11988 13017 conftest$ac_exeext conftest.$ac_ext 11989 LIBS=$ac_check_lib_save_LIBS 11990 fi 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11992 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11993 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13018 LIBS=$ac_check_lib_save_LIBS ;; 13019 esac 13020 fi 13021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13022 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13023 if test "x$ac_cv_lib_dl_dlopen" = xyes 13024 then : 11994 13025 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11995 else 11996 13026 else case e in #( 13027 e) 11997 13028 lt_cv_dlopen=dyld 11998 13029 lt_cv_dlopen_libs= 11999 13030 lt_cv_dlopen_self=yes 12000 13031 ;; 13032 esac 12001 13033 fi 12002 13034 … … 12013 13045 *) 12014 13046 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12015 if test "x$ac_cv_func_shl_load" = xyes; then : 13047 if test "x$ac_cv_func_shl_load" = xyes 13048 then : 12016 13049 lt_cv_dlopen=shl_load 12017 else 12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12019 $as_echo_n "checking for shl_load in -ldld... " >&6; } 12020 if ${ac_cv_lib_dld_shl_load+:} false; then : 12021 $as_echo_n "(cached) " >&6 12022 else 12023 ac_check_lib_save_LIBS=$LIBS 13050 else case e in #( 13051 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13052 printf %s "checking for shl_load in -ldld... " >&6; } 13053 if test ${ac_cv_lib_dld_shl_load+y} 13054 then : 13055 printf %s "(cached) " >&6 13056 else case e in #( 13057 e) ac_check_lib_save_LIBS=$LIBS 12024 13058 LIBS="-ldld $LIBS" 12025 13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext … … 12028 13062 /* Override any GCC internal prototype to avoid an error. 12029 13063 Use char because int might match the return type of a GCC 12030 builtin and then its argument prototype would still apply. */ 13064 builtin and then its argument prototype would still apply. 13065 The 'extern "C"' is for builds by C++ compilers; 13066 although this is not generally supported in C code supporting it here 13067 has little cost and some practical benefit (sr 110532). */ 12031 13068 #ifdef __cplusplus 12032 13069 extern "C" 12033 13070 #endif 12034 char shl_load ( );13071 char shl_load (void); 12035 13072 int 12036 main ( )13073 main (void) 12037 13074 { 12038 13075 return shl_load (); … … 12041 13078 } 12042 13079 _ACEOF 12043 if ac_fn_c_try_link "$LINENO"; then : 13080 if ac_fn_c_try_link "$LINENO" 13081 then : 12044 13082 ac_cv_lib_dld_shl_load=yes 12045 else 12046 ac_cv_lib_dld_shl_load=no 12047 fi 12048 rm -f core conftest.err conftest.$ac_objext \ 13083 else case e in #( 13084 e) ac_cv_lib_dld_shl_load=no ;; 13085 esac 13086 fi 13087 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12049 13088 conftest$ac_exeext conftest.$ac_ext 12050 LIBS=$ac_check_lib_save_LIBS 12051 fi 12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12053 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12054 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13089 LIBS=$ac_check_lib_save_LIBS ;; 13090 esac 13091 fi 13092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13093 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13094 if test "x$ac_cv_lib_dld_shl_load" = xyes 13095 then : 12055 13096 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12056 else 12057 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12058 if test "x$ac_cv_func_dlopen" = xyes; then : 13097 else case e in #( 13098 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13099 if test "x$ac_cv_func_dlopen" = xyes 13100 then : 12059 13101 lt_cv_dlopen=dlopen 12060 else 12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12062 $as_echo_n "checking for dlopen in -ldl... " >&6; } 12063 if ${ac_cv_lib_dl_dlopen+:} false; then : 12064 $as_echo_n "(cached) " >&6 12065 else 12066 ac_check_lib_save_LIBS=$LIBS 13102 else case e in #( 13103 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13104 printf %s "checking for dlopen in -ldl... " >&6; } 13105 if test ${ac_cv_lib_dl_dlopen+y} 13106 then : 13107 printf %s "(cached) " >&6 13108 else case e in #( 13109 e) ac_check_lib_save_LIBS=$LIBS 12067 13110 LIBS="-ldl $LIBS" 12068 13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext … … 12071 13114 /* Override any GCC internal prototype to avoid an error. 12072 13115 Use char because int might match the return type of a GCC 12073 builtin and then its argument prototype would still apply. */ 13116 builtin and then its argument prototype would still apply. 13117 The 'extern "C"' is for builds by C++ compilers; 13118 although this is not generally supported in C code supporting it here 13119 has little cost and some practical benefit (sr 110532). */ 12074 13120 #ifdef __cplusplus 12075 13121 extern "C" 12076 13122 #endif 12077 char dlopen ( );13123 char dlopen (void); 12078 13124 int 12079 main ( )13125 main (void) 12080 13126 { 12081 13127 return dlopen (); … … 12084 13130 } 12085 13131 _ACEOF 12086 if ac_fn_c_try_link "$LINENO"; then : 13132 if ac_fn_c_try_link "$LINENO" 13133 then : 12087 13134 ac_cv_lib_dl_dlopen=yes 12088 else 12089 ac_cv_lib_dl_dlopen=no 12090 fi 12091 rm -f core conftest.err conftest.$ac_objext \ 13135 else case e in #( 13136 e) ac_cv_lib_dl_dlopen=no ;; 13137 esac 13138 fi 13139 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12092 13140 conftest$ac_exeext conftest.$ac_ext 12093 LIBS=$ac_check_lib_save_LIBS 12094 fi 12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12096 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12097 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13141 LIBS=$ac_check_lib_save_LIBS ;; 13142 esac 13143 fi 13144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13145 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13146 if test "x$ac_cv_lib_dl_dlopen" = xyes 13147 then : 12098 13148 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12099 else 12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12101 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 12102 if ${ac_cv_lib_svld_dlopen+:} false; then : 12103 $as_echo_n "(cached) " >&6 12104 else 12105 ac_check_lib_save_LIBS=$LIBS 13149 else case e in #( 13150 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13151 printf %s "checking for dlopen in -lsvld... " >&6; } 13152 if test ${ac_cv_lib_svld_dlopen+y} 13153 then : 13154 printf %s "(cached) " >&6 13155 else case e in #( 13156 e) ac_check_lib_save_LIBS=$LIBS 12106 13157 LIBS="-lsvld $LIBS" 12107 13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext … … 12110 13161 /* Override any GCC internal prototype to avoid an error. 12111 13162 Use char because int might match the return type of a GCC 12112 builtin and then its argument prototype would still apply. */ 13163 builtin and then its argument prototype would still apply. 13164 The 'extern "C"' is for builds by C++ compilers; 13165 although this is not generally supported in C code supporting it here 13166 has little cost and some practical benefit (sr 110532). */ 12113 13167 #ifdef __cplusplus 12114 13168 extern "C" 12115 13169 #endif 12116 char dlopen ( );13170 char dlopen (void); 12117 13171 int 12118 main ( )13172 main (void) 12119 13173 { 12120 13174 return dlopen (); … … 12123 13177 } 12124 13178 _ACEOF 12125 if ac_fn_c_try_link "$LINENO"; then : 13179 if ac_fn_c_try_link "$LINENO" 13180 then : 12126 13181 ac_cv_lib_svld_dlopen=yes 12127 else 12128 ac_cv_lib_svld_dlopen=no 12129 fi 12130 rm -f core conftest.err conftest.$ac_objext \ 13182 else case e in #( 13183 e) ac_cv_lib_svld_dlopen=no ;; 13184 esac 13185 fi 13186 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12131 13187 conftest$ac_exeext conftest.$ac_ext 12132 LIBS=$ac_check_lib_save_LIBS 12133 fi 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12135 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12136 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13188 LIBS=$ac_check_lib_save_LIBS ;; 13189 esac 13190 fi 13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13192 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13193 if test "x$ac_cv_lib_svld_dlopen" = xyes 13194 then : 12137 13195 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12138 else 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12140 $as_echo_n "checking for dld_link in -ldld... " >&6; } 12141 if ${ac_cv_lib_dld_dld_link+:} false; then : 12142 $as_echo_n "(cached) " >&6 12143 else 12144 ac_check_lib_save_LIBS=$LIBS 13196 else case e in #( 13197 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13198 printf %s "checking for dld_link in -ldld... " >&6; } 13199 if test ${ac_cv_lib_dld_dld_link+y} 13200 then : 13201 printf %s "(cached) " >&6 13202 else case e in #( 13203 e) ac_check_lib_save_LIBS=$LIBS 12145 13204 LIBS="-ldld $LIBS" 12146 13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext … … 12149 13208 /* Override any GCC internal prototype to avoid an error. 12150 13209 Use char because int might match the return type of a GCC 12151 builtin and then its argument prototype would still apply. */ 13210 builtin and then its argument prototype would still apply. 13211 The 'extern "C"' is for builds by C++ compilers; 13212 although this is not generally supported in C code supporting it here 13213 has little cost and some practical benefit (sr 110532). */ 12152 13214 #ifdef __cplusplus 12153 13215 extern "C" 12154 13216 #endif 12155 char dld_link ( );13217 char dld_link (void); 12156 13218 int 12157 main ( )13219 main (void) 12158 13220 { 12159 13221 return dld_link (); … … 12162 13224 } 12163 13225 _ACEOF 12164 if ac_fn_c_try_link "$LINENO"; then : 13226 if ac_fn_c_try_link "$LINENO" 13227 then : 12165 13228 ac_cv_lib_dld_dld_link=yes 12166 else 12167 ac_cv_lib_dld_dld_link=no 12168 fi 12169 rm -f core conftest.err conftest.$ac_objext \ 13229 else case e in #( 13230 e) ac_cv_lib_dld_dld_link=no ;; 13231 esac 13232 fi 13233 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12170 13234 conftest$ac_exeext conftest.$ac_ext 12171 LIBS=$ac_check_lib_save_LIBS 12172 fi 12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12174 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12175 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13235 LIBS=$ac_check_lib_save_LIBS ;; 13236 esac 13237 fi 13238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13239 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13240 if test "x$ac_cv_lib_dld_dld_link" = xyes 13241 then : 12176 13242 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12177 13243 fi 12178 13244 12179 12180 fi 12181 12182 12183 fi 12184 12185 12186 fi 12187 12188 12189 fi 12190 12191 13245 ;; 13246 esac 13247 fi 13248 13249 ;; 13250 esac 13251 fi 13252 13253 ;; 13254 esac 13255 fi 13256 13257 ;; 13258 esac 13259 fi 13260 13261 ;; 13262 esac 12192 13263 fi 12193 13264 … … 12212 13283 LIBS="$lt_cv_dlopen_libs $LIBS" 12213 13284 12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12215 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 12216 if ${lt_cv_dlopen_self+:} false; then : 12217 $as_echo_n "(cached) " >&6 12218 else 12219 if test yes = "$cross_compiling"; then : 13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13286 printf %s "checking whether a program can dlopen itself... " >&6; } 13287 if test ${lt_cv_dlopen_self+y} 13288 then : 13289 printf %s "(cached) " >&6 13290 else case e in #( 13291 e) if test yes = "$cross_compiling"; then : 12220 13292 lt_cv_dlopen_self=cross 12221 13293 else … … 12295 13367 (eval $ac_link) 2>&5 12296 13368 ac_status=$? 12297 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&513369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12298 13370 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12299 13371 (./conftest; exit; ) >&5 2>/dev/null … … 12311 13383 rm -fr conftest* 12312 13384 12313 12314 fi 12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12316 $as_echo "$lt_cv_dlopen_self" >&6; } 13385 ;; 13386 esac 13387 fi 13388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13389 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12317 13390 12318 13391 if test yes = "$lt_cv_dlopen_self"; then 12319 13392 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12321 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12322 if ${lt_cv_dlopen_self_static+:} false; then : 12323 $as_echo_n "(cached) " >&6 12324 else 12325 if test yes = "$cross_compiling"; then : 13393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13394 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13395 if test ${lt_cv_dlopen_self_static+y} 13396 then : 13397 printf %s "(cached) " >&6 13398 else case e in #( 13399 e) if test yes = "$cross_compiling"; then : 12326 13400 lt_cv_dlopen_self_static=cross 12327 13401 else … … 12401 13475 (eval $ac_link) 2>&5 12402 13476 ac_status=$? 12403 $as_echo"$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&513477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12404 13478 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12405 13479 (./conftest; exit; ) >&5 2>/dev/null … … 12417 13491 rm -fr conftest* 12418 13492 12419 12420 fi 12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12422 $as_echo "$lt_cv_dlopen_self_static" >&6; } 13493 ;; 13494 esac 13495 fi 13496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13497 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12423 13498 fi 12424 13499 … … 12458 13533 striplib= 12459 13534 old_striplib= 12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12461 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 12462 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12463 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12464 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12466 $as_echo "yes" >&6; } 12467 else 12468 # FIXME - insert some real tests, host_os isn't really good enough 12469 case $host_os in 12470 darwin*) 12471 if test -n "$STRIP"; then 13535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13536 printf %s "checking whether stripping libraries is possible... " >&6; } 13537 if test -z "$STRIP"; then 13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13539 printf "%s\n" "no" >&6; } 13540 else 13541 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13542 old_striplib="$STRIP --strip-debug" 13543 striplib="$STRIP --strip-unneeded" 13544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13545 printf "%s\n" "yes" >&6; } 13546 else 13547 case $host_os in 13548 darwin*) 13549 # FIXME - insert some real tests, host_os isn't really good enough 12472 13550 striplib="$STRIP -x" 12473 13551 old_striplib="$STRIP -S" 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12475 $as_echo "yes" >&6; } 12476 else 12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12478 $as_echo "no" >&6; } 12479 fi 12480 ;; 12481 *) 12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12483 $as_echo "no" >&6; } 12484 ;; 12485 esac 13552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13553 printf "%s\n" "yes" >&6; } 13554 ;; 13555 freebsd*) 13556 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13557 old_striplib="$STRIP --strip-debug" 13558 striplib="$STRIP --strip-unneeded" 13559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13560 printf "%s\n" "yes" >&6; } 13561 else 13562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13563 printf "%s\n" "no" >&6; } 13564 fi 13565 ;; 13566 *) 13567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13568 printf "%s\n" "no" >&6; } 13569 ;; 13570 esac 13571 fi 12486 13572 fi 12487 13573 … … 12498 13584 12499 13585 # Report what library types will actually be built 12500 { $as_echo"$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&512501 $as_echo_n"checking if libtool supports shared libraries... " >&6; }12502 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&512503 $as_echo"$can_build_shared" >&6; }12504 12505 { $as_echo"$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&512506 $as_echo_n"checking whether to build shared libraries... " >&6; }13586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13587 printf %s "checking if libtool supports shared libraries... " >&6; } 13588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13589 printf "%s\n" "$can_build_shared" >&6; } 13590 13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13592 printf %s "checking whether to build shared libraries... " >&6; } 12507 13593 test no = "$can_build_shared" && enable_shared=no 12508 13594 … … 12528 13614 ;; 12529 13615 esac 12530 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&512531 $as_echo"$enable_shared" >&6; }12532 12533 { $as_echo"$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&512534 $as_echo_n"checking whether to build static libraries... " >&6; }13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13617 printf "%s\n" "$enable_shared" >&6; } 13618 13619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13620 printf %s "checking whether to build static libraries... " >&6; } 12535 13621 # Make sure either enable_shared or enable_static is yes. 12536 13622 test yes = "$enable_shared" || enable_static=yes 12537 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $enable_static" >&512538 $as_echo"$enable_static" >&6; }13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13624 printf "%s\n" "$enable_static" >&6; } 12539 13625 12540 13626 … … 12576 13662 # Some awks crash when confronted with pnglibconf.dfa, do a test run now 12577 13663 # to make sure this doesn't happen 12578 { $as_echo"$as_me:${as_lineno-$LINENO}: checking that AWK works" >&512579 $as_echo_n"checking that AWK works... " >&6; }13664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that AWK works" >&5 13665 printf %s "checking that AWK works... " >&6; } 12580 13666 if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\ 12581 13667 ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\ 12582 13668 ${srcdir}/pngusr.dfa 1>&2 12583 13669 then 12584 { $as_echo"$as_me:${as_lineno-$LINENO}: result: ok" >&512585 $as_echo"ok" >&6; }12586 else 12587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&512588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}13670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13671 printf "%s\n" "ok" >&6; } 13672 else 13673 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13674 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12589 13675 as_fn_error 1 "failed 12590 See \`config.log' for more details" "$LINENO" 5; }13676 See 'config.log' for more details" "$LINENO" 5; } 12591 13677 fi 12592 13678 … … 12596 13682 12597 13683 12598 # -Werror cannot be passed to GCC in CFLAGS because configure will fail (it 12599 # checks the compiler with a program that generates a warning), add the 12600 # following option to deal with this 13684 # Check whether --enable-tests was given. 13685 if test ${enable_tests+y} 13686 then : 13687 enableval=$enable_tests; enable_tests="$enableval" 13688 else case e in #( 13689 e) enable_tests=yes ;; 13690 esac 13691 fi 13692 13693 13694 if test "$enable_tests" != "no"; then 13695 ENABLE_TESTS_TRUE= 13696 ENABLE_TESTS_FALSE='#' 13697 else 13698 ENABLE_TESTS_TRUE='#' 13699 ENABLE_TESTS_FALSE= 13700 fi 13701 13702 13703 # Check whether --enable-tools was given. 13704 if test ${enable_tools+y} 13705 then : 13706 enableval=$enable_tools; enable_tools="$enableval" 13707 else case e in #( 13708 e) enable_tools=yes ;; 13709 esac 13710 fi 13711 13712 13713 if test "$enable_tools" != "no"; then 13714 ENABLE_TOOLS_TRUE= 13715 ENABLE_TOOLS_FALSE='#' 13716 else 13717 ENABLE_TOOLS_TRUE='#' 13718 ENABLE_TOOLS_FALSE= 13719 fi 13720 13721 13722 # -Werror cannot be passed to GCC in CFLAGS because configure will fail 13723 # (it checks the compiler with a program that generates a warning). 13724 # Add the following option to deal with this: 12601 13725 12602 13726 # Check whether --enable-werror was given. 12603 if test "${enable_werror+set}" = set; then : 13727 if test ${enable_werror+y} 13728 then : 12604 13729 enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror" 12605 13730 if test "$enable_werror" != "no"; then 12606 13731 sav_CFLAGS="$CFLAGS" 12607 13732 CFLAGS="$enable_werror $CFLAGS" 12608 { $as_echo"$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&512609 $as_echo_n"checking if the compiler allows $enable_werror... " >&6; }13733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5 13734 printf %s "checking if the compiler allows $enable_werror... " >&6; } 12610 13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12611 13736 /* end confdefs.h. */ … … 12615 13740 } 12616 13741 _ACEOF 12617 if ac_fn_c_try_compile "$LINENO"; then : 12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12619 $as_echo "yes" >&6; } 13742 if ac_fn_c_try_compile "$LINENO" 13743 then : 13744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13745 printf "%s\n" "yes" >&6; } 12620 13746 PNG_COPTS="$PNG_COPTS $enable_werror" 12621 else 12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12623 $as_echo "no" >&6; } 12624 fi 12625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13747 else case e in #( 13748 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13749 printf "%s\n" "no" >&6; } ;; 13750 esac 13751 fi 13752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12626 13753 CFLAGS="$sav_CFLAGS" 12627 13754 fi … … 12629 13756 12630 13757 12631 # For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89 12632 # In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining _POSIX_SOURCE to 112633 # This is incompatible with the new default mode, so we test for that and force the12634 # "-std=c89" compiler option:12635 { $as_echo"$as_me:${as_lineno-$LINENO}: checking if we need to force back C standard to C89" >&512636 $as_echo_n"checking if we need to force back C standard to C89... " >&6; }13758 # For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89. 13759 # In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining 13760 # _POSIX_SOURCE to 1. This is incompatible with the new default mode, so 13761 # we test for that and force the "-std=c89" compiler option: 13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to force back C standard to C89" >&5 13763 printf %s "checking if we need to force back C standard to C89... " >&6; } 12637 13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12638 13765 /* end confdefs.h. */ … … 12642 13769 12643 13770 int 12644 main ( )13771 main (void) 12645 13772 { 12646 13773 … … 12649 13776 } 12650 13777 _ACEOF 12651 if ac_fn_c_try_compile "$LINENO"; then : 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12653 $as_echo "no" >&6; } 12654 else 12655 13778 if ac_fn_c_try_compile "$LINENO" 13779 then : 13780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13781 printf "%s\n" "no" >&6; } 13782 else case e in #( 13783 e) 12656 13784 if test "x$GCC" != "xyes"; then 12657 13785 as_fn_error $? "Forcing back to C89 is required but the flags are only known for GCC" "$LINENO" 5 12658 13786 fi 12659 { $as_echo"$as_me:${as_lineno-$LINENO}: result: yes" >&512660 $as_echo"yes" >&6; }13787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13788 printf "%s\n" "yes" >&6; } 12661 13789 CFLAGS="$CFLAGS -std=c89" 12662 12663 fi 12664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12665 12666 # Checks for header files. 12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12668 $as_echo_n "checking for ANSI C header files... " >&6; } 12669 if ${ac_cv_header_stdc+:} false; then : 12670 $as_echo_n "(cached) " >&6 12671 else 12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12673 /* end confdefs.h. */ 12674 #include <stdlib.h> 12675 #include <stdarg.h> 12676 #include <string.h> 12677 #include <float.h> 12678 12679 int 12680 main () 12681 { 12682 12683 ; 12684 return 0; 12685 } 12686 _ACEOF 12687 if ac_fn_c_try_compile "$LINENO"; then : 12688 ac_cv_header_stdc=yes 12689 else 12690 ac_cv_header_stdc=no 12691 fi 12692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12693 12694 if test $ac_cv_header_stdc = yes; then 12695 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12697 /* end confdefs.h. */ 12698 #include <string.h> 12699 12700 _ACEOF 12701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12702 $EGREP "memchr" >/dev/null 2>&1; then : 12703 12704 else 12705 ac_cv_header_stdc=no 12706 fi 12707 rm -f conftest* 12708 12709 fi 12710 12711 if test $ac_cv_header_stdc = yes; then 12712 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12714 /* end confdefs.h. */ 12715 #include <stdlib.h> 12716 12717 _ACEOF 12718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12719 $EGREP "free" >/dev/null 2>&1; then : 12720 12721 else 12722 ac_cv_header_stdc=no 12723 fi 12724 rm -f conftest* 12725 12726 fi 12727 12728 if test $ac_cv_header_stdc = yes; then 12729 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12730 if test "$cross_compiling" = yes; then : 12731 : 12732 else 12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12734 /* end confdefs.h. */ 12735 #include <ctype.h> 12736 #include <stdlib.h> 12737 #if ((' ' & 0x0FF) == 0x020) 12738 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12739 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12740 #else 12741 # define ISLOWER(c) \ 12742 (('a' <= (c) && (c) <= 'i') \ 12743 || ('j' <= (c) && (c) <= 'r') \ 12744 || ('s' <= (c) && (c) <= 'z')) 12745 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12746 #endif 12747 12748 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12749 int 12750 main () 12751 { 12752 int i; 12753 for (i = 0; i < 256; i++) 12754 if (XOR (islower (i), ISLOWER (i)) 12755 || toupper (i) != TOUPPER (i)) 12756 return 2; 12757 return 0; 12758 } 12759 _ACEOF 12760 if ac_fn_c_try_run "$LINENO"; then : 12761 12762 else 12763 ac_cv_header_stdc=no 12764 fi 12765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12766 conftest.$ac_objext conftest.beam conftest.$ac_ext 12767 fi 12768 12769 fi 12770 fi 12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12772 $as_echo "$ac_cv_header_stdc" >&6; } 12773 if test $ac_cv_header_stdc = yes; then 12774 12775 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 12776 12777 fi 12778 12779 12780 # Checks for typedefs, structures, and compiler characteristics. 12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12782 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12783 if ${ac_cv_c_const+:} false; then : 12784 $as_echo_n "(cached) " >&6 12785 else 12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12787 /* end confdefs.h. */ 12788 12789 int 12790 main () 12791 { 12792 12793 #ifndef __cplusplus 12794 /* Ultrix mips cc rejects this sort of thing. */ 12795 typedef int charset[2]; 12796 const charset cs = { 0, 0 }; 12797 /* SunOS 4.1.1 cc rejects this. */ 12798 char const *const *pcpcc; 12799 char **ppc; 12800 /* NEC SVR4.0.2 mips cc rejects this. */ 12801 struct point {int x, y;}; 12802 static struct point const zero = {0,0}; 12803 /* AIX XL C 1.02.0.0 rejects this. 12804 It does not let you subtract one const X* pointer from another in 12805 an arm of an if-expression whose if-part is not a constant 12806 expression */ 12807 const char *g = "string"; 12808 pcpcc = &g + (g ? g-g : 0); 12809 /* HPUX 7.0 cc rejects these. */ 12810 ++pcpcc; 12811 ppc = (char**) pcpcc; 12812 pcpcc = (char const *const *) ppc; 12813 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12814 char tx; 12815 char *t = &tx; 12816 char const *s = 0 ? (char *) 0 : (char const *) 0; 12817 12818 *t++ = 0; 12819 if (s) return 0; 12820 } 12821 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12822 int x[] = {25, 17}; 12823 const int *foo = &x[0]; 12824 ++foo; 12825 } 12826 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12827 typedef const int *iptr; 12828 iptr p = 0; 12829 ++p; 12830 } 12831 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12832 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12833 struct s { int j; const int *ap[3]; } bx; 12834 struct s *b = &bx; b->j = 5; 12835 } 12836 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12837 const int foo = 10; 12838 if (!foo) return 0; 12839 } 12840 return !cs[0] && !zero.x; 12841 #endif 12842 12843 ; 12844 return 0; 12845 } 12846 _ACEOF 12847 if ac_fn_c_try_compile "$LINENO"; then : 12848 ac_cv_c_const=yes 12849 else 12850 ac_cv_c_const=no 12851 fi 12852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12853 fi 12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12855 $as_echo "$ac_cv_c_const" >&6; } 12856 if test $ac_cv_c_const = no; then 12857 12858 $as_echo "#define const /**/" >>confdefs.h 12859 12860 fi 12861 12862 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12863 if test "x$ac_cv_type_size_t" = xyes; then : 12864 12865 else 12866 12867 cat >>confdefs.h <<_ACEOF 12868 #define size_t unsigned int 12869 _ACEOF 12870 12871 fi 12872 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 12874 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 12875 if ${ac_cv_struct_tm+:} false; then : 12876 $as_echo_n "(cached) " >&6 12877 else 12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13790 ;; 13791 esac 13792 fi 13793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13794 13795 # Checks for structures and compiler characteristics. 13796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 13797 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } 13798 if test ${ac_cv_struct_tm+y} 13799 then : 13800 printf %s "(cached) " >&6 13801 else case e in #( 13802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12879 13803 /* end confdefs.h. */ 12880 13804 #include <sys/types.h> … … 12882 13806 12883 13807 int 12884 main ( )13808 main (void) 12885 13809 { 12886 13810 struct tm tm; … … 12891 13815 } 12892 13816 _ACEOF 12893 if ac_fn_c_try_compile "$LINENO"; then : 13817 if ac_fn_c_try_compile "$LINENO" 13818 then : 12894 13819 ac_cv_struct_tm=time.h 12895 else 12896 ac_cv_struct_tm=sys/time.h 12897 fi 12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12899 fi 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 12901 $as_echo "$ac_cv_struct_tm" >&6; } 13820 else case e in #( 13821 e) ac_cv_struct_tm=sys/time.h ;; 13822 esac 13823 fi 13824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13825 esac 13826 fi 13827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 13828 printf "%s\n" "$ac_cv_struct_tm" >&6; } 12902 13829 if test $ac_cv_struct_tm = sys/time.h; then 12903 13830 12904 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 12905 12906 fi 12907 12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 12909 $as_echo_n "checking for C/C++ restrict keyword... " >&6; } 12910 if ${ac_cv_c_restrict+:} false; then : 12911 $as_echo_n "(cached) " >&6 12912 else 12913 ac_cv_c_restrict=no 12914 # The order here caters to the fact that C++ does not require restrict. 12915 for ac_kw in __restrict __restrict__ _Restrict restrict; do 13831 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h 13832 13833 fi 13834 13835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 13836 printf %s "checking for C/C++ restrict keyword... " >&6; } 13837 if test ${ac_cv_c_restrict+y} 13838 then : 13839 printf %s "(cached) " >&6 13840 else case e in #( 13841 e) ac_cv_c_restrict=no 13842 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see: 13843 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html 13844 # Put 'restrict' last, because C++ lacks it. 13845 for ac_kw in __restrict__ __restrict _Restrict restrict; do 12916 13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12917 13847 /* end confdefs.h. */ 12918 typedef int * int_ptr; 12919 int foo (int_ptr $ac_kw ip) { 12920 return ip[0]; 12921 } 13848 typedef int *int_ptr; 13849 int foo (int_ptr $ac_kw ip) { return ip[0]; } 13850 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ 13851 int bar (int ip[$ac_kw]) { return ip[0]; } 13852 12922 13853 int 12923 main ( )13854 main (void) 12924 13855 { 12925 13856 int s[1]; 12926 int * $ac_kw t = s; 12927 t[0] = 0; 12928 return foo(t) 13857 int *$ac_kw t = s; 13858 t[0] = 0; 13859 return foo (t) + bar (t); 13860 12929 13861 ; 12930 13862 return 0; 12931 13863 } 12932 13864 _ACEOF 12933 if ac_fn_c_try_compile "$LINENO"; then : 13865 if ac_fn_c_try_compile "$LINENO" 13866 then : 12934 13867 ac_cv_c_restrict=$ac_kw 12935 13868 fi 12936 rm -f core conftest.err conftest.$ac_objext conftest. $ac_ext13869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12937 13870 test "$ac_cv_c_restrict" != no && break 12938 13871 done 12939 12940 fi 12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 12942 $as_echo "$ac_cv_c_restrict" >&6; } 13872 ;; 13873 esac 13874 fi 13875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 13876 printf "%s\n" "$ac_cv_c_restrict" >&6; } 12943 13877 12944 13878 case $ac_cv_c_restrict in 12945 13879 restrict) ;; 12946 no) $as_echo"#define restrict /**/" >>confdefs.h13880 no) printf "%s\n" "#define restrict /**/" >>confdefs.h 12947 13881 ;; 12948 *) cat >>confdefs.h <<_ACEOF 12949 #define restrict $ac_cv_c_restrict 12950 _ACEOF 13882 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h 12951 13883 ;; 12952 13884 esac … … 12954 13886 12955 13887 # Checks for library functions. 12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 12957 $as_echo_n "checking for working strtod... " >&6; } 12958 if ${ac_cv_func_strtod+:} false; then : 12959 $as_echo_n "(cached) " >&6 12960 else 12961 if test "$cross_compiling" = yes; then : 12962 ac_cv_func_strtod=no 12963 else 12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12965 /* end confdefs.h. */ 12966 12967 $ac_includes_default 12968 #ifndef strtod 12969 double strtod (); 12970 #endif 12971 int 12972 main() 12973 { 12974 { 12975 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 12976 char *string = " +69"; 12977 char *term; 12978 double value; 12979 value = strtod (string, &term); 12980 if (value != 69 || term != (string + 4)) 12981 return 1; 12982 } 12983 12984 { 12985 /* Under Solaris 2.4, strtod returns the wrong value for the 12986 terminating character under some conditions. */ 12987 char *string = "NaN"; 12988 char *term; 12989 strtod (string, &term); 12990 if (term != string && *(term - 1) == 0) 12991 return 1; 12992 } 12993 return 0; 12994 } 12995 12996 _ACEOF 12997 if ac_fn_c_try_run "$LINENO"; then : 12998 ac_cv_func_strtod=yes 12999 else 13000 ac_cv_func_strtod=no 13001 fi 13002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13003 conftest.$ac_objext conftest.beam conftest.$ac_ext 13004 fi 13005 13006 fi 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 13008 $as_echo "$ac_cv_func_strtod" >&6; } 13009 if test $ac_cv_func_strtod = no; then 13010 case " $LIBOBJS " in 13011 *" strtod.$ac_objext "* ) ;; 13012 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 13013 ;; 13014 esac 13015 13016 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 13017 if test "x$ac_cv_func_pow" = xyes; then : 13018 13019 fi 13020 13021 if test $ac_cv_func_pow = no; then 13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 13023 $as_echo_n "checking for pow in -lm... " >&6; } 13024 if ${ac_cv_lib_m_pow+:} false; then : 13025 $as_echo_n "(cached) " >&6 13026 else 13027 ac_check_lib_save_LIBS=$LIBS 13888 13889 for ac_func in pow 13890 do : 13891 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 13892 if test "x$ac_cv_func_pow" = xyes 13893 then : 13894 printf "%s\n" "#define HAVE_POW 1" >>confdefs.h 13895 13896 else case e in #( 13897 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 13898 printf %s "checking for pow in -lm... " >&6; } 13899 if test ${ac_cv_lib_m_pow+y} 13900 then : 13901 printf %s "(cached) " >&6 13902 else case e in #( 13903 e) ac_check_lib_save_LIBS=$LIBS 13028 13904 LIBS="-lm $LIBS" 13029 13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext … … 13032 13908 /* Override any GCC internal prototype to avoid an error. 13033 13909 Use char because int might match the return type of a GCC 13034 builtin and then its argument prototype would still apply. */ 13910 builtin and then its argument prototype would still apply. 13911 The 'extern "C"' is for builds by C++ compilers; 13912 although this is not generally supported in C code supporting it here 13913 has little cost and some practical benefit (sr 110532). */ 13035 13914 #ifdef __cplusplus 13036 13915 extern "C" 13037 13916 #endif 13038 char pow ( );13917 char pow (void); 13039 13918 int 13040 main ( )13919 main (void) 13041 13920 { 13042 13921 return pow (); … … 13045 13924 } 13046 13925 _ACEOF 13047 if ac_fn_c_try_link "$LINENO"; then : 13926 if ac_fn_c_try_link "$LINENO" 13927 then : 13048 13928 ac_cv_lib_m_pow=yes 13049 else 13050 ac_cv_lib_m_pow=no 13051 fi 13052 rm -f core conftest.err conftest.$ac_objext \ 13929 else case e in #( 13930 e) ac_cv_lib_m_pow=no ;; 13931 esac 13932 fi 13933 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13053 13934 conftest$ac_exeext conftest.$ac_ext 13054 LIBS=$ac_check_lib_save_LIBS 13055 fi 13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 13057 $as_echo "$ac_cv_lib_m_pow" >&6; } 13058 if test "x$ac_cv_lib_m_pow" = xyes; then : 13059 POW_LIB=-lm 13060 else 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 13062 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 13063 fi 13064 13065 fi 13066 13067 fi 13068 13069 for ac_func in pow 13070 do : 13071 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 13072 if test "x$ac_cv_func_pow" = xyes; then : 13073 cat >>confdefs.h <<_ACEOF 13074 #define HAVE_POW 1 13075 _ACEOF 13076 13077 else 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 13079 $as_echo_n "checking for pow in -lm... " >&6; } 13080 if ${ac_cv_lib_m_pow+:} false; then : 13081 $as_echo_n "(cached) " >&6 13082 else 13083 ac_check_lib_save_LIBS=$LIBS 13084 LIBS="-lm $LIBS" 13935 LIBS=$ac_check_lib_save_LIBS ;; 13936 esac 13937 fi 13938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 13939 printf "%s\n" "$ac_cv_lib_m_pow" >&6; } 13940 if test "x$ac_cv_lib_m_pow" = xyes 13941 then : 13942 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h 13943 13944 LIBS="-lm $LIBS" 13945 13946 else case e in #( 13947 e) as_fn_error $? "cannot find pow" "$LINENO" 5 ;; 13948 esac 13949 fi 13950 ;; 13951 esac 13952 fi 13953 13954 done 13955 13956 # Some later POSIX 1003.1 functions are required for test programs, failure 13957 # here is soft (the corresponding test program is not built). 13958 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 13959 if test "x$ac_cv_func_clock_gettime" = xyes 13960 then : 13961 13962 else case e in #( 13963 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: not building timepng" >&5 13964 printf "%s\n" "$as_me: WARNING: not building timepng" >&2;} ;; 13965 esac 13966 fi 13967 13968 if test "$ac_cv_func_clock_gettime" = "yes"; then 13969 HAVE_CLOCK_GETTIME_TRUE= 13970 HAVE_CLOCK_GETTIME_FALSE='#' 13971 else 13972 HAVE_CLOCK_GETTIME_TRUE='#' 13973 HAVE_CLOCK_GETTIME_FALSE= 13974 fi 13975 13976 13977 13978 # Check whether --with-zlib-prefix was given. 13979 if test ${with_zlib_prefix+y} 13980 then : 13981 withval=$with_zlib_prefix; ZPREFIX=${withval} 13982 else case e in #( 13983 e) ZPREFIX='z_' ;; 13984 esac 13985 fi 13986 13987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 13988 printf %s "checking for zlibVersion in -lz... " >&6; } 13989 if test ${ac_cv_lib_z_zlibVersion+y} 13990 then : 13991 printf %s "(cached) " >&6 13992 else case e in #( 13993 e) ac_check_lib_save_LIBS=$LIBS 13994 LIBS="-lz $LIBS" 13085 13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13086 13996 /* end confdefs.h. */ … … 13088 13998 /* Override any GCC internal prototype to avoid an error. 13089 13999 Use char because int might match the return type of a GCC 13090 builtin and then its argument prototype would still apply. */ 14000 builtin and then its argument prototype would still apply. 14001 The 'extern "C"' is for builds by C++ compilers; 14002 although this is not generally supported in C code supporting it here 14003 has little cost and some practical benefit (sr 110532). */ 13091 14004 #ifdef __cplusplus 13092 14005 extern "C" 13093 14006 #endif 13094 char pow ();14007 char zlibVersion (void); 13095 14008 int 13096 main () 13097 { 13098 return pow (); 13099 ; 13100 return 0; 13101 } 13102 _ACEOF 13103 if ac_fn_c_try_link "$LINENO"; then : 13104 ac_cv_lib_m_pow=yes 13105 else 13106 ac_cv_lib_m_pow=no 13107 fi 13108 rm -f core conftest.err conftest.$ac_objext \ 13109 conftest$ac_exeext conftest.$ac_ext 13110 LIBS=$ac_check_lib_save_LIBS 13111 fi 13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 13113 $as_echo "$ac_cv_lib_m_pow" >&6; } 13114 if test "x$ac_cv_lib_m_pow" = xyes; then : 13115 cat >>confdefs.h <<_ACEOF 13116 #define HAVE_LIBM 1 13117 _ACEOF 13118 13119 LIBS="-lm $LIBS" 13120 13121 else 13122 as_fn_error $? "cannot find pow" "$LINENO" 5 13123 fi 13124 13125 fi 13126 done 13127 13128 13129 # Some later POSIX 1003.1 functions are required for test programs, failure here 13130 # is soft (the corresponding test program is not built). 13131 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 13132 if test "x$ac_cv_func_clock_gettime" = xyes; then : 13133 13134 else 13135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not building timepng" >&5 13136 $as_echo "$as_me: WARNING: not building timepng" >&2;} 13137 fi 13138 13139 if test "$ac_cv_func_clock_gettime" = "yes"; then 13140 HAVE_CLOCK_GETTIME_TRUE= 13141 HAVE_CLOCK_GETTIME_FALSE='#' 13142 else 13143 HAVE_CLOCK_GETTIME_TRUE='#' 13144 HAVE_CLOCK_GETTIME_FALSE= 13145 fi 13146 13147 13148 13149 # Check whether --with-zlib-prefix was given. 13150 if test "${with_zlib_prefix+set}" = set; then : 13151 withval=$with_zlib_prefix; ZPREFIX=${withval} 13152 else 13153 ZPREFIX='z_' 13154 fi 13155 13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 13157 $as_echo_n "checking for zlibVersion in -lz... " >&6; } 13158 if ${ac_cv_lib_z_zlibVersion+:} false; then : 13159 $as_echo_n "(cached) " >&6 13160 else 13161 ac_check_lib_save_LIBS=$LIBS 13162 LIBS="-lz $LIBS" 13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13164 /* end confdefs.h. */ 13165 13166 /* Override any GCC internal prototype to avoid an error. 13167 Use char because int might match the return type of a GCC 13168 builtin and then its argument prototype would still apply. */ 13169 #ifdef __cplusplus 13170 extern "C" 13171 #endif 13172 char zlibVersion (); 13173 int 13174 main () 14009 main (void) 13175 14010 { 13176 14011 return zlibVersion (); … … 13179 14014 } 13180 14015 _ACEOF 13181 if ac_fn_c_try_link "$LINENO"; then : 14016 if ac_fn_c_try_link "$LINENO" 14017 then : 13182 14018 ac_cv_lib_z_zlibVersion=yes 13183 else 13184 ac_cv_lib_z_zlibVersion=no 13185 fi 13186 rm -f core conftest.err conftest.$ac_objext \ 14019 else case e in #( 14020 e) ac_cv_lib_z_zlibVersion=no ;; 14021 esac 14022 fi 14023 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13187 14024 conftest$ac_exeext conftest.$ac_ext 13188 LIBS=$ac_check_lib_save_LIBS 13189 fi 13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 13191 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; } 13192 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : 13193 cat >>confdefs.h <<_ACEOF 13194 #define HAVE_LIBZ 1 13195 _ACEOF 14025 LIBS=$ac_check_lib_save_LIBS ;; 14026 esac 14027 fi 14028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 14029 printf "%s\n" "$ac_cv_lib_z_zlibVersion" >&6; } 14030 if test "x$ac_cv_lib_z_zlibVersion" = xyes 14031 then : 14032 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h 13196 14033 13197 14034 LIBS="-lz $LIBS" 13198 14035 13199 else 13200 as_ac_Lib=`$as_echo "ac_cv_lib_z_${ZPREFIX}zlibVersion" | $as_tr_sh` 13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5 13202 $as_echo_n "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; } 13203 if eval \${$as_ac_Lib+:} false; then : 13204 $as_echo_n "(cached) " >&6 13205 else 13206 ac_check_lib_save_LIBS=$LIBS 14036 else case e in #( 14037 e) as_ac_Lib=`printf "%s\n" "ac_cv_lib_z_${ZPREFIX}zlibVersion" | sed "$as_sed_sh"` 14038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5 14039 printf %s "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; } 14040 if eval test \${$as_ac_Lib+y} 14041 then : 14042 printf %s "(cached) " >&6 14043 else case e in #( 14044 e) ac_check_lib_save_LIBS=$LIBS 13207 14045 LIBS="-lz $LIBS" 13208 14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext … … 13211 14049 /* Override any GCC internal prototype to avoid an error. 13212 14050 Use char because int might match the return type of a GCC 13213 builtin and then its argument prototype would still apply. */ 14051 builtin and then its argument prototype would still apply. 14052 The 'extern "C"' is for builds by C++ compilers; 14053 although this is not generally supported in C code supporting it here 14054 has little cost and some practical benefit (sr 110532). */ 13214 14055 #ifdef __cplusplus 13215 14056 extern "C" 13216 14057 #endif 13217 char ${ZPREFIX}zlibVersion ( );14058 char ${ZPREFIX}zlibVersion (void); 13218 14059 int 13219 main ( )14060 main (void) 13220 14061 { 13221 14062 return ${ZPREFIX}zlibVersion (); … … 13224 14065 } 13225 14066 _ACEOF 13226 if ac_fn_c_try_link "$LINENO"; then : 14067 if ac_fn_c_try_link "$LINENO" 14068 then : 13227 14069 eval "$as_ac_Lib=yes" 13228 else 13229 eval "$as_ac_Lib=no" 13230 fi 13231 rm -f core conftest.err conftest.$ac_objext \ 14070 else case e in #( 14071 e) eval "$as_ac_Lib=no" ;; 14072 esac 14073 fi 14074 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13232 14075 conftest$ac_exeext conftest.$ac_ext 13233 LIBS=$ac_check_lib_save_LIBS 14076 LIBS=$ac_check_lib_save_LIBS ;; 14077 esac 13234 14078 fi 13235 14079 eval ac_res=\$$as_ac_Lib 13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13237 $as_echo "$ac_res" >&6; } 13238 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13239 cat >>confdefs.h <<_ACEOF 13240 #define HAVE_LIBZ 1 13241 _ACEOF 14080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14081 printf "%s\n" "$ac_res" >&6; } 14082 if eval test \"x\$"$as_ac_Lib"\" = x"yes" 14083 then : 14084 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h 13242 14085 13243 14086 LIBS="-lz $LIBS" 13244 14087 13245 else 13246 as_fn_error $? "zlib not installed" "$LINENO" 5 13247 fi 13248 14088 else case e in #( 14089 e) as_fn_error $? "zlib not installed" "$LINENO" 5 ;; 14090 esac 14091 fi 14092 ;; 14093 esac 13249 14094 fi 13250 14095 … … 13253 14098 # platforms that don't enable FP exceptions, the function appears in the math 13254 14099 # library (typically), it's not an error if it is not found. 13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5 13256 $as_echo_n "checking for feenableexcept in -lm... " >&6; } 13257 if ${ac_cv_lib_m_feenableexcept+:} false; then : 13258 $as_echo_n "(cached) " >&6 13259 else 13260 ac_check_lib_save_LIBS=$LIBS 14100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5 14101 printf %s "checking for feenableexcept in -lm... " >&6; } 14102 if test ${ac_cv_lib_m_feenableexcept+y} 14103 then : 14104 printf %s "(cached) " >&6 14105 else case e in #( 14106 e) ac_check_lib_save_LIBS=$LIBS 13261 14107 LIBS="-lm $LIBS" 13262 14108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext … … 13265 14111 /* Override any GCC internal prototype to avoid an error. 13266 14112 Use char because int might match the return type of a GCC 13267 builtin and then its argument prototype would still apply. */ 14113 builtin and then its argument prototype would still apply. 14114 The 'extern "C"' is for builds by C++ compilers; 14115 although this is not generally supported in C code supporting it here 14116 has little cost and some practical benefit (sr 110532). */ 13268 14117 #ifdef __cplusplus 13269 14118 extern "C" 13270 14119 #endif 13271 char feenableexcept ( );14120 char feenableexcept (void); 13272 14121 int 13273 main ( )14122 main (void) 13274 14123 { 13275 14124 return feenableexcept (); … … 13278 14127 } 13279 14128 _ACEOF 13280 if ac_fn_c_try_link "$LINENO"; then : 14129 if ac_fn_c_try_link "$LINENO" 14130 then : 13281 14131 ac_cv_lib_m_feenableexcept=yes 13282 else 13283 ac_cv_lib_m_feenableexcept=no 13284 fi 13285 rm -f core conftest.err conftest.$ac_objext \ 14132 else case e in #( 14133 e) ac_cv_lib_m_feenableexcept=no ;; 14134 esac 14135 fi 14136 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13286 14137 conftest$ac_exeext conftest.$ac_ext 13287 LIBS=$ac_check_lib_save_LIBS 13288 fi 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5 13290 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; } 13291 if test "x$ac_cv_lib_m_feenableexcept" = xyes; then : 13292 cat >>confdefs.h <<_ACEOF 13293 #define HAVE_LIBM 1 13294 _ACEOF 14138 LIBS=$ac_check_lib_save_LIBS ;; 14139 esac 14140 fi 14141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5 14142 printf "%s\n" "$ac_cv_lib_m_feenableexcept" >&6; } 14143 if test "x$ac_cv_lib_m_feenableexcept" = xyes 14144 then : 14145 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h 13295 14146 13296 14147 LIBS="-lm $LIBS" … … 13298 14149 fi 13299 14150 13300 for ac_func in feenableexcept 13301 do : 13302 ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept" 13303 if test "x$ac_cv_func_feenableexcept" = xyes; then : 13304 cat >>confdefs.h <<_ACEOF 13305 #define HAVE_FEENABLEEXCEPT 1 13306 _ACEOF 13307 13308 fi 13309 done 13310 13311 13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5 13313 $as_echo_n "checking if using Solaris linker... " >&6; } 14151 ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept" 14152 if test "x$ac_cv_func_feenableexcept" = xyes 14153 then : 14154 printf "%s\n" "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h 14155 14156 fi 14157 14158 14159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5 14160 printf %s "checking if using Solaris linker... " >&6; } 13314 14161 SLD=`$LD --version 2>&1 | grep Solaris` 13315 14162 if test "$SLD"; then 13316 14163 have_solaris_ld=yes 13317 { $as_echo"$as_me:${as_lineno-$LINENO}: result: yes" >&513318 $as_echo"yes" >&6; }14164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14165 printf "%s\n" "yes" >&6; } 13319 14166 else 13320 14167 have_solaris_ld=no 13321 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&513322 $as_echo"no" >&6; }14168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14169 printf "%s\n" "no" >&6; } 13323 14170 fi 13324 14171 if test "$have_solaris_ld" = "yes"; then … … 13331 14178 13332 14179 13333 { $as_echo"$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&513334 $as_echo_n"checking if libraries can be versioned... " >&6; }14180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5 14181 printf %s "checking if libraries can be versioned... " >&6; } 13335 14182 # Special case for PE/COFF platforms: ld reports 13336 14183 # support for version-script, but doesn't actually … … 13339 14186 *cygwin* | *mingw32* | *interix* ) 13340 14187 have_ld_version_script=no 13341 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&513342 $as_echo"no" >&6; }14188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14189 printf "%s\n" "no" >&6; } 13343 14190 ;; 13344 14191 * ) … … 13352 14199 if test "$GLD"; then 13353 14200 have_ld_version_script=yes 13354 { $as_echo"$as_me:${as_lineno-$LINENO}: result: yes" >&513355 $as_echo"yes" >&6; }14201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14202 printf "%s\n" "yes" >&6; } 13356 14203 else 13357 14204 have_ld_version_script=no 13358 { $as_echo"$as_me:${as_lineno-$LINENO}: result: no" >&513359 $as_echo"no" >&6; }13360 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&513361 $as_echo"$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}14205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14206 printf "%s\n" "no" >&6; } 14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5 14208 printf "%s\n" "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;} 13362 14209 fi 13363 14210 ;; … … 13374 14221 13375 14222 if test "$have_ld_version_script" = "yes"; then 13376 { $as_echo"$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&513377 $as_echo_n"checking for symbol prefix... " >&6; }14223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5 14224 printf %s "checking for symbol prefix... " >&6; } 13378 14225 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \ 13379 14226 | ${CPP-${CC-gcc} -E} - 2>&1 \ … … 13381 14228 | ${SED-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"` 13382 14229 13383 { $as_echo"$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&513384 $as_echo"$SYMBOL_PREFIX" >&6; }14230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5 14231 printf "%s\n" "$SYMBOL_PREFIX" >&6; } 13385 14232 fi 13386 14233 … … 13395 14242 13396 14243 # Check whether --with-pkgconfigdir was given. 13397 if test "${with_pkgconfigdir+set}" = set; then : 14244 if test ${with_pkgconfigdir+y} 14245 then : 13398 14246 withval=$with_pkgconfigdir; pkgconfigdir=${withval} 13399 else 13400 pkgconfigdir='${libdir}/pkgconfig' 13401 fi 13402 13403 13404 13405 { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5 13406 $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;} 14247 else case e in #( 14248 e) pkgconfigdir='${libdir}/pkgconfig' ;; 14249 esac 14250 fi 14251 14252 14253 14254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5 14255 printf "%s\n" "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;} 13407 14256 13408 14257 # Make the *-config binary config scripts optional 13409 14258 13410 14259 # Check whether --with-binconfigs was given. 13411 if test "${with_binconfigs+set}" = set; then : 14260 if test ${with_binconfigs+y} 14261 then : 13412 14262 withval=$with_binconfigs; if test "${withval}" = no; then 13413 14263 binconfigs= 13414 { $as_echo"$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&513415 $as_echo"$as_me: libpng-config scripts will not be built" >&6;}14264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5 14265 printf "%s\n" "$as_me: libpng-config scripts will not be built" >&6;} 13416 14266 else 13417 14267 binconfigs='${binconfigs}' 13418 14268 fi 13419 else 13420 binconfigs='${binconfigs}' 14269 else case e in #( 14270 e) binconfigs='${binconfigs}' ;; 14271 esac 13421 14272 fi 13422 14273 … … 13427 14278 13428 14279 # Check whether --with-libpng-prefix was given. 13429 if test "${with_libpng_prefix+set}" = set; then : 14280 if test ${with_libpng_prefix+y} 14281 then : 13430 14282 withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then 13431 14283 PNG_PREFIX=${withval} … … 13447 14299 # unversioned links are also created (normally as symbolic links): 13448 14300 # Check whether --enable-unversioned-links was given. 13449 if test "${enable_unversioned_links+set}" = set; then : 14301 if test ${enable_unversioned_links+y} 14302 then : 13450 14303 enableval=$enable_unversioned_links; 13451 14304 fi … … 13464 14317 13465 14318 # Check whether --enable-unversioned-libpng-pc was given. 13466 if test "${enable_unversioned_libpng_pc+set}" = set; then : 14319 if test ${enable_unversioned_libpng_pc+y} 14320 then : 13467 14321 enableval=$enable_unversioned_libpng_pc; 13468 14322 fi … … 13478 14332 13479 14333 # Check whether --enable-unversioned-libpng-config was given. 13480 if test "${enable_unversioned_libpng_config+set}" = set; then : 14334 if test ${enable_unversioned_libpng_config+y} 14335 then : 13481 14336 enableval=$enable_unversioned_libpng_config; 13482 14337 fi … … 13491 14346 13492 14347 13493 # HOST 14348 # HOST-SPECIFIC OPTIONS 13494 14349 # ===================== 13495 14350 # … … 13498 14353 # 13499 14354 # Check whether --enable-hardware-optimizations was given. 13500 if test "${enable_hardware_optimizations+set}" = set; then : 14355 if test ${enable_hardware_optimizations+y} 14356 then : 13501 14357 enableval=$enable_hardware_optimizations; case "$enableval" in 13502 14358 no|off) … … 13504 14360 enable_arm_neon=no 13505 14361 13506 $as_echo"#define PNG_ARM_NEON_OPT 0" >>confdefs.h14362 printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h 13507 14363 13508 14364 enable_mips_msa=no 13509 14365 13510 $as_echo "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h 14366 printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h 14367 14368 enable_mips_mmi=no 14369 14370 printf "%s\n" "#define PNG_MIPS_MMI_OPT 0" >>confdefs.h 13511 14371 13512 14372 enable_powerpc_vsx=no 13513 14373 13514 $as_echo"#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h14374 printf "%s\n" "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h 13515 14375 13516 14376 enable_intel_sse=no 13517 14377 13518 $as_echo "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h 14378 printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h 14379 14380 enable_loongarch_lsx=no 14381 14382 printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 0" >>confdefs.h 13519 14383 13520 14384 ;; … … 13525 14389 enable_arm_neon=yes 13526 14390 13527 $as_echo "#define PNG_ARM_NEON_OPT 0" >>confdefs.h14391 printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h 13528 14392 13529 14393 ;; 13530 14394 mipsel*|mips64el*) 14395 enable_mips_mmi=yes 13531 14396 enable_mips_msa=yes 13532 14397 13533 $as_echo "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h 14398 printf "%s\n" "#define PNG_MIPS_MMI_OPT 1" >>confdefs.h 14399 14400 14401 printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h 13534 14402 13535 14403 ;; … … 13537 14405 enable_intel_sse=yes 13538 14406 13539 $as_echo"#define PNG_INTEL_SSE_OPT 1" >>confdefs.h14407 printf "%s\n" "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h 13540 14408 13541 14409 ;; … … 13543 14411 enable_powerpc_vsx=yes 13544 14412 13545 $as_echo "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h 14413 printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h 14414 14415 ;; 14416 loongarch*) 14417 enable_loongarch_lsx=yes 14418 14419 printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h 13546 14420 13547 14421 ;; … … 13558 14432 13559 14433 # Check whether --enable-arm-neon was given. 13560 if test "${enable_arm_neon+set}" = set; then : 14434 if test ${enable_arm_neon+y} 14435 then : 13561 14436 enableval=$enable_arm_neon; case "$enableval" in 13562 14437 no|off) 13563 14438 # disable the default enabling on __ARM_NEON__ systems: 13564 14439 13565 $as_echo"#define PNG_ARM_NEON_OPT 0" >>confdefs.h14440 printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h 13566 14441 13567 14442 # Prevent inclusion of the assembler files below: 13568 enable_arm_neon=no ;;14443 enable_arm_neon=no ;; 13569 14444 check) 13570 14445 13571 $as_echo"#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h14446 printf "%s\n" "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h 13572 14447 ;; 13573 14448 api) 13574 14449 13575 $as_echo"#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h14450 printf "%s\n" "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h 13576 14451 ;; 13577 14452 yes|on) 13578 14453 13579 $as_echo"#define PNG_ARM_NEON_OPT 2" >>confdefs.h13580 13581 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api', if14454 printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h 14455 14456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api', if 13582 14457 you want the optimizations unconditionally pass -mfpu=neon 13583 14458 to the compiler." >&5 13584 $as_echo"$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api', if14459 printf "%s\n" "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api', if 13585 14460 you want the optimizations unconditionally pass -mfpu=neon 13586 14461 to the compiler." >&2;};; … … 13591 14466 13592 14467 13593 # Add ARM specific files to all builds where thehost_cpu is arm ('arm*') or13594 # where ARM optimizations were explicitly requested (this allows a fallback if a13595 # future host CPU does not match 'arm*')14468 # Add ARM-specific files to all builds where $host_cpu is arm ('arm*') or 14469 # where ARM optimizations were explicitly requested (this allows a fallback 14470 # if a future host CPU does not match 'arm*') 13596 14471 13597 14472 if test "$enable_arm_neon" != 'no' && 13598 14473 case "$host_cpu" in 13599 arm*|aarch64*) : ;;13600 *) test "$enable_arm_neon" != '' ;;14474 arm*|aarch64*) : ;; 14475 *) test "$enable_arm_neon" != '' ;; 13601 14476 esac; then 13602 14477 PNG_ARM_NEON_TRUE= … … 13609 14484 13610 14485 # MIPS 13611 # === 14486 # ==== 13612 14487 # 13613 14488 # MIPS MSA (SIMD) support. 13614 14489 13615 14490 # Check whether --enable-mips-msa was given. 13616 if test "${enable_mips_msa+set}" = set; then : 14491 if test ${enable_mips_msa+y} 14492 then : 13617 14493 enableval=$enable_mips_msa; case "$enableval" in 13618 14494 no|off) 13619 14495 # disable the default enabling on __mips_msa systems: 13620 14496 13621 $as_echo"#define PNG_MIPS_MSA_OPT 0" >>confdefs.h14497 printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h 13622 14498 13623 14499 # Prevent inclusion of the assembler files below: 13624 enable_mips_msa=no ;;14500 enable_mips_msa=no ;; 13625 14501 check) 13626 14502 13627 $as_echo"#define PNG_MIPS_MSA_CHECK_SUPPORTED /**/" >>confdefs.h14503 printf "%s\n" "#define PNG_MIPS_MSA_CHECK_SUPPORTED /**/" >>confdefs.h 13628 14504 ;; 13629 14505 api) 13630 14506 13631 $as_echo"#define PNG_MIPS_MSA_API_SUPPORTED /**/" >>confdefs.h14507 printf "%s\n" "#define PNG_MIPS_MSA_API_SUPPORTED /**/" >>confdefs.h 13632 14508 ;; 13633 14509 yes|on) 13634 14510 13635 $as_echo"#define PNG_MIPS_MSA_OPT 2" >>confdefs.h13636 13637 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-msa: please specify 'check' or 'api', if14511 printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h 14512 14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-msa: please specify 'check' or 'api', if 13638 14514 you want the optimizations unconditionally pass '-mmsa -mfp64' 13639 14515 to the compiler." >&5 13640 $as_echo"$as_me: WARNING: --enable-mips-msa: please specify 'check' or 'api', if14516 printf "%s\n" "$as_me: WARNING: --enable-mips-msa: please specify 'check' or 'api', if 13641 14517 you want the optimizations unconditionally pass '-mmsa -mfp64' 13642 14518 to the compiler." >&2;};; … … 13647 14523 13648 14524 14525 # Add MIPS-specific files to all builds where $host_cpu is mips ('mips*') or 14526 # where MIPS optimizations were explicitly requested (this allows a fallback 14527 # if a future host CPU does not match 'mips*') 14528 14529 if test "$enable_mips_msa" != 'no' && 14530 case "$host_cpu" in 14531 mipsel*|mips64el*) : ;; 14532 esac; then 14533 PNG_MIPS_MSA_TRUE= 14534 PNG_MIPS_MSA_FALSE='#' 14535 else 14536 PNG_MIPS_MSA_TRUE='#' 14537 PNG_MIPS_MSA_FALSE= 14538 fi 14539 14540 14541 # MIPS 14542 # === 14543 # 14544 # MIPS MMI (SIMD) support. 14545 14546 # Check whether --enable-mips-mmi was given. 14547 if test ${enable_mips_mmi+y} 14548 then : 14549 enableval=$enable_mips_mmi; case "$enableval" in 14550 no|off) 14551 # disable the default enabling on __mips_mmi systems: 14552 14553 printf "%s\n" "#define PNG_MIPS_MMI_OPT 0" >>confdefs.h 14554 14555 # Prevent inclusion of the assembler files below: 14556 enable_mips_mmi=no;; 14557 check) 14558 14559 printf "%s\n" "#define PNG_MIPS_MMI_CHECK_SUPPORTED /**/" >>confdefs.h 14560 ;; 14561 api) 14562 14563 printf "%s\n" "#define PNG_MIPS_MMI_API_SUPPORTED /**/" >>confdefs.h 14564 ;; 14565 yes|on) 14566 14567 printf "%s\n" "#define PNG_MIPS_MMI_OPT 1" >>confdefs.h 14568 14569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-mmi: please specify 'check' or 'api', if 14570 you want the optimizations unconditionally pass '-mloongson-mmi -march=loongson3a' 14571 to the compiler." >&5 14572 printf "%s\n" "$as_me: WARNING: --enable-mips-mmi: please specify 'check' or 'api', if 14573 you want the optimizations unconditionally pass '-mloongson-mmi -march=loongson3a' 14574 to the compiler." >&2;};; 14575 *) 14576 as_fn_error $? "--enable-mips-mmi=${enable_mips_mmi}: invalid value" "$LINENO" 5 14577 esac 14578 fi 14579 14580 13649 14581 # Add MIPS specific files to all builds where the host_cpu is mips ('mips*') or 13650 14582 # where MIPS optimizations were explicitly requested (this allows a fallback if a 13651 14583 # future host CPU does not match 'mips*') 13652 14584 13653 if test "$enable_mips_m sa" != 'no' &&14585 if test "$enable_mips_mmi" != 'no' && 13654 14586 case "$host_cpu" in 13655 14587 mipsel*|mips64el*) :;; 13656 14588 esac; then 13657 PNG_MIPS_M SA_TRUE=13658 PNG_MIPS_M SA_FALSE='#'13659 else 13660 PNG_MIPS_M SA_TRUE='#'13661 PNG_MIPS_M SA_FALSE=14589 PNG_MIPS_MMI_TRUE= 14590 PNG_MIPS_MMI_FALSE='#' 14591 else 14592 PNG_MIPS_MMI_TRUE='#' 14593 PNG_MIPS_MMI_FALSE= 13662 14594 fi 13663 14595 … … 13669 14601 13670 14602 # Check whether --enable-intel-sse was given. 13671 if test "${enable_intel_sse+set}" = set; then : 14603 if test ${enable_intel_sse+y} 14604 then : 13672 14605 enableval=$enable_intel_sse; case "$enableval" in 13673 14606 no|off) 13674 14607 # disable the default enabling: 13675 14608 13676 $as_echo"#define PNG_INTEL_SSE_OPT 0" >>confdefs.h14609 printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h 13677 14610 13678 14611 # Prevent inclusion of the assembler files below: 13679 enable_intel_sse=no ;;14612 enable_intel_sse=no ;; 13680 14613 yes|on) 13681 14614 13682 $as_echo"#define PNG_INTEL_SSE_OPT 1" >>confdefs.h14615 printf "%s\n" "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h 13683 14616 ;; 13684 14617 *) … … 13688 14621 13689 14622 13690 # Add Intel specific files to all builds where the host_cpu is Intel ('x86*')13691 # or where Intel optimizations were explicitly requested (this allows a13692 # fallbackif a future host CPU does not match 'x86*')14623 # Add Intel-specific files to all builds where $host_cpu is Intel ('x86*') or 14624 # where Intel optimizations were explicitly requested (this allows a fallback 14625 # if a future host CPU does not match 'x86*') 13693 14626 if test "$enable_intel_sse" != 'no' && 13694 14627 case "$host_cpu" in 13695 i?86|x86_64) : ;;13696 *) test "$enable_intel_sse" != '' ;;14628 i?86|x86_64) : ;; 14629 *) test "$enable_intel_sse" != '' ;; 13697 14630 esac; then 13698 14631 PNG_INTEL_SSE_TRUE= … … 13705 14638 13706 14639 # PowerPC 13707 # === 14640 # ======= 13708 14641 # 13709 14642 # PowerPC VSX (SIMD) support. 13710 14643 13711 14644 # Check whether --enable-powerpc-vsx was given. 13712 if test "${enable_powerpc_vsx+set}" = set; then : 14645 if test ${enable_powerpc_vsx+y} 14646 then : 13713 14647 enableval=$enable_powerpc_vsx; case "$enableval" in 13714 14648 no|off) 13715 14649 # disable the default enabling on __ppc64__ systems: 13716 14650 13717 $as_echo"#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h13718 13719 # Prevent inclusion of the platform 13720 enable_powerpc_vsx=no ;;14651 printf "%s\n" "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h 14652 14653 # Prevent inclusion of the platform-specific files below: 14654 enable_powerpc_vsx=no ;; 13721 14655 check) 13722 14656 13723 $as_echo"#define PNG_POWERPC_VSX_CHECK_SUPPORTED /**/" >>confdefs.h13724 13725 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file14657 printf "%s\n" "#define PNG_POWERPC_VSX_CHECK_SUPPORTED /**/" >>confdefs.h 14658 14659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file 13726 14660 for the list of supported OSes." >&5 13727 $as_echo"$as_me: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file14661 printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file 13728 14662 for the list of supported OSes." >&2;};; 13729 14663 api) 13730 14664 13731 $as_echo"#define PNG_POWERPC_VSX_API_SUPPORTED /**/" >>confdefs.h14665 printf "%s\n" "#define PNG_POWERPC_VSX_API_SUPPORTED /**/" >>confdefs.h 13732 14666 ;; 13733 14667 yes|on) 13734 14668 13735 $as_echo"#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h13736 13737 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if14669 printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h 14670 14671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if 13738 14672 you want the optimizations unconditionally pass '-maltivec -mvsx' 13739 or '-mcpu=power8' to the compiler." >&513740 $as_echo"$as_me: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if14673 or '-mcpu=power8' to the compiler." >&5 14674 printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if 13741 14675 you want the optimizations unconditionally pass '-maltivec -mvsx' 13742 or '-mcpu=power8' to the compiler." >&2;};;14676 or '-mcpu=power8' to the compiler." >&2;};; 13743 14677 *) 13744 14678 as_fn_error $? "--enable-powerpc-vsx=${enable_powerpc_vsx}: invalid value" "$LINENO" 5 … … 13747 14681 13748 14682 13749 # Add PowerPC specific files to all builds where the host_cpu is powerpc('powerpc*') or13750 # where POWERPC optimizations were explicitly requested (this allows a fallback if a13751 # future host CPU does not match 'powerpc*')14683 # Add PowerPC-specific files to all builds where $host_cpu is powerpc('powerpc*') 14684 # or where PowerPC optimizations were explicitly requested (this allows a fallback 14685 # if a future host CPU does not match 'powerpc*') 13752 14686 13753 14687 if test "$enable_powerpc_vsx" != 'no' && 13754 14688 case "$host_cpu" in 13755 powerpc*|ppc64*) : ;;14689 powerpc*|ppc64*) : ;; 13756 14690 esac; then 13757 14691 PNG_POWERPC_VSX_TRUE= … … 13763 14697 13764 14698 13765 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5 13767 $as_echo "$as_me: Extra options for compiler: $PNG_COPTS" >&6;} 14699 # LOONGARCH 14700 # === 14701 # 14702 # LOONGARCH LSX (SIMD) support 14703 14704 if test "$LSX_CFLAGS" = ''; then 14705 LSX_CFLAGS="-mlsx" 14706 fi 14707 14708 compiler_support_loongarch_lsx=no 14709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use loongarch LSX intrinsics" >&5 14710 printf %s "checking whether to use loongarch LSX intrinsics... " >&6; } 14711 save_CFLAGS=$CFLAGS 14712 CFLAGS="$CFLAGS $LSX_CFLAGS" 14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14714 /* end confdefs.h. */ 14715 14716 #include<lsxintrin.h> 14717 int main(){ 14718 __m128i a, b, c; 14719 a = __lsx_vadd_w(b, c); 14720 return 0; 14721 } 14722 _ACEOF 14723 if ac_fn_c_try_compile "$LINENO" 14724 then : 14725 compiler_support_loongarch_lsx=yes 14726 fi 14727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14728 CFLAGS=$save_CFLAGS 14729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $compiler_support_loongarch_lsx" >&5 14730 printf "%s\n" "$compiler_support_loongarch_lsx" >&6; } 14731 14732 # Check whether --enable-loongarch-lsx was given. 14733 if test ${enable_loongarch_lsx+y} 14734 then : 14735 enableval=$enable_loongarch_lsx; case "$enableval" in 14736 no|off) 14737 # disable the default enabling on __loongarch_simd systems: 14738 14739 printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 0" >>confdefs.h 14740 14741 # Prevent inclusion of the assembler files below: 14742 enable_loongarch_lsx=no;; 14743 yes|on) 14744 14745 printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h 14746 14747 ;; 14748 *) 14749 as_fn_error $? "--enable-loongarch-lsx=${enable_loongarch_lsx}: invalid value" "$LINENO" 5 14750 esac 14751 fi 14752 14753 14754 if test "$enable_loongarch_lsx" != 'no'; then 14755 if test $compiler_support_loongarch_lsx = yes; then 14756 14757 printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h 14758 14759 else 14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support loongarch LSX." >&5 14761 printf "%s\n" "$as_me: WARNING: Compiler does not support loongarch LSX." >&2;} 14762 fi 14763 fi 14764 14765 # Add LOONGARCH specific files to all builds where the host_cpu is loongarch ('loongarch*') or 14766 # where LOONGARCH optimizations were explicitly requested (this allows a fallback if a 14767 # future host CPU does not match 'loongarch*') 14768 14769 if test "$enable_loongarch_lsx" != 'no' && test $compiler_support_loongarch_lsx = yes && 14770 case "$host_cpu" in 14771 loongarch*) :;; 14772 *) test "$enable_loongarch_lsx" != '';; 14773 esac; then 14774 PNG_LOONGARCH_LSX_TRUE= 14775 PNG_LOONGARCH_LSX_FALSE='#' 14776 else 14777 PNG_LOONGARCH_LSX_TRUE='#' 14778 PNG_LOONGARCH_LSX_FALSE= 14779 fi 14780 14781 14782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5 14783 printf "%s\n" "$as_me: Extra options for compiler: $PNG_COPTS" >&6;} 13768 14784 13769 14785 # Config files, substituting as above … … 13783 14799 # the --recheck option to rerun configure. 13784 14800 # 13785 # `ac_cv_env_foo' variables (set or unset) will be overridden when13786 # loading this file, other *unset* `ac_cv_foo' will be assigned the14801 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 14802 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 13787 14803 # following values. 13788 14804 … … 13800 14816 *${as_nl}*) 13801 14817 case $ac_var in #( 13802 *_cv_*) { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&513803 $as_echo"$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;14818 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14819 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13804 14820 esac 13805 14821 case $ac_var in #( … … 13814 14830 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13815 14831 *${as_nl}ac_space=\ *) 13816 # `set' does not quote correctly, so add quotes: double-quote14832 # 'set' does not quote correctly, so add quotes: double-quote 13817 14833 # substitution turns \\\\ into \\, and sed turns \\ into \. 13818 14834 sed -n \ … … 13821 14837 ;; #( 13822 14838 *) 13823 # `set' quotes correctly as required by POSIX, so do not add quotes.14839 # 'set' quotes correctly as required by POSIX, so do not add quotes. 13824 14840 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13825 14841 ;; … … 13831 14847 t clear 13832 14848 :clear 13833 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set|| &/14849 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 13834 14850 t end 13835 14851 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ … … 13838 14854 if test -w "$cache_file"; then 13839 14855 if test "x$cache_file" != "x/dev/null"; then 13840 { $as_echo"$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&513841 $as_echo"$as_me: updating cache $cache_file" >&6;}14856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14857 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 13842 14858 if test ! -f "$cache_file" || test -h "$cache_file"; then 13843 14859 cat confcache >"$cache_file" … … 13853 14869 fi 13854 14870 else 13855 { $as_echo"$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&513856 $as_echo"$as_me: not updating unwritable cache $cache_file" >&6;}14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14872 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 13857 14873 fi 13858 14874 fi … … 13871 14887 # 1. Remove the extension, and $U if already installed. 13872 14888 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13873 ac_i=` $as_echo"$ac_i" | sed "$ac_script"`14889 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 13874 14890 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13875 14891 # will be set to the directory where LIBOBJS objects are built. … … 13882 14898 13883 14899 13884 { $as_echo"$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&513885 $as_echo_n"checking that generated files are newer than configure... " >&6; }14900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14901 printf %s "checking that generated files are newer than configure... " >&6; } 13886 14902 if test -n "$am_sleep_pid"; then 13887 14903 # Hide warnings about reused PIDs. 13888 14904 wait $am_sleep_pid 2>/dev/null 13889 14905 fi 13890 { $as_echo"$as_me:${as_lineno-$LINENO}: result: done" >&513891 $as_echo"done" >&6; }14906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 14907 printf "%s\n" "done" >&6; } 13892 14908 if test -n "$EXEEXT"; then 13893 14909 am__EXEEXT_TRUE= … … 13914 14930 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13915 14931 fi 14932 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then 14933 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined. 14934 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14935 fi 14936 if test -z "${ENABLE_TOOLS_TRUE}" && test -z "${ENABLE_TOOLS_FALSE}"; then 14937 as_fn_error $? "conditional \"ENABLE_TOOLS\" was never defined. 14938 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14939 fi 13916 14940 if test -z "${HAVE_CLOCK_GETTIME_TRUE}" && test -z "${HAVE_CLOCK_GETTIME_FALSE}"; then 13917 14941 as_fn_error $? "conditional \"HAVE_CLOCK_GETTIME\" was never defined. … … 13950 14974 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13951 14975 fi 14976 if test -z "${PNG_MIPS_MMI_TRUE}" && test -z "${PNG_MIPS_MMI_FALSE}"; then 14977 as_fn_error $? "conditional \"PNG_MIPS_MMI\" was never defined. 14978 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14979 fi 13952 14980 if test -z "${PNG_INTEL_SSE_TRUE}" && test -z "${PNG_INTEL_SSE_FALSE}"; then 13953 14981 as_fn_error $? "conditional \"PNG_INTEL_SSE\" was never defined. … … 13956 14984 if test -z "${PNG_POWERPC_VSX_TRUE}" && test -z "${PNG_POWERPC_VSX_FALSE}"; then 13957 14985 as_fn_error $? "conditional \"PNG_POWERPC_VSX\" was never defined. 14986 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14987 fi 14988 if test -z "${PNG_LOONGARCH_LSX_TRUE}" && test -z "${PNG_LOONGARCH_LSX_FALSE}"; then 14989 as_fn_error $? "conditional \"PNG_LOONGARCH_LSX\" was never defined. 13958 14990 Usually this means the macro was only invoked conditionally." "$LINENO" 5 13959 14991 fi … … 13963 14995 ac_clean_files_save=$ac_clean_files 13964 14996 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13965 { $as_echo"$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&513966 $as_echo"$as_me: creating $CONFIG_STATUS" >&6;}14997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14998 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 13967 14999 as_write_fail=0 13968 15000 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 … … 13987 15019 # Be more Bourne compatible 13988 15020 DUALCASE=1; export DUALCASE # for MKS sh 13989 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15021 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 15022 then : 13990 15023 emulate sh 13991 15024 NULLCMD=: … … 13994 15027 alias -g '${1+"$@"}'='"$@"' 13995 15028 setopt NO_GLOB_SUBST 13996 else 13997 case `(set -o) 2>/dev/null` in #(15029 else case e in #( 15030 e) case `(set -o) 2>/dev/null` in #( 13998 15031 *posix*) : 13999 15032 set -o posix ;; #( 14000 15033 *) : 14001 15034 ;; 14002 esac 14003 fi 14004 14005 15035 esac ;; 15036 esac 15037 fi 15038 15039 15040 15041 # Reset variables that may have inherited troublesome values from 15042 # the environment. 15043 15044 # IFS needs to be set, to space, tab, and newline, in precisely that order. 15045 # (If _AS_PATH_WALK were called with IFS unset, it would have the 15046 # side effect of setting IFS to empty, thus disabling word splitting.) 15047 # Quoting is to prevent editors from complaining about space-tab. 14006 15048 as_nl=' 14007 15049 ' 14008 15050 export as_nl 14009 # Printing a long string crashes Solaris 7 /usr/bin/printf. 14010 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14011 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14012 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14013 # Prefer a ksh shell builtin over an external printf program on Solaris, 14014 # but without wasting forks for bash or zsh. 14015 if test -z "$BASH_VERSION$ZSH_VERSION" \ 14016 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14017 as_echo='print -r --' 14018 as_echo_n='print -rn --' 14019 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14020 as_echo='printf %s\n' 14021 as_echo_n='printf %s' 14022 else 14023 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14024 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14025 as_echo_n='/usr/ucb/echo -n' 14026 else 14027 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14028 as_echo_n_body='eval 14029 arg=$1; 14030 case $arg in #( 14031 *"$as_nl"*) 14032 expr "X$arg" : "X\\(.*\\)$as_nl"; 14033 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14034 esac; 14035 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14036 ' 14037 export as_echo_n_body 14038 as_echo_n='sh -c $as_echo_n_body as_echo' 14039 fi 14040 export as_echo_body 14041 as_echo='sh -c $as_echo_body as_echo' 14042 fi 15051 IFS=" "" $as_nl" 15052 15053 PS1='$ ' 15054 PS2='> ' 15055 PS4='+ ' 15056 15057 # Ensure predictable behavior from utilities with locale-dependent output. 15058 LC_ALL=C 15059 export LC_ALL 15060 LANGUAGE=C 15061 export LANGUAGE 15062 15063 # We cannot yet rely on "unset" to work, but we need these variables 15064 # to be unset--not just set to an empty or harmless value--now, to 15065 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 15066 # also avoids known problems related to "unset" and subshell syntax 15067 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 15068 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 15069 do eval test \${$as_var+y} \ 15070 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15071 done 15072 15073 # Ensure that fds 0, 1, and 2 are open. 15074 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 15075 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 15076 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 14043 15077 14044 15078 # The user is always right. 14045 if test "${PATH_SEPARATOR+set}" != set; then15079 if ${PATH_SEPARATOR+false} :; then 14046 15080 PATH_SEPARATOR=: 14047 15081 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { … … 14051 15085 fi 14052 15086 14053 14054 # IFS14055 # We need space, tab and new line, in precisely that order. Quoting is14056 # there to prevent editors from complaining about space-tab.14057 # (If _AS_PATH_WALK were called with IFS unset, it would disable word14058 # splitting by setting IFS to empty value.)14059 IFS=" "" $as_nl"14060 15087 14061 15088 # Find who we are. Look in the path if we contain no directory separator. … … 14067 15094 do 14068 15095 IFS=$as_save_IFS 14069 test -z "$as_dir" && as_dir=. 14070 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15096 case $as_dir in #((( 15097 '') as_dir=./ ;; 15098 */) ;; 15099 *) as_dir=$as_dir/ ;; 15100 esac 15101 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 14071 15102 done 14072 15103 IFS=$as_save_IFS … … 14074 15105 ;; 14075 15106 esac 14076 # We did not find ourselves, most probably we were run as `sh COMMAND'15107 # We did not find ourselves, most probably we were run as 'sh COMMAND' 14077 15108 # in which case we are not to be found in the path. 14078 15109 if test "x$as_myself" = x; then … … 14080 15111 fi 14081 15112 if test ! -f "$as_myself"; then 14082 $as_echo"$as_myself: error: cannot find myself; rerun with an absolute file name" >&215113 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14083 15114 exit 1 14084 15115 fi 14085 15116 14086 # Unset variables that we do not need and which cause bugs (e.g. in14087 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"14088 # suppresses any "Segmentation fault" message there. '((' could14089 # trigger a bug in pdksh 5.2.14.14090 for as_var in BASH_ENV ENV MAIL MAILPATH14091 do eval test x\${$as_var+set} = xset \14092 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :14093 done14094 PS1='$ '14095 PS2='> '14096 PS4='+ '14097 14098 # NLS nuisances.14099 LC_ALL=C14100 export LC_ALL14101 LANGUAGE=C14102 export LANGUAGE14103 14104 # CDPATH.14105 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH14106 15117 14107 15118 … … 14116 15127 if test "$4"; then 14117 15128 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14118 $as_echo"$as_me:${as_lineno-$LINENO}: error: $2" >&$415129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14119 15130 fi 14120 $as_echo"$as_me: error: $2" >&215131 printf "%s\n" "$as_me: error: $2" >&2 14121 15132 as_fn_exit $as_status 14122 15133 } # as_fn_error … … 14149 15160 } 14150 15161 as_unset=as_fn_unset 15162 14151 15163 # as_fn_append VAR VALUE 14152 15164 # ---------------------- … … 14155 15167 # repeated appends, instead of the typical quadratic growth present in naive 14156 15168 # implementations. 14157 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15169 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 15170 then : 14158 15171 eval 'as_fn_append () 14159 15172 { 14160 15173 eval $1+=\$2 14161 15174 }' 14162 else 14163 as_fn_append ()15175 else case e in #( 15176 e) as_fn_append () 14164 15177 { 14165 15178 eval $1=\$$1\$2 14166 } 15179 } ;; 15180 esac 14167 15181 fi # as_fn_append 14168 15182 … … 14172 15186 # global $as_val. Take advantage of shells that can avoid forks. The arguments 14173 15187 # must be portable across $(()) and expr. 14174 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15188 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 15189 then : 14175 15190 eval 'as_fn_arith () 14176 15191 { 14177 15192 as_val=$(( $* )) 14178 15193 }' 14179 else 14180 as_fn_arith ()15194 else case e in #( 15195 e) as_fn_arith () 14181 15196 { 14182 15197 as_val=`expr "$@" || test $? -eq 1` 14183 } 15198 } ;; 15199 esac 14184 15200 fi # as_fn_arith 14185 15201 … … 14208 15224 X"$0" : 'X\(//\)$' \| \ 14209 15225 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14210 $as_echoX/"$0" |15226 printf "%s\n" X/"$0" | 14211 15227 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14212 15228 s//\1/ … … 14230 15246 as_cr_alnum=$as_cr_Letters$as_cr_digits 14231 15247 15248 15249 # Determine whether it's possible to make 'echo' print without a newline. 15250 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 15251 # for compatibility with existing Makefiles. 14232 15252 ECHO_C= ECHO_N= ECHO_T= 14233 15253 case `echo -n x` in #((((( … … 14243 15263 esac 14244 15264 15265 # For backward compatibility with old third-party macros, we provide 15266 # the shell variables $as_echo and $as_echo_n. New code should use 15267 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 15268 as_echo='printf %s\n' 15269 as_echo_n='printf %s' 15270 14245 15271 rm -f conf$$ conf$$.exe conf$$.file 14246 15272 if test -d conf$$.dir; then … … 14254 15280 as_ln_s='ln -s' 14255 15281 # ... but there are two gotchas: 14256 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.14257 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.14258 # In both cases, we have to default to `cp -pR'.15282 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 15283 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 15284 # In both cases, we have to default to 'cp -pR'. 14259 15285 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14260 15286 as_ln_s='cp -pR' … … 14284 15310 while :; do 14285 15311 case $as_dir in #( 14286 *\'*) as_qdir=` $as_echo"$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(15312 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14287 15313 *) as_qdir=$as_dir;; 14288 15314 esac … … 14293 15319 X"$as_dir" : 'X\(//\)$' \| \ 14294 15320 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14295 $as_echoX"$as_dir" |15321 printf "%s\n" X"$as_dir" | 14296 15322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14297 15323 s//\1/ … … 14337 15363 14338 15364 # Sed expression to map a string onto a valid CPP name. 14339 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15365 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 15366 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 14340 15367 14341 15368 # Sed expression to map a string onto a valid variable name. 14342 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15369 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 15370 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 14343 15371 14344 15372 … … 14355 15383 # values after options handling. 14356 15384 ac_log=" 14357 This file was extended by libpng $as_me 1.6. 37, which was14358 generated by GNU Autoconf 2. 69. Invocation command line was15385 This file was extended by libpng $as_me 1.6.42, which was 15386 generated by GNU Autoconf 2.72. Invocation command line was 14359 15387 14360 15388 CONFIG_FILES = $CONFIG_FILES … … 14388 15416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14389 15417 ac_cs_usage="\ 14390 \`$as_me' instantiates files and other configuration actions15418 '$as_me' instantiates files and other configuration actions 14391 15419 from templates according to the current configuration. Unless the files 14392 15420 and actions are specified as TAGs, all are instantiated by default. … … 14418 15446 14419 15447 _ACEOF 15448 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 15449 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 14420 15450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14421 ac_cs_config= "`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"15451 ac_cs_config='$ac_cs_config_escaped' 14422 15452 ac_cs_version="\\ 14423 libpng config.status 1.6. 3714424 configured by $0, generated by GNU Autoconf 2. 69,15453 libpng config.status 1.6.42 15454 configured by $0, generated by GNU Autoconf 2.72, 14425 15455 with options \\"\$ac_cs_config\\" 14426 15456 14427 Copyright (C) 20 12Free Software Foundation, Inc.15457 Copyright (C) 2023 Free Software Foundation, Inc. 14428 15458 This config.status script is free software; the Free Software Foundation 14429 15459 gives unlimited permission to copy, distribute and modify it." … … 14465 15495 ac_cs_recheck=: ;; 14466 15496 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14467 $as_echo"$ac_cs_version"; exit ;;15497 printf "%s\n" "$ac_cs_version"; exit ;; 14468 15498 --config | --confi | --conf | --con | --co | --c ) 14469 $as_echo"$ac_cs_config"; exit ;;15499 printf "%s\n" "$ac_cs_config"; exit ;; 14470 15500 --debug | --debu | --deb | --de | --d | -d ) 14471 15501 debug=: ;; … … 14473 15503 $ac_shift 14474 15504 case $ac_optarg in 14475 *\'*) ac_optarg=` $as_echo"$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;15505 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14476 15506 '') as_fn_error $? "missing file argument" ;; 14477 15507 esac … … 14481 15511 $ac_shift 14482 15512 case $ac_optarg in 14483 *\'*) ac_optarg=` $as_echo"$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;15513 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14484 15514 esac 14485 15515 as_fn_append CONFIG_HEADERS " '$ac_optarg'" … … 14487 15517 --he | --h) 14488 15518 # Conflict between --help and --header 14489 as_fn_error $? "ambiguous option: \`$1'14490 Try \`$0 --help' for more information.";;15519 as_fn_error $? "ambiguous option: '$1' 15520 Try '$0 --help' for more information.";; 14491 15521 --help | --hel | -h ) 14492 $as_echo"$ac_cs_usage"; exit ;;15522 printf "%s\n" "$ac_cs_usage"; exit ;; 14493 15523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14494 15524 | -silent | --silent | --silen | --sile | --sil | --si | --s) … … 14496 15526 14497 15527 # This is an error. 14498 -*) as_fn_error $? "unrecognized option: \`$1'14499 Try \`$0 --help' for more information." ;;15528 -*) as_fn_error $? "unrecognized option: '$1' 15529 Try '$0 --help' for more information." ;; 14500 15530 14501 15531 *) as_fn_append ac_config_targets " $1" … … 14518 15548 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14519 15549 shift 14520 \ $as_echo"running CONFIG_SHELL=$SHELL \$*" >&615550 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 14521 15551 CONFIG_SHELL='$SHELL' 14522 15552 export CONFIG_SHELL … … 14532 15562 ## Running $as_me. ## 14533 15563 _ASBOX 14534 $as_echo"$ac_log"15564 printf "%s\n" "$ac_log" 14535 15565 } >&5 14536 15566 … … 14587 15617 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14588 15618 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15619 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 14589 15620 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14590 15621 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' … … 14593 15624 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14594 15625 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15626 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 14595 15627 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14596 15628 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' … … 14716 15748 lt_NL2SP \ 14717 15749 reload_flag \ 15750 FILECMD \ 14718 15751 deplibs_check_method \ 14719 15752 file_magic_cmd \ … … 14722 15755 sharedlib_from_linklib_cmd \ 14723 15756 AR \ 14724 AR_FLAGS \14725 15757 archiver_list_spec \ 14726 15758 STRIP \ … … 14842 15874 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;; 14843 15875 14844 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;15876 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 14845 15877 esac 14846 15878 done … … 14852 15884 # bizarre bug on SunOS 4.1.3. 14853 15885 if $ac_need_defaults; then 14854 test "${CONFIG_FILES+set}" = set|| CONFIG_FILES=$config_files14855 test "${CONFIG_HEADERS+set}" = set|| CONFIG_HEADERS=$config_headers14856 test "${CONFIG_COMMANDS+set}" = set|| CONFIG_COMMANDS=$config_commands15886 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 15887 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 15888 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 14857 15889 fi 14858 15890 … … 14862 15894 # Hook for its removal unless debugging. 14863 15895 # Note that there is a small window in which the directory will not be cleaned: 14864 # after its creation but before its name has been assigned to `$tmp'.15896 # after its creation but before its name has been assigned to '$tmp'. 14865 15897 $debug || 14866 15898 { … … 14886 15918 # Set up the scripts for CONFIG_FILES section. 14887 15919 # No need to generate them if there are no CONFIG_FILES. 14888 # This happens for instance with `./config.status config.h'.15920 # This happens for instance with './config.status config.h'. 14889 15921 if test -n "$CONFIG_FILES"; then 14890 15922 … … 15044 16076 # Set up the scripts for CONFIG_HEADERS section. 15045 16077 # No need to generate them if there are no CONFIG_HEADERS. 15046 # This happens for instance with `./config.status Makefile'.16078 # This happens for instance with './config.status Makefile'. 15047 16079 if test -n "$CONFIG_HEADERS"; then 15048 16080 cat >"$ac_tmp/defines.awk" <<\_ACAWK || … … 15050 16082 _ACEOF 15051 16083 15052 # Transform confdefs.h into an awk script `defines.awk', embedded as16084 # Transform confdefs.h into an awk script 'defines.awk', embedded as 15053 16085 # here-document in config.status, that substitutes the proper values into 15054 16086 # config.h.in to produce config.h. … … 15160 16192 case $ac_mode$ac_tag in 15161 16193 :[FHL]*:*);; 15162 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;16194 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 15163 16195 :[FH]-) ac_tag=-:-;; 15164 16196 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; … … 15182 16214 *) # Look for the file first in the build tree, then in the source tree 15183 16215 # (if the path is not absolute). The absolute path cannot be DOS-style, 15184 # because $ac_f cannot contain `:'.16216 # because $ac_f cannot contain ':'. 15185 16217 test -f "$ac_f" || 15186 16218 case $ac_f in … … 15188 16220 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15189 16221 esac || 15190 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;16222 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 15191 16223 esac 15192 case $ac_f in *\'*) ac_f=` $as_echo"$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac16224 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15193 16225 as_fn_append ac_file_inputs " '$ac_f'" 15194 16226 done 15195 16227 15196 # Let's still pretend it is `configure' which instantiates (i.e., don't16228 # Let's still pretend it is 'configure' which instantiates (i.e., don't 15197 16229 # use $as_me), people would be surprised to read: 15198 16230 # /* config.h. Generated by config.status. */ 15199 16231 configure_input='Generated from '` 15200 $as_echo"$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'16232 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15201 16233 `' by configure.' 15202 16234 if test x"$ac_file" != x-; then 15203 16235 configure_input="$ac_file. $configure_input" 15204 { $as_echo"$as_me:${as_lineno-$LINENO}: creating $ac_file" >&515205 $as_echo"$as_me: creating $ac_file" >&6;}16236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16237 printf "%s\n" "$as_me: creating $ac_file" >&6;} 15206 16238 fi 15207 16239 # Neutralize special characters interpreted by sed in replacement strings. 15208 16240 case $configure_input in #( 15209 16241 *\&* | *\|* | *\\* ) 15210 ac_sed_conf_input=` $as_echo"$configure_input" |16242 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 15211 16243 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15212 16244 *) ac_sed_conf_input=$configure_input;; … … 15225 16257 X"$ac_file" : 'X\(//\)$' \| \ 15226 16258 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15227 $as_echoX"$ac_file" |16259 printf "%s\n" X"$ac_file" | 15228 16260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15229 16261 s//\1/ … … 15249 16281 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15250 16282 *) 15251 ac_dir_suffix=/` $as_echo"$ac_dir" | sed 's|^\.[\\/]||'`16283 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 15252 16284 # A ".." for each directory in $ac_dir_suffix. 15253 ac_top_builddir_sub=` $as_echo"$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`16285 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15254 16286 case $ac_top_builddir_sub in 15255 16287 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; … … 15313 16345 *datarootdir*) ac_datarootdir_seen=yes;; 15314 16346 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15315 { $as_echo"$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&515316 $as_echo"$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}16347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16348 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15317 16349 _ACEOF 15318 16350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 … … 15327 16359 _ACEOF 15328 16360 15329 # Neutralize VPATH when `$srcdir' = `.'.16361 # Neutralize VPATH when '$srcdir' = '.'. 15330 16362 # Shell code in configure.ac might set extrasub. 15331 16363 # FIXME: do we really want to maintain this feature? … … 15358 16390 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15359 16391 "$ac_tmp/out"`; test -z "$ac_out"; } && 15360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'16392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 15361 16393 which seems to be undefined. Please make sure it is defined" >&5 15362 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'16394 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 15363 16395 which seems to be undefined. Please make sure it is defined" >&2;} 15364 16396 … … 15376 16408 if test x"$ac_file" != x-; then 15377 16409 { 15378 $as_echo "/* $configure_input */"\16410 printf "%s\n" "/* $configure_input */" >&1 \ 15379 16411 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15380 16412 } >"$ac_tmp/config.h" \ 15381 16413 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15382 16414 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15383 { $as_echo"$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&515384 $as_echo"$as_me: $ac_file is unchanged" >&6;}16415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16416 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 15385 16417 else 15386 16418 rm -f "$ac_file" … … 15389 16421 fi 15390 16422 else 15391 $as_echo "/* $configure_input */"\16423 printf "%s\n" "/* $configure_input */" >&1 \ 15392 16424 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15393 16425 || as_fn_error $? "could not create -" "$LINENO" 5 … … 15409 16441 X"$_am_arg" : 'X\(//\)$' \| \ 15410 16442 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15411 $as_echoX"$_am_arg" |16443 printf "%s\n" X"$_am_arg" | 15412 16444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15413 16445 s//\1/ … … 15429 16461 ;; 15430 16462 15431 :C) { $as_echo"$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&515432 $as_echo"$as_me: executing $ac_file commands" >&6;}16463 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16464 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 15433 16465 ;; 15434 16466 esac … … 15456 16488 do 15457 16489 # Strip MF so we end up with the name of the file. 15458 am_mf=` $as_echo"$am_mf" | sed -e 's/:.*$//'`16490 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 15459 16491 # Check whether this is an Automake generated Makefile which includes 15460 16492 # dependency-tracking related rules and includes. … … 15468 16500 X"$am_mf" : 'X\(//\)$' \| \ 15469 16501 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15470 $as_echoX"$am_mf" |16502 printf "%s\n" X"$am_mf" | 15471 16503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15472 16504 s//\1/ … … 15490 16522 X"$am_mf" : 'X\(//\)$' \| \ 15491 16523 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15492 $as_echoX/"$am_mf" |16524 printf "%s\n" X/"$am_mf" | 15493 16525 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15494 16526 s//\1/ … … 15515 16547 done 15516 16548 if test $am_rc -ne 0; then 15517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&515518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}16549 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 16550 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 15519 16551 as_fn_error $? "Something went wrong bootstrapping makefile fragments 15520 for automatic dependency tracking. Try re-running configure with the 16552 for automatic dependency tracking. If GNU make was not used, consider 16553 re-running the configure script with MAKE=\"gmake\" (or whatever is 16554 necessary). You can also try re-running configure with the 15521 16555 '--disable-dependency-tracking' option to at least be able to build 15522 16556 the package (albeit without support for automatic dependency tracking). 15523 See \`config.log' for more details" "$LINENO" 5; }16557 See 'config.log' for more details" "$LINENO" 5; } 15524 16558 fi 15525 16559 { am_dirpart=; unset am_dirpart;} … … 15674 16708 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15675 16709 16710 # A file(cmd) program that detects file types. 16711 FILECMD=$lt_FILECMD 16712 15676 16713 # Method to check whether dependent libraries are shared objects. 15677 16714 deplibs_check_method=$lt_deplibs_check_method … … 15692 16729 AR=$lt_AR 15693 16730 16731 # Flags to create an archive (by configure). 16732 lt_ar_flags=$lt_ar_flags 16733 15694 16734 # Flags to create an archive. 15695 AR_FLAGS= $lt_AR_FLAGS16735 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 15696 16736 15697 16737 # How to feed a file listing to the archiver. … … 16061 17101 16062 17102 17103 16063 17104 ltmain=$ac_aux_dir/ltmain.sh 16064 17105 … … 16068 17109 # text mode, it properly converts lines to CR/LF. This bash problem 16069 17110 # is reportedly fixed, but why not run on old versions too? 16070 sed'$q' "$ltmain" >> "$cfgfile" \17111 $SED '$q' "$ltmain" >> "$cfgfile" \ 16071 17112 || (rm -f "$cfgfile"; exit 1) 16072 17113 … … 16111 17152 fi 16112 17153 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16114 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16115 fi 16116 17154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17155 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17156 fi 17157 17158 -
trunk/src/libs/libpng-1.6.42/configure.ac
r96425 r103316 1 1 # configure.ac 2 2 3 # Copyright (c) 2018 Cosmin Truta3 # Copyright (c) 2018-2024 Cosmin Truta 4 4 # Copyright (c) 2004-2016 Glenn Randers-Pehrson 5 5 … … 26 26 dnl Version number stuff here: 27 27 28 AC_INIT([libpng],[1.6. 37],[[email protected]])29 AC_CONFIG_MACRO_DIR([scripts ])28 AC_INIT([libpng],[1.6.42],[[email protected]]) 29 AC_CONFIG_MACRO_DIR([scripts/autoconf]) 30 30 31 31 # libpng does not follow GNU file name conventions (hence 'foreign') … … 47 47 dnl stop configure from automagically running automake 48 48 49 PNGLIB_VERSION=1.6. 3749 PNGLIB_VERSION=1.6.42 50 50 PNGLIB_MAJOR=1 51 51 PNGLIB_MINOR=6 52 PNGLIB_RELEASE= 3752 PNGLIB_RELEASE=41 53 53 54 54 dnl End of version number stuff … … 90 90 AC_SUBST(DFNCPP) 91 91 92 # -Werror cannot be passed to GCC in CFLAGS because configure will fail (it 93 # checks the compiler with a program that generates a warning), add the 94 # following option to deal with this 92 AC_ARG_ENABLE([tests], 93 AS_HELP_STRING([--disable-tests], 94 [do not build the test programs (default is to build)]), 95 [enable_tests="$enableval"], 96 [enable_tests=yes]) 97 98 AM_CONDITIONAL([ENABLE_TESTS], 99 [test "$enable_tests" != "no"]) 100 101 AC_ARG_ENABLE([tools], 102 AS_HELP_STRING([--disable-tools], 103 [do not build the auxiliary tools (default is to build)]), 104 [enable_tools="$enableval"], 105 [enable_tools=yes]) 106 107 AM_CONDITIONAL([ENABLE_TOOLS], 108 [test "$enable_tools" != "no"]) 109 110 # -Werror cannot be passed to GCC in CFLAGS because configure will fail 111 # (it checks the compiler with a program that generates a warning). 112 # Add the following option to deal with this: 95 113 AC_ARG_VAR(PNG_COPTS, 96 114 [additional flags for the C compiler, use this for options that would] … … 115 133 fi],) 116 134 117 # For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89 118 # In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining _POSIX_SOURCE to 1119 # This is incompatible with the new default mode, so we test for that and force the120 # "-std=c89" compiler option:135 # For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89. 136 # In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining 137 # _POSIX_SOURCE to 1. This is incompatible with the new default mode, so 138 # we test for that and force the "-std=c89" compiler option: 121 139 AC_MSG_CHECKING([if we need to force back C standard to C89]) 122 140 AC_COMPILE_IFELSE( … … 134 152 ]) 135 153 136 # Checks for header files. 137 AC_HEADER_STDC 138 139 # Checks for typedefs, structures, and compiler characteristics. 140 AC_C_CONST 141 AC_TYPE_SIZE_T 154 # Checks for structures and compiler characteristics. 142 155 AC_STRUCT_TM 143 156 AC_C_RESTRICT 144 157 145 158 # Checks for library functions. 146 AC_ FUNC_STRTOD147 AC_CHECK_FUNCS([pow], , AC_CHECK_LIB(m, pow, , AC_MSG_ERROR(cannot find pow)))148 149 # Some later POSIX 1003.1 functions are required for test programs, failure here150 # is soft (the corresponding test program is not built).151 AC_CHECK_FUNC([clock_gettime], ,[AC_MSG_WARN([not building timepng])])159 AC_CHECK_FUNCS([pow], , 160 [AC_CHECK_LIB([m], [pow], , [AC_MSG_ERROR([cannot find pow])])]) 161 162 # Some later POSIX 1003.1 functions are required for test programs, failure 163 # here is soft (the corresponding test program is not built). 164 AC_CHECK_FUNC([clock_gettime], , [AC_MSG_WARN([not building timepng])]) 152 165 AM_CONDITIONAL([HAVE_CLOCK_GETTIME], [test "$ac_cv_func_clock_gettime" = "yes"]) 153 166 … … 157 170 [ZPREFIX=${withval}], 158 171 [ZPREFIX='z_']) 159 AC_CHECK_LIB(z, zlibVersion, , 160 AC_CHECK_LIB(z, ${ZPREFIX}zlibVersion, , AC_MSG_ERROR(zlib not installed))) 172 AC_CHECK_LIB([z], [zlibVersion], , 173 [AC_CHECK_LIB([z], [${ZPREFIX}zlibVersion], , 174 [AC_MSG_ERROR([zlib not installed])])]) 161 175 162 176 # The following is for pngvalid, to ensure it catches FP errors even on … … 297 311 [test "$enable_unversioned_libpng_config" != "no"]) 298 312 299 # HOST 313 # HOST-SPECIFIC OPTIONS 300 314 # ===================== 301 315 # … … 315 329 AC_DEFINE([PNG_MIPS_MSA_OPT], [0], 316 330 [Disable MIPS_MSA optimizations]) 331 enable_mips_mmi=no 332 AC_DEFINE([PNG_MIPS_MMI_OPT], [0], 333 [Disable MIPS_MMI optimizations]) 317 334 enable_powerpc_vsx=no 318 335 AC_DEFINE([PNG_POWERPC_VSX_OPT], [0], … … 321 338 AC_DEFINE([PNG_INTEL_SSE_OPT], [0], 322 339 [Disable INTEL_SSE optimizations]) 340 enable_loongarch_lsx=no 341 AC_DEFINE([PNG_LOONGARCH_LSX_OPT], [0], 342 [Disable LOONGARCH_LSX optimizations]) 323 343 ;; 324 344 *) … … 327 347 arm*|aarch64*) 328 348 enable_arm_neon=yes 329 AC_DEFINE([PNG_ARM_NEON_OPT], [ 0],349 AC_DEFINE([PNG_ARM_NEON_OPT], [2], 330 350 [Enable ARM_NEON optimizations]) 331 351 ;; 332 352 mipsel*|mips64el*) 353 enable_mips_mmi=yes 333 354 enable_mips_msa=yes 334 AC_DEFINE([PNG_MIPS_MSA_OPT], [0], 355 AC_DEFINE([PNG_MIPS_MMI_OPT], [1], 356 [Enable MIPS_MMI optimizations]) 357 AC_DEFINE([PNG_MIPS_MSA_OPT], [2], 335 358 [Enable MIPS_MSA optimizations]) 336 359 ;; … … 344 367 AC_DEFINE([PNG_POWERPC_VSX_OPT], [2], 345 368 [Enable POWERPC VSX optimizations]) 369 ;; 370 loongarch*) 371 enable_loongarch_lsx=yes 372 AC_DEFINE([PNG_LOONGARCH_LSX_OPT], [1], 373 [Enable LOONGARCH_LSX optimizations]) 346 374 ;; 347 375 esac … … 367 395 [Disable ARM Neon optimizations]) 368 396 # Prevent inclusion of the assembler files below: 369 enable_arm_neon=no ;;397 enable_arm_neon=no ;; 370 398 check) 371 399 AC_DEFINE([PNG_ARM_NEON_CHECK_SUPPORTED], [], … … 384 412 esac]) 385 413 386 # Add ARM specific files to all builds where thehost_cpu is arm ('arm*') or387 # where ARM optimizations were explicitly requested (this allows a fallback if a388 # future host CPU does not match 'arm*')414 # Add ARM-specific files to all builds where $host_cpu is arm ('arm*') or 415 # where ARM optimizations were explicitly requested (this allows a fallback 416 # if a future host CPU does not match 'arm*') 389 417 390 418 AM_CONDITIONAL([PNG_ARM_NEON], 391 419 [test "$enable_arm_neon" != 'no' && 392 420 case "$host_cpu" in 393 arm*|aarch64*) : ;;394 *) test "$enable_arm_neon" != '' ;;421 arm*|aarch64*) : ;; 422 *) test "$enable_arm_neon" != '' ;; 395 423 esac]) 396 424 397 425 # MIPS 398 # === 426 # ==== 399 427 # 400 428 # MIPS MSA (SIMD) support. … … 413 441 [Disable MIPS MSA optimizations]) 414 442 # Prevent inclusion of the assembler files below: 415 enable_mips_msa=no ;;443 enable_mips_msa=no ;; 416 444 check) 417 445 AC_DEFINE([PNG_MIPS_MSA_CHECK_SUPPORTED], [], … … 430 458 esac]) 431 459 460 # Add MIPS-specific files to all builds where $host_cpu is mips ('mips*') or 461 # where MIPS optimizations were explicitly requested (this allows a fallback 462 # if a future host CPU does not match 'mips*') 463 464 AM_CONDITIONAL([PNG_MIPS_MSA], 465 [test "$enable_mips_msa" != 'no' && 466 case "$host_cpu" in 467 mipsel*|mips64el*) : ;; 468 esac]) 469 470 # MIPS 471 # === 472 # 473 # MIPS MMI (SIMD) support. 474 475 AC_ARG_ENABLE([mips-mmi], 476 AS_HELP_STRING([[[--enable-mips-mmi]]], 477 [Enable MIPS MMI optimizations: =no/off, check, api, yes/on:] 478 [no/off: disable the optimizations; check: use internal checking code] 479 [(deprecated and poorly supported); api: disable by default, enable by] 480 [a call to png_set_option; yes/on: turn on unconditionally.] 481 [If not specified: determined by the compiler.]), 482 [case "$enableval" in 483 no|off) 484 # disable the default enabling on __mips_mmi systems: 485 AC_DEFINE([PNG_MIPS_MMI_OPT], [0], 486 [Disable MIPS MMI optimizations]) 487 # Prevent inclusion of the assembler files below: 488 enable_mips_mmi=no;; 489 check) 490 AC_DEFINE([PNG_MIPS_MMI_CHECK_SUPPORTED], [], 491 [Check for MIPS MMI support at run-time]);; 492 api) 493 AC_DEFINE([PNG_MIPS_MMI_API_SUPPORTED], [], 494 [Turn on MIPS MMI optimizations at run-time]);; 495 yes|on) 496 AC_DEFINE([PNG_MIPS_MMI_OPT], [1], 497 [Enable MIPS MMI optimizations]) 498 AC_MSG_WARN([--enable-mips-mmi: please specify 'check' or 'api', if] 499 [you want the optimizations unconditionally pass '-mloongson-mmi -march=loongson3a'] 500 [to the compiler.]);; 501 *) 502 AC_MSG_ERROR([--enable-mips-mmi=${enable_mips_mmi}: invalid value]) 503 esac]) 504 432 505 # Add MIPS specific files to all builds where the host_cpu is mips ('mips*') or 433 506 # where MIPS optimizations were explicitly requested (this allows a fallback if a 434 507 # future host CPU does not match 'mips*') 435 508 436 AM_CONDITIONAL([PNG_MIPS_M SA],437 [test "$enable_mips_m sa" != 'no' &&509 AM_CONDITIONAL([PNG_MIPS_MMI], 510 [test "$enable_mips_mmi" != 'no' && 438 511 case "$host_cpu" in 439 512 mipsel*|mips64el*) :;; … … 457 530 [Disable Intel SSE optimizations]) 458 531 # Prevent inclusion of the assembler files below: 459 enable_intel_sse=no ;;532 enable_intel_sse=no ;; 460 533 yes|on) 461 534 AC_DEFINE([PNG_INTEL_SSE_OPT], [1], … … 465 538 esac]) 466 539 467 # Add Intel specific files to all builds where the host_cpu is Intel ('x86*')468 # or where Intel optimizations were explicitly requested (this allows a469 # fallbackif a future host CPU does not match 'x86*')540 # Add Intel-specific files to all builds where $host_cpu is Intel ('x86*') or 541 # where Intel optimizations were explicitly requested (this allows a fallback 542 # if a future host CPU does not match 'x86*') 470 543 AM_CONDITIONAL([PNG_INTEL_SSE], 471 544 [test "$enable_intel_sse" != 'no' && 472 545 case "$host_cpu" in 473 i?86|x86_64) : ;;474 *) test "$enable_intel_sse" != '' ;;546 i?86|x86_64) : ;; 547 *) test "$enable_intel_sse" != '' ;; 475 548 esac]) 476 549 477 550 # PowerPC 478 # === 551 # ======= 479 552 # 480 553 # PowerPC VSX (SIMD) support. … … 492 565 AC_DEFINE([PNG_POWERPC_VSX_OPT], [0], 493 566 [Disable POWERPC VSX optimizations]) 494 # Prevent inclusion of the platform 495 enable_powerpc_vsx=no ;;567 # Prevent inclusion of the platform-specific files below: 568 enable_powerpc_vsx=no ;; 496 569 check) 497 570 AC_DEFINE([PNG_POWERPC_VSX_CHECK_SUPPORTED], [], … … 507 580 AC_MSG_WARN([--enable-powerpc-vsx: please specify 'check' or 'api', if] 508 581 [you want the optimizations unconditionally pass '-maltivec -mvsx'] 509 [or '-mcpu=power8' to the compiler.]);;582 [or '-mcpu=power8' to the compiler.]);; 510 583 *) 511 584 AC_MSG_ERROR([--enable-powerpc-vsx=${enable_powerpc_vsx}: invalid value]) 512 585 esac]) 513 586 514 # Add PowerPC specific files to all builds where the host_cpu is powerpc('powerpc*') or515 # where POWERPC optimizations were explicitly requested (this allows a fallback if a516 # future host CPU does not match 'powerpc*')587 # Add PowerPC-specific files to all builds where $host_cpu is powerpc('powerpc*') 588 # or where PowerPC optimizations were explicitly requested (this allows a fallback 589 # if a future host CPU does not match 'powerpc*') 517 590 518 591 AM_CONDITIONAL([PNG_POWERPC_VSX], 519 592 [test "$enable_powerpc_vsx" != 'no' && 520 593 case "$host_cpu" in 521 powerpc*|ppc64*) : ;;594 powerpc*|ppc64*) : ;; 522 595 esac]) 523 596 597 # LOONGARCH 598 # === 599 # 600 # LOONGARCH LSX (SIMD) support 601 602 if test "$LSX_CFLAGS" = ''; then 603 LSX_CFLAGS="-mlsx" 604 fi 605 606 compiler_support_loongarch_lsx=no 607 AC_MSG_CHECKING(whether to use loongarch LSX intrinsics) 608 save_CFLAGS=$CFLAGS 609 CFLAGS="$CFLAGS $LSX_CFLAGS" 610 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ 611 #include<lsxintrin.h> 612 int main(){ 613 __m128i a, b, c; 614 a = __lsx_vadd_w(b, c); 615 return 0; 616 }]])],compiler_support_loongarch_lsx=yes) 617 CFLAGS=$save_CFLAGS 618 AC_MSG_RESULT($compiler_support_loongarch_lsx) 619 620 AC_ARG_ENABLE([loongarch-lsx], 621 AS_HELP_STRING([[[--enable-loongarch-lsx]]], 622 [Enable LOONGARCH LSX optimizations: =no/off, yes/on:] 623 [no/off: disable the optimizations;] 624 [yes/on: turn on unconditionally.] 625 [If not specified: determined by the compiler.]), 626 [case "$enableval" in 627 no|off) 628 # disable the default enabling on __loongarch_simd systems: 629 AC_DEFINE([PNG_LOONGARCH_LSX_OPT], [0], 630 [Disable LOONGARCH LSX optimizations]) 631 # Prevent inclusion of the assembler files below: 632 enable_loongarch_lsx=no;; 633 yes|on) 634 AC_DEFINE([PNG_LOONGARCH_LSX_OPT], [1], 635 [Enable LOONGARCH LSX optimizations]) 636 ;; 637 *) 638 AC_MSG_ERROR([--enable-loongarch-lsx=${enable_loongarch_lsx}: invalid value]) 639 esac]) 640 641 if test "$enable_loongarch_lsx" != 'no'; then 642 if test $compiler_support_loongarch_lsx = yes; then 643 AC_DEFINE([PNG_LOONGARCH_LSX_OPT], [1], [Enable LOONGARCH LSX optimizations]) 644 else 645 AC_MSG_WARN([Compiler does not support loongarch LSX.]) 646 fi 647 fi 648 649 # Add LOONGARCH specific files to all builds where the host_cpu is loongarch ('loongarch*') or 650 # where LOONGARCH optimizations were explicitly requested (this allows a fallback if a 651 # future host CPU does not match 'loongarch*') 652 653 AM_CONDITIONAL([PNG_LOONGARCH_LSX], 654 [test "$enable_loongarch_lsx" != 'no' && test $compiler_support_loongarch_lsx = yes && 655 case "$host_cpu" in 656 loongarch*) :;; 657 *) test "$enable_loongarch_lsx" != '';; 658 esac]) 524 659 525 660 AC_MSG_NOTICE([[Extra options for compiler: $PNG_COPTS]]) -
trunk/src/libs/libpng-1.6.42/contrib/arm-neon/android-ndk.c
r96425 r103316 3 3 * Copyright (c) 2014 Glenn Randers-Pehrson 4 4 * Written by John Bowler, 2014. 5 * Last changed in libpng 1.6.10 [March 6, 2014]6 5 * 7 6 * This code is released under the libpng license. … … 25 24 * only the header files exist in the NDK. 26 25 */ 26 27 27 #include <cpu-features.h> 28 28 -
trunk/src/libs/libpng-1.6.42/contrib/arm-neon/linux-auxv.c
r96425 r103316 3 3 * Copyright (c) 2014 Glenn Randers-Pehrson 4 4 * Written by Mans Rullgard, 2011. 5 * Last changed in libpng 1.6.10 [March 6, 2014]6 5 * 7 6 * This code is released under the libpng license. … … 23 22 * looking at each element for one that records NEON capabilities. 24 23 */ 24 25 25 #include <unistd.h> /* for POSIX 1003.1 */ 26 26 #include <errno.h> /* for EINTR */ -
trunk/src/libs/libpng-1.6.42/contrib/arm-neon/linux.c
r96425 r103316 1 1 /* contrib/arm-neon/linux.c 2 2 * 3 * Last changed in libpng 1.6.31 [July 27, 2017]4 3 * Copyright (c) 2014, 2017 Glenn Randers-Pehrson 5 4 * Written by John Bowler, 2014, 2017. … … 20 19 * however use <stdio.h> and it assumes that /proc/cpuinfo is never localized. 21 20 */ 21 22 22 #include <stdio.h> 23 23 -
trunk/src/libs/libpng-1.6.42/contrib/examples/pngtopng.c
r96425 r103316 5 5 * related or neighboring rights to this work. This work is published from: 6 6 * United States. 7 *8 * Last changed in libpng 1.6.29 [March 16, 2017]9 7 * 10 8 * Read a PNG and write it out in a fixed format, using the 'simplified API' -
trunk/src/libs/libpng-1.6.42/contrib/libtests/gentests.sh
r96425 r103316 2 2 # 3 3 # Copyright (c) 2013 John Cunningham Bowler 4 #5 # Last changed in libpng 1.6.0 [February 14, 2013]6 4 # 7 5 # This code is released under the libpng license. -
trunk/src/libs/libpng-1.6.42/contrib/libtests/makepng.c
r96425 r103316 4 4 #define COPYRIGHT "\251 2013,2015 John Cunningham Bowler" 5 5 /* 6 * Last changed in libpng 1.6.20 [November 24, 2015]7 *8 6 * This code is released under the libpng license. 9 7 * For conditions of distribution and use, see the disclaimer … … 300 298 volatile unsigned int ip = 0; 301 299 302 for (x=0; x<size; ++x) for (y=0; y<size; ++y)300 for (x=0; x<size; ++x) 303 301 { 304 ip = x + (size * y); 305 306 /* size is at most 16, so the scaled value below fits in 16 bits 307 */ 308 # define interp(pos, c1, c2) ((pos * c1) + ((size-pos) * c2)) 309 # define xyinterp(x, y, c1, c2, c3, c4) (((size * size / 2) +\ 310 (interp(x, c1, c2) * y + (size-y) * interp(x, c3, c4))) /\ 311 (size*size)) 312 313 set_color(palette+ip, trans+ip, 314 /* color: green, red,blue,white */ 315 xyinterp(x, y, 0, 255, 0, 255), 316 xyinterp(x, y, 255, 0, 0, 255), 317 xyinterp(x, y, 0, 0, 255, 255), 318 /* alpha: 0, 102, 204, 255) */ 319 xyinterp(x, y, 0, 102, 204, 255), 320 gamma_table); 302 for (y=0; y<size; ++y) 303 { 304 ip = x + (size * y); 305 306 /* size is at most 16, so the scaled value below fits in 16 bits 307 */ 308 # define interp(pos, c1, c2) ((pos * c1) + ((size-pos) * c2)) 309 # define xyinterp(x, y, c1, c2, c3, c4) (((size * size / 2) +\ 310 (interp(x, c1, c2) * y + (size-y) * interp(x, c3, c4))) /\ 311 (size*size)) 312 313 set_color(palette+ip, trans+ip, 314 /* color: green, red,blue,white */ 315 xyinterp(x, y, 0, 255, 0, 255), 316 xyinterp(x, y, 255, 0, 0, 255), 317 xyinterp(x, y, 0, 0, 255, 255), 318 /* alpha: 0, 102, 204, 255) */ 319 xyinterp(x, y, 0, 102, 204, 255), 320 gamma_table); 321 } 321 322 } 322 323 … … 397 398 png_uint_32 depth_max = (1U << bit_depth)-1; /* up to 65536 */ 398 399 399 if (colors[0] == 0 ) if (small)400 if (colors[0] == 0 && small) 400 401 { 401 402 unsigned int pixel_depth = pixel_depth_of_type(color_type, bit_depth); … … 496 497 case 48: 497 498 case 64: 498 /* The rows are filled by an al ogorithm similar to the above, in the499 /* The rows are filled by an algorithm similar to the above, in the 499 500 * first row pixel bytes are all equal, increasing from 0 by 1 for 500 501 * each pixel. In the second row the bytes within a pixel are … … 859 860 unsigned int i; 860 861 861 if (real_gamma == 45455) for (i=0; i<256; ++i) 862 { 863 gamma_table[i] = (png_byte)i; 864 conv = 1.; 862 if (real_gamma == 45455) 863 { 864 for (i=0; i<256; ++i) 865 { 866 gamma_table[i] = (png_byte)i; 867 conv = 1.; 868 } 865 869 } 866 870 … … 1431 1435 { 1432 1436 list[i] = param; 1433 while (*++param) if (*param == '\n' || *param == ':') 1434 { 1435 *param++ = 0; /* Terminate last parameter */ 1436 break; /* And start a new one. */ 1437 while (*++param) 1438 { 1439 if (*param == '\n' || *param == ':') 1440 { 1441 *param++ = 0; /* Terminate last parameter */ 1442 break; /* And start a new one. */ 1443 } 1437 1444 } 1438 1445 } … … 1870 1877 } 1871 1878 1872 /* small and colors are incompa rible (will probably crash if both are used at1879 /* small and colors are incompatible (will probably crash if both are used at 1873 1880 * the same time!) 1874 1881 */ -
trunk/src/libs/libpng-1.6.42/contrib/libtests/pngimage.c
r96425 r103316 1 1 2 /* pngimage.c 2 3 * 4 * Copyright (c) 2021 Cosmin Truta 3 5 * Copyright (c) 2015,2016 John Cunningham Bowler 4 *5 * Last changed in libpng 1.6.24 [August 4, 2016]6 6 * 7 7 * This code is released under the libpng license. … … 13 13 * transforms. 14 14 */ 15 15 16 #include <stdarg.h> 16 17 #include <stdlib.h> … … 318 319 t &= -t; /* first set bit */ 319 320 320 for (i=0; i<TTABLE_SIZE; ++i) if (transform_info[i].name != NULL) 321 { 322 if ((transform_info[i].transform & t) != 0) 323 return transform_info[i].name; 324 } 321 for (i=0; i<TTABLE_SIZE; ++i) 322 if (transform_info[i].name != NULL) 323 if ((transform_info[i].transform & t) != 0) 324 return transform_info[i].name; 325 325 326 326 return "invalid transform"; … … 339 339 unsigned int i; 340 340 341 for (i=0; i<TTABLE_SIZE; ++i) if (transform_info[i].name != NULL) 342 { 343 if (transform_info[i].when & TRANSFORM_R) 344 read_transforms |= transform_info[i].transform; 345 346 if (transform_info[i].when & TRANSFORM_W) 347 write_transforms |= transform_info[i].transform; 341 for (i=0; i<TTABLE_SIZE; ++i) 342 { 343 if (transform_info[i].name != NULL) 344 { 345 if (transform_info[i].when & TRANSFORM_R) 346 read_transforms |= transform_info[i].transform; 347 348 if (transform_info[i].when & TRANSFORM_W) 349 write_transforms |= transform_info[i].transform; 350 } 348 351 } 349 352 … … 963 966 unsigned int i; 964 967 965 for (i=0; i<TTABLE_SIZE; ++i) if (transform_info[i].name != NULL)968 for (i=0; i<TTABLE_SIZE; ++i) 966 969 { 967 int transform = transform_info[i].transform; 968 969 if ((transform_info[i].valid_chunks == 0 || 970 (transform_info[i].valid_chunks & chunks) != 0) && 971 (transform_info[i].color_mask_required & ct) == 972 transform_info[i].color_mask_required && 973 (transform_info[i].color_mask_absent & ct) == 0 && 974 (transform_info[i].bit_depths & bd) != 0 && 975 (transform_info[i].when & TRANSFORM_R) != 0) 976 active |= transform; 977 978 else if ((transform_info[i].when & TRANSFORM_R) != 0) 979 inactive |= transform; 970 if (transform_info[i].name != NULL) 971 { 972 int transform = transform_info[i].transform; 973 974 if ((transform_info[i].valid_chunks == 0 || 975 (transform_info[i].valid_chunks & chunks) != 0) && 976 (transform_info[i].color_mask_required & ct) == 977 transform_info[i].color_mask_required && 978 (transform_info[i].color_mask_absent & ct) == 0 && 979 (transform_info[i].bit_depths & bd) != 0 && 980 (transform_info[i].when & TRANSFORM_R) != 0) 981 active |= transform; 982 983 else if ((transform_info[i].when & TRANSFORM_R) != 0) 984 inactive |= transform; 985 } 980 986 } 981 987 … … 1001 1007 const char *e = NULL; 1002 1008 1003 png_get_IHDR(dp->read_pp, dp->read_ip, &width, &height, &bit_depth, 1004 &color_type, &interlace_method, &compression_method, &filter_method); 1009 if (!png_get_IHDR(dp->read_pp, dp->read_ip, &width, &height, &bit_depth, 1010 &color_type, &interlace_method, &compression_method, &filter_method)) 1011 display_log(dp, LIBPNG_BUG, "png_get_IHDR failed"); 1005 1012 1006 1013 # define C(item) if (item != dp->item) \ … … 1082 1089 1083 1090 /* Find the first error */ 1084 for (x=0; x<rowbytes-1; ++x) if (row[x] != orig[x]) 1085 break; 1091 for (x=0; x<rowbytes-1; ++x) 1092 if (row[x] != orig[x]) 1093 break; 1086 1094 1087 1095 display_log(dp, APP_FAIL, … … 1138 1146 color_type); 1139 1147 /*NOTREACHED*/ 1148 memset(sig_bits, 0, sizeof(sig_bits)); 1140 1149 bpp = 0; 1141 1150 break; … … 1199 1208 break; 1200 1209 1201 case 4: /* Re licate twice */1210 case 4: /* Replicate twice */ 1202 1211 /* Value is 1, 2, 3 or 4 */ 1203 1212 b = 0xf & ((0xf << 4) >> sig_bits[0]); … … 1687 1696 printf("%s: pngimage ", pass ? "PASS" : "FAIL"); 1688 1697 1689 for (j=1; j<option_end; ++j) if (j != ilog) 1690 printf("%s ", argv[j]); 1698 for (j=1; j<option_end; ++j) 1699 if (j != ilog) 1700 printf("%s ", argv[j]); 1691 1701 1692 1702 printf("%s\n", d.filename); -
trunk/src/libs/libpng-1.6.42/contrib/libtests/pngstest.c
r96425 r103316 1 /*- 2 1 2 /* pngstest.c 3 3 * 4 * Last changed in libpng 1.6.31 [July 27, 2017]4 * Copyright (c) 2021 Cosmin Truta 5 5 * Copyright (c) 2013-2017 John Cunningham Bowler 6 6 * … … 11 11 * Test for the PNG 'simplified' APIs. 12 12 */ 13 13 14 #define _ISOC90_SOURCE 1 14 #define MALLOC_CHECK_ 2 /*glibc facility: turn on debugging*/15 #define MALLOC_CHECK_ 2 /*glibc facility: turn on debugging*/ 15 16 16 17 #include <stddef.h> … … 1151 1152 * 2) Remove color by mapping to grayscale. (Grayscale to color is a no-op.) 1152 1153 * 1153 * 3) Convert between 8-bit and 16-bit components. (Both direct tions are1154 * 3) Convert between 8-bit and 16-bit components. (Both directions are 1154 1155 * relevant.) 1155 1156 * … … 2702 2703 if ((a->opts & ACCUMULATE) == 0) 2703 2704 { 2704 char pindex[ 9];2705 char pindex[16]; 2705 2706 sprintf(pindex, "%lu[%lu]", (unsigned long)y, 2706 2707 (unsigned long)a->image.colormap_entries); … … 2713 2714 { 2714 2715 if ((b->opts & ACCUMULATE) == 0) 2715 2716 char pindex[ 9];2716 { 2717 char pindex[16]; 2717 2718 sprintf(pindex, "%lu[%lu]", (unsigned long)y, 2718 2719 (unsigned long)b->image.colormap_entries); 2719 2720 logerror(b, b->file_name, ": bad pixel index: ", pindex); 2720 2721 } 2721 2722 result = 0; 2722 2723 } … … 2821 2822 2822 2823 /* Hence the btoa array. */ 2823 for (i=0; i<4; ++i) if (bloc[i] < 4) 2824 btoa[bloc[i]] = aloc[i]; /* may be '4' for alpha */ 2824 for (i=0; i<4; ++i) 2825 { 2826 if (bloc[i] < 4) 2827 btoa[bloc[i]] = aloc[i]; /* may be '4' for alpha */ 2828 } 2825 2829 2826 2830 if (alpha_added) … … 3210 3214 { 3211 3215 #ifdef PNG_SIMPLIFIED_WRITE_STDIO_SUPPORTED 3212 static int counter = 0;3216 static unsigned int counter = 0; 3213 3217 char name[32]; 3214 3218 3215 sprintf(name, "%s% d.png", tmpf, ++counter);3219 sprintf(name, "%s%u.png", tmpf, ++counter); 3216 3220 3217 3221 if (png_image_write_to_file(&image->image, name, convert_to_8bit, -
trunk/src/libs/libpng-1.6.42/contrib/libtests/pngunknown.c
r96425 r103316 2 2 /* pngunknown.c - test the read side unknown chunk handling 3 3 * 4 * Last changed in libpng 1.6.32 [August 24, 2017]4 * Copyright (c) 2021 Cosmin Truta 5 5 * Copyright (c) 2015,2017 Glenn Randers-Pehrson 6 6 * Written by John Cunningham Bowler … … 371 371 int i = NINFO; 372 372 373 while (--i >= 0) if (chunk_info[i].flag == flag) return i; 373 while (--i >= 0) 374 if (chunk_info[i].flag == flag) 375 return i; 374 376 375 377 fprintf(stderr, "pngunknown: internal error\n"); … … 548 550 case PNG_HANDLE_CHUNK_AS_DEFAULT: 549 551 case PNG_HANDLE_CHUNK_NEVER: 550 discard = 1 /*handled; discard*/;552 discard = 1; /*handled; discard*/ 551 553 break; 552 554 553 555 case PNG_HANDLE_CHUNK_IF_SAFE: 554 556 case PNG_HANDLE_CHUNK_ALWAYS: 555 discard = 0 /*not handled; keep*/;557 discard = 0; /*not handled; keep*/ 556 558 break; 557 559 } … … 560 562 * is set if the chunk is to be kept ('not handled'.) 561 563 */ 562 if (chunk >= 0) if (!discard) /* stupidity to stop a GCC warning */ 563 { 564 png_uint_32 flag = chunk_info[chunk].flag; 565 566 if (pc->location & PNG_AFTER_IDAT) 567 d->after_IDAT |= flag; 568 569 else 570 d->before_IDAT |= flag; 564 if (chunk >= 0) 565 { 566 if (!discard) /* stupidity to stop a GCC warning */ 567 { 568 png_uint_32 flag = chunk_info[chunk].flag; 569 570 if (pc->location & PNG_AFTER_IDAT) 571 d->after_IDAT |= flag; 572 573 else 574 d->before_IDAT |= flag; 575 } 571 576 } 572 577 … … 842 847 png_uint_32 y; 843 848 844 for (y=0; y<height; ++y) if (PNG_ROW_IN_INTERLACE_PASS(y, ipass)) 845 png_read_row(d->png_ptr, NULL, NULL); 849 for (y=0; y<height; ++y) 850 if (PNG_ROW_IN_INTERLACE_PASS(y, ipass)) 851 png_read_row(d->png_ptr, NULL, NULL); 846 852 } 847 853 } … … 1092 1098 static const char *standard_tests[] = 1093 1099 { 1094 "discard", "default=discard", 0,1095 "save", "default=save", 0,1096 "if-safe", "default=if-safe", 0,1097 "vpAg", "vpAg=if-safe", 0,1098 "sTER", "sTER=if-safe", 0,1099 "IDAT", "default=discard", "IDAT=save", 0,1100 "sAPI", "bKGD=save", "cHRM=save", "gAMA=save", "all=discard", "iCCP=save",1101 "sBIT=save", "sRGB=save", "eXIf=save", 0,1102 0/*end*/1100 "discard", "default=discard", NULL, 1101 "save", "default=save", NULL, 1102 "if-safe", "default=if-safe", NULL, 1103 "vpAg", "vpAg=if-safe", NULL, 1104 "sTER", "sTER=if-safe", NULL, 1105 "IDAT", "default=discard", "IDAT=save", NULL, 1106 "sAPI", "bKGD=save", "cHRM=save", "gAMA=save", "all=discard", "iCCP=save", 1107 "sBIT=save", "sRGB=save", "eXIf=save", NULL, 1108 NULL /*end*/ 1103 1109 }; 1104 1110 … … 1116 1122 { 1117 1123 FILE *fp; 1118 png_uint_32 default_flags[4 /*valid,unknown{before,after}*/];1124 png_uint_32 default_flags[4]; /*valid,unknown{before,after}*/ 1119 1125 int strict = 0, default_tests = 0; 1120 1126 const char *count_argv = "default=save"; … … 1154 1160 * optimization which causes warnings with -Wstrict-overflow! 1155 1161 */ 1156 else if (default_tests) if (argc != 1) 1157 usage(d.program, "extra arguments"); 1162 else if (default_tests) 1163 if (argc != 1) 1164 usage(d.program, "extra arguments"); 1158 1165 1159 1166 /* The name of the test file is the last argument; remove it. */ … … 1217 1224 int arg_count = 0; 1218 1225 1219 while (*next) ++next, ++arg_count; 1226 while (*next != NULL) 1227 { 1228 ++next; 1229 ++arg_count; 1230 } 1220 1231 1221 1232 perform_one_test_safe(fp, arg_count, test, default_flags, &d, -
trunk/src/libs/libpng-1.6.42/contrib/libtests/pngvalid.c
r96425 r103316 2 2 /* pngvalid.c - validate libpng by constructing then reading png files. 3 3 * 4 * Last changed in libpng 1.6.31 [July 27, 2017]4 * Copyright (c) 2021 Cosmin Truta 5 5 * Copyright (c) 2014-2017 John Cunningham Bowler 6 6 * … … 23 23 #define _GNU_SOURCE 1 /* For the floating point exception extension */ 24 24 #define _BSD_SOURCE 1 /* For the floating point exception extension */ 25 #define _DEFAULT_SOURCE 1 /* For the floating point exception extension */ 25 26 26 27 #include <signal.h> … … 5823 5824 interlace_type < INTERLACE_LAST; ++interlace_type) 5824 5825 { 5825 standard_test(&pm->this, FILEID(colour_type, DEPTH(bdlo), 0/*palette*/, 5826 interlace_type, 0, 0, 0), do_read_interlace, pm->use_update_info); 5826 standard_test(&pm->this, FILEID(colour_type, DEPTH(bdlo), 5827 0/*palette*/, interlace_type, 0, 0, 0), do_read_interlace, 5828 pm->use_update_info); 5827 5829 5828 5830 if (fail(pm)) … … 5877 5879 png_uint_32 h, w; 5878 5880 5879 for (h=1; h<=16; h+=hinc[bdlo]) for (w=1; w<=16; w+=winc[bdlo]) 5880 { 5881 /* First test all the 'size' images against the sequential 5882 * reader using libpng to deinterlace (where required.) This 5883 * validates the write side of libpng. There are four possibilities 5884 * to validate. 5885 */ 5886 standard_test(&pm->this, FILEID(colour_type, DEPTH(bdlo), 0/*palette*/, 5887 PNG_INTERLACE_NONE, w, h, 0), 0/*do_interlace*/, 5888 pm->use_update_info); 5889 5890 if (fail(pm)) 5891 return 0; 5892 5893 standard_test(&pm->this, FILEID(colour_type, DEPTH(bdlo), 0/*palette*/, 5894 PNG_INTERLACE_NONE, w, h, 1), 0/*do_interlace*/, 5895 pm->use_update_info); 5896 5897 if (fail(pm)) 5898 return 0; 5899 5900 /* Now validate the interlaced read side - do_interlace true, 5901 * in the progressive case this does actually make a difference 5902 * to the code used in the non-interlaced case too. 5903 */ 5904 standard_test(&pm->this, FILEID(colour_type, DEPTH(bdlo), 0/*palette*/, 5905 PNG_INTERLACE_NONE, w, h, 0), 1/*do_interlace*/, 5906 pm->use_update_info); 5907 5908 if (fail(pm)) 5909 return 0; 5910 5911 # if CAN_WRITE_INTERLACE 5912 /* Validate the pngvalid code itself: */ 5913 standard_test(&pm->this, FILEID(colour_type, DEPTH(bdlo), 0/*palette*/, 5914 PNG_INTERLACE_ADAM7, w, h, 1), 1/*do_interlace*/, 5915 pm->use_update_info); 5916 5917 if (fail(pm)) 5918 return 0; 5919 # endif 5881 for (h=1; h<=16; h+=hinc[bdlo]) 5882 { 5883 for (w=1; w<=16; w+=winc[bdlo]) 5884 { 5885 /* First test all the 'size' images against the sequential 5886 * reader using libpng to deinterlace (where required.) This 5887 * validates the write side of libpng. There are four possibilities 5888 * to validate. 5889 */ 5890 standard_test(&pm->this, FILEID(colour_type, DEPTH(bdlo), 5891 0/*palette*/, PNG_INTERLACE_NONE, w, h, 0), 0/*do_interlace*/, 5892 pm->use_update_info); 5893 5894 if (fail(pm)) 5895 return 0; 5896 5897 standard_test(&pm->this, FILEID(colour_type, DEPTH(bdlo), 5898 0/*palette*/, PNG_INTERLACE_NONE, w, h, 1), 0/*do_interlace*/, 5899 pm->use_update_info); 5900 5901 if (fail(pm)) 5902 return 0; 5903 5904 /* Now validate the interlaced read side - do_interlace true, 5905 * in the progressive case this does actually make a difference 5906 * to the code used in the non-interlaced case too. 5907 */ 5908 standard_test(&pm->this, FILEID(colour_type, DEPTH(bdlo), 5909 0/*palette*/, PNG_INTERLACE_NONE, w, h, 0), 1/*do_interlace*/, 5910 pm->use_update_info); 5911 5912 if (fail(pm)) 5913 return 0; 5914 5915 # if CAN_WRITE_INTERLACE 5916 /* Validate the pngvalid code itself: */ 5917 standard_test(&pm->this, FILEID(colour_type, DEPTH(bdlo), 5918 0/*palette*/, PNG_INTERLACE_ADAM7, w, h, 1), 1/*do_interlace*/, 5919 pm->use_update_info); 5920 5921 if (fail(pm)) 5922 return 0; 5923 # endif 5924 } 5920 5925 } 5921 5926 } … … 5928 5933 png_uint_32 h, w; 5929 5934 5930 for (h=1; h<=16; h+=hinc[bdlo]) for (w=1; w<=16; w+=winc[bdlo]) 5931 { 5932 # ifdef PNG_READ_INTERLACING_SUPPORTED 5933 /* Test with pngvalid generated interlaced images first; we have 5934 * already verify these are ok (unless pngvalid has self-consistent 5935 * read/write errors, which is unlikely), so this detects errors in the 5936 * read side first: 5937 */ 5938 # if CAN_WRITE_INTERLACE 5939 standard_test(&pm->this, FILEID(colour_type, DEPTH(bdlo), 0/*palette*/, 5940 PNG_INTERLACE_ADAM7, w, h, 1), 0/*do_interlace*/, 5941 pm->use_update_info); 5942 5943 if (fail(pm)) 5944 return 0; 5945 # endif 5946 # endif /* READ_INTERLACING */ 5947 5948 # ifdef PNG_WRITE_INTERLACING_SUPPORTED 5949 /* Test the libpng write side against the pngvalid read side: */ 5950 standard_test(&pm->this, FILEID(colour_type, DEPTH(bdlo), 0/*palette*/, 5951 PNG_INTERLACE_ADAM7, w, h, 0), 1/*do_interlace*/, 5952 pm->use_update_info); 5953 5954 if (fail(pm)) 5955 return 0; 5956 # endif 5957 5958 # ifdef PNG_READ_INTERLACING_SUPPORTED 5959 # ifdef PNG_WRITE_INTERLACING_SUPPORTED 5960 /* Test both together: */ 5961 standard_test(&pm->this, FILEID(colour_type, DEPTH(bdlo), 0/*palette*/, 5962 PNG_INTERLACE_ADAM7, w, h, 0), 0/*do_interlace*/, 5963 pm->use_update_info); 5964 5965 if (fail(pm)) 5966 return 0; 5967 # endif 5968 # endif /* READ_INTERLACING */ 5935 for (h=1; h<=16; h+=hinc[bdlo]) 5936 { 5937 for (w=1; w<=16; w+=winc[bdlo]) 5938 { 5939 # ifdef PNG_READ_INTERLACING_SUPPORTED 5940 /* Test with pngvalid generated interlaced images first; we have 5941 * already verify these are ok (unless pngvalid has self-consistent 5942 * read/write errors, which is unlikely), so this detects errors in 5943 * the read side first: 5944 */ 5945 # if CAN_WRITE_INTERLACE 5946 standard_test(&pm->this, FILEID(colour_type, DEPTH(bdlo), 5947 0/*palette*/, PNG_INTERLACE_ADAM7, w, h, 1), 0/*do_interlace*/, 5948 pm->use_update_info); 5949 5950 if (fail(pm)) 5951 return 0; 5952 # endif 5953 # endif /* READ_INTERLACING */ 5954 5955 # ifdef PNG_WRITE_INTERLACING_SUPPORTED 5956 /* Test the libpng write side against the pngvalid read side: */ 5957 standard_test(&pm->this, FILEID(colour_type, DEPTH(bdlo), 5958 0/*palette*/, PNG_INTERLACE_ADAM7, w, h, 0), 1/*do_interlace*/, 5959 pm->use_update_info); 5960 5961 if (fail(pm)) 5962 return 0; 5963 # endif 5964 5965 # ifdef PNG_READ_INTERLACING_SUPPORTED 5966 # ifdef PNG_WRITE_INTERLACING_SUPPORTED 5967 /* Test both together: */ 5968 standard_test(&pm->this, FILEID(colour_type, DEPTH(bdlo), 5969 0/*palette*/, PNG_INTERLACE_ADAM7, w, h, 0), 0/*do_interlace*/, 5970 pm->use_update_info); 5971 5972 if (fail(pm)) 5973 return 0; 5974 # endif 5975 # endif /* READ_INTERLACING */ 5976 } 5969 5977 } 5970 5978 } … … 6712 6720 const char *name, double digitization_error) 6713 6721 { 6714 /* Compare the scaled, digit zed, values of our local calculation (in+-err)6722 /* Compare the scaled, digitized, values of our local calculation (in+-err) 6715 6723 * with the digitized values libpng produced; 'sample_depth' is the actual 6716 6724 * digitization depth of the libpng output colors (the bit depth except for … … 7636 7644 else 7637 7645 { 7638 /* The default (built in) coeff cients, as above: */7646 /* The default (built in) coefficients, as above: */ 7639 7647 # if PNG_LIBPNG_VER < 10700 7640 7648 data.red_coefficient = 6968 / 32768.; … … 9058 9066 image_transform_test_counter(png_uint_32 counter, unsigned int max) 9059 9067 { 9060 /* Test the list to see if there is any point contin ing, given a current9068 /* Test the list to see if there is any point continuing, given a current 9061 9069 * counter and a 'max' value. 9062 9070 */ … … 10650 10658 unsigned int i, j; 10651 10659 10652 for (i=0; i<pm->ngamma_tests; ++i) for (j=0; j<pm->ngamma_tests; ++j) 10653 if (i != j) 10660 for (i=0; i<pm->ngamma_tests; ++i) 10661 { 10662 for (j=0; j<pm->ngamma_tests; ++j) 10654 10663 { 10655 gamma_transform_test(pm, colour_type, bit_depth, palette_number, 10656 pm->interlace_type, 1/pm->gammas[i], pm->gammas[j], 0/*sBIT*/, 10657 pm->use_input_precision, 0 /*do not scale16*/); 10658 10659 if (fail(pm)) 10660 return; 10664 if (i != j) 10665 { 10666 gamma_transform_test(pm, colour_type, bit_depth, palette_number, 10667 pm->interlace_type, 1/pm->gammas[i], pm->gammas[j], 10668 0/*sBIT*/, pm->use_input_precision, 0/*do not scale16*/); 10669 10670 if (fail(pm)) 10671 return; 10672 } 10661 10673 } 10674 } 10662 10675 } 10663 10676 } … … 10688 10701 unsigned int j; 10689 10702 10690 for (j=0; j<pm->ngamma_tests; ++j) if (i != j)10703 for (j=0; j<pm->ngamma_tests; ++j) 10691 10704 { 10692 gamma_transform_test(pm, colour_type, bit_depth, npalette, 10693 pm->interlace_type, 1/pm->gammas[i], pm->gammas[j], 10694 sbit, pm->use_input_precision_sbit, 0 /*scale16*/); 10695 10696 if (fail(pm)) 10697 return; 10705 if (i != j) 10706 { 10707 gamma_transform_test(pm, colour_type, bit_depth, npalette, 10708 pm->interlace_type, 1/pm->gammas[i], pm->gammas[j], 10709 sbit, pm->use_input_precision_sbit, 0 /*scale16*/); 10710 10711 if (fail(pm)) 10712 return; 10713 } 10698 10714 } 10699 10715 } … … 10947 10963 10948 10964 /* Don't skip the i==j case here - it's relevant. */ 10949 for (i=0; i<pm->ngamma_tests; ++i) for (j=0; j<pm->ngamma_tests; ++j) 10950 { 10951 gamma_composition_test(pm, colour_type, bit_depth, palette_number, 10952 pm->interlace_type, 1/pm->gammas[i], pm->gammas[j], 10953 pm->use_input_precision, do_background, expand_16); 10954 10955 if (fail(pm)) 10956 return; 10965 for (i=0; i<pm->ngamma_tests; ++i) 10966 { 10967 for (j=0; j<pm->ngamma_tests; ++j) 10968 { 10969 gamma_composition_test(pm, colour_type, bit_depth, palette_number, 10970 pm->interlace_type, 1/pm->gammas[i], pm->gammas[j], 10971 pm->use_input_precision, do_background, expand_16); 10972 10973 if (fail(pm)) 10974 return; 10975 } 10957 10976 } 10958 10977 } … … 11057 11076 11058 11077 if (summary) 11059 summarize_gamma_errors(pm, 0/*who*/, 1/*low bit depth*/, 1/*indexed*/);11078 summarize_gamma_errors(pm, NULL/*who*/, 1/*low bit depth*/, 1/*indexed*/); 11060 11079 11061 11080 if (fail(pm)) … … 11183 11202 int x, y; 11184 11203 ++pass; 11185 for (y=0; y<8; ++y) for (x=0; x<8; ++x) if (adam7[y][x] == pass) 11186 return y; 11204 for (y=0; y<8; ++y) 11205 for (x=0; x<8; ++x) 11206 if (adam7[y][x] == pass) 11207 return y; 11187 11208 return 0xf; 11188 11209 } … … 11193 11214 int x, y; 11194 11215 ++pass; 11195 for (x=0; x<8; ++x) for (y=0; y<8; ++y) if (adam7[y][x] == pass) 11196 return x; 11216 for (x=0; x<8; ++x) 11217 for (y=0; y<8; ++y) 11218 if (adam7[y][x] == pass) 11219 return x; 11197 11220 return 0xf; 11198 11221 } … … 11203 11226 int x, y, base=(-1), inc=8; 11204 11227 ++pass; 11205 for (y=0; y<8; ++y) for (x=0; x<8; ++x) if (adam7[y][x] == pass) 11206 { 11207 if (base == (-1)) 11208 base = y; 11209 else if (base == y) 11210 {} 11211 else if (inc == y-base) 11212 base=y; 11213 else if (inc == 8) 11214 inc = y-base, base=y; 11215 else if (inc != y-base) 11216 return 0xff; /* error - more than one 'inc' value! */ 11228 for (y=0; y<8; ++y) 11229 { 11230 for (x=0; x<8; ++x) 11231 { 11232 if (adam7[y][x] == pass) 11233 { 11234 if (base == (-1)) 11235 base = y; 11236 else if (base == y) 11237 {} 11238 else if (inc == y-base) 11239 base=y; 11240 else if (inc == 8) 11241 inc = y-base, base=y; 11242 else if (inc != y-base) 11243 return 0xff; /* error - more than one 'inc' value! */ 11244 } 11245 } 11217 11246 } 11218 11247 … … 11237 11266 int x, y, base=(-1), inc=8; 11238 11267 ++pass; 11239 for (x=0; x<8; ++x) for (y=0; y<8; ++y) if (adam7[y][x] == pass) 11240 { 11241 if (base == (-1)) 11242 base = x; 11243 else if (base == x) 11244 {} 11245 else if (inc == x-base) 11246 base=x; 11247 else if (inc == 8) 11248 inc = x-base, base=x; 11249 else if (inc != x-base) 11250 return 0xff; /* error - more than one 'inc' value! */ 11268 for (x=0; x<8; ++x) 11269 { 11270 for (y=0; y<8; ++y) 11271 { 11272 if (adam7[y][x] == pass) 11273 { 11274 if (base == (-1)) 11275 base = x; 11276 else if (base == x) 11277 {} 11278 else if (inc == x-base) 11279 base=x; 11280 else if (inc == 8) 11281 inc = x-base, base=x; 11282 else if (inc != x-base) 11283 return 0xff; /* error - more than one 'inc' value! */ 11284 } 11285 } 11251 11286 } 11252 11287 … … 11312 11347 y &= 7; 11313 11348 ++pass; 11314 for (x=0; x<8; ++x) if (adam7[y][x] == pass) 11315 return 1; 11349 for (x=0; x<8; ++x) 11350 if (adam7[y][x] == pass) 11351 return 1; 11316 11352 11317 11353 return 0; … … 11325 11361 x &= 7; 11326 11362 ++pass; 11327 for (y=0; y<8; ++y) if (adam7[y][x] == pass) 11328 return 1; 11363 for (y=0; y<8; ++y) 11364 if (adam7[y][x] == pass) 11365 return 1; 11329 11366 11330 11367 return 0; … … 11340 11377 height &= 7; 11341 11378 ++pass; 11342 for (y=0; y<8; ++y) for (x=0; x<8; ++x) if (adam7[y][x] == pass) 11343 { 11344 rows += tiles; 11345 if (y < height) ++rows; 11346 break; /* i.e. break the 'x', column, loop. */ 11379 for (y=0; y<8; ++y) 11380 { 11381 for (x=0; x<8; ++x) 11382 { 11383 if (adam7[y][x] == pass) 11384 { 11385 rows += tiles; 11386 if (y < height) ++rows; 11387 break; /* i.e. break the 'x', column, loop. */ 11388 } 11389 } 11347 11390 } 11348 11391 … … 11359 11402 width &= 7; 11360 11403 ++pass; 11361 for (x=0; x<8; ++x) for (y=0; y<8; ++y) if (adam7[y][x] == pass) 11362 { 11363 cols += tiles; 11364 if (x < width) ++cols; 11365 break; /* i.e. break the 'y', row, loop. */ 11404 for (x=0; x<8; ++x) 11405 { 11406 for (y=0; y<8; ++y) 11407 { 11408 if (adam7[y][x] == pass) 11409 { 11410 cols += tiles; 11411 if (x < width) ++cols; 11412 break; /* i.e. break the 'y', row, loop. */ 11413 } 11414 } 11366 11415 } 11367 11416 … … 11720 11769 /* The following allows results to pass if they correspond to anything in the 11721 11770 * transformed range [input-.5,input+.5]; this is is required because of the 11722 * way libpng treat es the 16_TO_8 flag when building the gamma tables in11771 * way libpng treats the 16_TO_8 flag when building the gamma tables in 11723 11772 * releases up to 1.6.0. 11724 11773 * … … 11811 11860 else if (strncmp(*argv, "--transform-disable=", 11812 11861 sizeof "--transform-disable") == 0) 11813 11862 { 11814 11863 pm.test_transform = 1; 11815 11864 transform_disable(*argv + sizeof "--transform-disable"); 11816 11865 } 11817 11866 11818 11867 else if (strncmp(*argv, "--transform-enable=", 11819 11868 sizeof "--transform-enable") == 0) 11820 11869 { 11821 11870 pm.test_transform = 1; 11822 11871 transform_enable(*argv + sizeof "--transform-enable"); 11823 11872 } 11824 11873 #endif /* PNG_READ_TRANSFORMS_SUPPORTED */ 11825 11874 11826 11875 else if (strcmp(*argv, "--gamma") == 0) 11827 11876 { 11828 11877 /* Just do two gamma tests here (2.2 and linear) for speed: */ 11829 11878 pm.ngamma_tests = 2U; … … 11834 11883 pm.test_gamma_background = 1; /* composition */ 11835 11884 pm.test_gamma_alpha_mode = 1; 11836 11885 } 11837 11886 11838 11887 else if (strcmp(*argv, "--nogamma") == 0) -
trunk/src/libs/libpng-1.6.42/contrib/libtests/readpng.c
r96425 r103316 1 1 2 /* readpng.c 2 3 * 3 4 * Copyright (c) 2013 John Cunningham Bowler 4 *5 * Last changed in libpng 1.6.1 [March 28, 2013]6 5 * 7 6 * This code is released under the libpng license. -
trunk/src/libs/libpng-1.6.42/contrib/libtests/tarith.c
r96425 r103316 2 2 /* tarith.c 3 3 * 4 * Copyright (c) 2021 Cosmin Truta 4 5 * Copyright (c) 2011-2013 John Cunningham Bowler 5 *6 * Last changed in libpng 1.6.0 [February 14, 2013]7 6 * 8 7 * This code is released under the libpng license. … … 89 88 90 89 while (--argc > 0) 90 { 91 91 if (strcmp(*++argv, "-a") == 0) 92 92 showall = 1; … … 106 106 return 1; 107 107 } 108 } 108 109 109 110 do … … 131 132 if (buffer[precision+7] != 71) 132 133 { 133 fprintf(stderr, "%g[%d] -> '%s'[%lu] buffer overflow\n", test,134 precision, buffer, (unsigned long)strlen(buffer));134 fprintf(stderr, "%g[%d] -> '%s'[%lu] buffer overflow\n", 135 test, precision, buffer, (unsigned long)strlen(buffer)); 135 136 failed = 1; 136 137 } … … 147 148 test < 0 && strcmp(buffer, "-inf")) 148 149 { 149 fprintf(stderr, "%g[%d] -> '%s' but expected 'inf'\n", test,150 precision, buffer);150 fprintf(stderr, "%g[%d] -> '%s' but expected 'inf'\n", 151 test, precision, buffer); 151 152 failed = 1; 152 153 } … … 155 156 buffer[index] != 0) 156 157 { 157 fprintf(stderr, "%g[%d] -> '%s' but has bad format ('%c')\n", test,158 precision, buffer, buffer[index]);158 fprintf(stderr, "%g[%d] -> '%s' but has bad format ('%c')\n", 159 test, precision, buffer, buffer[index]); 159 160 failed = 1; 160 161 } … … 188 189 double out = atof(buffer); 189 190 double change = fabs((out - test)/test); 190 double allow = .5 /pow(10,191 double allow = .5 / pow(10, 191 192 (precision >= DBL_DIG) ? DBL_DIG-1 : precision-1); 192 193 … … 258 259 while (--count); 259 260 260 printf("Tested %d finite values, %d non-finite, %d OK (%d failed) %d minor " 261 "arithmetic errors\n", finite, nonfinite, ok, failcount, minorarith); 261 printf("Tested %d finite values, %d non-finite, %d OK (%d failed) " 262 "%d minor arithmetic errors\n", 263 finite, nonfinite, ok, failcount, minorarith); 262 264 printf(" Error with >=%d digit precision %.2f%%\n", DBL_DIG, max_abs); 263 265 printf(" Error with < %d digit precision %.2f%%\n", DBL_DIG, max); … … 372 374 if (index != 0 && index != 1) 373 375 { 374 fprintf(stderr, "%s: read beyond end of string (%lu)\n", co->number,375 (unsigned long)index);376 fprintf(stderr, "%s: read beyond end of string (%lu)\n", 377 co->number, (unsigned long)index); 376 378 return 0; 377 379 } … … 504 506 { 505 507 fprintf(stderr, 506 "%s: character '%c' [0x%.2x] changed number validity\n", co->number,507 c h, ch);508 "%s: character '%c' [0x%.2x] changed number validity\n", 509 co->number, ch, ch); 508 510 return 0; 509 511 } … … 522 524 int ch; 523 525 524 if (c.cnumber+4 < sizeof co->number) for (ch=0; ch<256; ++ch) 525 { 526 if (!check_one_character(co, c, ch)) 527 return 0; 526 if (c.cnumber+4 < sizeof co->number) 527 { 528 for (ch=0; ch<256; ++ch) 529 { 530 if (!check_one_character(co, c, ch)) 531 return 0; 532 } 528 533 } 529 534 … … 540 545 if (c.cnumber+4 < sizeof co->number && c.limit >= 0) 541 546 { 542 if (c.limit > 0) for (i=0; tests[i]; ++i) 543 { 544 if (!check_one_character(co, c, tests[i])) 545 return 0; 547 if (c.limit > 0) 548 { 549 for (i=0; tests[i]; ++i) 550 { 551 if (!check_one_character(co, c, tests[i])) 552 return 0; 553 } 546 554 } 547 555 … … 617 625 618 626 while (--argc > 0) 619 620 621 622 627 { 628 fprintf(stderr, "unknown argument %s\n", *++argv); 629 return 1; 630 } 623 631 624 632 /* Find out about the random number generator. */ … … 688 696 689 697 if (verbose) 690 fprintf(stderr, "TEST %d * %d / %d -> %lld (%s)\n", a, times, div,691 fp, ok ? "ok" : "overflow");698 fprintf(stderr, "TEST %d * %d / %d -> %lld (%s)\n", 699 a, times, div, fp, ok ? "ok" : "overflow"); 692 700 693 701 ++tested; … … 696 704 ++error; 697 705 if (ok) 698 fprintf(stderr, "%d * %d / %d -> overflow (expected %lld)\n", a,699 times, div, fp);706 fprintf(stderr, "%d * %d / %d -> overflow (expected %lld)\n", 707 a, times, div, fp); 700 708 else 701 fprintf(stderr, "%d * %d / %d -> %d (expected overflow %lld)\n", a,702 times, div, result, fp);709 fprintf(stderr, "%d * %d / %d -> %d (expected overflow %lld)\n", 710 a, times, div, result, fp); 703 711 } 704 712 else if (ok && result != fpround) 705 713 { 706 714 ++error; 707 fprintf(stderr, "%d * %d / %d -> %d not %lld\n", a, times, div, result,708 fp);715 fprintf(stderr, "%d * %d / %d -> %d not %lld\n", 716 a, times, div, result, fp); 709 717 } 710 718 else … … 722 730 while (--count > 0); 723 731 724 printf("%d tests including %d overflows, %d passed, %d failed (%d 64-bit"725 " errors)\n", tested, overflow, passed, error, error64);732 printf("%d tests including %d overflows, %d passed, %d failed " 733 "(%d 64-bit errors)\n", tested, overflow, passed, error, error64); 726 734 return 0; 727 735 } … … 822 830 if (error > .68) /* By experiment error is less than .68 */ 823 831 { 824 fprintf(stderr, "16-bit log error: %d: got %u, expected %f" 825 " error: %f\n", i, png_log16bit(i), correct, error); 832 fprintf(stderr, 833 "16-bit log error: %d: got %u, expected %f error: %f\n", 834 i, png_log16bit(i), correct, error); 826 835 } 827 836 } … … 842 851 if (fabs(error) > 1883) /* By experiment. */ 843 852 { 844 fprintf(stderr, "32-bit exp error: %d: got %u, expected %f" 845 " error: %f\n", i, png_exp(i), correct, error); 853 fprintf(stderr, 854 "32-bit exp error: %d: got %u, expected %f error: %f\n", 855 i, png_exp(i), correct, error); 846 856 } 847 857 } … … 860 870 if (fabs(error) > .50002) /* By experiment */ 861 871 { 862 fprintf(stderr, "8-bit exp error: %d: got %u, expected %f" 863 " error: %f\n", i, png_exp8bit(i), correct, error); 872 fprintf(stderr, 873 "8-bit exp error: %d: got %u, expected %f error: %f\n", 874 i, png_exp8bit(i), correct, error); 864 875 } 865 876 } … … 878 889 if (fabs(error) > .524) /* By experiment */ 879 890 { 880 fprintf(stderr, "16-bit exp error: %d: got %u, expected %f" 881 " error: %f\n", i, png_exp16bit(i), correct, error); 891 fprintf(stderr, 892 "16-bit exp error: %d: got %u, expected %f error: %f\n", 893 i, png_exp16bit(i), correct, error); 882 894 } 883 895 } … … 941 953 /**************************** VALIDATION TESTS ********************************/ 942 954 /* Various validation routines are included herein, they require some 943 * definition for png_warning and png_error, se etings of VALIDATION:955 * definition for png_warning and png_error, settings of VALIDATION: 944 956 * 945 957 * 1: validates the ASCII to floating point conversions -
trunk/src/libs/libpng-1.6.42/contrib/libtests/timepng.c
r96425 r103316 1 1 2 /* timepng.c 2 3 * 3 4 * Copyright (c) 2013,2016 John Cunningham Bowler 4 *5 * Last changed in libpng 1.6.22 [May 26, 2016]6 5 * 7 6 * This code is released under the libpng license. … … 529 528 } 530 529 531 else if (nfiles == 0) /* Read from stdin witho out --dissemble */530 else if (nfiles == 0) /* Read from stdin without --dissemble */ 532 531 { 533 532 char filename[FILENAME_MAX+1]; -
trunk/src/libs/libpng-1.6.42/contrib/mips-msa/linux.c
r96425 r103316 1 1 2 /* contrib/mips-msa/linux.c 2 3 * 4 * Copyright (c) 2020-2023 Cosmin Truta 3 5 * Copyright (c) 2016 Glenn Randers-Pehrson 4 6 * Written by Mandar Sahastrabuddhe, 2016. 5 * Last changed in libpng 1.6.25beta03 [August 29, 2016]7 * Updated by Sui Jingfeng, 2021. 6 8 * 7 9 * This code is released under the libpng license. … … 9 11 * and license in png.h 10 12 * 11 * SEE contrib/mips-msa/README before reporting bugs 13 * On Linux, png_have_msa is implemented by reading the pseudo-file 14 * "/proc/self/auxv". 15 * 16 * See contrib/mips-msa/README before reporting bugs. 12 17 * 13 18 * STATUS: SUPPORTED 14 19 * BUG REPORTS: [email protected] 15 *16 * png_have_msa implemented for Linux by reading the widely available17 * pseudo-file /proc/cpuinfo.18 *19 * This code is strict ANSI-C and is probably moderately portable; it does20 * however use <stdio.h> and it assumes that /proc/cpuinfo is never localized.21 20 */ 22 21 23 #include < stdio.h>24 #include < string.h>22 #include <elf.h> 23 #include <fcntl.h> 25 24 #include <stdlib.h> 25 #include <unistd.h> 26 26 27 27 static int 28 28 png_have_msa(png_structp png_ptr) 29 29 { 30 FILE *f = fopen("/proc/cpuinfo", "rb"); 30 Elf64_auxv_t aux; 31 int fd; 32 int has_msa = 0; 31 33 32 char *string = "msa"; 33 char word[10]; 34 fd = open("/proc/self/auxv", O_RDONLY); 35 if (fd >= 0) 36 { 37 while (read(fd, &aux, sizeof(Elf64_auxv_t)) == sizeof(Elf64_auxv_t)) 38 { 39 if (aux.a_type == AT_HWCAP) 40 { 41 uint64_t hwcap = aux.a_un.a_val; 34 42 35 if (f != NULL) 36 { 37 while(!feof(f)) 38 { 39 int ch = fgetc(f); 40 static int i = 0; 41 42 while(!(ch <= 32)) 43 { 44 word[i++] = ch; 45 ch = fgetc(f); 43 has_msa = (hwcap >> 1) & 1; 44 break; 46 45 } 47 48 int val = strcmp(string, word);49 50 if (val == 0)51 return 1;52 53 i = 0;54 memset(word, 0, 10);55 46 } 56 57 fclose(f); 47 close(fd); 58 48 } 59 49 #ifdef PNG_WARNINGS_SUPPORTED 60 50 else 61 png_warning(png_ptr, "/proc/ cpuinfoopen failed");51 png_warning(png_ptr, "/proc/self/auxv open failed"); 62 52 #endif 63 return 0; 53 54 return has_msa; 64 55 } -
trunk/src/libs/libpng-1.6.42/contrib/oss-fuzz/README.txt
r96425 r103316 1 Last changed in libpng 1.6.33 [September 28, 2017]2 1 Copyright (c) 2017 Glenn Randers-Pehrson 3 2 -
trunk/src/libs/libpng-1.6.42/contrib/oss-fuzz/build.sh
r96425 r103316 1 1 #!/bin/bash -eu 2 2 3 # Copyright 2017-2018 Glenn Randers-Pehrson 3 4 # Copyright 2016 Google Inc. … … 14 15 # See the License for the specific language governing permissions and 15 16 # limitations under the License. 16 #17 # Last changed in libpng 1.6.35 [July 15, 2018]18 17 # 19 18 # Revisions by Glenn Randers-Pehrson, 2017: -
trunk/src/libs/libpng-1.6.42/contrib/oss-fuzz/libpng_read_fuzzer.cc
r96425 r103316 5 5 // Use of this source code is governed by a BSD-style license that may 6 6 // be found in the LICENSE file https://cs.chromium.org/chromium/src/LICENSE 7 8 // Last changed in libpng 1.6.35 [July 15, 2018]9 7 10 8 // The modifications in 2017 by Glenn Randers-Pehrson include … … 18 16 #include <stddef.h> 19 17 #include <stdint.h> 18 #include <stdlib.h> 20 19 #include <string.h> 21 20 … … 61 60 if (end_info_ptr) 62 61 png_destroy_read_struct(&png_ptr, &info_ptr, &end_info_ptr); 63 else if (info_ptr) 62 else if (info_ptr) 64 63 png_destroy_read_struct(&png_ptr, &info_ptr, nullptr); 65 64 else … … 77 76 buf_state->bytes_left -= length; 78 77 buf_state->data += length; 78 } 79 80 void* limited_malloc(png_structp, png_alloc_size_t size) { 81 // libpng may allocate large amounts of memory that the fuzzer reports as 82 // an error. In order to silence these errors, make libpng fail when trying 83 // to allocate a large amount. This allocator used to be in the Chromium 84 // version of this fuzzer. 85 // This number is chosen to match the default png_user_chunk_malloc_max. 86 if (size > 8000000) 87 return nullptr; 88 89 return malloc(size); 90 } 91 92 void default_free(png_structp, png_voidp ptr) { 93 return free(ptr); 79 94 } 80 95 … … 118 133 return 0; 119 134 } 135 136 // Use a custom allocator that fails for large allocations to avoid OOM. 137 png_set_mem_fn(png_handler.png_ptr, nullptr, limited_malloc, default_free); 120 138 121 139 png_set_crc_action(png_handler.png_ptr, PNG_CRC_QUIET_USE, PNG_CRC_QUIET_USE); -
trunk/src/libs/libpng-1.6.42/contrib/pngminus/CHANGES.txt
r96425 r103316 4 4 5 5 version 1.0 - 1999.10.15 - First version. 6 1.1 - 2015.07.29 - Fix edleaks (Glenn Randers-Pehrson)6 1.1 - 2015.07.29 - Fix memory leaks (Glenn Randers-Pehrson) 7 7 1.2 - 2017.04.22 - Add buffer-size check 8 8 1.3 - 2017.08.24 - Fix potential overflow in buffer-size check … … 12 12 1.6 - 2018.08.05 - Improve portability and fix style (Cosmin Truta) 13 13 1.7 - 2019.01.22 - Change license to MIT (Willem van Schaik) 14 1.8 - 2024.01.09 - Fix, improve, modernize (Cosmin Truta) -
trunk/src/libs/libpng-1.6.42/contrib/pngminus/CMakeLists.txt
r96425 r103316 1 cmake_minimum_required(VERSION 3.1) 2 cmake_policy(VERSION 3.1) 1 # Copyright (c) 2018-2024 Cosmin Truta 2 # 3 # This software is released under the MIT license. For conditions of 4 # distribution and use, see the LICENSE file part of this package. 5 6 cmake_minimum_required(VERSION 3.5) 3 7 4 8 project(PNGMINUS C) 5 9 6 option(PNGMINUS_USE_STATIC_LIBRARIES "Use the static library builds" ON) 10 option(PNGMINUS_USE_SYSTEM_PNG 11 "Use the libpng build found in the system" OFF) 7 12 8 # libpng 9 add_subdirectory(../.. libpng) 10 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../..) 11 include_directories(${CMAKE_CURRENT_BINARY_DIR}/libpng) 12 if(PNGMINUS_USE_STATIC_LIBRARIES) 13 set(PNGMINUS_PNG_LIBRARY png_static) 13 add_executable(png2pnm png2pnm.c) 14 add_executable(pnm2png pnm2png.c) 15 16 if(PNGMINUS_USE_SYSTEM_PNG) 17 # Use the system libpng. 18 find_package(PNG REQUIRED) 19 target_link_libraries(png2pnm PRIVATE PNG::PNG) 20 target_link_libraries(pnm2png PRIVATE PNG::PNG) 14 21 else() 15 set(PNGMINUS_PNG_LIBRARY png) 22 # Build and use the internal libpng. 23 # Configure libpng for static linking, to produce single-file executables. 24 set(PNG_STATIC ON 25 CACHE STRING "Build the internal libpng as a static library" FORCE) 26 set(PNG_SHARED OFF 27 CACHE STRING "Build the internal libpng as a shared library" FORCE) 28 set(PNG_FRAMEWORK OFF 29 CACHE STRING "Build the internal libpng as a framework bundle" FORCE) 30 add_subdirectory(../.. libpng) 31 target_include_directories(png2pnm PRIVATE 32 "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../..>" 33 "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/libpng>" 34 ) 35 target_include_directories(pnm2png PRIVATE 36 "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../..>" 37 "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/libpng>" 38 ) 39 target_link_libraries(png2pnm PRIVATE png_static) 40 target_link_libraries(pnm2png PRIVATE png_static) 16 41 endif() 17 18 # png2pnm19 add_executable(png2pnm png2pnm.c)20 target_link_libraries(png2pnm ${PNGMINUS_PNG_LIBRARY})21 22 # pnm2png23 add_executable(pnm2png pnm2png.c)24 target_link_libraries(pnm2png ${PNGMINUS_PNG_LIBRARY}) -
trunk/src/libs/libpng-1.6.42/contrib/pngminus/LICENSE.txt
r96425 r103316 17 17 implied, including but not limited to the warranties of merchantability, 18 18 fitness for a particular purpose and noninfringement. In no event shall the 19 authors or copy ight holders be liable for any claim, damages or other19 authors or copyright holders be liable for any claim, damages or other 20 20 liability, whether in an action of contract, tort or otherwise, arising from, 21 21 out of or in connection with the software or the use or other dealings in the -
trunk/src/libs/libpng-1.6.42/contrib/pngminus/png2pnm.c
r96425 r103316 15 15 #endif 16 16 #ifndef TRUE 17 #define TRUE ( BOOL) 117 #define TRUE ((BOOL) 1) 18 18 #endif 19 19 #ifndef FALSE 20 #define FALSE (BOOL) 0 21 #endif 22 23 /* make png2pnm verbose so we can find problems (needs to be before png.h) */ 24 #ifndef PNG_DEBUG 25 #define PNG_DEBUG 0 20 #define FALSE ((BOOL) 0) 26 21 #endif 27 22 … … 34 29 BOOL png2pnm (FILE *png_file, FILE *pnm_file, FILE *alpha_file, 35 30 BOOL raw, BOOL alpha); 31 BOOL do_png2pnm (png_struct *png_ptr, png_info *info_ptr, 32 FILE *pnm_file, FILE *alpha_file, 33 BOOL raw, BOOL alpha); 36 34 37 35 /* … … 44 42 FILE *fp_wr = stdout; 45 43 FILE *fp_al = NULL; 44 const char *fname_wr = NULL; 45 const char *fname_al = NULL; 46 46 BOOL raw = TRUE; 47 47 BOOL alpha = FALSE; 48 48 int argi; 49 int ret; 49 50 50 51 for (argi = 1; argi < argc; argi++) … … 65 66 if ((fp_al = fopen (argv[argi], "wb")) == NULL) 66 67 { 68 fname_al = argv[argi]; 67 69 fprintf (stderr, "PNM2PNG\n"); 68 70 fprintf (stderr, "Error: cannot create alpha-channel file %s\n", … … 95 97 else if (fp_wr == stdout) 96 98 { 99 fname_wr = argv[argi]; 97 100 if ((fp_wr = fopen (argv[argi], "wb")) == NULL) 98 101 { … … 120 123 121 124 /* call the conversion program itself */ 122 if (png2pnm (fp_rd, fp_wr, fp_al, raw, alpha) == FALSE) 123 { 124 fprintf (stderr, "PNG2PNM\n"); 125 fprintf (stderr, "Error: unsuccessful conversion of PNG-image\n"); 126 exit (1); 127 } 125 ret = png2pnm (fp_rd, fp_wr, fp_al, raw, alpha); 128 126 129 127 /* close input file */ … … 134 132 if (alpha) 135 133 fclose (fp_al); 134 135 if (!ret) 136 { 137 fprintf (stderr, "PNG2PNM\n"); 138 fprintf (stderr, "Error: unsuccessful conversion of PNG-image\n"); 139 if (fname_wr) 140 remove (fname_wr); /* no broken output file shall remain behind */ 141 if (fname_al) 142 remove (fname_al); /* ditto */ 143 exit (1); 144 } 136 145 137 146 return 0; … … 164 173 BOOL raw, BOOL alpha) 165 174 { 166 png_struct *png_ptr = NULL; 167 png_info *info_ptr = NULL; 168 png_byte buf[8]; 169 png_byte *png_pixels = NULL; 170 png_byte **row_pointers = NULL; 171 png_byte *pix_ptr = NULL; 172 png_uint_32 row_bytes; 173 175 png_struct *png_ptr; 176 png_info *info_ptr; 177 BOOL ret; 178 179 /* initialize the libpng context for reading from png_file */ 180 181 png_ptr = png_create_read_struct (png_get_libpng_ver(NULL), 182 NULL, NULL, NULL); 183 if (!png_ptr) 184 return FALSE; /* out of memory */ 185 186 info_ptr = png_create_info_struct (png_ptr); 187 if (!info_ptr) 188 { 189 png_destroy_read_struct (&png_ptr, NULL, NULL); 190 return FALSE; /* out of memory */ 191 } 192 193 if (setjmp (png_jmpbuf (png_ptr))) 194 { 195 png_destroy_read_struct (&png_ptr, &info_ptr, NULL); 196 return FALSE; /* generic libpng error */ 197 } 198 199 png_init_io (png_ptr, png_file); 200 201 /* do the actual conversion */ 202 ret = do_png2pnm (png_ptr, info_ptr, pnm_file, alpha_file, raw, alpha); 203 204 /* clean up the libpng structures and their internally-managed data */ 205 png_destroy_read_struct (&png_ptr, &info_ptr, NULL); 206 207 return ret; 208 } 209 210 /* 211 * do_png2pnm - does the conversion in a fully-initialized libpng context 212 */ 213 214 BOOL do_png2pnm (png_struct *png_ptr, png_info *info_ptr, 215 FILE *pnm_file, FILE *alpha_file, 216 BOOL raw, BOOL alpha) 217 { 218 png_byte **row_pointers; 219 png_byte *pix_ptr; 174 220 png_uint_32 width; 175 221 png_uint_32 height; … … 178 224 int color_type; 179 225 int alpha_present; 180 int row, col; 181 int ret; 182 int i; 226 png_uint_32 row, col, i; 183 227 long dep_16; 184 228 185 /* read and check signature in PNG file */ 186 ret = fread (buf, 1, 8, png_file); 187 if (ret != 8) 188 return FALSE; 189 190 ret = png_sig_cmp (buf, 0, 8); 191 if (ret != 0) 192 return FALSE; 193 194 /* create png and info structures */ 195 196 png_ptr = png_create_read_struct (png_get_libpng_ver(NULL), 197 NULL, NULL, NULL); 198 if (!png_ptr) 199 return FALSE; /* out of memory */ 200 201 info_ptr = png_create_info_struct (png_ptr); 202 if (!info_ptr) 203 { 204 png_destroy_read_struct (&png_ptr, NULL, NULL); 205 return FALSE; /* out of memory */ 206 } 207 208 if (setjmp (png_jmpbuf (png_ptr))) 209 { 210 png_destroy_read_struct (&png_ptr, &info_ptr, NULL); 211 return FALSE; 212 } 213 214 /* set up the input control for C streams */ 215 png_init_io (png_ptr, png_file); 216 png_set_sig_bytes (png_ptr, 8); /* we already read the 8 signature bytes */ 217 218 /* read the file information */ 219 png_read_info (png_ptr, info_ptr); 220 221 /* get size and bit-depth of the PNG-image */ 222 png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 223 NULL, NULL, NULL); 224 225 /* set-up the transformations */ 226 227 /* transform paletted images into full-color rgb */ 228 if (color_type == PNG_COLOR_TYPE_PALETTE) 229 png_set_expand (png_ptr); 230 /* expand images to bit-depth 8 (only applicable for grayscale images) */ 231 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) 232 png_set_expand (png_ptr); 233 /* transform transparency maps into full alpha-channel */ 234 if (png_get_valid (png_ptr, info_ptr, PNG_INFO_tRNS)) 235 png_set_expand (png_ptr); 229 /* set up the image transformations that are necessary for the PNM format */ 230 231 /* set up (if applicable) the expansion of paletted images to full-color rgb, 232 * and the expansion of transparency maps to full alpha-channel */ 233 png_set_expand (png_ptr); 234 235 /* set up (if applicable) the expansion of grayscale images to bit-depth 8 */ 236 png_set_expand_gray_1_2_4_to_8 (png_ptr); 236 237 237 238 #ifdef NJET … … 243 244 color_type == PNG_COLOR_TYPE_GRAY_ALPHA) 244 245 png_set_gray_to_rgb (png_ptr); 245 /* only if file has a file gamma, we do a correction */ 246 if (png_get_gAMA (png_ptr, info_ptr, &file_gamma)) 247 png_set_gamma (png_ptr, (double) 2.2, file_gamma); 248 #endif 249 250 /* all transformations have been registered; now update info_ptr data, 251 * get rowbytes and channels, and allocate image memory */ 252 253 png_read_update_info (png_ptr, info_ptr); 254 255 /* get the new color-type and bit-depth (after expansion/stripping) */ 246 /* if the PNG image has a gAMA chunk then gamma-correct the output image */ 247 { 248 double file_gamma; 249 if (png_get_gAMA (png_ptr, info_ptr, &file_gamma)) 250 png_set_gamma (png_ptr, (double) 2.2, file_gamma); 251 } 252 #endif 253 254 /* read the image file, with all of the above image transforms applied */ 255 png_read_png (png_ptr, info_ptr, 0, NULL); 256 257 /* get the image size, bit-depth and color-type */ 256 258 png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 257 259 NULL, NULL, NULL); 258 260 259 /* check for 16-bit files */ 260 if (bit_depth == 16) 261 { 262 raw = FALSE; 263 #if defined(O_BINARY) && (O_BINARY != 0) 264 setmode (fileno (pnm_file), O_BINARY); 265 #endif 266 } 267 268 /* calculate new number of channels and store alpha-presence */ 261 /* calculate the number of channels and store alpha-presence */ 269 262 if (color_type == PNG_COLOR_TYPE_GRAY) 270 263 channels = 1; … … 283 276 { 284 277 fprintf (stderr, "PNG2PNM\n"); 285 fprintf (stderr, "Error: PNG-file doesn't contain alpha channel\n"); 286 exit (1); 287 } 288 289 /* row_bytes is the width x number of channels x (bit-depth / 8) */ 290 row_bytes = png_get_rowbytes (png_ptr, info_ptr); 291 292 if ((row_bytes == 0) || 293 ((size_t) height > (size_t) (-1) / (size_t) row_bytes)) 294 { 295 /* too big */ 296 png_destroy_read_struct (&png_ptr, &info_ptr, NULL); 278 fprintf (stderr, "Warning: no alpha channel in PNG file\n"); 297 279 return FALSE; 298 280 } 299 if ((png_pixels = (png_byte *) 300 malloc ((size_t) row_bytes * (size_t) height)) == NULL) 301 { 302 png_destroy_read_struct (&png_ptr, &info_ptr, NULL); 303 return FALSE; 304 } 305 306 if ((row_pointers = (png_byte **) 307 malloc ((size_t) height * sizeof (png_byte *))) == NULL) 308 { 309 png_destroy_read_struct (&png_ptr, &info_ptr, NULL); 310 free (png_pixels); 311 return FALSE; 312 } 313 314 /* set the individual row_pointers to point at the correct offsets */ 315 for (i = 0; i < ((int) height); i++) 316 row_pointers[i] = png_pixels + i * row_bytes; 317 318 /* now we can go ahead and just read the whole image */ 319 png_read_image (png_ptr, row_pointers); 320 321 /* read rest of file, and get additional chunks in info_ptr - REQUIRED */ 322 png_read_end (png_ptr, info_ptr); 323 324 /* clean up after the read, and free any memory allocated - REQUIRED */ 325 png_destroy_read_struct (&png_ptr, &info_ptr, NULL); 281 282 /* get address of internally-allocated image data */ 283 row_pointers = png_get_rows (png_ptr, info_ptr); 326 284 327 285 /* write header of PNM file */ … … 354 312 355 313 /* write data to PNM file */ 356 pix_ptr = png_pixels; 357 358 for (row = 0; row < (int) height; row++)359 {360 for (col = 0; col < (int)width; col++)361 { 362 for (i = 0; i < ( channels - alpha_present); i++)314 315 for (row = 0; row < height; row++) 316 { 317 pix_ptr = row_pointers[row]; 318 for (col = 0; col < width; col++) 319 { 320 for (i = 0; i < (png_uint_32) (channels - alpha_present); i++) 363 321 { 364 322 if (raw) 365 323 { 366 324 fputc ((int) *pix_ptr++, pnm_file); 325 if (bit_depth == 16) 326 fputc ((int) *pix_ptr++, pnm_file); 367 327 } 368 328 else … … 370 330 if (bit_depth == 16) 371 331 { 372 dep_16 = (long) *pix_ptr++; 373 fprintf (pnm_file, "%ld ", (dep_16 << 8) + ((long) *pix_ptr++)); 332 dep_16 = ((long) *pix_ptr++) << 8; 333 dep_16 += ((long) *pix_ptr++); 334 fprintf (pnm_file, "%ld ", dep_16); 374 335 } 375 336 else … … 383 344 if (!alpha) 384 345 { 385 pix_ptr++; /* alpha */ 346 /* skip the alpha-channel */ 347 pix_ptr++; 386 348 if (bit_depth == 16) 387 349 pix_ptr++; 388 350 } 389 else /* output alpha-channel as pgm file */351 else 390 352 { 353 /* output the alpha-channel as pgm file */ 391 354 if (raw) 392 355 { 393 356 fputc ((int) *pix_ptr++, alpha_file); 357 if (bit_depth == 16) 358 fputc ((int) *pix_ptr++, alpha_file); 394 359 } 395 360 else … … 397 362 if (bit_depth == 16) 398 363 { 399 dep_16 = (long) *pix_ptr++; 400 fprintf (alpha_file, "%ld ", (dep_16 << 8) + (long) *pix_ptr++); 364 dep_16 = ((long) *pix_ptr++) << 8; 365 dep_16 += ((long) *pix_ptr++); 366 fprintf (alpha_file, "%ld ", dep_16); 401 367 } 402 368 else … … 418 384 } /* end for row */ 419 385 420 if (row_pointers != NULL)421 free (row_pointers);422 if (png_pixels != NULL)423 free (png_pixels);424 425 386 return TRUE; 426 427 387 } /* end of source */ -
trunk/src/libs/libpng-1.6.42/contrib/pngminus/pnm2png.c
r96425 r103316 7 7 */ 8 8 9 #include <limits.h> 9 10 #include <stdio.h> 10 11 #include <stdlib.h> … … 15 16 #endif 16 17 #ifndef TRUE 17 #define TRUE ( BOOL) 118 #define TRUE ((BOOL) 1) 18 19 #endif 19 20 #ifndef FALSE 20 #define FALSE (BOOL) 0 21 #endif 22 23 /* make pnm2png verbose so we can find problems (needs to be before png.h) */ 24 #ifndef PNG_DEBUG 25 #define PNG_DEBUG 0 21 #define FALSE ((BOOL) 0) 26 22 #endif 27 23 … … 34 30 BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, 35 31 BOOL interlace, BOOL alpha); 36 void get_token (FILE *pnm_file, char *token_buf, size_t token_buf_size); 37 png_uint_32 get_data (FILE *pnm_file, int depth); 38 png_uint_32 get_value (FILE *pnm_file, int depth); 32 BOOL do_pnm2png (png_struct *png_ptr, png_info *info_ptr, 33 FILE *pnm_file, FILE *alpha_file, 34 BOOL interlace, BOOL alpha); 35 int fscan_pnm_magic (FILE *pnm_file, char *magic_buf, size_t magic_buf_size); 36 int fscan_pnm_token (FILE *pnm_file, char *token_buf, size_t token_buf_size); 37 int fscan_pnm_uint_32 (FILE *pnm_file, png_uint_32 *num_ptr); 38 png_uint_32 get_pnm_data (FILE *pnm_file, int depth); 39 png_uint_32 get_pnm_value (FILE *pnm_file, int depth); 39 40 40 41 /* … … 47 48 FILE *fp_al = NULL; 48 49 FILE *fp_wr = stdout; 50 const char *fname_wr = NULL; 49 51 BOOL interlace = FALSE; 50 52 BOOL alpha = FALSE; 51 53 int argi; 54 int ret; 52 55 53 56 for (argi = 1; argi < argc; argi++) … … 95 98 else if (fp_wr == stdout) 96 99 { 100 fname_wr = argv[argi]; 97 101 if ((fp_wr = fopen (argv[argi], "wb")) == NULL) 98 102 { … … 122 126 123 127 /* call the conversion program itself */ 124 if (pnm2png (fp_rd, fp_wr, fp_al, interlace, alpha) == FALSE) 125 { 126 fprintf (stderr, "PNM2PNG\n"); 127 fprintf (stderr, "Error: unsuccessful converting to PNG-image\n"); 128 exit (1); 129 } 128 ret = pnm2png (fp_rd, fp_wr, fp_al, interlace, alpha); 130 129 131 130 /* close input file */ … … 136 135 if (alpha) 137 136 fclose (fp_al); 137 138 if (!ret) 139 { 140 fprintf (stderr, "PNM2PNG\n"); 141 fprintf (stderr, "Error: unsuccessful converting to PNG-image\n"); 142 if (fname_wr) 143 remove (fname_wr); /* no broken output file shall remain behind */ 144 exit (1); 145 } 138 146 139 147 return 0; … … 164 172 BOOL interlace, BOOL alpha) 165 173 { 166 png_struct *png_ptr = NULL; 167 png_info *info_ptr = NULL; 168 png_byte *png_pixels = NULL; 169 png_byte **row_pointers = NULL; 170 png_byte *pix_ptr = NULL; 171 volatile png_uint_32 row_bytes; 172 173 char type_token[16]; 174 char width_token[16]; 175 char height_token[16]; 176 char maxval_token[16]; 177 volatile int color_type = 1; 178 unsigned long ul_width = 0, ul_alpha_width = 0; 179 unsigned long ul_height = 0, ul_alpha_height = 0; 180 unsigned long ul_maxval = 0; 181 volatile png_uint_32 width = 0, height = 0; 182 volatile png_uint_32 alpha_width = 0, alpha_height = 0; 183 png_uint_32 maxval; 184 volatile int bit_depth = 0; 185 int channels = 0; 186 int alpha_depth = 0; 187 int alpha_present = 0; 188 int row, col; 189 BOOL raw, alpha_raw = FALSE; 190 #if defined(PNG_WRITE_INVERT_SUPPORTED) || defined(PNG_WRITE_PACK_SUPPORTED) 174 png_struct *png_ptr; 175 png_info *info_ptr; 176 BOOL ret; 177 178 /* initialize the libpng context for writing to png_file */ 179 180 png_ptr = png_create_write_struct (png_get_libpng_ver(NULL), 181 NULL, NULL, NULL); 182 if (!png_ptr) 183 return FALSE; /* out of memory */ 184 185 info_ptr = png_create_info_struct (png_ptr); 186 if (!info_ptr) 187 { 188 png_destroy_write_struct (&png_ptr, NULL); 189 return FALSE; /* out of memory */ 190 } 191 192 if (setjmp (png_jmpbuf (png_ptr))) 193 { 194 png_destroy_write_struct (&png_ptr, &info_ptr); 195 return FALSE; /* generic libpng error */ 196 } 197 198 png_init_io (png_ptr, png_file); 199 200 /* do the actual conversion */ 201 ret = do_pnm2png (png_ptr, info_ptr, pnm_file, alpha_file, interlace, alpha); 202 203 /* clean up the libpng structures and their internally-managed data */ 204 png_destroy_write_struct (&png_ptr, &info_ptr); 205 206 return ret; 207 } 208 209 /* 210 * do_pnm2png - does the conversion in a fully-initialized libpng context 211 */ 212 213 BOOL do_pnm2png (png_struct *png_ptr, png_info *info_ptr, 214 FILE *pnm_file, FILE *alpha_file, 215 BOOL interlace, BOOL alpha) 216 { 217 png_byte **row_pointers; 218 png_byte *pix_ptr; 219 int bit_depth; 220 int color_type; 221 int channels; 222 char magic_token[4]; 223 BOOL raw; 224 png_uint_32 width, height, maxval; 225 png_uint_32 row_bytes; 226 png_uint_32 row, col; 227 png_uint_32 val16, i; 228 png_uint_32 alpha_width = 0, alpha_height = 0; 229 int alpha_depth = 0, alpha_present = 0; 230 BOOL alpha_raw = FALSE; 191 231 BOOL packed_bitmap = FALSE; 192 #endif193 png_uint_32 tmp16;194 int i;195 232 196 233 /* read header of PNM file */ 197 234 198 get_token (pnm_file, type_token, sizeof (type_token)); 199 if (type_token[0] != 'P') 200 { 201 return FALSE; 202 } 203 else if ((type_token[1] == '1') || (type_token[1] == '4')) 204 { 205 #if defined(PNG_WRITE_INVERT_SUPPORTED) || defined(PNG_WRITE_PACK_SUPPORTED) 206 raw = (type_token[1] == '4'); 235 if (fscan_pnm_magic (pnm_file, magic_token, sizeof (magic_token)) != 1) 236 return FALSE; /* not a PNM file */ 237 238 if ((magic_token[1] == '1') || (magic_token[1] == '4')) 239 { 240 if ((fscan_pnm_uint_32 (pnm_file, &width) != 1) || 241 (fscan_pnm_uint_32 (pnm_file, &height) != 1)) 242 return FALSE; /* bad PBM file header */ 243 } else if ((magic_token[1] == '2') || (magic_token[1] == '5') || 244 (magic_token[1] == '3') || (magic_token[1] == '6')) 245 { 246 if ((fscan_pnm_uint_32 (pnm_file, &width) != 1) || 247 (fscan_pnm_uint_32 (pnm_file, &height) != 1) || 248 (fscan_pnm_uint_32 (pnm_file, &maxval) != 1)) 249 return FALSE; /* bad PGM/PPM file header */ 250 } 251 252 if ((magic_token[1] == '1') || (magic_token[1] == '4')) 253 { 254 raw = (magic_token[1] == '4'); 255 bit_depth = 1; 207 256 color_type = PNG_COLOR_TYPE_GRAY; 208 get_token (pnm_file, width_token, sizeof (width_token));209 sscanf (width_token, "%lu", &ul_width);210 width = (png_uint_32) ul_width;211 get_token (pnm_file, height_token, sizeof (height_token));212 sscanf (height_token, "%lu", &ul_height);213 height = (png_uint_32) ul_height;214 bit_depth = 1;215 257 packed_bitmap = TRUE; 216 #else 217 fprintf (stderr, "PNM2PNG built without PNG_WRITE_INVERT_SUPPORTED and\n"); 218 fprintf (stderr, "PNG_WRITE_PACK_SUPPORTED can't read PBM (P1,P4) files\n"); 219 return FALSE; 220 #endif 221 } 222 else if ((type_token[1] == '2') || (type_token[1] == '5')) 223 { 224 raw = (type_token[1] == '5'); 258 } 259 else if ((magic_token[1] == '2') || (magic_token[1] == '5')) 260 { 261 raw = (magic_token[1] == '5'); 225 262 color_type = PNG_COLOR_TYPE_GRAY; 226 get_token (pnm_file, width_token, sizeof (width_token)); 227 sscanf (width_token, "%lu", &ul_width); 228 width = (png_uint_32) ul_width; 229 get_token (pnm_file, height_token, sizeof (height_token)); 230 sscanf (height_token, "%lu", &ul_height); 231 height = (png_uint_32) ul_height; 232 get_token (pnm_file, maxval_token, sizeof (maxval_token)); 233 sscanf (maxval_token, "%lu", &ul_maxval); 234 maxval = (png_uint_32) ul_maxval; 235 236 if (maxval <= 1) 263 if (maxval == 0) 264 return FALSE; 265 else if (maxval == 1) 237 266 bit_depth = 1; 238 267 else if (maxval <= 3) … … 247 276 return FALSE; 248 277 } 249 else if (( type_token[1] == '3') || (type_token[1] == '6'))250 { 251 raw = ( type_token[1] == '6');278 else if ((magic_token[1] == '3') || (magic_token[1] == '6')) 279 { 280 raw = (magic_token[1] == '6'); 252 281 color_type = PNG_COLOR_TYPE_RGB; 253 get_token (pnm_file, width_token, sizeof (width_token)); 254 sscanf (width_token, "%lu", &ul_width); 255 width = (png_uint_32) ul_width; 256 get_token (pnm_file, height_token, sizeof (height_token)); 257 sscanf (height_token, "%lu", &ul_height); 258 height = (png_uint_32) ul_height; 259 get_token (pnm_file, maxval_token, sizeof (maxval_token)); 260 sscanf (maxval_token, "%lu", &ul_maxval); 261 maxval = (png_uint_32) ul_maxval; 262 if (maxval <= 1) 282 if (maxval == 0) 283 return FALSE; 284 else if (maxval == 1) 263 285 bit_depth = 1; 264 286 else if (maxval <= 3) … … 273 295 return FALSE; 274 296 } 297 else if (magic_token[1] == '7') 298 { 299 fprintf (stderr, "PNM2PNG can't read PAM (P7) files\n"); 300 return FALSE; 301 } 275 302 else 276 303 { … … 282 309 if (alpha) 283 310 { 284 if (color_type == PNG_COLOR_TYPE_GRAY) 285 color_type = PNG_COLOR_TYPE_GRAY_ALPHA; 286 if (color_type == PNG_COLOR_TYPE_RGB) 287 color_type = PNG_COLOR_TYPE_RGB_ALPHA; 288 289 get_token (alpha_file, type_token, sizeof (type_token)); 290 if (type_token[0] != 'P') 291 { 311 if ((fscan_pnm_magic (alpha_file, magic_token, sizeof (magic_token)) != 1) 312 || ((magic_token[1] != '2') && (magic_token[1] != '5'))) 313 return FALSE; /* not a PGM file */ 314 315 if ((fscan_pnm_uint_32 (alpha_file, &alpha_width) != 1) || 316 (fscan_pnm_uint_32 (alpha_file, &alpha_height) != 1) || 317 (fscan_pnm_uint_32 (alpha_file, &maxval) != 1)) 318 return FALSE; /* bad PGM file header */ 319 320 if ((alpha_width != width) || (alpha_height != height)) 321 return FALSE; /* mismatched PGM dimensions */ 322 323 alpha_raw = (magic_token[1] == '5'); 324 color_type |= PNG_COLOR_MASK_ALPHA; 325 if (maxval == 0) 292 326 return FALSE; 293 } 294 else if ((type_token[1] == '2') || (type_token[1] == '5')) 295 { 296 alpha_raw = (type_token[1] == '5'); 297 get_token (alpha_file, width_token, sizeof (width_token)); 298 sscanf (width_token, "%lu", &ul_alpha_width); 299 alpha_width = (png_uint_32) ul_alpha_width; 300 if (alpha_width != width) 301 return FALSE; 302 get_token (alpha_file, height_token, sizeof (height_token)); 303 sscanf (height_token, "%lu", &ul_alpha_height); 304 alpha_height = (png_uint_32) ul_alpha_height; 305 if (alpha_height != height) 306 return FALSE; 307 get_token (alpha_file, maxval_token, sizeof (maxval_token)); 308 sscanf (maxval_token, "%lu", &ul_maxval); 309 maxval = (png_uint_32) ul_maxval; 310 if (maxval <= 1) 311 alpha_depth = 1; 312 else if (maxval <= 3) 313 alpha_depth = 2; 314 else if (maxval <= 15) 315 alpha_depth = 4; 316 else if (maxval <= 255) 317 alpha_depth = 8; 318 else if (maxval <= 65535U) 319 alpha_depth = 16; 320 else /* maxval > 65535U */ 321 return FALSE; 322 if (alpha_depth != bit_depth) 323 return FALSE; 324 } 325 else 326 { 327 else if (maxval == 1) 328 alpha_depth = 1; 329 else if (maxval <= 3) 330 alpha_depth = 2; 331 else if (maxval <= 15) 332 alpha_depth = 4; 333 else if (maxval <= 255) 334 alpha_depth = 8; 335 else if (maxval <= 65535U) 336 alpha_depth = 16; 337 else /* maxval > 65535U */ 327 338 return FALSE; 328 } 339 if (alpha_depth != bit_depth) 340 return FALSE; 329 341 } /* end if alpha */ 330 342 … … 338 350 else if (color_type == PNG_COLOR_TYPE_RGB_ALPHA) 339 351 channels = 4; 340 #if 0341 352 else 342 channels = 0; /* cannot happen */ 343 #endif 353 return FALSE; /* NOTREACHED */ 344 354 345 355 alpha_present = (channels - 1) % 2; 346 356 347 #if defined(PNG_WRITE_INVERT_SUPPORTED) || defined(PNG_WRITE_PACK_SUPPORTED)348 357 if (packed_bitmap) 349 358 { … … 352 361 } 353 362 else 354 #endif355 363 { 356 364 /* row_bytes is the width x number of channels x (bit-depth / 8) */ … … 364 372 return FALSE; 365 373 } 366 if ((png_pixels = (png_byte *) 367 malloc ((size_t) row_bytes * (size_t) height)) == NULL) 368 { 369 /* out of memory */ 370 return FALSE; 371 } 372 373 /* read data from PNM file */ 374 pix_ptr = png_pixels; 375 376 for (row = 0; row < (int) height; row++) 377 { 378 #if defined(PNG_WRITE_INVERT_SUPPORTED) || defined(PNG_WRITE_PACK_SUPPORTED) 374 375 /* allocate the rows using the same memory layout as libpng, and transfer 376 * their ownership to libpng, with the responsibility to clean everything up; 377 * please note the use of png_calloc instead of png_malloc */ 378 row_pointers = (png_byte **) 379 png_calloc (png_ptr, height * sizeof (png_byte *)); 380 png_set_rows (png_ptr, info_ptr, row_pointers); 381 png_data_freer (png_ptr, info_ptr, PNG_DESTROY_WILL_FREE_DATA, PNG_FREE_ALL); 382 for (row = 0; row < height; row++) 383 { 384 /* the individual rows should only be allocated after all the previous 385 * steps completed successfully, because libpng must handle correctly 386 * any image allocation left incomplete after an out-of-memory error */ 387 row_pointers[row] = (png_byte *) png_malloc (png_ptr, row_bytes); 388 } 389 390 /* read the data from PNM file */ 391 392 for (row = 0; row < height; row++) 393 { 394 pix_ptr = row_pointers[row]; 379 395 if (packed_bitmap) 380 396 { 381 for (i = 0; i < (int)row_bytes; i++)397 for (i = 0; i < row_bytes; i++) 382 398 { 383 399 /* png supports this format natively so no conversion is needed */ 384 *pix_ptr++ = get_ data (pnm_file, 8);400 *pix_ptr++ = get_pnm_data (pnm_file, 8); 385 401 } 386 402 } 387 403 else 388 #endif 389 { 390 for (col = 0; col < (int) width; col++) 404 { 405 for (col = 0; col < width; col++) 391 406 { 392 for (i = 0; i < ( channels - alpha_present); i++)407 for (i = 0; i < (png_uint_32) (channels - alpha_present); i++) 393 408 { 394 409 if (raw) 395 410 { 396 *pix_ptr++ = get_data (pnm_file, bit_depth); 411 *pix_ptr++ = get_pnm_data (pnm_file, bit_depth); 412 if (bit_depth == 16) 413 *pix_ptr++ = get_pnm_data (pnm_file, bit_depth); 397 414 } 398 415 else … … 400 417 if (bit_depth <= 8) 401 418 { 402 *pix_ptr++ = get_ value (pnm_file, bit_depth);419 *pix_ptr++ = get_pnm_value (pnm_file, bit_depth); 403 420 } 404 421 else 405 422 { 406 tmp16 = get_value (pnm_file, bit_depth);407 *pix_ptr = (png_byte) (( tmp16 >> 8) & 0xFF);423 val16 = get_pnm_value (pnm_file, bit_depth); 424 *pix_ptr = (png_byte) ((val16 >> 8) & 0xFF); 408 425 pix_ptr++; 409 *pix_ptr = (png_byte) ( tmp16 & 0xFF);426 *pix_ptr = (png_byte) (val16 & 0xFF); 410 427 pix_ptr++; 411 428 } … … 417 434 if (alpha_raw) 418 435 { 419 *pix_ptr++ = get_data (alpha_file, alpha_depth); 436 *pix_ptr++ = get_pnm_data (alpha_file, alpha_depth); 437 if (alpha_depth == 16) 438 *pix_ptr++ = get_pnm_data (alpha_file, alpha_depth); 420 439 } 421 440 else … … 423 442 if (alpha_depth <= 8) 424 443 { 425 *pix_ptr++ = get_ value (alpha_file, bit_depth);444 *pix_ptr++ = get_pnm_value (alpha_file, bit_depth); 426 445 } 427 446 else 428 447 { 429 tmp16 = get_value (alpha_file, bit_depth);430 *pix_ptr++ = (png_byte) (( tmp16 >> 8) & 0xFF);431 *pix_ptr++ = (png_byte) ( tmp16 & 0xFF);448 val16 = get_pnm_value (alpha_file, bit_depth); 449 *pix_ptr++ = (png_byte) ((val16 >> 8) & 0xFF); 450 *pix_ptr++ = (png_byte) (val16 & 0xFF); 432 451 } 433 452 } … … 437 456 } /* end for row */ 438 457 439 /* prepare the standard PNG structures */440 png_ptr = png_create_write_struct (png_get_libpng_ver(NULL),441 NULL, NULL, NULL);442 if (!png_ptr)443 {444 free (png_pixels);445 return FALSE;446 }447 info_ptr = png_create_info_struct (png_ptr);448 if (!info_ptr)449 {450 png_destroy_write_struct (&png_ptr, NULL);451 free (png_pixels);452 return FALSE;453 }454 455 #if defined(PNG_WRITE_INVERT_SUPPORTED) || defined(PNG_WRITE_PACK_SUPPORTED)456 if (packed_bitmap == TRUE)457 {458 png_set_packing (png_ptr);459 png_set_invert_mono (png_ptr);460 }461 #endif462 463 if (setjmp (png_jmpbuf (png_ptr)))464 {465 png_destroy_write_struct (&png_ptr, &info_ptr);466 free (png_pixels);467 return FALSE;468 }469 470 /* initialize the png structure */471 png_init_io (png_ptr, png_file);472 473 458 /* we're going to write more or less the same PNG as the input file */ 474 459 png_set_IHDR (png_ptr, info_ptr, width, height, bit_depth, color_type, … … 476 461 PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE); 477 462 463 if (packed_bitmap == TRUE) 464 { 465 png_set_packing (png_ptr); 466 png_set_invert_mono (png_ptr); 467 } 468 478 469 /* write the file header information */ 479 470 png_write_info (png_ptr, info_ptr); 480 471 481 /* if needed we will allocate memory for an new array of row-pointers */482 if (row_pointers == NULL)483 {484 if ((row_pointers = (png_byte **)485 malloc (height * sizeof (png_byte *))) == NULL)486 {487 png_destroy_write_struct (&png_ptr, &info_ptr);488 free (png_pixels);489 return FALSE;490 }491 }492 493 /* set the individual row_pointers to point at the correct offsets */494 for (i = 0; i < (int) height; i++)495 row_pointers[i] = png_pixels + i * row_bytes;496 497 472 /* write out the entire image data in one call */ 498 473 png_write_image (png_ptr, row_pointers); … … 501 476 png_write_end (png_ptr, info_ptr); 502 477 503 /* clean up after the write, and free any memory allocated */504 png_destroy_write_struct (&png_ptr, &info_ptr);505 506 if (row_pointers != NULL)507 free (row_pointers);508 if (png_pixels != NULL)509 free (png_pixels);510 511 478 return TRUE; 512 479 } /* end of pnm2png */ 513 480 514 481 /* 515 * get_token - gets the first string after whitespace 516 */ 517 518 void get_token (FILE *pnm_file, char *token_buf, size_t token_buf_size) 482 * fscan_pnm_magic - like fscan_pnm_token below, but expects the magic string 483 * to start immediately, without any comment or whitespace, 484 * and to match the regex /^P[1-9]$/ 485 */ 486 487 int fscan_pnm_magic (FILE *pnm_file, char *magic_buf, size_t magic_buf_size) 488 { 489 int ret; 490 491 ret = fgetc (pnm_file); 492 if (ret == EOF) return 0; 493 ungetc (ret, pnm_file); 494 if (ret != 'P') return 0; 495 496 /* the string buffer must be at least four bytes long, i.e., the capacity 497 * required for strings of at least three characters long, i.e., the minimum 498 * required for ensuring that our magic string is exactly two characters long 499 */ 500 if (magic_buf_size < 4) return -1; 501 502 ret = fscan_pnm_token (pnm_file, magic_buf, magic_buf_size); 503 if (ret < 1) return ret; 504 505 if ((magic_buf[1] < '1') || (magic_buf[1] > '9')) return 0; 506 if (magic_buf[2] != '\0') return 0; 507 508 return 1; 509 } 510 511 /* 512 * fscan_pnm_token - extracts the first string token after whitespace, 513 * and (like fscanf) returns the number of successful 514 * extractions, which can be either 0 or 1 515 */ 516 517 int fscan_pnm_token (FILE *pnm_file, char *token_buf, size_t token_buf_size) 519 518 { 520 519 size_t i = 0; … … 544 543 ret = fgetc (pnm_file); 545 544 if (ret == EOF) break; 545 if (ret == '0') 546 { 547 /* avoid storing more than one leading '0' in the token buffer, 548 * to ensure that all valid (in-range) numeric inputs can fit in. */ 549 if ((i == 0) && (token_buf[i] == '0')) continue; 550 } 546 551 if (++i == token_buf_size - 1) break; 547 552 token_buf[i] = (char) ret; … … 550 555 551 556 token_buf[i] = '\0'; 552 553 return; 554 } 555 556 /* 557 * get_data - takes first byte and converts into next pixel value, 558 * taking as much bits as defined by bit-depth and 559 * using the bit-depth to fill up a byte (0Ah -> AAh) 560 */ 561 562 png_uint_32 get_data (FILE *pnm_file, int depth) 557 return (i > 0) ? 1 : 0; 558 } 559 560 /* 561 * fscan_pnm_uint_32 - like fscan_token above, but expects the extracted token 562 * to be numeric, and converts it to an unsigned 32-bit int 563 */ 564 565 int fscan_pnm_uint_32 (FILE *pnm_file, png_uint_32 *num_ptr) 566 { 567 char token[16]; 568 unsigned long token_value; 569 int ret; 570 571 ret = fscan_pnm_token (pnm_file, token, sizeof (token)); 572 if (ret < 1) return ret; 573 574 if ((token[0] < '0') && (token[0] > '9')) 575 return 0; /* the token starts with junk, or a +/- sign, which is invalid */ 576 577 ret = sscanf (token, "%lu%*c", &token_value); 578 if (ret != 1) 579 return 0; /* the token ends with junk */ 580 581 *num_ptr = (png_uint_32) token_value; 582 583 #if ULONG_MAX > 0xFFFFFFFFUL 584 /* saturate the converted number, following the fscanf convention */ 585 if (token_value > 0xFFFFFFFFUL) 586 *num_ptr = 0xFFFFFFFFUL; 587 #endif 588 589 return 1; 590 } 591 592 /* 593 * get_pnm_data - takes first byte and converts into next pixel value, 594 * taking as many bits as defined by bit-depth and 595 * using the bit-depth to fill up a byte (0x0A -> 0xAA) 596 */ 597 598 png_uint_32 get_pnm_data (FILE *pnm_file, int depth) 563 599 { 564 600 static int bits_left = 0; 565 601 static int old_value = 0; 566 602 static int mask = 0; 603 png_uint_32 ret_value; 567 604 int i; 568 png_uint_32 ret_value;569 605 570 606 if (mask == 0) … … 574 610 if (bits_left <= 0) 575 611 { 612 /* FIXME: 613 * signal the premature end of file, instead of pretending to read zeroes 614 */ 576 615 old_value = fgetc (pnm_file); 616 if (old_value == EOF) return 0; 577 617 bits_left = 8; 578 618 } … … 589 629 590 630 /* 591 * get_ value - takes first (numeric) string and converts into number,592 * using the bit-depth to fill up a byte (0Ah -> AAh)593 */ 594 595 png_uint_32 get_ value (FILE *pnm_file, int depth)631 * get_pnm_value - takes first (numeric) string and converts into number, 632 * using the bit-depth to fill up a byte (0x0A -> 0xAA) 633 */ 634 635 png_uint_32 get_pnm_value (FILE *pnm_file, int depth) 596 636 { 597 637 static png_uint_32 mask = 0; 598 char token[16];599 unsigned long ul_ret_value;600 638 png_uint_32 ret_value; 601 int i = 0;639 int i; 602 640 603 641 if (mask == 0) … … 605 643 mask = (mask << 1) | 0x01; 606 644 607 get_token (pnm_file, token, sizeof (token)); 608 sscanf (token, "%lu", &ul_ret_value); 609 ret_value = (png_uint_32) ul_ret_value; 645 if (fscan_pnm_uint_32 (pnm_file, &ret_value) != 1) 646 { 647 /* FIXME: 648 * signal the invalid numeric tokens or the premature end of file, 649 * instead of pretending to read zeroes 650 */ 651 return 0; 652 } 610 653 611 654 ret_value &= mask; -
trunk/src/libs/libpng-1.6.42/contrib/powerpc-vsx/linux.c
r96425 r103316 3 3 * Copyright (c) 2017 Glenn Randers-Pehrson 4 4 * Written by Vadim Barkov, 2017. 5 * Last changed in libpng 1.6.29 [March 16, 2017]6 5 * 7 6 * This code is released under the libpng license. … … 13 12 * 14 13 * png_have_vsx implemented for Linux by reading the widely available 15 * pseudo-file /proc/cpuinfo. 14 * pseudo-file /proc/cpuinfo. 16 15 * 17 16 * This code is strict ANSI-C and is probably moderately portable; it does -
trunk/src/libs/libpng-1.6.42/contrib/powerpc-vsx/linux_aux.c
r96425 r103316 3 3 * Copyright (c) 2017 Glenn Randers-Pehrson 4 4 * Written by Vadim Barkov, 2017. 5 * Last changed in libpng 1.6.29 [March 16, 2017]6 5 * 7 6 * This code is released under the libpng license. -
trunk/src/libs/libpng-1.6.42/contrib/testpngs/makepngs.sh
r96425 r103316 1 #!/ bin/sh2 # 1 #!/usr/bin/env bash 2 3 3 # Make a set of test PNG files, MAKEPNG is the name of the makepng executable 4 4 # built from contrib/libtests/makepng.c 5 5 6 6 # Copyright (c) 2015 John Cunningham Bowler 7 8 # Last changed in libpng 1.6.20 [December 3, 2015]9 7 10 8 # This code is released under the libpng license. -
trunk/src/libs/libpng-1.6.42/contrib/tools/checksum-icc.c
r96425 r103316 2 2 * 3 3 * Copyright (c) 2013 John Cunningham Bowler 4 *5 * Last changed in libpng 1.6.0 [February 14, 2013]6 4 * 7 5 * This code is released under the libpng license. … … 12 10 * generate check-codes for use when matching ICC profiles within libpng. 13 11 */ 12 14 13 #include <stdio.h> 15 16 14 #include <zlib.h> 17 15 -
trunk/src/libs/libpng-1.6.42/contrib/tools/cvtcolor.c
r96425 r103316 1 /*- 2 * convert.c 3 * 4 * Last changed in libpng 1.6.0 [February 14, 2013] 1 /* convert.c 5 2 * 6 3 * COPYRIGHT: Written by John Cunningham Bowler, 2013. … … 11 8 * Convert 8-bit sRGB or 16-bit linear values to another format. 12 9 */ 10 13 11 #define _ISOC99_SOURCE 1 14 12 -
trunk/src/libs/libpng-1.6.42/contrib/tools/genpng.c
r96425 r103316 1 /* -genpng1 /* genpng 2 2 * 3 3 * COPYRIGHT: Written by John Cunningham Bowler, 2015. … … 70 70 * intersection. 71 71 */ 72 72 73 #include <stddef.h> 73 74 #include <stdlib.h> … … 454 455 * { inside_circle, check_circle } 455 456 * 456 * The functions here are analog uous to the square ones; however, they check457 * The functions here are analogous to the square ones; however, they check 457 458 * the corresponding ellipse as opposed to the rectangle. 458 459 */ -
trunk/src/libs/libpng-1.6.42/contrib/tools/intgamma.sh
r96425 r103316 1 1 #!/bin/sh 2 # 2 3 3 # intgamma.sh 4 #5 # Last changed in libpng 1.6.0 [February 14, 2013]6 4 # 7 5 # COPYRIGHT: Written by John Cunningham Bowler, 2013. 8 6 # To the extent possible under law, the author has waived all copyright and 9 # related or neighboring rights to this work. Th is work is published from:10 # United States.7 # related or neighboring rights to this work. The author published this work 8 # from the United States. 11 9 # 12 10 # Shell script to generate png.c 8-bit and 16-bit log tables (see the code in … … 18 16 # 19 17 # "bc" must be on the path when the script is executed, and the math library 20 # (-lm) must be available 21 # 22 # function to print out a list of numbers as integers; the function truncates23 # the integers which must be one-per-line 24 functionprint(){18 # (-lm) must be available. 19 20 # Function to print out a list of numbers as integers; the function truncates 21 # the integers which must be one-per-line. 22 print(){ 25 23 awk 'BEGIN{ 26 24 str = "" -
trunk/src/libs/libpng-1.6.42/contrib/tools/makesRGB.c
r96425 r103316 1 1 /* makesRGB.c -- build sRGB-to-linear and linear-to-sRGB conversion tables 2 *3 * Last changed in libpng 1.6.0 [February 14, 2013]4 2 * 5 3 * COPYRIGHT: Written by John Cunningham Bowler, 2013. … … 15 13 * tables and display it. 16 14 */ 15 17 16 #define _C99_SOURCE 1 18 17 #include <stdio.h> -
trunk/src/libs/libpng-1.6.42/contrib/tools/png-fix-itxt.c
r96425 r103316 1 2 /* png-fix-itxt version 1.0.0 1 /* png-fix-itxt 3 2 * 4 3 * Copyright 2015 Glenn Randers-Pehrson 5 * Last changed in libpng 1.6.18 [July 23, 2015]6 4 * 7 5 * This code is released under the libpng license. … … 11 9 * Usage: 12 10 * 13 * png-fix-itxt .exe< bad.png > good.png11 * png-fix-itxt < bad.png > good.png 14 12 * 15 13 * Fixes a PNG file written with libpng-1.6.0 or 1.6.1 that has one or more -
trunk/src/libs/libpng-1.6.42/contrib/tools/pngcp.c
r96425 r103316 1 1 /* pngcp.c 2 2 * 3 * Copyright (c) 2016 John Cunningham Bowler 4 * 5 * Last changed in libpng 1.6.24 [August 4, 2016] 3 * Copyright (c) 2016,2022,2024 John Cunningham Bowler 6 4 * 7 5 * This code is released under the libpng license. … … 15 13 * For a more extensive example that uses the transforms see 16 14 * contrib/libtests/pngimage.c in the libpng distribution. 15 * 16 * This code is not intended for installation in a release system; the command 17 * line options are not documented and most of the behavior is intended for 18 * testing libpng performance, both speed and compression. 17 19 */ 20 18 21 #include "pnglibconf.h" /* To find how libpng was configured. */ 19 22 … … 85 88 # define voidcast(type, value) (value) 86 89 #endif /* __cplusplus */ 87 88 #ifdef __GNUC__89 /* Many versions of GCC erroneously report that local variables unmodified90 * within the scope of a setjmp may be clobbered. This hacks round the91 * problem (sometimes) without harming other compilers.92 */93 # define gv volatile94 #else95 # define gv96 #endif97 90 98 91 /* 'CLOCK_PROCESS_CPUTIME_ID' is one of the clock timers for clock_gettime. It … … 337 330 338 331 # ifdef PNG_SW_COMPRESS_png_level 339 /* The libpng compression level isn't searched because it just ssets the332 /* The libpng compression level isn't searched because it just sets the 340 333 * other things that are searched! 341 334 */ … … 393 386 jmp_buf error_return; /* Where to go to on error */ 394 387 unsigned int errset; /* error_return is set */ 388 int errlevel; /* error level from longjmp */ 395 389 396 390 const char *operation; /* What is happening */ … … 504 498 505 499 static void 506 display_clean_read(struct display *dp )500 display_clean_read(struct display *dp, int freeinfo) 507 501 { 508 502 if (dp->read_pp != NULL) 509 png_destroy_read_struct(&dp->read_pp, NULL, NULL);503 png_destroy_read_struct(&dp->read_pp, freeinfo ? &dp->ip : NULL, NULL); 510 504 511 505 if (dp->fp != NULL) … … 518 512 519 513 static void 520 display_clean_write(struct display *dp )514 display_clean_write(struct display *dp, int freeinfo) 521 515 { 522 516 if (dp->fp != NULL) … … 528 522 529 523 if (dp->write_pp != NULL) 530 png_destroy_write_struct(&dp->write_pp, dp->tsp > 0 ? NULL : &dp->ip);524 png_destroy_write_struct(&dp->write_pp, freeinfo ? &dp->ip : NULL); 531 525 } 532 526 … … 534 528 display_clean(struct display *dp) 535 529 { 536 display_clean_read(dp );537 display_clean_write(dp );530 display_clean_read(dp, 1/*freeinfo*/); 531 display_clean_write(dp, 1/*freeinfo*/); 538 532 dp->output_file = NULL; 539 533 … … 632 626 { 633 627 if (dp->errset) 628 { 629 dp->errlevel = level; 634 630 longjmp(dp->error_return, level); 631 } 635 632 636 633 else … … 779 776 /* Add the appropriate option string to dp->curr. */ 780 777 { 781 dp->stack[sp].opt_string_end = set_opt_string_(dp, sp, dp->stack[sp].opt, 778 dp->stack[sp].opt_string_end = set_opt_string_(dp, sp, dp->stack[sp].opt, 782 779 options[dp->stack[sp].opt].values[dp->stack[sp].entry].name); 783 780 } … … 1746 1743 read_png(struct display *dp, const char *filename) 1747 1744 { 1748 display_clean_read(dp); /* safety */ 1745 /* This is an assumption of the code; it may happen if a previous write fails 1746 * and there is a bug in the cleanup handling below (look for setjmp). 1747 * Passing freeinfo==1 to display_clean_read below avoids a second error 1748 * on dp->ip != NULL below. 1749 */ 1750 if (dp->read_pp != NULL) 1751 { 1752 display_log(dp, APP_FAIL, "unexpected png_read_struct"); 1753 display_clean_read(dp, 1/*freeinfo*/); /* recovery */ 1754 } 1755 1749 1756 display_start_read(dp, filename); 1750 1757 … … 1770 1777 # endif /* IGNORE_INDEX */ 1771 1778 1779 if (dp->ip != NULL) 1780 { 1781 /* UNEXPECTED: some problem in the display_clean function calls! */ 1782 display_log(dp, APP_FAIL, "read_png: freeing old info struct"); 1783 png_destroy_info_struct(dp->read_pp, &dp->ip); 1784 } 1785 1772 1786 /* The png_read_png API requires us to make the info struct, but it does the 1773 1787 * call to png_read_info. … … 1849 1863 #endif /* FIX_INDEX */ 1850 1864 1851 display_clean_read(dp); 1865 /* NOTE: dp->ip is where all the information about the PNG that was just read 1866 * is stored. It can be used to write and write again a single PNG file, 1867 * however be aware that prior to libpng 1.7 text chunks could only be 1868 * written once; this is a bug which would require a significant code rewrite 1869 * to fix, it has been there in several versions of libpng (it was introduced 1870 * to fix another bug involving duplicate writes of the text chunks.) 1871 */ 1872 display_clean_read(dp, 0/*freeiinfo*/); 1852 1873 dp->operation = "none"; 1853 1874 } … … 1976 1997 write_png(struct display *dp, const char *destname) 1977 1998 { 1978 display_clean_write(dp); /* safety */ 1999 /* If this test fails png_write_png would fail *silently* below; this 2000 * is not helpful, so catch the problem now and give up: 2001 */ 2002 if (dp->ip == NULL) 2003 display_log(dp, INTERNAL_ERROR, "missing png_info"); 2004 2005 /* This is an assumption of the code; it may happen if a previous 2006 * write fails and there is a bug in the cleanup handling below. 2007 */ 2008 if (dp->write_pp != NULL) 2009 { 2010 display_log(dp, APP_FAIL, "unexpected png_write_struct"); 2011 display_clean_write(dp, 0/*!freeinfo*/); 2012 } 2013 1979 2014 display_start_write(dp, destname); 1980 2015 … … 2074 2109 } 2075 2110 2076 /* Clean it on the way out - if control returns to the caller then the2077 * written_file contains the required data.2078 */2079 display_clean_write(dp);2080 2111 dp->operation = "none"; 2081 2112 } … … 2244 2275 do 2245 2276 { 2277 /* Clean before each write_png; this just removes *dp->write_pp which 2278 * cannot be reused. 2279 */ 2280 display_clean_write(dp, 0/*!freeinfo*/); 2246 2281 write_png(dp, tmpname); 2247 2282 … … 2273 2308 dp->write_size = dp->best_size; 2274 2309 } 2310 2311 display_clean_write(dp, 1/*freeinfo*/); 2275 2312 } 2276 2313 2277 2314 static int 2278 cppng(struct display *dp, const char *file, const char *gv dest) 2279 /* Exists solely to isolate the setjmp clobbers which some versions of GCC 2280 * erroneously generate. 2281 */ 2282 { 2283 int ret = setjmp(dp->error_return); 2284 2285 if (ret == 0) 2315 cppng(struct display *dp, const char *file, const char *dest) 2316 { 2317 if (setjmp(dp->error_return) == 0) 2286 2318 { 2287 2319 dp->errset = 1; … … 2295 2327 dp->errset = 0; 2296 2328 2297 if (ret < ERRORS) /* shouldn't longjmp on warnings */ 2298 display_log(dp, INTERNAL_ERROR, "unexpected return code %d", ret); 2299 2300 return ret; 2329 if (dp->errlevel < ERRORS) /* shouldn't longjmp on warnings */ 2330 display_log(dp, INTERNAL_ERROR, "unexpected return code %d", 2331 dp->errlevel); 2332 2333 return dp->errlevel; 2301 2334 } 2302 2335 } -
trunk/src/libs/libpng-1.6.42/contrib/tools/pngfix.c
r96425 r103316 1 1 /* pngfix.c 2 2 * 3 * Last changed in libpng 1.6.31 [July 27, 2017] 4 * Copyright (c) 2014-2017 John Cunningham Bowler 3 * Copyright (c) 2014-2017,2024 John Cunningham Bowler 5 4 * 6 5 * This code is released under the libpng license. … … 11 10 * See the usage message for more information. 12 11 */ 12 13 13 #include <stdlib.h> 14 14 #include <stdio.h> … … 20 20 21 21 #define implies(x,y) assert(!(x) || (y)) 22 23 #ifdef __GNUC__24 /* This is used to fix the error:25 *26 * pngfix.c:27 * In function 'zlib_advance':28 * pngfix.c:181:13: error: assuming signed overflow does not29 * occur when simplifying conditional to constant [-Werror=strict-overflow]30 */31 # define FIX_GCC volatile32 #else33 # define FIX_GCC34 #endif35 22 36 23 #define PROGRAM_NAME "pngfix" … … 219 206 */ 220 207 { 221 FIX_GCCint out_digits = 0;208 int out_digits = 0; 222 209 223 210 while (out_digits < in_digits) … … 264 251 265 252 static int 266 uarb_mult_digit(uarb acc, int a_digits, uarb num, FIX_GCCint n_digits,253 uarb_mult_digit(uarb acc, int a_digits, uarb num, int n_digits, 267 254 png_uint_16 val) 268 255 /* Primitive one-digit multiply - 'val' must be 0..65535. Note that this … … 337 324 */ 338 325 { 339 FIX_GCCint i = ndigits;326 int i = ndigits; 340 327 png_uint_16 carry = 0; 341 328 … … 352 339 353 340 /* The shift may reduce ndigits */ 354 if (i == ndigits-1&& temp == 0)341 if (i+1 == ndigits && temp == 0) 355 342 ndigits = i; 356 343 } … … 868 855 * 869 856 * When a chunk control structure is instantiated these values are copied 870 * into the structure and can then be over ritten with the data for the next857 * into the structure and can then be overwritten with the data for the next 871 858 * chunk. 872 859 */ … … 1006 993 if (file->out != NULL) 1007 994 { 1008 /* NOTE: this is bitwise |, all the following functions must execute and 1009 * must succeed. 995 /* On some systems 'fclose' deletes the FILE struct (making it 996 * inaccessbile). There is no guarantee that fclose returns an error 997 * code from fflush or, indeed, from the FILE error indicator. There is 998 * also no explicit (or clear) guarantee in the standard that anything 999 * other than a read or write operation sets the error indicator; fflush 1000 * is not a read or write operation, so both conditions must be checked 1001 * to ensure the close succeeded and in ANSI-C conformant code they must 1002 * be checked before the fclose call. 1010 1003 */ 1011 if (ferror(file->out) | fflush(file->out) | fclose(file->out)) 1004 const int err = fflush(file->out) || ferror(file->out); 1005 1006 if (fclose(file->out) || err) 1012 1007 { 1013 1008 perror(file->out_name); … … 1599 1594 chunk->chunk_type = file->type; 1600 1595 1601 /* Compress sed/uncompressed size information (from the zlib control structure1596 /* Compressed/uncompressed size information (from the zlib control structure 1602 1597 * that is used to check the compressed data in a chunk.) 1603 1598 */ … … 2930 2925 2931 2926 /* Control reaches this point if the chunk must be skipped. For chunks other 2932 * than IDAT this means that the zlib compressed data is fatally dama nged and2927 * than IDAT this means that the zlib compressed data is fatally damaged and 2933 2928 * the chunk will not be passed to libpng. For IDAT it means that the end of 2934 2929 * the IDAT stream has not yet been reached and we must handle the next … … 3962 3957 size_t outlen = strlen(*argv); 3963 3958 3959 if (outlen > FILENAME_MAX) 3960 { 3961 fprintf(stderr, "%s: output file name too long: %s%s%s\n", 3962 prog, prefix, *argv, suffix ? suffix : ""); 3963 global.status_code |= WRITE_ERROR; 3964 continue; 3965 } 3966 3964 3967 if (outfile == NULL) /* else this takes precedence */ 3965 3968 { … … 4047 4050 } 4048 4051 #endif /* PNG_SETJMP_SUPPORTED */ 4049 4052 /* vi: set textwidth=80 shiftwidth=3 softtabstop=-1 expandtab: */ -
trunk/src/libs/libpng-1.6.42/contrib/tools/sRGB.h
r96425 r103316 1 /*- 2 * sRGB.h 3 * 4 * Last changed in libpng 1.6.0 [February 14, 2013] 1 /* sRGB.h 5 2 * 6 3 * COPYRIGHT: Written by John Cunningham Bowler, 2013. … … 17 14 * https://en.wikipedia.org/wiki/SRGB). 18 15 */ 16 19 17 static double 20 18 sRGB_from_linear(double l) -
trunk/src/libs/libpng-1.6.42/contrib/visupng/VisualPng.c
r96425 r103316 104 104 } 105 105 106 /* if filename given on command line, store it */106 /* if filename given on command line, store it */ 107 107 if ((szCmdLine != NULL) && (*szCmdLine != '\0')) 108 108 if (szCmdLine[0] == '"') -
trunk/src/libs/libpng-1.6.42/depcomp
r96425 r103316 4 4 scriptversion=2018-03-07.03; # UTC 5 5 6 # Copyright (C) 1999-20 18Free Software Foundation, Inc.6 # Copyright (C) 1999-2021 Free Software Foundation, Inc. 7 7 8 8 # This program is free software; you can redistribute it and/or modify -
trunk/src/libs/libpng-1.6.42/example.c
r96425 r103316 4 4 /* example.c - an example of using libpng 5 5 * 6 * Maintained 2018 Cosmin Truta6 * Maintained 2018-2024 Cosmin Truta 7 7 * Maintained 1998-2016 Glenn Randers-Pehrson 8 8 * Maintained 1996-1997 Andreas Dilger … … 126 126 else 127 127 free(buffer); 128 } 128 129 } 129 130 … … 259 260 260 261 /* Compare the first PNG_BYTES_TO_CHECK bytes of the signature. 261 * Return nonzero (true)if they match.262 */ 263 return (!png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK));262 * Return true if they match. 263 */ 264 return png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK) == 0; 264 265 } 265 266 … … 281 282 282 283 if ((fp = fopen(file_name, "rb")) == NULL) 283 return (ERROR);284 return ERROR; 284 285 285 286 #else no_open_file /* prototype 2 */ … … 304 305 { 305 306 fclose(fp); 306 return (ERROR);307 return ERROR; 307 308 } 308 309 … … 313 314 fclose(fp); 314 315 png_destroy_read_struct(&png_ptr, NULL, NULL); 315 return (ERROR);316 return ERROR; 316 317 } 317 318 … … 326 327 fclose(fp); 327 328 /* If we get here, we had a problem reading the file. */ 328 return (ERROR);329 return ERROR; 329 330 } 330 331 … … 585 586 586 587 /* That's it! */ 587 return (OK);588 return OK; 588 589 } 589 590 … … 604 605 { 605 606 *info_ptr = NULL; 606 return (ERROR);607 return ERROR; 607 608 } 608 609 *info_ptr = png_create_info_struct(png_ptr); … … 610 611 { 611 612 png_destroy_read_struct(png_ptr, info_ptr, NULL); 612 return (ERROR);613 return ERROR; 613 614 } 614 615 if (setjmp(png_jmpbuf((*png_ptr)))) 615 616 { 616 617 png_destroy_read_struct(png_ptr, info_ptr, NULL); 617 return (ERROR);618 return ERROR; 618 619 } 619 620 … … 632 633 png_set_progressive_read_fn(*png_ptr, (void *)stream_data, 633 634 info_callback, row_callback, end_callback); 634 return (OK);635 return OK; 635 636 } 636 637 … … 643 644 /* Free the png_ptr and info_ptr memory on error. */ 644 645 png_destroy_read_struct(png_ptr, info_ptr, NULL); 645 return (ERROR);646 return ERROR; 646 647 } 647 648 … … 657 658 */ 658 659 png_process_data(*png_ptr, *info_ptr, buffer, length); 659 return (OK);660 return OK; 660 661 } 661 662 … … 747 748 fp = fopen(file_name, "wb"); 748 749 if (fp == NULL) 749 return (ERROR);750 return ERROR; 750 751 751 752 /* Create and initialize the png_struct with the desired error handler … … 760 761 { 761 762 fclose(fp); 762 return (ERROR);763 return ERROR; 763 764 } 764 765 … … 769 770 fclose(fp); 770 771 png_destroy_write_struct(&png_ptr, NULL); 771 return (ERROR);772 return ERROR; 772 773 } 773 774 … … 780 781 fclose(fp); 781 782 png_destroy_write_struct(&png_ptr, &info_ptr); 782 return (ERROR);783 return ERROR; 783 784 } 784 785 … … 1035 1036 1036 1037 /* That's it! */ 1037 return (OK);1038 return OK; 1038 1039 } 1039 1040 -
trunk/src/libs/libpng-1.6.42/install-sh
r96425 r103316 2 2 # install - install a program, script, or datafile 3 3 4 scriptversion=20 18-03-11.20; # UTC4 scriptversion=2023-11-23.18; # UTC 5 5 6 6 # This originates from X11R5 (mit/util/scripts/install.sh), which was … … 70 70 mode=0755 71 71 72 # Create dirs (including intermediate dirs) using mode 755. 73 # This is like GNU 'install' as of coreutils 8.32 (2020). 74 mkdir_umask=22 75 76 backupsuffix= 72 77 chgrpcmd= 73 78 chmodcmd=$chmodprog … … 100 105 101 106 -c (ignored) 102 -C install only if different (preserve the lastdata modification time)107 -C install only if different (preserve data modification time) 103 108 -d create directories instead of installing files. 104 109 -g GROUP $chgrpprog installed files to GROUP. 105 110 -m MODE $chmodprog installed files to MODE. 106 111 -o USER $chownprog installed files to USER. 112 -p pass -p to $cpprog. 107 113 -s $stripprog installed files. 114 -S SUFFIX attempt to back up existing files, with suffix SUFFIX. 108 115 -t DIRECTORY install into DIRECTORY. 109 116 -T report an error if DSTFILE is a directory. … … 112 119 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG 113 120 RMPROG STRIPPROG 114 " 121 122 By default, rm is invoked with -f; when overridden with RMPROG, 123 it's up to you to specify -f if you want it. 124 125 If -S is not specified, no backups are attempted. 126 127 Report bugs to <[email protected]>. 128 GNU Automake home page: <https://www.gnu.org/software/automake/>. 129 General help using GNU software: <https://www.gnu.org/gethelp/>." 115 130 116 131 while test $# -ne 0; do … … 138 153 shift;; 139 154 155 -p) cpprog="$cpprog -p";; 156 140 157 -s) stripcmd=$stripprog;; 158 159 -S) backupsuffix="$2" 160 shift;; 141 161 142 162 -t) … … 256 276 test -d "$dstdir" 257 277 dstdir_status=$? 278 # Don't chown directories that already exist. 279 if test $dstdir_status = 0; then 280 chowncmd="" 281 fi 258 282 else 259 283 … … 302 326 case $posix_mkdir in 303 327 '') 304 # Create intermediate dirs using mode 755 as modified by the umask.305 # This is like FreeBSD 'install' as of 1997-10-28.306 umask=`umask`307 case $stripcmd.$umask in308 # Optimize common cases.309 *[2367][2367]) mkdir_umask=$umask;;310 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;311 312 *[0-7])313 mkdir_umask=`expr $umask + 22 \314 - $umask % 100 % 40 + $umask % 20 \315 - $umask % 10 % 4 + $umask % 2316 `;;317 *) mkdir_umask=$umask,go-w;;318 esac319 320 328 # With -d, create the new directory with the user-specified mode. 321 329 # Otherwise, rely on $mkdir_umask. … … 327 335 328 336 posix_mkdir=false 329 case $umask in 330 *[123567][0-7][0-7]) 331 # POSIX mkdir -p sets u+wx bits regardless of umask, which 332 # is incompatible with FreeBSD 'install' when (umask & 300) != 0. 333 ;; 334 *) 335 # Note that $RANDOM variable is not portable (e.g. dash); Use it 336 # here however when possible just to lower collision chance. 337 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ 338 339 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 340 341 # Because "mkdir -p" follows existing symlinks and we likely work 342 # directly in world-writeable /tmp, make sure that the '$tmpdir' 343 # directory is successfully created first before we actually test 344 # 'mkdir -p' feature. 345 if (umask $mkdir_umask && 346 $mkdirprog $mkdir_mode "$tmpdir" && 347 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 348 then 349 if test -z "$dir_arg" || { 350 # Check for POSIX incompatibilities with -m. 351 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or 352 # other-writable bit of parent directory when it shouldn't. 353 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. 354 test_tmpdir="$tmpdir/a" 355 ls_ld_tmpdir=`ls -ld "$test_tmpdir"` 356 case $ls_ld_tmpdir in 357 d????-?r-*) different_mode=700;; 358 d????-?--*) different_mode=755;; 359 *) false;; 360 esac && 361 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { 362 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` 363 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" 364 } 365 } 366 then posix_mkdir=: 367 fi 368 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 369 else 370 # Remove any dirs left behind by ancient mkdir implementations. 371 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null 372 fi 373 trap '' 0;; 374 esac;; 337 # The $RANDOM variable is not portable (e.g., dash). Use it 338 # here however when possible just to lower collision chance. 339 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ 340 341 trap ' 342 ret=$? 343 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null 344 exit $ret 345 ' 0 346 347 # Because "mkdir -p" follows existing symlinks and we likely work 348 # directly in world-writeable /tmp, make sure that the '$tmpdir' 349 # directory is successfully created first before we actually test 350 # 'mkdir -p'. 351 if (umask $mkdir_umask && 352 $mkdirprog $mkdir_mode "$tmpdir" && 353 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 354 then 355 if test -z "$dir_arg" || { 356 # Check for POSIX incompatibilities with -m. 357 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or 358 # other-writable bit of parent directory when it shouldn't. 359 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. 360 test_tmpdir="$tmpdir/a" 361 ls_ld_tmpdir=`ls -ld "$test_tmpdir"` 362 case $ls_ld_tmpdir in 363 d????-?r-*) different_mode=700;; 364 d????-?--*) different_mode=755;; 365 *) false;; 366 esac && 367 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { 368 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` 369 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" 370 } 371 } 372 then posix_mkdir=: 373 fi 374 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 375 else 376 # Remove any dirs left behind by ancient mkdir implementations. 377 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null 378 fi 379 trap '' 0;; 375 380 esac 376 381 … … 383 388 else 384 389 385 # The umask is ridiculous, ormkdir does not conform to POSIX,390 # mkdir does not conform to POSIX, 386 391 # or it failed possibly due to a race condition. Create the 387 392 # directory the slow way, step by step, checking for races as we go. … … 412 417 else 413 418 if $posix_mkdir; then 414 (umask =$mkdir_umask &&419 (umask $mkdir_umask && 415 420 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break 416 421 # Don't fail if two instances are running concurrently. … … 452 457 453 458 # Copy the file name to the temp name. 454 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && 459 (umask $cp_umask && 460 { test -z "$stripcmd" || { 461 # Create $dsttmp read-write so that cp doesn't create it read-only, 462 # which would cause strip to fail. 463 if test -z "$doit"; then 464 : >"$dsttmp" # No need to fork-exec 'touch'. 465 else 466 $doit touch "$dsttmp" 467 fi 468 } 469 } && 470 $doit_exec $cpprog "$src" "$dsttmp") && 455 471 456 472 # and set any options; do chmod last to preserve setuid bits. … … 478 494 rm -f "$dsttmp" 479 495 else 496 # If $backupsuffix is set, and the file being installed 497 # already exists, attempt a backup. Don't worry if it fails, 498 # e.g., if mv doesn't support -f. 499 if test -n "$backupsuffix" && test -f "$dst"; then 500 $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null 501 fi 502 480 503 # Rename the file to the real destination. 481 504 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || … … 492 515 { 493 516 test ! -f "$dst" || 494 $doit $rmcmd -f"$dst" 2>/dev/null ||517 $doit $rmcmd "$dst" 2>/dev/null || 495 518 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && 496 { $doit $rmcmd -f"$rmtmp" 2>/dev/null; :; }519 { $doit $rmcmd "$rmtmp" 2>/dev/null; :; } 497 520 } || 498 521 { echo "$0: cannot unlink or rename $dst" >&2 -
trunk/src/libs/libpng-1.6.42/intel/filter_sse2_intrinsics.c
r96425 r103316 260 260 261 261 /* (p-a) == (a+b-c - a) == (b-c) */ 262 262 263 263 pa = _mm_sub_epi16(b,c); 264 264 -
trunk/src/libs/libpng-1.6.42/libpng-manual.txt
r96425 r103316 1 1 libpng-manual.txt - A description on how to use and modify libpng 2 2 3 Copyright (c) 2018-20 19Cosmin Truta3 Copyright (c) 2018-2024 Cosmin Truta 4 4 Copyright (c) 1998-2018 Glenn Randers-Pehrson 5 5 … … 10 10 Based on: 11 11 12 libpng version 1.6.36, December 2018, through 1.6. 37 - April 201912 libpng version 1.6.36, December 2018, through 1.6.42 - January 2024 13 13 Updated and distributed by Cosmin Truta 14 Copyright (c) 2018-20 19Cosmin Truta14 Copyright (c) 2018-2024 Cosmin Truta 15 15 16 16 libpng versions 0.97, January 1998, through 1.6.35 - July 2018 … … 358 358 } 359 359 360 is_png = !png_sig_cmp(header, 0, number);360 is_png = (png_sig_cmp(header, 0, number) == 0); 361 361 if (!is_png) 362 362 { … … 386 386 if (!info_ptr) 387 387 { 388 png_destroy_read_struct(&png_ptr, 389 (png_infopp)NULL, (png_infopp)NULL); 388 png_destroy_read_struct(&png_ptr, NULL, NULL); 390 389 return ERROR; 391 390 } … … 420 419 if (setjmp(png_jmpbuf(png_ptr))) 421 420 { 422 png_destroy_read_struct(&png_ptr, &info_ptr, 423 &end_info); 421 png_destroy_read_struct(&png_ptr, &info_ptr, &end_info); 424 422 fclose(fp); 425 423 return ERROR; 426 424 } 427 425 428 Pass (png_infopp)NULL instead of &end_info if you didn't create429 an end_infostructure.426 Pass NULL instead of &end_info if you didn't create an end_info 427 structure. 430 428 431 429 If you would rather avoid the complexity of setjmp/longjmp issues, … … 497 495 498 496 read_chunk_callback(png_structp png_ptr, 499 png_unknown_chunkp chunk) ;497 png_unknown_chunkp chunk) 500 498 { 501 499 /* The unknown chunk structure contains your … … 548 546 549 547 void read_row_callback(png_structp png_ptr, 550 png_uint_32 row, int pass) ;548 png_uint_32 row, int pass) 551 549 { 552 /* put your code here */550 /* put your code here */ 553 551 } 554 552 … … 878 876 channels; png_set_alpha_mode() with one of the modes causes the decoder to 879 877 convert the pixels to an associated form before returning them to your 880 application. 878 application. 881 879 882 880 Since it is not necessary to perform arithmetic on opaque color values so … … 1182 1180 1183 1181 if (height > PNG_UINT_32_MAX/(sizeof (png_byte))) 1184 png_error 1182 png_error(png_ptr, 1185 1183 "Image is too tall to process in memory"); 1186 1184 1187 1185 if (width > PNG_UINT_32_MAX/pixel_size) 1188 png_error 1186 png_error(png_ptr, 1189 1187 "Image is too wide to process in memory"); 1190 1188 … … 1192 1190 height*(sizeof (png_bytep))); 1193 1191 1194 for (int i =0; i<height, i++)1195 row_pointers[i] =NULL; /* security precaution */1196 1197 for (int i =0; i<height, i++)1198 row_pointers[i] =png_malloc(png_ptr,1192 for (int i = 0; i < height, i++) 1193 row_pointers[i] = NULL; /* security precaution */ 1194 1195 for (int i = 0; i < height, i++) 1196 row_pointers[i] = png_malloc(png_ptr, 1199 1197 width*pixel_size); 1200 1198 … … 1206 1204 1207 1205 /* Guard against integer overflow */ 1208 if (height > PNG_SIZE_MAX/(width*pixel_size)) {1209 png_error(png_ptr,"image_data buffer would be too large");1210 } 1211 1212 png_bytep buffer=png_malloc(png_ptr,height*width*pixel_size);1213 1214 for (int i =0; i<height, i++)1215 row_pointers[i] =buffer+i*width*pixel_size;1206 if (height > PNG_SIZE_MAX/(width*pixel_size)) 1207 png_error(png_ptr, "image_data buffer would be too large"); 1208 1209 png_bytep buffer = png_malloc(png_ptr, 1210 height*width*pixel_size); 1211 1212 for (int i = 0; i < height, i++) 1213 row_pointers[i] = buffer + i*width*pixel_size; 1216 1214 1217 1215 png_set_rows(png_ptr, info_ptr, &row_pointers); … … 1466 1464 1467 1465 png_get_eXIf_1(png_ptr, info_ptr, &num_exif, &exif); 1466 1467 exif - Exif profile (array of png_byte) 1468 1468 (PNG_INFO_eXIf) 1469 1469 1470 exif - Exif profile (array of png_byte)1471 1472 1470 png_get_hIST(png_ptr, info_ptr, &hist); 1473 (PNG_INFO_hIST)1474 1471 1475 1472 hist - histogram of palette (array of 1476 png_uint_16) 1473 png_uint_16) (PNG_INFO_hIST) 1477 1474 1478 1475 png_get_tIME(png_ptr, info_ptr, &mod_time); 1479 1476 1480 1477 mod_time - time image was last modified 1481 (PNG_VALID_tIME)1478 (PNG_INFO_tIME) 1482 1479 1483 1480 png_get_bKGD(png_ptr, info_ptr, &background); 1484 1481 1485 1482 background - background color (of type 1486 png_color_16p) (PNG_ VALID_bKGD)1483 png_color_16p) (PNG_INFO_bKGD) 1487 1484 valid 16-bit red, green and blue 1488 1485 values, regardless of color_type … … 1744 1741 1745 1742 if (color_type == PNG_COLOR_TYPE_PALETTE) 1746 1747 1748 if (png_get_valid(png_ptr, info_ptr, 1749 PNG_INFO_tRNS))png_set_tRNS_to_alpha(png_ptr);1750 1751 if (color_type == PNG_COLOR_TYPE_GRAY && 1752 bit_depth < 8)png_set_expand_gray_1_2_4_to_8(png_ptr);1743 png_set_palette_to_rgb(png_ptr); 1744 1745 if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) 1746 png_set_tRNS_to_alpha(png_ptr); 1747 1748 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) 1749 png_set_expand_gray_1_2_4_to_8(png_ptr); 1753 1750 1754 1751 The first two functions are actually aliases for png_set_expand(), added … … 1765 1762 severe accuracy loss. 1766 1763 1767 if (bit_depth < 16)1768 png_set_expand_16(png_ptr);1764 if (bit_depth < 16) 1765 png_set_expand_16(png_ptr); 1769 1766 1770 1767 PNG can have files with 16 bits per channel. If you only can handle … … 1772 1769 1773 1770 if (bit_depth == 16) 1771 { 1774 1772 #if PNG_LIBPNG_VER >= 10504 1775 1773 png_set_scale_16(png_ptr); … … 1777 1775 png_set_strip_16(png_ptr); 1778 1776 #endif 1777 } 1779 1778 1780 1779 (The more accurate "png_set_scale_16()" API became available in libpng version … … 1793 1792 1794 1793 As of libpng version 1.5.2, almost all useful expansions are supported, the 1795 major om missions are conversion of grayscale to indexed images (which can be1794 major omissions are conversion of grayscale to indexed images (which can be 1796 1795 done trivially in the application) and conversion of indexed to grayscale (which 1797 1796 can be done by a trivial manipulation of the palette.) … … 1902 1901 1903 1902 if (color_type == PNG_COLOR_TYPE_RGB || 1904 color_type == PNG_COLOR_TYPE_GRAY)1903 color_type == PNG_COLOR_TYPE_GRAY) 1905 1904 png_set_add_alpha(png_ptr, filler, PNG_FILLER_AFTER); 1906 1905 … … 1927 1926 color_type == PNG_COLOR_TYPE_RGB_ALPHA) 1928 1927 png_set_rgb_to_gray(png_ptr, error_action, 1929 double red_weight, doublegreen_weight);1928 (double)red_weight, (double)green_weight); 1930 1929 1931 1930 error_action = 1: silently do the conversion … … 1950 1949 1951 1950 png_set_rgb_to_gray(png_ptr, error_action, 1952 png_fixed_pointred_weight,1953 png_fixed_pointgreen_weight);1951 (png_fixed_point)red_weight, 1952 (png_fixed_point)green_weight); 1954 1953 1955 1954 If you have set error_action = 1 or 2, you can … … 2187 2186 2188 2187 /* Guard against integer overflow */ 2189 if (number_of_rows > PNG_SIZE_MAX/(width*pixel_size)) { 2190 png_error(png_ptr,"image_data buffer would be too large"); 2191 } 2188 if (number_of_rows > PNG_SIZE_MAX/(width*pixel_size)) 2189 png_error(png_ptr, "image_data buffer would be too large"); 2192 2190 2193 2191 Remember: Before you call png_read_update_info(), the png_get_*() … … 2409 2407 if (!end_info) 2410 2408 { 2411 png_destroy_read_struct(&png_ptr, &info_ptr, 2412 (png_infopp)NULL); 2409 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); 2413 2410 return ERROR; 2414 2411 } 2415 2412 2416 png_read_end(png_ptr, end_info);2413 png_read_end(png_ptr, end_info); 2417 2414 2418 2415 If you are not interested, you should still call png_read_end() … … 2422 2419 png_set_crc_action) checking their CRCs while looking for the IEND chunk. 2423 2420 2424 png_read_end(png_ptr, (png_infop)NULL);2421 png_read_end(png_ptr, NULL); 2425 2422 2426 2423 If you don't call png_read_end(), then your file pointer will be … … 2431 2428 When you are done, you can free all memory allocated by libpng like this: 2432 2429 2433 png_destroy_read_struct(&png_ptr, &info_ptr, 2434 &end_info); 2430 png_destroy_read_struct(&png_ptr, &info_ptr, &end_info); 2435 2431 2436 2432 or, if you didn't create an end_info structure, 2437 2433 2438 png_destroy_read_struct(&png_ptr, &info_ptr, 2439 (png_infopp)NULL); 2434 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); 2440 2435 2441 2436 It is also possible to individually free the info_ptr members that … … 2557 2552 if (!info_ptr) 2558 2553 { 2559 png_destroy_read_struct(&png_ptr, 2560 (png_infopp)NULL, (png_infopp)NULL); 2554 png_destroy_read_struct(&png_ptr, NULL, NULL); 2561 2555 return ERROR; 2562 2556 } … … 2564 2558 if (setjmp(png_jmpbuf(png_ptr))) 2565 2559 { 2566 png_destroy_read_struct(&png_ptr, &info_ptr, 2567 (png_infopp)NULL); 2560 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); 2568 2561 return ERROR; 2569 2562 } … … 2598 2591 if (setjmp(png_jmpbuf(png_ptr))) 2599 2592 { 2600 png_destroy_read_struct(&png_ptr, &info_ptr, 2601 (png_infopp)NULL); 2593 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); 2602 2594 return ERROR; 2603 2595 } … … 2764 2756 if (!info_ptr) 2765 2757 { 2766 png_destroy_write_struct(&png_ptr, 2767 (png_infopp)NULL); 2758 png_destroy_write_struct(&png_ptr, NULL); 2768 2759 return ERROR; 2769 2760 } … … 2791 2782 if (setjmp(png_jmpbuf(png_ptr))) 2792 2783 { 2793 png_destroy_write_struct(&png_ptr, &info_ptr);2784 png_destroy_write_struct(&png_ptr, &info_ptr); 2794 2785 fclose(fp); 2795 2786 return ERROR; … … 2845 2836 2846 2837 void write_row_callback(png_structp png_ptr, png_uint_32 row, 2847 int pass) ;2838 int pass) 2848 2839 { 2849 /* put your code here */2840 /* put your code here */ 2850 2841 } 2851 2842 … … 3117 3108 png_set_eXIf_1(png_ptr, info_ptr, num_exif, exif); 3118 3109 3119 exif - Exif profile (array of 3120 png_byte)(PNG_INFO_eXIf)3110 exif - Exif profile (array of png_byte) 3111 (PNG_INFO_eXIf) 3121 3112 3122 3113 png_set_hIST(png_ptr, info_ptr, hist); … … 3128 3119 3129 3120 mod_time - time image was last modified 3130 (PNG_ VALID_tIME)3121 (PNG_INFO_tIME) 3131 3122 3132 3123 png_set_bKGD(png_ptr, info_ptr, background); 3133 3124 3134 3125 background - background color (of type 3135 png_color_16p) (PNG_ VALID_bKGD)3126 png_color_16p) (PNG_INFO_bKGD) 3136 3127 3137 3128 png_set_text(png_ptr, info_ptr, text_ptr, num_text); … … 4219 4210 pointer that can be retrieved via 4220 4211 4221 mem_ptr =png_get_mem_ptr(png_ptr);4212 mem_ptr = png_get_mem_ptr(png_ptr); 4222 4213 4223 4214 Your replacement memory functions must have prototypes as follows: … … 4516 4507 4517 4508 #ifdef PNG_DEBUG 4518 fprintf(stderr, ... 4509 fprintf(stderr, ...); 4519 4510 #endif 4520 4511 … … 4693 4684 png_check_sig(sig, num) 4694 4685 was replaced with 4695 !png_sig_cmp(sig, 0, num)4686 png_sig_cmp(sig, 0, num) == 0 4696 4687 It has been deprecated since libpng-0.90. 4697 4688 … … 4757 4748 4758 4749 We removed the obsolete png_check_sig(), png_memcpy_check(), and 4759 png_memset_check() functions. Instead use !png_sig_cmp(), memcpy(),4760 and memset(), respectively.4750 png_memset_check() functions. Instead use png_sig_cmp() == 0, 4751 memcpy(), and memset(), respectively. 4761 4752 4762 4753 The function png_set_gray_1_2_4_to_8() was removed. It has been … … 5240 5231 libpng version since 0.88. In an autoconf "configure.in" you could use 5241 5232 5242 AC_CHECK_LIB(png, png_get_io_ptr, ... 5233 AC_CHECK_LIB(png, png_get_io_ptr, ...) 5243 5234 5244 5235 XV. Source code repository … … 5249 5240 at 5250 5241 5251 https://github.com/ glennrp/libpng or5242 https://github.com/pnggroup/libpng or 5252 5243 https://git.code.sf.net/p/libpng/code.git 5253 5244 5254 5245 or you can browse it with a web browser at 5255 5246 5256 https://github.com/ glennrp/libpng or5247 https://github.com/pnggroup/libpng or 5257 5248 https://sourceforge.net/p/libpng/code/ci/libpng16/tree/ 5258 5249 … … 5264 5255 or as a "pull request" to 5265 5256 5266 https://github.com/ glennrp/libpng/pulls5257 https://github.com/pnggroup/libpng/pulls 5267 5258 5268 5259 We also accept patches built from the tar or zip distributions, and -
trunk/src/libs/libpng-1.6.42/libpng.3
r96425 r103316 1 .TH LIBPNG 3 " April 14, 2019"1 .TH LIBPNG 3 "January 29, 2024" 2 2 .SH NAME 3 libpng \- Portable Network Graphics (PNG) Reference Library 1.6. 373 libpng \- Portable Network Graphics (PNG) Reference Library 1.6.42 4 4 5 5 .SH SYNOPSIS … … 520 520 libpng-manual.txt - A description on how to use and modify libpng 521 521 522 Copyright (c) 2018-20 19Cosmin Truta522 Copyright (c) 2018-2024 Cosmin Truta 523 523 Copyright (c) 1998-2018 Glenn Randers-Pehrson 524 524 … … 529 529 Based on: 530 530 531 libpng version 1.6.36, December 2018, through 1.6. 37 - April 2019531 libpng version 1.6.36, December 2018, through 1.6.42 - January 2024 532 532 Updated and distributed by Cosmin Truta 533 Copyright (c) 2018-20 19Cosmin Truta533 Copyright (c) 2018-2024 Cosmin Truta 534 534 535 535 libpng versions 0.97, January 1998, through 1.6.35 - July 2018 … … 877 877 } 878 878 879 is_png = !png_sig_cmp(header, 0, number);879 is_png = (png_sig_cmp(header, 0, number) == 0); 880 880 if (!is_png) 881 881 { … … 905 905 if (!info_ptr) 906 906 { 907 png_destroy_read_struct(&png_ptr, 908 (png_infopp)NULL, (png_infopp)NULL); 907 png_destroy_read_struct(&png_ptr, NULL, NULL); 909 908 return ERROR; 910 909 } … … 939 938 if (setjmp(png_jmpbuf(png_ptr))) 940 939 { 941 png_destroy_read_struct(&png_ptr, &info_ptr, 942 &end_info); 940 png_destroy_read_struct(&png_ptr, &info_ptr, &end_info); 943 941 fclose(fp); 944 942 return ERROR; 945 943 } 946 944 947 Pass (png_infopp)NULL instead of &end_info if you didn't create948 an end_infostructure.945 Pass NULL instead of &end_info if you didn't create an end_info 946 structure. 949 947 950 948 If you would rather avoid the complexity of setjmp/longjmp issues, … … 1016 1014 1017 1015 read_chunk_callback(png_structp png_ptr, 1018 png_unknown_chunkp chunk) ;1016 png_unknown_chunkp chunk) 1019 1017 { 1020 1018 /* The unknown chunk structure contains your … … 1067 1065 1068 1066 void read_row_callback(png_structp png_ptr, 1069 png_uint_32 row, int pass) ;1067 png_uint_32 row, int pass) 1070 1068 { 1071 /* put your code here */1069 /* put your code here */ 1072 1070 } 1073 1071 … … 1397 1395 channels; png_set_alpha_mode() with one of the modes causes the decoder to 1398 1396 convert the pixels to an associated form before returning them to your 1399 application. 1397 application. 1400 1398 1401 1399 Since it is not necessary to perform arithmetic on opaque color values so … … 1701 1699 1702 1700 if (height > PNG_UINT_32_MAX/(sizeof (png_byte))) 1703 png_error 1701 png_error(png_ptr, 1704 1702 "Image is too tall to process in memory"); 1705 1703 1706 1704 if (width > PNG_UINT_32_MAX/pixel_size) 1707 png_error 1705 png_error(png_ptr, 1708 1706 "Image is too wide to process in memory"); 1709 1707 … … 1711 1709 height*(sizeof (png_bytep))); 1712 1710 1713 for (int i =0; i<height, i++)1714 row_pointers[i] =NULL; /* security precaution */1715 1716 for (int i =0; i<height, i++)1717 row_pointers[i] =png_malloc(png_ptr,1711 for (int i = 0; i < height, i++) 1712 row_pointers[i] = NULL; /* security precaution */ 1713 1714 for (int i = 0; i < height, i++) 1715 row_pointers[i] = png_malloc(png_ptr, 1718 1716 width*pixel_size); 1719 1717 … … 1725 1723 1726 1724 /* Guard against integer overflow */ 1727 if (height > PNG_SIZE_MAX/(width*pixel_size)) {1728 png_error(png_ptr,"image_data buffer would be too large");1729 } 1730 1731 png_bytep buffer=png_malloc(png_ptr,height*width*pixel_size);1732 1733 for (int i =0; i<height, i++)1734 row_pointers[i] =buffer+i*width*pixel_size;1725 if (height > PNG_SIZE_MAX/(width*pixel_size)) 1726 png_error(png_ptr, "image_data buffer would be too large"); 1727 1728 png_bytep buffer = png_malloc(png_ptr, 1729 height*width*pixel_size); 1730 1731 for (int i = 0; i < height, i++) 1732 row_pointers[i] = buffer + i*width*pixel_size; 1735 1733 1736 1734 png_set_rows(png_ptr, info_ptr, &row_pointers); … … 1985 1983 1986 1984 png_get_eXIf_1(png_ptr, info_ptr, &num_exif, &exif); 1985 1986 exif - Exif profile (array of png_byte) 1987 1987 (PNG_INFO_eXIf) 1988 1988 1989 exif - Exif profile (array of png_byte)1990 1991 1989 png_get_hIST(png_ptr, info_ptr, &hist); 1992 (PNG_INFO_hIST)1993 1990 1994 1991 hist - histogram of palette (array of 1995 png_uint_16) 1992 png_uint_16) (PNG_INFO_hIST) 1996 1993 1997 1994 png_get_tIME(png_ptr, info_ptr, &mod_time); 1998 1995 1999 1996 mod_time - time image was last modified 2000 (PNG_VALID_tIME)1997 (PNG_INFO_tIME) 2001 1998 2002 1999 png_get_bKGD(png_ptr, info_ptr, &background); 2003 2000 2004 2001 background - background color (of type 2005 png_color_16p) (PNG_ VALID_bKGD)2002 png_color_16p) (PNG_INFO_bKGD) 2006 2003 valid 16-bit red, green and blue 2007 2004 values, regardless of color_type … … 2263 2260 2264 2261 if (color_type == PNG_COLOR_TYPE_PALETTE) 2265 2266 2267 if (png_get_valid(png_ptr, info_ptr, 2268 PNG_INFO_tRNS))png_set_tRNS_to_alpha(png_ptr);2269 2270 if (color_type == PNG_COLOR_TYPE_GRAY && 2271 bit_depth < 8)png_set_expand_gray_1_2_4_to_8(png_ptr);2262 png_set_palette_to_rgb(png_ptr); 2263 2264 if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) 2265 png_set_tRNS_to_alpha(png_ptr); 2266 2267 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) 2268 png_set_expand_gray_1_2_4_to_8(png_ptr); 2272 2269 2273 2270 The first two functions are actually aliases for png_set_expand(), added … … 2284 2281 severe accuracy loss. 2285 2282 2286 if (bit_depth < 16)2287 png_set_expand_16(png_ptr);2283 if (bit_depth < 16) 2284 png_set_expand_16(png_ptr); 2288 2285 2289 2286 PNG can have files with 16 bits per channel. If you only can handle … … 2291 2288 2292 2289 if (bit_depth == 16) 2290 { 2293 2291 #if PNG_LIBPNG_VER >= 10504 2294 2292 png_set_scale_16(png_ptr); … … 2296 2294 png_set_strip_16(png_ptr); 2297 2295 #endif 2296 } 2298 2297 2299 2298 (The more accurate "png_set_scale_16()" API became available in libpng version … … 2312 2311 2313 2312 As of libpng version 1.5.2, almost all useful expansions are supported, the 2314 major om missions are conversion of grayscale to indexed images (which can be2313 major omissions are conversion of grayscale to indexed images (which can be 2315 2314 done trivially in the application) and conversion of indexed to grayscale (which 2316 2315 can be done by a trivial manipulation of the palette.) … … 2421 2420 2422 2421 if (color_type == PNG_COLOR_TYPE_RGB || 2423 color_type == PNG_COLOR_TYPE_GRAY)2422 color_type == PNG_COLOR_TYPE_GRAY) 2424 2423 png_set_add_alpha(png_ptr, filler, PNG_FILLER_AFTER); 2425 2424 … … 2446 2445 color_type == PNG_COLOR_TYPE_RGB_ALPHA) 2447 2446 png_set_rgb_to_gray(png_ptr, error_action, 2448 double red_weight, doublegreen_weight);2447 (double)red_weight, (double)green_weight); 2449 2448 2450 2449 error_action = 1: silently do the conversion … … 2469 2468 2470 2469 png_set_rgb_to_gray(png_ptr, error_action, 2471 png_fixed_pointred_weight,2472 png_fixed_pointgreen_weight);2470 (png_fixed_point)red_weight, 2471 (png_fixed_point)green_weight); 2473 2472 2474 2473 If you have set error_action = 1 or 2, you can … … 2706 2705 2707 2706 /* Guard against integer overflow */ 2708 if (number_of_rows > PNG_SIZE_MAX/(width*pixel_size)) { 2709 png_error(png_ptr,"image_data buffer would be too large"); 2710 } 2707 if (number_of_rows > PNG_SIZE_MAX/(width*pixel_size)) 2708 png_error(png_ptr, "image_data buffer would be too large"); 2711 2709 2712 2710 Remember: Before you call png_read_update_info(), the png_get_*() … … 2928 2926 if (!end_info) 2929 2927 { 2930 png_destroy_read_struct(&png_ptr, &info_ptr, 2931 (png_infopp)NULL); 2928 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); 2932 2929 return ERROR; 2933 2930 } 2934 2931 2935 png_read_end(png_ptr, end_info);2932 png_read_end(png_ptr, end_info); 2936 2933 2937 2934 If you are not interested, you should still call png_read_end() … … 2941 2938 png_set_crc_action) checking their CRCs while looking for the IEND chunk. 2942 2939 2943 png_read_end(png_ptr, (png_infop)NULL);2940 png_read_end(png_ptr, NULL); 2944 2941 2945 2942 If you don't call png_read_end(), then your file pointer will be … … 2950 2947 When you are done, you can free all memory allocated by libpng like this: 2951 2948 2952 png_destroy_read_struct(&png_ptr, &info_ptr, 2953 &end_info); 2949 png_destroy_read_struct(&png_ptr, &info_ptr, &end_info); 2954 2950 2955 2951 or, if you didn't create an end_info structure, 2956 2952 2957 png_destroy_read_struct(&png_ptr, &info_ptr, 2958 (png_infopp)NULL); 2953 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); 2959 2954 2960 2955 It is also possible to individually free the info_ptr members that … … 3076 3071 if (!info_ptr) 3077 3072 { 3078 png_destroy_read_struct(&png_ptr, 3079 (png_infopp)NULL, (png_infopp)NULL); 3073 png_destroy_read_struct(&png_ptr, NULL, NULL); 3080 3074 return ERROR; 3081 3075 } … … 3083 3077 if (setjmp(png_jmpbuf(png_ptr))) 3084 3078 { 3085 png_destroy_read_struct(&png_ptr, &info_ptr, 3086 (png_infopp)NULL); 3079 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); 3087 3080 return ERROR; 3088 3081 } … … 3117 3110 if (setjmp(png_jmpbuf(png_ptr))) 3118 3111 { 3119 png_destroy_read_struct(&png_ptr, &info_ptr, 3120 (png_infopp)NULL); 3112 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); 3121 3113 return ERROR; 3122 3114 } … … 3283 3275 if (!info_ptr) 3284 3276 { 3285 png_destroy_write_struct(&png_ptr, 3286 (png_infopp)NULL); 3277 png_destroy_write_struct(&png_ptr, NULL); 3287 3278 return ERROR; 3288 3279 } … … 3310 3301 if (setjmp(png_jmpbuf(png_ptr))) 3311 3302 { 3312 png_destroy_write_struct(&png_ptr, &info_ptr);3303 png_destroy_write_struct(&png_ptr, &info_ptr); 3313 3304 fclose(fp); 3314 3305 return ERROR; … … 3364 3355 3365 3356 void write_row_callback(png_structp png_ptr, png_uint_32 row, 3366 int pass) ;3357 int pass) 3367 3358 { 3368 /* put your code here */3359 /* put your code here */ 3369 3360 } 3370 3361 … … 3636 3627 png_set_eXIf_1(png_ptr, info_ptr, num_exif, exif); 3637 3628 3638 exif - Exif profile (array of 3639 png_byte)(PNG_INFO_eXIf)3629 exif - Exif profile (array of png_byte) 3630 (PNG_INFO_eXIf) 3640 3631 3641 3632 png_set_hIST(png_ptr, info_ptr, hist); … … 3647 3638 3648 3639 mod_time - time image was last modified 3649 (PNG_ VALID_tIME)3640 (PNG_INFO_tIME) 3650 3641 3651 3642 png_set_bKGD(png_ptr, info_ptr, background); 3652 3643 3653 3644 background - background color (of type 3654 png_color_16p) (PNG_ VALID_bKGD)3645 png_color_16p) (PNG_INFO_bKGD) 3655 3646 3656 3647 png_set_text(png_ptr, info_ptr, text_ptr, num_text); … … 4738 4729 pointer that can be retrieved via 4739 4730 4740 mem_ptr =png_get_mem_ptr(png_ptr);4731 mem_ptr = png_get_mem_ptr(png_ptr); 4741 4732 4742 4733 Your replacement memory functions must have prototypes as follows: … … 5035 5026 5036 5027 #ifdef PNG_DEBUG 5037 fprintf(stderr, ... 5028 fprintf(stderr, ...); 5038 5029 #endif 5039 5030 … … 5212 5203 png_check_sig(sig, num) 5213 5204 was replaced with 5214 !png_sig_cmp(sig, 0, num)5205 png_sig_cmp(sig, 0, num) == 0 5215 5206 It has been deprecated since libpng-0.90. 5216 5207 … … 5276 5267 5277 5268 We removed the obsolete png_check_sig(), png_memcpy_check(), and 5278 png_memset_check() functions. Instead use !png_sig_cmp(), memcpy(),5279 and memset(), respectively.5269 png_memset_check() functions. Instead use png_sig_cmp() == 0, 5270 memcpy(), and memset(), respectively. 5280 5271 5281 5272 The function png_set_gray_1_2_4_to_8() was removed. It has been … … 5759 5750 libpng version since 0.88. In an autoconf "configure.in" you could use 5760 5751 5761 AC_CHECK_LIB(png, png_get_io_ptr, ... 5752 AC_CHECK_LIB(png, png_get_io_ptr, ...) 5762 5753 5763 5754 .SH XV. Source code repository … … 5768 5759 at 5769 5760 5770 https://github.com/ glennrp/libpng or5761 https://github.com/pnggroup/libpng or 5771 5762 https://git.code.sf.net/p/libpng/code.git 5772 5763 5773 5764 or you can browse it with a web browser at 5774 5765 5775 https://github.com/ glennrp/libpng or5766 https://github.com/pnggroup/libpng or 5776 5767 https://sourceforge.net/p/libpng/code/ci/libpng16/tree/ 5777 5768 … … 5783 5774 or as a "pull request" to 5784 5775 5785 https://github.com/ glennrp/libpng/pulls5776 https://github.com/pnggroup/libpng/pulls 5786 5777 5787 5778 We also accept patches built from the tar or zip distributions, and … … 5996 5987 5997 5988 .SH "SEE ALSO" 5998 .IR libpngpf(3) ", " png(5) 5989 .BR "png"(5) 5990 .IP 5991 The PNG (Portable Network Graphics) format specification. 5999 5992 .LP 6000 . IR libpng :5993 .B libpng 6001 5994 .IP 6002 https://libpng.sourceforge.io/ (follow the [DOWNLOAD] link) 6003 http://www.libpng.org/pub/png 6004 5995 http://www.libpng.org/pub/png/libpng.html (canonical home page) 5996 .br 5997 https://github.com/pnggroup/libpng (canonical Git repository) 5998 .br 5999 https://libpng.sourceforge.io (downloadable archives) 6005 6000 .LP 6006 . IR zlib :6001 .B zlib 6007 6002 .IP 6008 (generally) at the same location as 6009 .I libpng 6010 or at 6003 https://zlib.net (canonical home page) 6011 6004 .br 6012 https://zlib.net/ 6013 6014 .LP 6015 .IR PNG specification: RFC 2083 6016 .IP 6017 (generally) at the same location as 6018 .I libpng 6019 or at 6005 https://github.com/madler/zlib (canonical Git repository) 6020 6006 .br 6021 https://www.ietf.org/rfc/rfc2083.txt 6022 .br 6023 or (as a W3C Recommendation) at 6024 .br 6025 https://www.w3.org/TR/REC-png.html 6026 6007 A copy of zlib may also be found at the same location as libpng. 6027 6008 .LP 6028 6009 In the case of any inconsistency between the PNG specification … … 6044 6025 Maintained by Cosmin Truta. 6045 6026 6046 Supported by the PNG development group 6027 Supported by the PNG development group. 6047 6028 .br 6048 png-mng-implement at lists.sourceforge.net (subscription required; visit6049 https://lists.sourceforge.net/lists/listinfo/png-mng-implement6050 to subscribe ).6029 png-mng-implement at lists.sourceforge.net. (Subscription is required; 6030 visit https://lists.sourceforge.net/lists/listinfo/png-mng-implement 6031 to subscribe.) 6051 6032 6052 6033 .\" end of man page -
trunk/src/libs/libpng-1.6.42/libpng.pc.in
r96425 r103316 7 7 Description: Loads and saves PNG files 8 8 Version: @PNGLIB_VERSION@ 9 Requires : zlib9 Requires.private: zlib 10 10 Libs: -L${libdir} -lpng@PNGLIB_MAJOR@@PNGLIB_MINOR@ 11 11 Libs.private: @LIBS@ -
trunk/src/libs/libpng-1.6.42/libpngpf.3
r96425 r103316 1 .TH LIBPNGPF 3 " April 14, 2019"1 .TH LIBPNGPF 3 "January 29, 2024" 2 2 .SH NAME 3 libpng \- Portable Network Graphics (PNG) Reference Library 1.6. 373 libpng \- Portable Network Graphics (PNG) Reference Library 1.6.42 4 4 (private functions) 5 5 -
trunk/src/libs/libpng-1.6.42/ltmain.sh
r96425 r103316 1 #! / bin/sh1 #! /usr/bin/env sh 2 2 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in 3 ## by inline-source v201 4-01-03.014 5 # libtool (GNU libtool) 2.4. 63 ## by inline-source v2019-02-19.15 4 5 # libtool (GNU libtool) 2.4.7 6 6 # Provide generalized library-building support services. 7 7 # Written by Gordon Matzigkeit <[email protected]>, 1996 8 8 9 # Copyright (C) 1996-201 5Free Software Foundation, Inc.9 # Copyright (C) 1996-2019, 2021-2022 Free Software Foundation, Inc. 10 10 # This is free software; see the source for copying conditions. There is NO 11 11 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. … … 32 32 PROGRAM=libtool 33 33 PACKAGE=libtool 34 VERSION=2.4. 635 package_revision=2.4. 634 VERSION=2.4.7 35 package_revision=2.4.7 36 36 37 37 … … 65 65 66 66 # Set a version string for this script. 67 scriptversion=201 5-01-20.17; # UTC67 scriptversion=2019-02-19.15; # UTC 68 68 69 69 # General shell script boiler plate, and helper functions. 70 70 # Written by Gary V. Vaughan, 2004 71 71 72 # Copyright (C) 2004-2015 Free Software Foundation, Inc. 73 # This is free software; see the source for copying conditions. There is NO 74 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 75 76 # This program is free software; you can redistribute it and/or modify 77 # it under the terms of the GNU General Public License as published by 78 # the Free Software Foundation; either version 3 of the License, or 79 # (at your option) any later version. 80 81 # As a special exception to the GNU General Public License, if you distribute 82 # this file as part of a program or library that is built using GNU Libtool, 83 # you may include this file under the same distribution terms that you use 84 # for the rest of that program. 85 86 # This program is distributed in the hope that it will be useful, 87 # but WITHOUT ANY WARRANTY; without even the implied warranty of 88 # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU 89 # General Public License for more details. 90 91 # You should have received a copy of the GNU General Public License 92 # along with this program. If not, see <http://www.gnu.org/licenses/>. 93 94 # Please report bugs or propose patches to [email protected]. 72 # This is free software. There is NO warranty; not even for 73 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 74 # 75 # Copyright (C) 2004-2019, 2021 Bootstrap Authors 76 # 77 # This file is dual licensed under the terms of the MIT license 78 # <https://opensource.org/license/MIT>, and GPL version 2 or later 79 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of 80 # these licenses when using or redistributing this software or any of 81 # the files within it. See the URLs above, or the file `LICENSE` 82 # included in the Bootstrap distribution for the full license texts. 83 84 # Please report bugs or propose patches to: 85 # <https://github.com/gnulib-modules/bootstrap/issues> 95 86 96 87 … … 140 131 fi" 141 132 done 142 143 # CDPATH. 144 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133 # These NLS vars are set unconditionally (bootstrap issue #24). Unset those 134 # in case the environment reset is needed later and the $save_* variant is not 135 # defined (see the code above). 136 LC_ALL=C 137 LANGUAGE=C 138 export LANGUAGE LC_ALL 145 139 146 140 # Make sure IFS has a sensible default … … 159 153 fi 160 154 155 156 # func_unset VAR 157 # -------------- 158 # Portably unset VAR. 159 # In some shells, an 'unset VAR' statement leaves a non-zero return 160 # status if VAR is already unset, which might be problematic if the 161 # statement is used at the end of a function (thus poisoning its return 162 # value) or when 'set -e' is active (causing even a spurious abort of 163 # the script in this case). 164 func_unset () 165 { 166 { eval $1=; (eval unset $1) >/dev/null 2>&1 && eval unset $1 || : ; } 167 } 168 169 170 # Make sure CDPATH doesn't cause `cd` commands to output the target dir. 171 func_unset CDPATH 172 173 # Make sure ${,E,F}GREP behave sanely. 174 func_unset GREP_OPTIONS 161 175 162 176 … … 260 274 } 261 275 262 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin276 func_path_progs "sed gsed" func_check_prog_sed "$PATH:/usr/xpg4/bin" 263 277 rm -f conftest.sed 264 278 SED=$func_path_progs_result … … 296 310 } 297 311 298 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin312 func_path_progs "grep ggrep" func_check_prog_grep "$PATH:/usr/xpg4/bin" 299 313 GREP=$func_path_progs_result 300 314 } … … 360 374 s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g 361 375 s/\n//g" 376 377 # require_check_ifs_backslash 378 # --------------------------- 379 # Check if we can use backslash as IFS='\' separator, and set 380 # $check_ifs_backshlash_broken to ':' or 'false'. 381 require_check_ifs_backslash=func_require_check_ifs_backslash 382 func_require_check_ifs_backslash () 383 { 384 _G_save_IFS=$IFS 385 IFS='\' 386 _G_check_ifs_backshlash='a\\b' 387 for _G_i in $_G_check_ifs_backshlash 388 do 389 case $_G_i in 390 a) 391 check_ifs_backshlash_broken=false 392 ;; 393 '') 394 break 395 ;; 396 *) 397 check_ifs_backshlash_broken=: 398 break 399 ;; 400 esac 401 done 402 IFS=$_G_save_IFS 403 require_check_ifs_backslash=: 404 } 362 405 363 406 … … 581 624 $debug_cmd 582 625 583 func_quote_ for_eval"$2"584 eval "$1+=\\ \$func_quote_ for_eval_result"626 func_quote_arg pretty "$2" 627 eval "$1+=\\ \$func_quote_arg_result" 585 628 }' 586 629 else … … 589 632 $debug_cmd 590 633 591 func_quote_ for_eval"$2"592 eval "$1=\$$1\\ \$func_quote_ for_eval_result"634 func_quote_arg pretty "$2" 635 eval "$1=\$$1\\ \$func_quote_arg_result" 593 636 } 594 637 fi … … 1092 1135 1093 1136 1094 # func_quote_for_eval ARG... 1095 # -------------------------- 1096 # Aesthetically quote ARGs to be evaled later. 1097 # This function returns two values: 1098 # i) func_quote_for_eval_result 1099 # double-quoted, suitable for a subsequent eval 1100 # ii) func_quote_for_eval_unquoted_result 1101 # has all characters that are still active within double 1102 # quotes backslashified. 1103 func_quote_for_eval () 1137 # func_quote_portable EVAL ARG 1138 # ---------------------------- 1139 # Internal function to portably implement func_quote_arg. Note that we still 1140 # keep attention to performance here so we as much as possible try to avoid 1141 # calling sed binary (so far O(N) complexity as long as func_append is O(1)). 1142 func_quote_portable () 1104 1143 { 1105 1144 $debug_cmd 1106 1145 1107 func_quote_for_eval_unquoted_result= 1108 func_quote_for_eval_result= 1109 while test 0 -lt $#; do 1146 $require_check_ifs_backslash 1147 1148 func_quote_portable_result=$2 1149 1150 # one-time-loop (easy break) 1151 while true 1152 do 1153 if $1; then 1154 func_quote_portable_result=`$ECHO "$2" | $SED \ 1155 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` 1156 break 1157 fi 1158 1159 # Quote for eval. 1160 case $func_quote_portable_result in 1161 *[\\\`\"\$]*) 1162 # Fallback to sed for $func_check_bs_ifs_broken=:, or when the string 1163 # contains the shell wildcard characters. 1164 case $check_ifs_backshlash_broken$func_quote_portable_result in 1165 :*|*[\[\*\?]*) 1166 func_quote_portable_result=`$ECHO "$func_quote_portable_result" \ 1167 | $SED "$sed_quote_subst"` 1168 break 1169 ;; 1170 esac 1171 1172 func_quote_portable_old_IFS=$IFS 1173 for _G_char in '\' '`' '"' '$' 1174 do 1175 # STATE($1) PREV($2) SEPARATOR($3) 1176 set start "" "" 1177 func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy 1178 IFS=$_G_char 1179 for _G_part in $func_quote_portable_result 1180 do 1181 case $1 in 1182 quote) 1183 func_append func_quote_portable_result "$3$2" 1184 set quote "$_G_part" "\\$_G_char" 1185 ;; 1186 start) 1187 set first "" "" 1188 func_quote_portable_result= 1189 ;; 1190 first) 1191 set quote "$_G_part" "" 1192 ;; 1193 esac 1194 done 1195 done 1196 IFS=$func_quote_portable_old_IFS 1197 ;; 1198 *) ;; 1199 esac 1200 break 1201 done 1202 1203 func_quote_portable_unquoted_result=$func_quote_portable_result 1204 case $func_quote_portable_result in 1205 # double-quote args containing shell metacharacters to delay 1206 # word splitting, command substitution and variable expansion 1207 # for a subsequent eval. 1208 # many bourne shells cannot handle close brackets correctly 1209 # in scan sets, so we specify it separately. 1210 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 1211 func_quote_portable_result=\"$func_quote_portable_result\" 1212 ;; 1213 esac 1214 } 1215 1216 1217 # func_quotefast_eval ARG 1218 # ----------------------- 1219 # Quote one ARG (internal). This is equivalent to 'func_quote_arg eval ARG', 1220 # but optimized for speed. Result is stored in $func_quotefast_eval. 1221 if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then 1222 printf -v _GL_test_printf_tilde %q '~' 1223 if test '\~' = "$_GL_test_printf_tilde"; then 1224 func_quotefast_eval () 1225 { 1226 printf -v func_quotefast_eval_result %q "$1" 1227 } 1228 else 1229 # Broken older Bash implementations. Make those faster too if possible. 1230 func_quotefast_eval () 1231 { 1110 1232 case $1 in 1111 *[\\\`\"\$]*) 1112 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;; 1113 *) 1114 _G_unquoted_arg=$1 ;; 1115 esac 1116 if test -n "$func_quote_for_eval_unquoted_result"; then 1117 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg" 1118 else 1119 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg" 1120 fi 1121 1122 case $_G_unquoted_arg in 1123 # Double-quote args containing shell metacharacters to delay 1124 # word splitting, command substitution and variable expansion 1125 # for a subsequent eval. 1126 # Many Bourne shells cannot handle close brackets correctly 1127 # in scan sets, so we specify it separately. 1128 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 1129 _G_quoted_arg=\"$_G_unquoted_arg\" 1233 '~'*) 1234 func_quote_portable false "$1" 1235 func_quotefast_eval_result=$func_quote_portable_result 1130 1236 ;; 1131 1237 *) 1132 _G_quoted_arg=$_G_unquoted_arg1133 1238 printf -v func_quotefast_eval_result %q "$1" 1239 ;; 1134 1240 esac 1135 1136 if test -n "$func_quote_for_eval_result"; then 1137 func_append func_quote_for_eval_result " $_G_quoted_arg" 1241 } 1242 fi 1243 else 1244 func_quotefast_eval () 1245 { 1246 func_quote_portable false "$1" 1247 func_quotefast_eval_result=$func_quote_portable_result 1248 } 1249 fi 1250 1251 1252 # func_quote_arg MODEs ARG 1253 # ------------------------ 1254 # Quote one ARG to be evaled later. MODEs argument may contain zero or more 1255 # specifiers listed below separated by ',' character. This function returns two 1256 # values: 1257 # i) func_quote_arg_result 1258 # double-quoted (when needed), suitable for a subsequent eval 1259 # ii) func_quote_arg_unquoted_result 1260 # has all characters that are still active within double 1261 # quotes backslashified. Available only if 'unquoted' is specified. 1262 # 1263 # Available modes: 1264 # ---------------- 1265 # 'eval' (default) 1266 # - escape shell special characters 1267 # 'expand' 1268 # - the same as 'eval'; but do not quote variable references 1269 # 'pretty' 1270 # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might 1271 # be used later in func_quote to get output like: 'echo "a b"' instead 1272 # of 'echo a\ b'. This is slower than default on some shells. 1273 # 'unquoted' 1274 # - produce also $func_quote_arg_unquoted_result which does not contain 1275 # wrapping double-quotes. 1276 # 1277 # Examples for 'func_quote_arg pretty,unquoted string': 1278 # 1279 # string | *_result | *_unquoted_result 1280 # ------------+-----------------------+------------------- 1281 # " | \" | \" 1282 # a b | "a b" | a b 1283 # "a b" | "\"a b\"" | \"a b\" 1284 # * | "*" | * 1285 # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\" 1286 # 1287 # Examples for 'func_quote_arg pretty,unquoted,expand string': 1288 # 1289 # string | *_result | *_unquoted_result 1290 # --------------+---------------------+-------------------- 1291 # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\" 1292 func_quote_arg () 1293 { 1294 _G_quote_expand=false 1295 case ,$1, in 1296 *,expand,*) 1297 _G_quote_expand=: 1298 ;; 1299 esac 1300 1301 case ,$1, in 1302 *,pretty,*|*,expand,*|*,unquoted,*) 1303 func_quote_portable $_G_quote_expand "$2" 1304 func_quote_arg_result=$func_quote_portable_result 1305 func_quote_arg_unquoted_result=$func_quote_portable_unquoted_result 1306 ;; 1307 *) 1308 # Faster quote-for-eval for some shells. 1309 func_quotefast_eval "$2" 1310 func_quote_arg_result=$func_quotefast_eval_result 1311 ;; 1312 esac 1313 } 1314 1315 1316 # func_quote MODEs ARGs... 1317 # ------------------------ 1318 # Quote all ARGs to be evaled later and join them into single command. See 1319 # func_quote_arg's description for more info. 1320 func_quote () 1321 { 1322 $debug_cmd 1323 _G_func_quote_mode=$1 ; shift 1324 func_quote_result= 1325 while test 0 -lt $#; do 1326 func_quote_arg "$_G_func_quote_mode" "$1" 1327 if test -n "$func_quote_result"; then 1328 func_append func_quote_result " $func_quote_arg_result" 1138 1329 else 1139 func_append func_quote_ for_eval_result "$_G_quoted_arg"1330 func_append func_quote_result "$func_quote_arg_result" 1140 1331 fi 1141 1332 shift 1142 1333 done 1143 }1144 1145 1146 # func_quote_for_expand ARG1147 # -------------------------1148 # Aesthetically quote ARG to be evaled later; same as above,1149 # but do not quote variable references.1150 func_quote_for_expand ()1151 {1152 $debug_cmd1153 1154 case $1 in1155 *[\\\`\"]*)1156 _G_arg=`$ECHO "$1" | $SED \1157 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;1158 *)1159 _G_arg=$1 ;;1160 esac1161 1162 case $_G_arg in1163 # Double-quote args containing shell metacharacters to delay1164 # word splitting and command substitution for a subsequent eval.1165 # Many Bourne shells cannot handle close brackets correctly1166 # in scan sets, so we specify it separately.1167 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")1168 _G_arg=\"$_G_arg\"1169 ;;1170 esac1171 1172 func_quote_for_expand_result=$_G_arg1173 1334 } 1174 1335 … … 1216 1377 _G_fail_exp=${2-':'} 1217 1378 1218 func_quote_ for_expand "$_G_cmd"1219 eval "func_notquiet $func_quote_ for_expand_result"1379 func_quote_arg pretty,expand "$_G_cmd" 1380 eval "func_notquiet $func_quote_arg_result" 1220 1381 1221 1382 $opt_dry_run || { … … 1242 1403 1243 1404 $opt_quiet || { 1244 func_quote_ for_expand"$_G_cmd"1245 eval "func_echo $func_quote_ for_expand_result"1405 func_quote_arg expand,pretty "$_G_cmd" 1406 eval "func_echo $func_quote_arg_result" 1246 1407 } 1247 1408 … … 1370 1531 #! /bin/sh 1371 1532 1372 # Set a version string for this script.1373 scriptversion=2014-01-07.03; # UTC1374 1375 1533 # A portable, pluggable option parser for Bourne shell. 1376 1534 # Written by Gary V. Vaughan, 2010 1377 1535 1378 # Copyright (C) 2010-2015 Free Software Foundation, Inc. 1379 # This is free software; see the source for copying conditions. There is NO 1380 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 1381 1382 # This program is free software: you can redistribute it and/or modify 1383 # it under the terms of the GNU General Public License as published by 1384 # the Free Software Foundation, either version 3 of the License, or 1385 # (at your option) any later version. 1386 1387 # This program is distributed in the hope that it will be useful, 1388 # but WITHOUT ANY WARRANTY; without even the implied warranty of 1389 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1390 # GNU General Public License for more details. 1391 1392 # You should have received a copy of the GNU General Public License 1393 # along with this program. If not, see <http://www.gnu.org/licenses/>. 1394 1395 # Please report bugs or propose patches to [email protected]. 1536 # This is free software. There is NO warranty; not even for 1537 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 1538 # 1539 # Copyright (C) 2010-2019, 2021 Bootstrap Authors 1540 # 1541 # This file is dual licensed under the terms of the MIT license 1542 # <https://opensource.org/license/MIT>, and GPL version 2 or later 1543 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of 1544 # these licenses when using or redistributing this software or any of 1545 # the files within it. See the URLs above, or the file `LICENSE` 1546 # included in the Bootstrap distribution for the full license texts. 1547 1548 # Please report bugs or propose patches to: 1549 # <https://github.com/gnulib-modules/bootstrap/issues> 1550 1551 # Set a version string for this script. 1552 scriptversion=2019-02-19.15; # UTC 1396 1553 1397 1554 … … 1416 1573 # In order for the '--version' option to work, you will need to have a 1417 1574 # suitably formatted comment like the one at the top of this file 1418 # starting with '# Written by ' and ending with '# warranty;'.1575 # starting with '# Written by ' and ending with '# Copyright'. 1419 1576 # 1420 1577 # For '-h' and '--help' to work, you will also need a one line … … 1428 1585 # '--verbose'. 1429 1586 # 1430 # After sourcing this file, you can plug processing for additional1587 # After sourcing this file, you can plug in processing for additional 1431 1588 # options by amending the variables from the 'Configuration' section 1432 1589 # below, and following the instructions in the 'Option parsing' … … 1477 1634 1478 1635 # This section contains functions for adding, removing, and running hooks 1479 # to the main code. A hook is just a named list of of function, that can1480 # berun in order later on.1636 # in the main code. A hook is just a list of function names that can be 1637 # run in order later on. 1481 1638 1482 1639 # func_hookable FUNC_NAME … … 1511 1668 # func_remove_hook FUNC_NAME HOOK_FUNC 1512 1669 # ------------------------------------ 1513 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME. 1670 # Remove HOOK_FUNC from the list of hook functions to be called by 1671 # FUNC_NAME. 1514 1672 func_remove_hook () 1515 1673 { … … 1517 1675 1518 1676 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' 1677 } 1678 1679 1680 # func_propagate_result FUNC_NAME_A FUNC_NAME_B 1681 # --------------------------------------------- 1682 # If the *_result variable of FUNC_NAME_A _is set_, assign its value to 1683 # *_result variable of FUNC_NAME_B. 1684 func_propagate_result () 1685 { 1686 $debug_cmd 1687 1688 func_propagate_result_result=: 1689 if eval "test \"\${${1}_result+set}\" = set" 1690 then 1691 eval "${2}_result=\$${1}_result" 1692 else 1693 func_propagate_result_result=false 1694 fi 1519 1695 } 1520 1696 … … 1523 1699 # --------------------------------- 1524 1700 # Run all hook functions registered to FUNC_NAME. 1525 # It is assumed that the list of hook functions contains nothing more1701 # It's assumed that the list of hook functions contains nothing more 1526 1702 # than a whitespace-delimited list of legal shell function names, and 1527 1703 # no effort is wasted trying to catch shell meta-characters or preserve … … 1533 1709 case " $hookable_fns " in 1534 1710 *" $1 "*) ;; 1535 *) func_fatal_error "'$1' does not support hook func ions.n" ;;1711 *) func_fatal_error "'$1' does not support hook functions." ;; 1536 1712 esac 1537 1713 … … 1539 1715 1540 1716 for _G_hook in $_G_hook_fns; do 1541 eval $_G_hook '"$@"'1542 1543 # store returned options list back into positional1544 # parameters for next 'cmd' execution.1545 eval _G_hook_result=\$${_G_hook}_result1546 eval set dummy "$_G_hook_result"; shift1717 func_unset "${_G_hook}_result" 1718 eval $_G_hook '${1+"$@"}' 1719 func_propagate_result $_G_hook func_run_hooks 1720 if $func_propagate_result_result; then 1721 eval set dummy "$func_run_hooks_result"; shift 1722 fi 1547 1723 done 1548 1549 func_quote_for_eval ${1+"$@"}1550 func_run_hooks_result=$func_quote_for_eval_result1551 1724 } 1552 1725 … … 1558 1731 1559 1732 # In order to add your own option parsing hooks, you must accept the 1560 # full positional parameter list in your hook function, remove any 1561 # options that you action, and then pass back the remaining unprocessed 1562 # options in '<hooked_function_name>_result', escaped suitably for 1563 # 'eval'. Like this: 1733 # full positional parameter list from your hook function. You may remove 1734 # or edit any options that you action, and then pass back the remaining 1735 # unprocessed options in '<hooked_function_name>_result', escaped 1736 # suitably for 'eval'. 1737 # 1738 # The '<hooked_function_name>_result' variable is automatically unset 1739 # before your hook gets called; for best performance, only set the 1740 # *_result variable when necessary (i.e. don't call the 'func_quote' 1741 # function unnecessarily because it can be an expensive operation on some 1742 # machines). 1743 # 1744 # Like this: 1564 1745 # 1565 1746 # my_options_prep () … … 1571 1752 # -s, --silent don'\''t print informational messages 1572 1753 # ' 1573 # 1574 # func_quote_for_eval ${1+"$@"} 1575 # my_options_prep_result=$func_quote_for_eval_result 1754 # # No change in '$@' (ignored completely by this hook). Leave 1755 # # my_options_prep_result variable intact. 1576 1756 # } 1577 1757 # func_add_hook func_options_prep my_options_prep … … 1582 1762 # $debug_cmd 1583 1763 # 1584 # # Note that for efficiency, we parse as many options as we can 1764 # args_changed=false 1765 # 1766 # # Note that, for efficiency, we parse as many options as we can 1585 1767 # # recognise in a loop before passing the remainder back to the 1586 1768 # # caller on the first unrecognised argument we encounter. … … 1588 1770 # opt=$1; shift 1589 1771 # case $opt in 1590 # --silent|-s) opt_silent=: ;; 1772 # --silent|-s) opt_silent=: 1773 # args_changed=: 1774 # ;; 1591 1775 # # Separate non-argument short options: 1592 1776 # -s*) func_split_short_opt "$_G_opt" … … 1594 1778 # "-$func_split_short_opt_arg" ${1+"$@"} 1595 1779 # shift 1780 # args_changed=: 1596 1781 # ;; 1597 # *) set dummy "$_G_opt" "$*"; shift; break ;; 1782 # *) # Make sure the first unrecognised option "$_G_opt" 1783 # # is added back to "$@" in case we need it later, 1784 # # if $args_changed was set to 'true'. 1785 # set dummy "$_G_opt" ${1+"$@"}; shift; break ;; 1598 1786 # esac 1599 1787 # done 1600 1788 # 1601 # func_quote_for_eval ${1+"$@"} 1602 # my_silent_option_result=$func_quote_for_eval_result 1789 # # Only call 'func_quote' here if we processed at least one argument. 1790 # if $args_changed; then 1791 # func_quote eval ${1+"$@"} 1792 # my_silent_option_result=$func_quote_result 1793 # fi 1603 1794 # } 1604 1795 # func_add_hook func_parse_options my_silent_option … … 1611 1802 # $opt_silent && $opt_verbose && func_fatal_help "\ 1612 1803 # '--silent' and '--verbose' options are mutually exclusive." 1613 #1614 # func_quote_for_eval ${1+"$@"}1615 # my_option_validation_result=$func_quote_for_eval_result1616 1804 # } 1617 1805 # func_add_hook func_validate_options my_option_validation 1618 1806 # 1619 # You'll als eneed to manually amend $usage_message to reflect the extra1807 # You'll also need to manually amend $usage_message to reflect the extra 1620 1808 # options you parse. It's preferable to append if you can, so that 1621 1809 # multiple option parsing hooks can be added safely. 1810 1811 1812 # func_options_finish [ARG]... 1813 # ---------------------------- 1814 # Finishing the option parse loop (call 'func_options' hooks ATM). 1815 func_options_finish () 1816 { 1817 $debug_cmd 1818 1819 func_run_hooks func_options ${1+"$@"} 1820 func_propagate_result func_run_hooks func_options_finish 1821 } 1622 1822 1623 1823 … … 1631 1831 $debug_cmd 1632 1832 1633 func_options_prep ${1+"$@"} 1634 eval func_parse_options \ 1635 ${func_options_prep_result+"$func_options_prep_result"} 1636 eval func_validate_options \ 1637 ${func_parse_options_result+"$func_parse_options_result"} 1638 1639 eval func_run_hooks func_options \ 1640 ${func_validate_options_result+"$func_validate_options_result"} 1641 1642 # save modified positional parameters for caller 1643 func_options_result=$func_run_hooks_result 1833 _G_options_quoted=false 1834 1835 for my_func in options_prep parse_options validate_options options_finish 1836 do 1837 func_unset func_${my_func}_result 1838 func_unset func_run_hooks_result 1839 eval func_$my_func '${1+"$@"}' 1840 func_propagate_result func_$my_func func_options 1841 if $func_propagate_result_result; then 1842 eval set dummy "$func_options_result"; shift 1843 _G_options_quoted=: 1844 fi 1845 done 1846 1847 $_G_options_quoted || { 1848 # As we (func_options) are top-level options-parser function and 1849 # nobody quoted "$@" for us yet, we need to do it explicitly for 1850 # caller. 1851 func_quote eval ${1+"$@"} 1852 func_options_result=$func_quote_result 1853 } 1644 1854 } 1645 1855 … … 1650 1860 # Note that when calling hook functions, we pass through the list of 1651 1861 # positional parameters. If a hook function modifies that list, and 1652 # needs to propogate that back to rest of this script, then the complete 1653 # modified list must be put in 'func_run_hooks_result' before 1654 # returning. 1862 # needs to propagate that back to rest of this script, then the complete 1863 # modified list must be put in 'func_run_hooks_result' before returning. 1655 1864 func_hookable func_options_prep 1656 1865 func_options_prep () … … 1663 1872 1664 1873 func_run_hooks func_options_prep ${1+"$@"} 1665 1666 # save modified positional parameters for caller 1667 func_options_prep_result=$func_run_hooks_result 1874 func_propagate_result func_run_hooks func_options_prep 1668 1875 } 1669 1876 … … 1677 1884 $debug_cmd 1678 1885 1679 func_parse_options_result= 1680 1886 _G_parse_options_requote=false 1681 1887 # this just eases exit handling 1682 1888 while test $# -gt 0; do … … 1684 1890 # get priority in the event of reusing an option name. 1685 1891 func_run_hooks func_parse_options ${1+"$@"} 1686 1687 # Adjust func_parse_options positional parameters to match 1688 eval set dummy "$func_run_hooks_result"; shift 1892 func_propagate_result func_run_hooks func_parse_options 1893 if $func_propagate_result_result; then 1894 eval set dummy "$func_parse_options_result"; shift 1895 # Even though we may have changed "$@", we passed the "$@" array 1896 # down into the hook and it quoted it for us (because we are in 1897 # this if-branch). No need to quote it again. 1898 _G_parse_options_requote=false 1899 fi 1689 1900 1690 1901 # Break out of the loop if we already parsed every option. 1691 1902 test $# -gt 0 || break 1692 1903 1904 # We expect that one of the options parsed in this function matches 1905 # and thus we remove _G_opt from "$@" and need to re-quote. 1906 _G_match_parse_options=: 1693 1907 _G_opt=$1 1694 1908 shift 1695 1909 case $_G_opt in 1696 1910 --debug|-x) debug_cmd='set -x' 1697 func_echo "enabling shell trace mode" 1911 func_echo "enabling shell trace mode" >&2 1698 1912 $debug_cmd 1699 1913 ;; … … 1705 1919 1706 1920 --warnings|--warning|-W) 1707 test $# = 0 && func_missing_arg $_G_opt && break 1921 if test $# = 0 && func_missing_arg $_G_opt; then 1922 _G_parse_options_requote=: 1923 break 1924 fi 1708 1925 case " $warning_categories $1" in 1709 1926 *" $1 "*) … … 1758 1975 ;; 1759 1976 1760 --) break ;;1977 --) _G_parse_options_requote=: ; break ;; 1761 1978 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; 1762 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; 1979 *) set dummy "$_G_opt" ${1+"$@"}; shift 1980 _G_match_parse_options=false 1981 break 1982 ;; 1763 1983 esac 1984 1985 if $_G_match_parse_options; then 1986 _G_parse_options_requote=: 1987 fi 1764 1988 done 1765 1989 1766 # save modified positional parameters for caller 1767 func_quote_for_eval ${1+"$@"} 1768 func_parse_options_result=$func_quote_for_eval_result 1990 if $_G_parse_options_requote; then 1991 # save modified positional parameters for caller 1992 func_quote eval ${1+"$@"} 1993 func_parse_options_result=$func_quote_result 1994 fi 1769 1995 } 1770 1996 … … 1783 2009 1784 2010 func_run_hooks func_validate_options ${1+"$@"} 2011 func_propagate_result func_run_hooks func_validate_options 1785 2012 1786 2013 # Bail if the options were screwed! 1787 2014 $exit_cmd $EXIT_FAILURE 1788 1789 # save modified positional parameters for caller1790 func_validate_options_result=$func_run_hooks_result1791 2015 } 1792 2016 … … 1844 2068 # func_split_equals STRING 1845 2069 # ------------------------ 1846 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after1847 # splitting STRING at the '=' sign.2070 # Set func_split_equals_lhs and func_split_equals_rhs shell variables 2071 # after splitting STRING at the '=' sign. 1848 2072 test -z "$_G_HAVE_XSI_OPS" \ 1849 2073 && (eval 'x=a/b/c; … … 1860 2084 func_split_equals_lhs=${1%%=*} 1861 2085 func_split_equals_rhs=${1#*=} 1862 test "x$func_split_equals_lhs" = "x$1" \ 1863 && func_split_equals_rhs= 2086 if test "x$func_split_equals_lhs" = "x$1"; then 2087 func_split_equals_rhs= 2088 fi 1864 2089 }' 1865 2090 else … … 1871 2096 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'` 1872 2097 func_split_equals_rhs= 1873 test "x$func_split_equals_lhs " = "x$1" \2098 test "x$func_split_equals_lhs=" = "x$1" \ 1874 2099 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'` 1875 2100 } … … 1897 2122 $debug_cmd 1898 2123 1899 func_split_short_opt_name=`expr "x$1" : 'x -\(.\)'`2124 func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'` 1900 2125 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'` 1901 2126 } … … 1939 2164 # ------------ 1940 2165 # Echo version message to standard output and exit. 2166 # The version message is extracted from the calling file's header 2167 # comments, with leading '# ' stripped: 2168 # 1. First display the progname and version 2169 # 2. Followed by the header comment line matching /^# Written by / 2170 # 3. Then a blank line followed by the first following line matching 2171 # /^# Copyright / 2172 # 4. Immediately followed by any lines between the previous matches, 2173 # except lines preceding the intervening completely blank line. 2174 # For example, see the header comments of this file. 1941 2175 func_version () 1942 2176 { … … 1945 2179 printf '%s\n' "$progname $scriptversion" 1946 2180 $SED -n ' 1947 /(C)/!b go 1948 :more 1949 /\./!{ 1950 N 1951 s|\n# | | 1952 b more 2181 /^# Written by /!b 2182 s|^# ||; p; n 2183 2184 :fwd2blnk 2185 /./ { 2186 n 2187 b fwd2blnk 1953 2188 } 1954 :go 1955 /^# Written by /,/# warranty; / { 1956 s|^# || 1957 s|^# *$|| 1958 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| 1959 p 2189 p; n 2190 2191 :holdwrnt 2192 s|^# || 2193 s|^# *$|| 2194 /^Copyright /!{ 2195 /./H 2196 n 2197 b holdwrnt 1960 2198 } 1961 /^# Written by / { 1962 s|^# ||1963 p1964 }1965 /^warranty; /q' < "$progpath"2199 2200 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| 2201 G 2202 s|\(\n\)\n*|\1|g 2203 p; q' < "$progpath" 1966 2204 1967 2205 exit $? … … 1973 2211 # sh-indentation: 2 1974 2212 # eval: (add-hook 'before-save-hook 'time-stamp) 1975 # time-stamp-pattern: " 10/scriptversion=%:y-%02m-%02d.%02H; # UTC"2213 # time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC" 1976 2214 # time-stamp-time-zone: "UTC" 1977 2215 # End: 1978 2216 1979 2217 # Set a version string. 1980 scriptversion='(GNU libtool) 2.4. 6'2218 scriptversion='(GNU libtool) 2.4.7' 1981 2219 1982 2220 … … 2069 2307 compiler flags: $LTCFLAGS 2070 2308 linker: $LD (gnu? $with_gnu_ld) 2071 version: $progname (GNU libtool) 2.4. 62309 version: $progname (GNU libtool) 2.4.7 2072 2310 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` 2073 2311 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` … … 2125 2363 func_fatal_configuration () 2126 2364 { 2127 func_ _fatal_error ${1+"$@"} \2365 func_fatal_error ${1+"$@"} \ 2128 2366 "See the $PACKAGE documentation for more information." \ 2129 2367 "Fatal configuration error." … … 2271 2509 preserve_args= 2272 2510 2511 _G_rc_lt_options_prep=: 2512 2273 2513 # Shorthand for --mode=foo, only valid as the first argument 2274 2514 case $1 in … … 2294 2534 shift; set dummy --mode uninstall ${1+"$@"}; shift 2295 2535 ;; 2536 *) 2537 _G_rc_lt_options_prep=false 2538 ;; 2296 2539 esac 2297 2540 2298 # Pass back the list of options. 2299 func_quote_for_eval ${1+"$@"} 2300 libtool_options_prep_result=$func_quote_for_eval_result 2541 if $_G_rc_lt_options_prep; then 2542 # Pass back the list of options. 2543 func_quote eval ${1+"$@"} 2544 libtool_options_prep_result=$func_quote_result 2545 fi 2301 2546 } 2302 2547 func_add_hook func_options_prep libtool_options_prep … … 2310 2555 $debug_cmd 2311 2556 2557 _G_rc_lt_parse_options=false 2558 2312 2559 # Perform our own loop to consume as many options as possible in 2313 2560 # each iteration. 2314 2561 while test $# -gt 0; do 2562 _G_match_lt_parse_options=: 2315 2563 _G_opt=$1 2316 2564 shift … … 2387 2635 ;; 2388 2636 2389 # An option not handled by this hook function: 2390 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; 2637 # An option not handled by this hook function: 2638 *) set dummy "$_G_opt" ${1+"$@"} ; shift 2639 _G_match_lt_parse_options=false 2640 break 2641 ;; 2391 2642 esac 2643 $_G_match_lt_parse_options && _G_rc_lt_parse_options=: 2392 2644 done 2393 2645 2394 2395 # save modified positional parameters for caller 2396 func_quote_for_eval ${1+"$@"} 2397 libtool_parse_options_result=$func_quote_for_eval_result 2646 if $_G_rc_lt_parse_options; then 2647 # save modified positional parameters for caller 2648 func_quote eval ${1+"$@"} 2649 libtool_parse_options_result=$func_quote_result 2650 fi 2398 2651 } 2399 2652 func_add_hook func_parse_options libtool_parse_options … … 2452 2705 2453 2706 # Pass back the unparsed argument list 2454 func_quote _for_eval ${1+"$@"}2455 libtool_validate_options_result=$func_quote_ for_eval_result2707 func_quote eval ${1+"$@"} 2708 libtool_validate_options_result=$func_quote_result 2456 2709 } 2457 2710 func_add_hook func_validate_options libtool_validate_options … … 3419 3672 done 3420 3673 3421 func_quote_ for_eval"$libobj"3422 test "X$libobj" != "X$func_quote_ for_eval_result" \3674 func_quote_arg pretty "$libobj" 3675 test "X$libobj" != "X$func_quote_arg_result" \ 3423 3676 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ 3424 3677 && func_warning "libobj name '$libobj' may not contain shell special characters." … … 3493 3746 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 3494 3747 srcfile=$func_to_tool_file_result 3495 func_quote_ for_eval"$srcfile"3496 qsrcfile=$func_quote_ for_eval_result3748 func_quote_arg pretty "$srcfile" 3749 qsrcfile=$func_quote_arg_result 3497 3750 3498 3751 # Only build a PIC object if we are building libtool libraries. … … 3649 3902 -shared do not build a '.o' file suitable for static linking 3650 3903 -static only build a '.o' file suitable for static linking 3651 -Wc,FLAG pass FLAG directly to the compiler 3904 -Wc,FLAG 3905 -Xcompiler FLAG pass FLAG directly to the compiler 3652 3906 3653 3907 COMPILE-COMMAND is a command to be used in creating a 'standard' object file … … 3755 4009 -Wc,FLAG 3756 4010 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler 4011 -Wa,FLAG 4012 -Xassembler FLAG pass linker-specific FLAG directly to the assembler 3757 4013 -Wl,FLAG 3758 4014 -Xlinker FLAG pass linker-specific FLAG directly to the linker … … 4097 4353 then 4098 4354 # Aesthetically quote it. 4099 func_quote_ for_eval"$nonopt"4100 install_prog="$func_quote_ for_eval_result "4355 func_quote_arg pretty "$nonopt" 4356 install_prog="$func_quote_arg_result " 4101 4357 arg=$1 4102 4358 shift … … 4108 4364 # The real first argument should be the name of the installation program. 4109 4365 # Aesthetically quote it. 4110 func_quote_ for_eval"$arg"4111 func_append install_prog "$func_quote_ for_eval_result"4366 func_quote_arg pretty "$arg" 4367 func_append install_prog "$func_quote_arg_result" 4112 4368 install_shared_prog=$install_prog 4113 4369 case " $install_prog " in … … 4166 4422 4167 4423 # Aesthetically quote the argument. 4168 func_quote_ for_eval"$arg"4169 func_append install_prog " $func_quote_ for_eval_result"4424 func_quote_arg pretty "$arg" 4425 func_append install_prog " $func_quote_arg_result" 4170 4426 if test -n "$arg2"; then 4171 func_quote_ for_eval"$arg2"4427 func_quote_arg pretty "$arg2" 4172 4428 fi 4173 func_append install_shared_prog " $func_quote_ for_eval_result"4429 func_append install_shared_prog " $func_quote_arg_result" 4174 4430 done 4175 4431 … … 4182 4438 if test -n "$install_override_mode" && $no_mode; then 4183 4439 if $install_cp; then :; else 4184 func_quote_ for_eval"$install_override_mode"4185 func_append install_shared_prog " -m $func_quote_ for_eval_result"4440 func_quote_arg pretty "$install_override_mode" 4441 func_append install_shared_prog " -m $func_quote_arg_result" 4186 4442 fi 4187 4443 fi … … 4479 4735 4480 4736 $opt_quiet || { 4481 func_quote_ for_expand"$relink_command"4482 eval "func_echo $func_quote_ for_expand_result"4737 func_quote_arg expand,pretty "$relink_command" 4738 eval "func_echo $func_quote_arg_result" 4483 4739 } 4484 4740 if eval "$relink_command"; then : … … 5259 5515 file=\"\$0\"" 5260 5516 5261 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` 5517 func_quote_arg pretty "$ECHO" 5518 qECHO=$func_quote_arg_result 5262 5519 $ECHO "\ 5263 5520 … … 5269 5526 _LTECHO_EOF' 5270 5527 } 5271 ECHO= \"$qECHO\"5528 ECHO=$qECHO 5272 5529 fi 5273 5530 … … 6612 6869 arg=$1 6613 6870 shift 6614 func_quote_ for_eval"$arg"6615 qarg=$func_quote_ for_eval_unquoted_result6616 func_append libtool_args " $func_quote_ for_eval_result"6871 func_quote_arg pretty,unquoted "$arg" 6872 qarg=$func_quote_arg_unquoted_result 6873 func_append libtool_args " $func_quote_arg_result" 6617 6874 6618 6875 # If the previous option needs an argument, assign it. … … 6850 7107 continue 6851 7108 ;; 7109 xassembler) 7110 func_append compiler_flags " -Xassembler $qarg" 7111 prev= 7112 func_append compile_command " -Xassembler $qarg" 7113 func_append finalize_command " -Xassembler $qarg" 7114 continue 7115 ;; 6852 7116 xcclinker) 6853 7117 func_append linker_flags " $qarg" … … 7020 7284 test X-lc = "X$arg" && continue 7021 7285 ;; 7022 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* )7286 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*) 7023 7287 # Do not include libc due to us having libc/libc_r. 7024 7288 test X-lc = "X$arg" && continue … … 7040 7304 elif test X-lc_r = "X$arg"; then 7041 7305 case $host in 7042 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* )7306 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*) 7043 7307 # Do not include libc_r directly, use -pthread flag. 7044 7308 continue … … 7070 7334 continue 7071 7335 ;; 7072 7073 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ 7336 # Solaris ld rejects as of 11.4. Refer to Oracle bug 22985199. 7337 -pthread) 7338 case $host in 7339 *solaris2*) ;; 7340 *) 7341 case "$new_inherited_linker_flags " in 7342 *" $arg "*) ;; 7343 * ) func_append new_inherited_linker_flags " $arg" ;; 7344 esac 7345 ;; 7346 esac 7347 continue 7348 ;; 7349 -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \ 7074 7350 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) 7075 7351 func_append compiler_flags " $arg" … … 7212 7488 for flag in $args; do 7213 7489 IFS=$save_ifs 7214 func_quote_ for_eval"$flag"7215 func_append arg " $func_quote_ for_eval_result"7216 func_append compiler_flags " $func_quote_ for_eval_result"7490 func_quote_arg pretty "$flag" 7491 func_append arg " $func_quote_arg_result" 7492 func_append compiler_flags " $func_quote_arg_result" 7217 7493 done 7218 7494 IFS=$save_ifs … … 7228 7504 for flag in $args; do 7229 7505 IFS=$save_ifs 7230 func_quote_ for_eval"$flag"7231 func_append arg " $wl$func_quote_ for_eval_result"7232 func_append compiler_flags " $wl$func_quote_ for_eval_result"7233 func_append linker_flags " $func_quote_ for_eval_result"7506 func_quote_arg pretty "$flag" 7507 func_append arg " $wl$func_quote_arg_result" 7508 func_append compiler_flags " $wl$func_quote_arg_result" 7509 func_append linker_flags " $func_quote_arg_result" 7234 7510 done 7235 7511 IFS=$save_ifs … … 7238 7514 ;; 7239 7515 7516 -Xassembler) 7517 prev=xassembler 7518 continue 7519 ;; 7520 7240 7521 -Xcompiler) 7241 7522 prev=xcompiler … … 7255 7536 # -msg_* for osf cc 7256 7537 -msg_*) 7257 func_quote_ for_eval"$arg"7258 arg=$func_quote_ for_eval_result7538 func_quote_arg pretty "$arg" 7539 arg=$func_quote_arg_result 7259 7540 ;; 7260 7541 … … 7273 7554 # --sysroot=* for sysroot support 7274 7555 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization 7556 # -specs=* GCC specs files 7275 7557 # -stdlib=* select c++ std lib with clang 7558 # -fsanitize=* Clang/GCC memory and address sanitizer 7559 # -fuse-ld=* Linker select flags for GCC 7560 # -Wa,* Pass flags directly to the assembler 7276 7561 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ 7277 7562 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ 7278 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*) 7279 func_quote_for_eval "$arg" 7280 arg=$func_quote_for_eval_result 7563 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ 7564 -specs=*|-fsanitize=*|-fuse-ld=*|-Wa,*) 7565 func_quote_arg pretty "$arg" 7566 arg=$func_quote_arg_result 7281 7567 func_append compile_command " $arg" 7282 7568 func_append finalize_command " $arg" … … 7299 7585 else 7300 7586 # Otherwise treat like 'Some other compiler flag' below 7301 func_quote_ for_eval"$arg"7302 arg=$func_quote_ for_eval_result7587 func_quote_arg pretty "$arg" 7588 arg=$func_quote_arg_result 7303 7589 fi 7304 7590 ;; … … 7306 7592 # Some other compiler flag. 7307 7593 -* | +*) 7308 func_quote_ for_eval"$arg"7309 arg=$func_quote_ for_eval_result7594 func_quote_arg pretty "$arg" 7595 arg=$func_quote_arg_result 7310 7596 ;; 7311 7597 … … 7427 7713 # Unknown arguments in both finalize_command and compile_command need 7428 7714 # to be aesthetically quoted because they are evaled later. 7429 func_quote_ for_eval"$arg"7430 arg=$func_quote_ for_eval_result7715 func_quote_arg pretty "$arg" 7716 arg=$func_quote_arg_result 7431 7717 ;; 7432 7718 esac # arg … … 8633 8919 case $host_os in 8634 8920 linux*) 8635 case `$CC -V 2>&1 | sed5q` in8921 case `$CC -V 2>&1 | $SED 5q` in 8636 8922 *Sun\ C*) # Sun C++ 5.9 8637 8923 func_suncc_cstd_abi … … 8806 9092 case $version_type in 8807 9093 # correct linux to gnu/linux during the next big refactor 8808 darwin|freebsd-elf|linux| osf|windows|none)9094 darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none) 8809 9095 func_arith $number_major + $number_minor 8810 9096 current=$func_arith_result … … 8897 9183 ;; 8898 9184 8899 freebsd-elf )9185 freebsd-elf | midnightbsd-elf) 8900 9186 func_arith $current - $age 8901 9187 major=.$func_arith_result … … 9123 9409 # Don't link with libc until the a.out ld.so is fixed. 9124 9410 ;; 9125 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* )9411 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*) 9126 9412 # Do not include libc due to us having libc/libc_r. 9127 9413 ;; … … 9934 10220 IFS=$save_ifs 9935 10221 $opt_quiet || { 9936 func_quote_ for_expand"$cmd"9937 eval "func_echo $func_quote_ for_expand_result"10222 func_quote_arg expand,pretty "$cmd" 10223 eval "func_echo $func_quote_arg_result" 9938 10224 } 9939 10225 $opt_dry_run || eval "$cmd" || { … … 10028 10314 IFS=$save_ifs 10029 10315 $opt_quiet || { 10030 func_quote_ for_expand"$cmd"10031 eval "func_echo $func_quote_ for_expand_result"10316 func_quote_arg expand,pretty "$cmd" 10317 eval "func_echo $func_quote_arg_result" 10032 10318 } 10033 10319 $opt_dry_run || eval "$cmd" || { … … 10503 10789 relink_command="$var=; export $var; $relink_command" 10504 10790 else 10505 func_quote_ for_eval"$var_value"10506 relink_command="$var=$func_quote_ for_eval_result; export $var; $relink_command"10791 func_quote_arg pretty "$var_value" 10792 relink_command="$var=$func_quote_arg_result; export $var; $relink_command" 10507 10793 fi 10508 10794 done 10509 relink_command="(cd `pwd`; $relink_command)" 10510 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` 10795 func_quote eval cd "`pwd`" 10796 func_quote_arg pretty,unquoted "($func_quote_result; $relink_command)" 10797 relink_command=$func_quote_arg_unquoted_result 10511 10798 fi 10512 10799 … … 10748 11035 relink_command="$var=; export $var; $relink_command" 10749 11036 else 10750 func_quote_ for_eval"$var_value"10751 relink_command="$var=$func_quote_ for_eval_result; export $var; $relink_command"11037 func_quote_arg pretty,unquoted "$var_value" 11038 relink_command="$var=$func_quote_arg_unquoted_result; export $var; $relink_command" 10752 11039 fi 10753 11040 done 10754 11041 # Quote the link command for shipping. 10755 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" 10756 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` 11042 func_quote eval cd "`pwd`" 11043 relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" 11044 func_quote_arg pretty,unquoted "$relink_command" 11045 relink_command=$func_quote_arg_unquoted_result 10757 11046 if test yes = "$hardcode_automatic"; then 10758 11047 relink_command= -
trunk/src/libs/libpng-1.6.42/mips/filter_msa_intrinsics.c
r96425 r103316 2 2 /* filter_msa_intrinsics.c - MSA optimised filter functions 3 3 * 4 * Copyright (c) 2018 Cosmin Truta4 * Copyright (c) 2018-2024 Cosmin Truta 5 5 * Copyright (c) 2016 Glenn Randers-Pehrson 6 * Written by Mandar Sahastrabuddhe, August 2016 .6 * Written by Mandar Sahastrabuddhe, August 2016 7 7 * 8 8 * This code is released under the libpng license. … … 12 12 13 13 #include <stdio.h> 14 #include <stdint.h>15 14 #include "../pngpriv.h" 16 15 … … 21 20 22 21 #include <msa.h> 22 #include <stdint.h> 23 23 24 24 /* libpng row pointers are not necessarily aligned to any particular boundary, … … 380 380 pp += 64; 381 381 382 383 382 ADD4(src0, src4, src1, src5, src2, src6, src3, src7, 383 src0, src1, src2, src3); 384 384 385 385 ST_UB4(src0, src1, src2, src3, rp, 16); … … 401 401 402 402 ADD4(src0, src4, src1, src5, src2, src6, src3, src7, 403 403 src0, src1, src2, src3); 404 404 405 405 ST_UB4(src0, src1, src2, src3, rp, 16); … … 426 426 LD_UB2(pp, 16, src4, src5); 427 427 428 428 ADD2(src0, src4, src1, src5, src0, src1); 429 429 430 430 ST_UB2(src0, src1, rp, 16); -
trunk/src/libs/libpng-1.6.42/mips/mips_init.c
r96425 r103316 2 2 /* mips_init.c - MSA optimised filter functions 3 3 * 4 * Copyright (c) 2018 Cosmin Truta4 * Copyright (c) 2018-2024 Cosmin Truta 5 5 * Copyright (c) 2016 Glenn Randers-Pehrson 6 * Written by Mandar Sahastrabuddhe, 2016. 6 * Written by Mandar Sahastrabuddhe, 2016 7 * Updated by guxiwei, 2023 7 8 * 8 9 * This code is released under the libpng license. … … 21 22 #ifdef PNG_READ_SUPPORTED 22 23 23 #if PNG_MIPS_MSA_OPT > 0 24 #ifdef PNG_MIPS_MSA_CHECK_SUPPORTED /* Do run-time checks */ 24 #if PNG_MIPS_MSA_IMPLEMENTATION == 1 || PNG_MIPS_MMI_IMPLEMENTATION > 0 25 26 #ifdef PNG_MIPS_MSA_CHECK_SUPPORTED /* Do MIPS MSA run-time checks */ 25 27 /* WARNING: it is strongly recommended that you do not build libpng with 26 28 * run-time checks for CPU features if at all possible. In the case of the MIPS … … 52 54 #endif /* PNG_MIPS_MSA_CHECK_SUPPORTED */ 53 55 56 #ifdef PNG_MIPS_MMI_CHECK_SUPPORTED /* Do MIPS MMI run-times checks */ 57 #ifndef PNG_MIPS_MMI_FILE 58 # ifdef __linux__ 59 # define PNG_MIPS_MMI_FILE "contrib/mips-mmi/linux.c" 60 # endif 61 #endif 62 63 #ifdef PNG_MIPS_MMI_FILE 64 65 #include <signal.h> /* for sig_atomic_t */ 66 static int png_have_mmi(); 67 #include PNG_MIPS_MMI_FILE 68 69 #else /* PNG_MIPS_MMI_FILE */ 70 # error "PNG_MIPS_MMI_FILE undefined: no support for run-time MIPS MMI checks" 71 #endif /* PNG_MIPS_MMI_FILE */ 72 #endif /* PNG_MIPS_MMI_CHECK_SUPPORTED*/ 73 54 74 #ifndef PNG_ALIGNED_MEMORY_SUPPORTED 55 75 # error "ALIGNED_MEMORY is required; set: -DPNG_ALIGNED_MEMORY_SUPPORTED" 56 76 #endif 57 77 78 /* MIPS supports two optimizations: MMI and MSA. The appropriate 79 * optimization is chosen at runtime 80 */ 58 81 void 59 png_init_filter_functions_m sa(png_structp pp, unsigned int bpp)82 png_init_filter_functions_mips(png_structp pp, unsigned int bpp) 60 83 { 84 #if PNG_MIPS_MMI_IMPLEMENTATION > 0 85 #ifdef PNG_MIPS_MMI_API_SUPPORTED 86 switch ((pp->options >> PNG_MIPS_MMI) & 3) 87 { 88 case PNG_OPTION_UNSET: 89 #endif /* PNG_MIPS_MMI_API_SUPPORTED */ 90 #ifdef PNG_MIPS_MMI_CHECK_SUPPORTED 91 { 92 static volatile sig_atomic_t no_mmi = -1; /* not checked */ 93 94 if (no_mmi < 0) 95 no_mmi = !png_have_mmi(); 96 97 if (no_mmi) 98 goto MIPS_MSA_INIT; 99 } 100 #ifdef PNG_MIPS_MMI_API_SUPPORTED 101 break; 102 #endif 103 #endif /* PNG_MIPS_MMI_CHECK_SUPPORTED */ 104 105 #ifdef PNG_MIPS_MMI_API_SUPPORTED 106 default: /* OFF or INVALID */ 107 goto MIPS_MSA_INIT; 108 109 case PNG_OPTION_ON: 110 /* Option turned on */ 111 break; 112 } 113 #endif 114 pp->read_filter[PNG_FILTER_VALUE_UP-1] = png_read_filter_row_up_mmi; 115 if (bpp == 3) 116 { 117 pp->read_filter[PNG_FILTER_VALUE_SUB-1] = png_read_filter_row_sub3_mmi; 118 pp->read_filter[PNG_FILTER_VALUE_AVG-1] = png_read_filter_row_avg3_mmi; 119 pp->read_filter[PNG_FILTER_VALUE_PAETH-1] = 120 png_read_filter_row_paeth3_mmi; 121 } 122 else if (bpp == 4) 123 { 124 pp->read_filter[PNG_FILTER_VALUE_SUB-1] = png_read_filter_row_sub4_mmi; 125 pp->read_filter[PNG_FILTER_VALUE_AVG-1] = png_read_filter_row_avg4_mmi; 126 pp->read_filter[PNG_FILTER_VALUE_PAETH-1] = 127 png_read_filter_row_paeth4_mmi; 128 } 129 #endif /* PNG_MIPS_MMI_IMPLEMENTATION > 0 */ 130 131 MIPS_MSA_INIT: 132 #if PNG_MIPS_MSA_IMPLEMENTATION == 1 61 133 /* The switch statement is compiled in for MIPS_MSA_API, the call to 62 134 * png_have_msa is compiled in for MIPS_MSA_CHECK. If both are defined … … 126 198 pp->read_filter[PNG_FILTER_VALUE_PAETH-1] = png_read_filter_row_paeth4_msa; 127 199 } 200 #endif /* PNG_MIPS_MSA_IMPLEMENTATION == 1 */ 201 return; 128 202 } 129 #endif /* PNG_MIPS_MSA_ OPT> 0 */203 #endif /* PNG_MIPS_MSA_IMPLEMENTATION == 1 || PNG_MIPS_MMI_IMPLEMENTATION > 0 */ 130 204 #endif /* READ */ -
trunk/src/libs/libpng-1.6.42/missing
r96425 r103316 4 4 scriptversion=2018-03-07.03; # UTC 5 5 6 # Copyright (C) 1996-20 18Free Software Foundation, Inc.6 # Copyright (C) 1996-2021 Free Software Foundation, Inc. 7 7 # Originally written by Fran,cois Pinard <[email protected]>, 1996. 8 8 -
trunk/src/libs/libpng-1.6.42/png.5
r96425 r103316 1 .TH PNG 5 " April 14, 2019"1 .TH PNG 5 "January 29, 2024" 2 2 .SH NAME 3 3 png \- Portable Network Graphics (PNG) format … … 19 19 20 20 .SH "SEE ALSO" 21 .BR "libpng"(3), " libpngpf"(3), "zlib"(3), " deflate"(5), " " and " zlib"(5)21 .BR "libpng"(3), " zlib"(3), " deflate"(5), " " and " zlib"(5) 22 22 .LP 23 23 PNG Specification (Second Edition), November 2003: … … 44 44 45 45 .SH AUTHORS 46 This man page: Cosmin Truta, Glenn Randers-Pehrson46 This man page: Glenn Randers-Pehrson, Cosmin Truta 47 47 .LP 48 48 Portable Network Graphics (PNG) Specification (Second Edition) … … 52 52 .LP 53 53 Portable Network Graphics (PNG) Specification Version 1.2 (July 8, 1999): 54 Glenn Randers-Pehrson and others (png-list).54 Glenn Randers-Pehrson and others. 55 55 .LP 56 56 Portable Network Graphics (PNG) Specification Version 1.0 (October 1, 1996): 57 Thomas Boutell and others (png-list).57 Thomas Boutell and others. 58 58 59 .SH COPYRIGHT60 .LP61 This man page is62 .br63 Copyright (c) 2018-2019 Cosmin Truta.64 .br65 Copyright (c) 1998-2006 Glenn Randers-Pehrson.66 .br67 See png.h for conditions of use and distribution.68 .LP69 The PNG Specification (Second Edition) is70 .br71 Copyright (c) 2003 W3C. (MIT, ERCIM, Keio), All Rights Reserved.72 .LP73 The PNG-1.2 Specification is74 .br75 Copyright (c) 1999 Glenn Randers-Pehrson.76 .br77 See the specification for conditions of use and distribution.78 .LP79 The PNG-1.0 Specification is80 .br81 Copyright (c) 1996 Massachusetts Institute of Technology.82 .br83 See the specification for conditions of use and distribution.84 59 .\" end of man page -
trunk/src/libs/libpng-1.6.42/png.c
r96425 r103316 2 2 /* png.c - location for general purpose libpng functions 3 3 * 4 * Copyright (c) 2018-20 19Cosmin Truta4 * Copyright (c) 2018-2024 Cosmin Truta 5 5 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 6 * Copyright (c) 1996-1997 Andreas Dilger … … 15 15 16 16 /* Generate a compiler error if there is an old png.h in the search path. */ 17 typedef png_libpng_version_1_6_37 Your_png_h_is_not_version_1_6_37; 18 19 #ifdef __GNUC__ 20 /* The version tests may need to be added to, but the problem warning has 21 * consistently been fixed in GCC versions which obtain wide-spread release. 22 * The problem is that many versions of GCC rearrange comparison expressions in 23 * the optimizer in such a way that the results of the comparison will change 24 * if signed integer overflow occurs. Such comparisons are not permitted in 25 * ANSI C90, however GCC isn't clever enough to work out that that do not occur 26 * below in png_ascii_from_fp and png_muldiv, so it produces a warning with 27 * -Wextra. Unfortunately this is highly dependent on the optimizer and the 28 * machine architecture so the warning comes and goes unpredictably and is 29 * impossible to "fix", even were that a good idea. 30 */ 31 #if __GNUC__ == 7 && __GNUC_MINOR__ == 1 32 #define GCC_STRICT_OVERFLOW 1 33 #endif /* GNU 7.1.x */ 34 #endif /* GNU */ 35 #ifndef GCC_STRICT_OVERFLOW 36 #define GCC_STRICT_OVERFLOW 0 37 #endif 17 typedef png_libpng_version_1_6_42 Your_png_h_is_not_version_1_6_42; 38 18 39 19 /* Tells libpng that we have already handled the first "num_bytes" bytes … … 74 54 png_sig_cmp(png_const_bytep sig, size_t start, size_t num_to_check) 75 55 { 76 png_byte png_signature[8] = {137, 80, 78, 71, 13, 10, 26, 10};56 static const png_byte png_signature[8] = {137, 80, 78, 71, 13, 10, 26, 10}; 77 57 78 58 if (num_to_check > 8) … … 80 60 81 61 else if (num_to_check < 1) 82 return (-1);62 return -1; 83 63 84 64 if (start > 7) 85 return (-1);65 return -1; 86 66 87 67 if (start + num_to_check > 8) 88 68 num_to_check = 8 - start; 89 69 90 return ((int)(memcmp(&sig[start], &png_signature[start], num_to_check)));70 return memcmp(&sig[start], &png_signature[start], num_to_check); 91 71 } 92 72 … … 448 428 } 449 429 450 /* The following API is not called internally */451 430 void PNGAPI 452 431 png_data_freer(png_const_structrp png_ptr, png_inforp info_ptr, … … 687 666 { 688 667 if (png_ptr == NULL) 689 return (NULL);690 691 return (png_ptr->io_ptr);668 return NULL; 669 670 return png_ptr->io_ptr; 692 671 } 693 672 … … 721 700 * Where UNSIGNED_MAX is the appropriate maximum unsigned value, so when the 722 701 * negative integral value is added the result will be an unsigned value 723 * corresp nding to the 2's complement representation.702 * corresponding to the 2's complement representation. 724 703 */ 725 704 void PNGAPI … … 753 732 { 754 733 size_t pos = 0; 755 char number_buf[5] ; /* enough for a four-digit year */734 char number_buf[5] = {0, 0, 0, 0, 0}; /* enough for a four-digit year */ 756 735 757 736 # define APPEND_STRING(string) pos = png_safecat(out, 29, pos, (string)) … … 816 795 #else 817 796 return PNG_STRING_NEWLINE \ 818 "libpng version 1.6. 37" PNG_STRING_NEWLINE \819 "Copyright (c) 2018-20 19Cosmin Truta" PNG_STRING_NEWLINE \797 "libpng version 1.6.42" PNG_STRING_NEWLINE \ 798 "Copyright (c) 2018-2024 Cosmin Truta" PNG_STRING_NEWLINE \ 820 799 "Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson" \ 821 800 PNG_STRING_NEWLINE \ … … 978 957 979 958 /* WARNING: this resets the window bits to the maximum! */ 980 return (inflateReset(&png_ptr->zstream));959 return inflateReset(&png_ptr->zstream); 981 960 } 982 961 #endif /* READ */ … … 987 966 { 988 967 /* Version of *.c files used when building libpng */ 989 return ((png_uint_32)PNG_LIBPNG_VER);968 return (png_uint_32)PNG_LIBPNG_VER; 990 969 } 991 970 … … 1844 1823 else 1845 1824 { 1846 char number[PNG_NUMBER_BUFFER_SIZE]; /* +24 = 114 */1825 char number[PNG_NUMBER_BUFFER_SIZE]; /* +24 = 114 */ 1847 1826 1848 1827 pos = png_safecat(message, (sizeof message), pos, 1849 1828 png_format_number(number, number+(sizeof number), 1850 1829 PNG_NUMBER_FORMAT_x, value)); 1851 pos = png_safecat(message, (sizeof message), pos, "h: "); /* +2 = 116*/1830 pos = png_safecat(message, (sizeof message), pos, "h: "); /* +2 = 116 */ 1852 1831 } 1853 1832 # endif … … 2711 2690 int /* PRIVATE */ 2712 2691 png_check_fp_number(png_const_charp string, size_t size, int *statep, 2713 png_size_tpwhereami)2692 size_t *whereami) 2714 2693 { 2715 2694 int state = *statep; … … 2892 2871 * precision. 2893 2872 */ 2894 #if GCC_STRICT_OVERFLOW2895 #pragma GCC diagnostic push2896 /* The problem arises below with exp_b10, which can never overflow because it2897 * comes, originally, from frexp and is therefore limited to a range which is2898 * typically +/-710 (log2(DBL_MAX)/log2(DBL_MIN)).2899 */2900 #pragma GCC diagnostic warning "-Wstrict-overflow=2"2901 #endif /* GCC_STRICT_OVERFLOW */2902 2873 void /* PRIVATE */ 2903 2874 png_ascii_from_fp(png_const_structrp png_ptr, png_charp ascii, size_t size, … … 3221 3192 png_error(png_ptr, "ASCII conversion buffer too small"); 3222 3193 } 3223 #if GCC_STRICT_OVERFLOW3224 #pragma GCC diagnostic pop3225 #endif /* GCC_STRICT_OVERFLOW */3226 3227 3194 # endif /* FLOATING_POINT */ 3228 3195 … … 3252 3219 { 3253 3220 unsigned int ndigits = 0, first = 16 /* flag value */; 3254 char digits[10] ;3221 char digits[10] = {0}; 3255 3222 3256 3223 while (num) … … 3337 3304 * the result, a boolean - true on success, false on overflow. 3338 3305 */ 3339 #if GCC_STRICT_OVERFLOW /* from above */3340 /* It is not obvious which comparison below gets optimized in such a way that3341 * signed overflow would change the result; looking through the code does not3342 * reveal any tests which have the form GCC complains about, so presumably the3343 * optimizer is moving an add or subtract into the 'if' somewhere.3344 */3345 #pragma GCC diagnostic push3346 #pragma GCC diagnostic warning "-Wstrict-overflow=2"3347 #endif /* GCC_STRICT_OVERFLOW */3348 3306 int 3349 3307 png_muldiv(png_fixed_point_p res, png_fixed_point a, png_int_32 times, … … 3460 3418 return 0; 3461 3419 } 3462 #if GCC_STRICT_OVERFLOW3463 #pragma GCC diagnostic pop3464 #endif /* GCC_STRICT_OVERFLOW */3465 3420 #endif /* READ_GAMMA || INCH_CONVERSIONS */ 3466 3421 -
trunk/src/libs/libpng-1.6.42/png.h
r96425 r103316 2 2 /* png.h - header file for PNG reference library 3 3 * 4 * libpng version 1.6. 37 - April 14, 20195 * 6 * Copyright (c) 2018-20 19Cosmin Truta4 * libpng version 1.6.42 5 * 6 * Copyright (c) 2018-2024 Cosmin Truta 7 7 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 8 8 * Copyright (c) 1996-1997 Andreas Dilger … … 16 16 * libpng versions 0.97, January 1998, through 1.6.35, July 2018: 17 17 * Glenn Randers-Pehrson 18 * libpng versions 1.6.36, December 2018, through 1.6. 37, April 2019:18 * libpng versions 1.6.36, December 2018, through 1.6.42, January 2024: 19 19 * Cosmin Truta 20 20 * See also "Contributing Authors", below. … … 28 28 * --------------------------------------- 29 29 * 30 * * Copyright (c) 1995-20 19The PNG Reference Library Authors.31 * * Copyright (c) 2018-20 19Cosmin Truta.30 * * Copyright (c) 1995-2024 The PNG Reference Library Authors. 31 * * Copyright (c) 2018-2024 Cosmin Truta. 32 32 * * Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson. 33 33 * * Copyright (c) 1996-1997 Andreas Dilger. … … 240 240 * 1.5.30 15 10530 15.so.15.30[.0] 241 241 * ... 242 * 1.6. 37 16 10637 16.so.16.37[.0]242 * 1.6.42 16 10641 16.so.16.41[.0] 243 243 * 244 244 * Henceforth the source version will match the shared-library major and … … 279 279 280 280 /* Version information for png.h - this should match the version in png.c */ 281 #define PNG_LIBPNG_VER_STRING "1.6. 37"282 #define PNG_HEADER_VERSION_STRING " libpng version 1.6.37 - April 14, 2019\n"281 #define PNG_LIBPNG_VER_STRING "1.6.42" 282 #define PNG_HEADER_VERSION_STRING " libpng version " PNG_LIBPNG_VER_STRING "\n" 283 283 284 284 #define PNG_LIBPNG_VER_SONUM 16 … … 288 288 #define PNG_LIBPNG_VER_MAJOR 1 289 289 #define PNG_LIBPNG_VER_MINOR 6 290 #define PNG_LIBPNG_VER_RELEASE 37290 #define PNG_LIBPNG_VER_RELEASE 41 291 291 292 292 /* This should be zero for a public release, or non-zero for a … … 319 319 * XXYYZZ, where XX=major, YY=minor, ZZ=release 320 320 */ 321 #define PNG_LIBPNG_VER 106 37 /* 1.6.37*/321 #define PNG_LIBPNG_VER 10641 /* 1.6.42 */ 322 322 323 323 /* Library configuration: these options cannot be changed after … … 429 429 * do not agree upon the version number. 430 430 */ 431 typedef char* png_libpng_version_1_6_ 37;431 typedef char* png_libpng_version_1_6_42; 432 432 433 433 /* Basic control structions. Read libpng-manual.txt or libpng.3 for more info. … … 850 850 /* Added to libpng-1.5.4 */ 851 851 #define PNG_TRANSFORM_EXPAND_16 0x4000 /* read only */ 852 #if INT_MAX >= 0x8000 /* else this might break*/852 #if ~0U > 0xffffU /* or else this might break on a 16-bit machine */ 853 853 #define PNG_TRANSFORM_SCALE_16 0x8000 /* read only */ 854 854 #endif … … 909 909 * PNG file. Returns zero if the supplied bytes match the 8-byte PNG 910 910 * signature, and non-zero otherwise. Having num_to_check == 0 or 911 * start > 7 will always fail (i ereturn non-zero).911 * start > 7 will always fail (i.e. return non-zero). 912 912 */ 913 913 PNG_EXPORT(3, int, png_sig_cmp, (png_const_bytep sig, size_t start, … … 915 915 916 916 /* Simple signature checking function. This is the same as calling 917 * png_check_sig(sig, n) := !png_sig_cmp(sig, 0, n).918 */ 919 #define png_check_sig(sig, n) !png_sig_cmp((sig), 0, (n))917 * png_check_sig(sig, n) := (png_sig_cmp(sig, 0, n) == 0). 918 */ 919 #define png_check_sig(sig, n) (png_sig_cmp((sig), 0, (n)) == 0) /* DEPRECATED */ 920 920 921 921 /* Allocate and initialize png_ptr struct for reading, and any other memory. */ … … 1447 1447 * Those users who are tight on memory or want faster performance at the 1448 1448 * expense of compression can modify them. See the compression library 1449 * header file (zlib.h) for an expl ination of the compression functions.1449 * header file (zlib.h) for an explanation of the compression functions. 1450 1450 */ 1451 1451 … … 1502 1502 * (0 - no compression, 9 - "maximal" compression). Note that tests have 1503 1503 * shown that zlib compression levels 3-6 usually perform as well as level 9 1504 * for PNG images, and do considerably fewer ca clulations. In the future,1504 * for PNG images, and do considerably fewer calculations. In the future, 1505 1505 * these values may not correspond directly to the zlib compression levels. 1506 1506 */ … … 1731 1731 png_inforp info_ptr, png_uint_32 free_me, int num)); 1732 1732 1733 /* Reassign responsibility for freeing existing data, whether allocated1733 /* Reassign the responsibility for freeing existing data, whether allocated 1734 1734 * by libpng or by the application; this works on the png_info structure passed 1735 * in, it does not change the state for other png_info structures. 1736 * 1737 * It is unlikely that this function works correctly as of 1.6.0 and using it 1738 * may result either in memory leaks or double free of allocated data. 1735 * in, without changing the state for other png_info structures. 1739 1736 */ 1740 1737 PNG_EXPORT(99, void, png_data_freer, (png_const_structrp png_ptr, … … 3208 3205 # define PNG_MIPS_MSA 6 /* HARDWARE: MIPS Msa SIMD instructions supported */ 3209 3206 #endif 3210 #define PNG_IGNORE_ADLER32 8 3207 #ifdef PNG_DISABLE_ADLER32_CHECK_SUPPORTED 3208 # define PNG_IGNORE_ADLER32 8 /* SOFTWARE: disable Adler32 check on IDAT */ 3209 #endif 3211 3210 #ifdef PNG_POWERPC_VSX_API_SUPPORTED 3212 # define PNG_POWERPC_VSX 10 /* HARDWARE: PowerPC VSX SIMD instructions supported */ 3213 #endif 3214 #define PNG_OPTION_NEXT 12 /* Next option - numbers must be even */ 3211 # define PNG_POWERPC_VSX 10 /* HARDWARE: PowerPC VSX SIMD instructions 3212 * supported */ 3213 #endif 3214 #ifdef PNG_MIPS_MMI_API_SUPPORTED 3215 # define PNG_MIPS_MMI 12 /* HARDWARE: MIPS MMI SIMD instructions supported */ 3216 #endif 3217 3218 #define PNG_OPTION_NEXT 14 /* Next option - numbers must be even */ 3215 3219 3216 3220 /* Return values: NOTE: there are four values and 'off' is *not* zero */ -
trunk/src/libs/libpng-1.6.42/pngconf.h
r96425 r103316 2 2 /* pngconf.h - machine-configurable file for libpng 3 3 * 4 * libpng version 1.6. 375 * 6 * Copyright (c) 2018-20 19Cosmin Truta4 * libpng version 1.6.42 5 * 6 * Copyright (c) 2018-2024 Cosmin Truta 7 7 * Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson 8 8 * Copyright (c) 1996-1997 Andreas Dilger … … 181 181 * conventions of the various functions. 182 182 */ 183 #if defined(_W indows) || defined(_WINDOWS) || defined(WIN32) ||\184 defined(_ WIN32) || defined(__WIN32__) || defined(__CYGWIN__)183 #if defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || \ 184 defined(__CYGWIN__) 185 185 /* Windows system (DOS doesn't support DLLs). Includes builds under Cygwin or 186 186 * MinGW on any architecture currently supported by Windows. Also includes -
trunk/src/libs/libpng-1.6.42/pngerror.c
r96425 r103316 2 2 /* pngerror.c - stub functions for i/o and memory allocation 3 3 * 4 * Copyright (c) 2018 Cosmin Truta4 * Copyright (c) 2018-2024 Cosmin Truta 5 5 * Copyright (c) 1998-2002,2004,2006-2017 Glenn Randers-Pehrson 6 6 * Copyright (c) 1996-1997 Andreas Dilger … … 256 256 png_alloc_size_t value) 257 257 { 258 char buffer[PNG_NUMBER_BUFFER_SIZE] ;258 char buffer[PNG_NUMBER_BUFFER_SIZE] = {0}; 259 259 png_warning_parameter(p, number, PNG_FORMAT_NUMBER(buffer, format, value)); 260 260 } … … 266 266 png_alloc_size_t u; 267 267 png_charp str; 268 char buffer[PNG_NUMBER_BUFFER_SIZE] ;268 char buffer[PNG_NUMBER_BUFFER_SIZE] = {0}; 269 269 270 270 /* Avoid overflow by doing the negate in a png_alloc_size_t: */ … … 859 859 return NULL; 860 860 861 return ( (png_voidp)png_ptr->error_ptr);861 return (png_voidp)png_ptr->error_ptr; 862 862 } 863 863 … … 934 934 935 935 int /* PRIVATE */ 936 png_safe_execute(png_imagep image_in, int (*function)(png_voidp), png_voidp arg) 937 { 938 volatile png_imagep image = image_in; 939 volatile int result; 940 volatile png_voidp saved_error_buf; 936 png_safe_execute(png_imagep image, int (*function)(png_voidp), png_voidp arg) 937 { 938 png_voidp saved_error_buf = image->opaque->error_buf; 941 939 jmp_buf safe_jmpbuf; 942 943 /* Safely execute function(arg) with png_error returning to this function. */ 944 saved_error_buf = image->opaque->error_buf; 945 result = setjmp(safe_jmpbuf) == 0; 946 947 if (result != 0) 948 { 949 940 int result; 941 942 /* Safely execute function(arg), with png_error returning back here. */ 943 if (setjmp(safe_jmpbuf) == 0) 944 { 950 945 image->opaque->error_buf = safe_jmpbuf; 951 946 result = function(arg); 952 } 953 947 image->opaque->error_buf = saved_error_buf; 948 return result; 949 } 950 951 /* On png_error, return via longjmp, pop the jmpbuf, and free the image. */ 954 952 image->opaque->error_buf = saved_error_buf; 955 956 /* And do the cleanup prior to any failure return. */ 957 if (result == 0) 958 png_image_free(image); 959 960 return result; 953 png_image_free(image); 954 return 0; 961 955 } 962 956 #endif /* SIMPLIFIED READ || SIMPLIFIED_WRITE */ -
trunk/src/libs/libpng-1.6.42/pngget.c
r96425 r103316 2 2 /* pngget.c - retrieval of values from info struct 3 3 * 4 * Copyright (c) 2018 Cosmin Truta4 * Copyright (c) 2018-2024 Cosmin Truta 5 5 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 6 * Copyright (c) 1996-1997 Andreas Dilger … … 22 22 { 23 23 if (png_ptr != NULL && info_ptr != NULL) 24 return(info_ptr->valid & flag); 25 26 return(0); 24 { 25 #ifdef PNG_READ_tRNS_SUPPORTED 26 /* png_handle_PLTE() may have canceled a valid tRNS chunk but left the 27 * 'valid' flag for the detection of duplicate chunks. Do not report a 28 * valid tRNS chunk in this case. 29 */ 30 if (flag == PNG_INFO_tRNS && png_ptr->num_trans == 0) 31 return 0; 32 #endif 33 34 return info_ptr->valid & flag; 35 } 36 37 return 0; 27 38 } 28 39 … … 31 42 { 32 43 if (png_ptr != NULL && info_ptr != NULL) 33 return (info_ptr->rowbytes);34 35 return (0);44 return info_ptr->rowbytes; 45 46 return 0; 36 47 } 37 48 … … 41 52 { 42 53 if (png_ptr != NULL && info_ptr != NULL) 43 return (info_ptr->row_pointers);44 45 return (0);54 return info_ptr->row_pointers; 55 56 return 0; 46 57 } 47 58 #endif … … 55 66 return info_ptr->width; 56 67 57 return (0);68 return 0; 58 69 } 59 70 … … 64 75 return info_ptr->height; 65 76 66 return (0);77 return 0; 67 78 } 68 79 … … 73 84 return info_ptr->bit_depth; 74 85 75 return (0);86 return 0; 76 87 } 77 88 … … 82 93 return info_ptr->color_type; 83 94 84 return (0);95 return 0; 85 96 } 86 97 … … 91 102 return info_ptr->filter_type; 92 103 93 return (0);104 return 0; 94 105 } 95 106 … … 100 111 return info_ptr->interlace_type; 101 112 102 return (0);113 return 0; 103 114 } 104 115 … … 109 120 return info_ptr->compression_type; 110 121 111 return (0);122 return 0; 112 123 } 113 124 … … 117 128 { 118 129 #ifdef PNG_pHYs_SUPPORTED 130 png_debug(1, "in png_get_x_pixels_per_meter"); 131 119 132 if (png_ptr != NULL && info_ptr != NULL && 120 133 (info_ptr->valid & PNG_INFO_pHYs) != 0) 121 { 122 png_debug1(1, "in %s retrieval function", 123 "png_get_x_pixels_per_meter"); 124 125 if (info_ptr->phys_unit_type == PNG_RESOLUTION_METER) 126 return (info_ptr->x_pixels_per_unit); 127 } 134 { 135 if (info_ptr->phys_unit_type == PNG_RESOLUTION_METER) 136 return info_ptr->x_pixels_per_unit; 137 } 128 138 #else 129 139 PNG_UNUSED(png_ptr) … … 131 141 #endif 132 142 133 return (0);143 return 0; 134 144 } 135 145 … … 139 149 { 140 150 #ifdef PNG_pHYs_SUPPORTED 151 png_debug(1, "in png_get_y_pixels_per_meter"); 152 141 153 if (png_ptr != NULL && info_ptr != NULL && 142 154 (info_ptr->valid & PNG_INFO_pHYs) != 0) 143 155 { 144 png_debug1(1, "in %s retrieval function",145 "png_get_y_pixels_per_meter");146 147 156 if (info_ptr->phys_unit_type == PNG_RESOLUTION_METER) 148 return (info_ptr->y_pixels_per_unit);157 return info_ptr->y_pixels_per_unit; 149 158 } 150 159 #else … … 153 162 #endif 154 163 155 return (0);164 return 0; 156 165 } 157 166 … … 160 169 { 161 170 #ifdef PNG_pHYs_SUPPORTED 171 png_debug(1, "in png_get_pixels_per_meter"); 172 162 173 if (png_ptr != NULL && info_ptr != NULL && 163 174 (info_ptr->valid & PNG_INFO_pHYs) != 0) 164 175 { 165 png_debug1(1, "in %s retrieval function", "png_get_pixels_per_meter");166 167 176 if (info_ptr->phys_unit_type == PNG_RESOLUTION_METER && 168 177 info_ptr->x_pixels_per_unit == info_ptr->y_pixels_per_unit) 169 return (info_ptr->x_pixels_per_unit);178 return info_ptr->x_pixels_per_unit; 170 179 } 171 180 #else … … 174 183 #endif 175 184 176 return (0);185 return 0; 177 186 } 178 187 … … 183 192 { 184 193 #ifdef PNG_READ_pHYs_SUPPORTED 194 png_debug(1, "in png_get_pixel_aspect_ratio"); 195 185 196 if (png_ptr != NULL && info_ptr != NULL && 186 197 (info_ptr->valid & PNG_INFO_pHYs) != 0) 187 198 { 188 png_debug1(1, "in %s retrieval function", "png_get_aspect_ratio");189 190 199 if (info_ptr->x_pixels_per_unit != 0) 191 return ( (float)((float)info_ptr->y_pixels_per_unit192 /(float)info_ptr->x_pixels_per_unit));200 return (float)info_ptr->y_pixels_per_unit 201 / (float)info_ptr->x_pixels_per_unit; 193 202 } 194 203 #else … … 197 206 #endif 198 207 199 return ( (float)0.0);208 return (float)0.0; 200 209 } 201 210 #endif … … 207 216 { 208 217 #ifdef PNG_READ_pHYs_SUPPORTED 218 png_debug(1, "in png_get_pixel_aspect_ratio_fixed"); 219 209 220 if (png_ptr != NULL && info_ptr != NULL && 210 221 (info_ptr->valid & PNG_INFO_pHYs) != 0 && … … 214 225 { 215 226 png_fixed_point res; 216 217 png_debug1(1, "in %s retrieval function", "png_get_aspect_ratio_fixed");218 227 219 228 /* The following casts work because a PNG 4 byte integer only has a valid … … 237 246 { 238 247 #ifdef PNG_oFFs_SUPPORTED 248 png_debug(1, "in png_get_x_offset_microns"); 249 239 250 if (png_ptr != NULL && info_ptr != NULL && 240 251 (info_ptr->valid & PNG_INFO_oFFs) != 0) 241 252 { 242 png_debug1(1, "in %s retrieval function", "png_get_x_offset_microns");243 244 253 if (info_ptr->offset_unit_type == PNG_OFFSET_MICROMETER) 245 return (info_ptr->x_offset);254 return info_ptr->x_offset; 246 255 } 247 256 #else … … 250 259 #endif 251 260 252 return (0);261 return 0; 253 262 } 254 263 … … 257 266 { 258 267 #ifdef PNG_oFFs_SUPPORTED 268 png_debug(1, "in png_get_y_offset_microns"); 269 259 270 if (png_ptr != NULL && info_ptr != NULL && 260 271 (info_ptr->valid & PNG_INFO_oFFs) != 0) 261 272 { 262 png_debug1(1, "in %s retrieval function", "png_get_y_offset_microns");263 264 273 if (info_ptr->offset_unit_type == PNG_OFFSET_MICROMETER) 265 return (info_ptr->y_offset);274 return info_ptr->y_offset; 266 275 } 267 276 #else … … 270 279 #endif 271 280 272 return (0);281 return 0; 273 282 } 274 283 … … 277 286 { 278 287 #ifdef PNG_oFFs_SUPPORTED 288 png_debug(1, "in png_get_x_offset_pixels"); 289 279 290 if (png_ptr != NULL && info_ptr != NULL && 280 291 (info_ptr->valid & PNG_INFO_oFFs) != 0) 281 292 { 282 png_debug1(1, "in %s retrieval function", "png_get_x_offset_pixels");283 284 293 if (info_ptr->offset_unit_type == PNG_OFFSET_PIXEL) 285 return (info_ptr->x_offset);294 return info_ptr->x_offset; 286 295 } 287 296 #else … … 290 299 #endif 291 300 292 return (0);301 return 0; 293 302 } 294 303 … … 297 306 { 298 307 #ifdef PNG_oFFs_SUPPORTED 308 png_debug(1, "in png_get_y_offset_pixels"); 309 299 310 if (png_ptr != NULL && info_ptr != NULL && 300 311 (info_ptr->valid & PNG_INFO_oFFs) != 0) 301 312 { 302 png_debug1(1, "in %s retrieval function", "png_get_y_offset_pixels");303 304 313 if (info_ptr->offset_unit_type == PNG_OFFSET_PIXEL) 305 return (info_ptr->y_offset);314 return info_ptr->y_offset; 306 315 } 307 316 #else … … 310 319 #endif 311 320 312 return (0);321 return 0; 313 322 } 314 323 … … 424 433 png_uint_32 retval = 0; 425 434 435 png_debug1(1, "in %s retrieval function", "pHYs"); 436 426 437 if (png_ptr != NULL && info_ptr != NULL && 427 438 (info_ptr->valid & PNG_INFO_pHYs) != 0) 428 439 { 429 png_debug1(1, "in %s retrieval function", "pHYs");430 431 440 if (res_x != NULL) 432 441 { … … 454 463 } 455 464 456 return (retval);465 return retval; 457 466 } 458 467 #endif /* pHYs */ … … 468 477 { 469 478 if (png_ptr != NULL && info_ptr != NULL) 470 return (info_ptr->channels);471 472 return (0);479 return info_ptr->channels; 480 481 return 0; 473 482 } 474 483 … … 478 487 { 479 488 if (png_ptr != NULL && info_ptr != NULL) 480 return (info_ptr->signature);481 482 return (NULL);489 return info_ptr->signature; 490 491 return NULL; 483 492 } 484 493 #endif … … 489 498 png_color_16p *background) 490 499 { 500 png_debug1(1, "in %s retrieval function", "bKGD"); 501 491 502 if (png_ptr != NULL && info_ptr != NULL && 492 503 (info_ptr->valid & PNG_INFO_bKGD) != 0 && 493 504 background != NULL) 494 505 { 495 png_debug1(1, "in %s retrieval function", "bKGD");496 497 506 *background = &(info_ptr->background); 498 return (PNG_INFO_bKGD);499 } 500 501 return (0);507 return PNG_INFO_bKGD; 508 } 509 510 return 0; 502 511 } 503 512 #endif … … 514 523 double *green_x, double *green_y, double *blue_x, double *blue_y) 515 524 { 525 png_debug1(1, "in %s retrieval function", "cHRM"); 526 516 527 /* Quiet API change: this code used to only return the end points if a cHRM 517 528 * chunk was present, but the end points can also come from iCCP or sRGB … … 523 534 (info_ptr->colorspace.flags & PNG_COLORSPACE_HAVE_ENDPOINTS) != 0) 524 535 { 525 png_debug1(1, "in %s retrieval function", "cHRM");526 527 536 if (white_x != NULL) 528 537 *white_x = png_float(png_ptr, … … 549 558 *blue_y = png_float(png_ptr, info_ptr->colorspace.end_points_xy.bluey, 550 559 "cHRM blue Y"); 551 return (PNG_INFO_cHRM);552 } 553 554 return (0);560 return PNG_INFO_cHRM; 561 } 562 563 return 0; 555 564 } 556 565 … … 561 570 double *blue_Z) 562 571 { 572 png_debug1(1, "in %s retrieval function", "cHRM_XYZ(float)"); 573 563 574 if (png_ptr != NULL && info_ptr != NULL && 564 575 (info_ptr->colorspace.flags & PNG_COLORSPACE_HAVE_ENDPOINTS) != 0) 565 576 { 566 png_debug1(1, "in %s retrieval function", "cHRM_XYZ(float)");567 568 577 if (red_X != NULL) 569 578 *red_X = png_float(png_ptr, info_ptr->colorspace.end_points_XYZ.red_X, … … 593 602 *blue_Z = png_float(png_ptr, 594 603 info_ptr->colorspace.end_points_XYZ.blue_Z, "cHRM blue Z"); 595 return (PNG_INFO_cHRM);596 } 597 598 return (0);604 return PNG_INFO_cHRM; 605 } 606 607 return 0; 599 608 } 600 609 # endif … … 609 618 png_fixed_point *int_blue_Z) 610 619 { 620 png_debug1(1, "in %s retrieval function", "cHRM_XYZ"); 621 611 622 if (png_ptr != NULL && info_ptr != NULL && 612 623 (info_ptr->colorspace.flags & PNG_COLORSPACE_HAVE_ENDPOINTS) != 0) 613 624 { 614 png_debug1(1, "in %s retrieval function", "cHRM_XYZ");615 616 625 if (int_red_X != NULL) 617 626 *int_red_X = info_ptr->colorspace.end_points_XYZ.red_X; … … 632 641 if (int_blue_Z != NULL) 633 642 *int_blue_Z = info_ptr->colorspace.end_points_XYZ.blue_Z; 634 return (PNG_INFO_cHRM);635 } 636 637 return (0);643 return PNG_INFO_cHRM; 644 } 645 646 return 0; 638 647 } 639 648 … … 665 674 if (blue_y != NULL) 666 675 *blue_y = info_ptr->colorspace.end_points_xy.bluey; 667 return (PNG_INFO_cHRM);668 } 669 670 return (0);676 return PNG_INFO_cHRM; 677 } 678 679 return 0; 671 680 } 672 681 # endif … … 686 695 { 687 696 *file_gamma = info_ptr->colorspace.gamma; 688 return (PNG_INFO_gAMA);689 } 690 691 return (0);697 return PNG_INFO_gAMA; 698 } 699 700 return 0; 692 701 } 693 702 # endif … … 706 715 *file_gamma = png_float(png_ptr, info_ptr->colorspace.gamma, 707 716 "png_get_gAMA"); 708 return (PNG_INFO_gAMA);709 } 710 711 return (0);717 return PNG_INFO_gAMA; 718 } 719 720 return 0; 712 721 } 713 722 # endif … … 725 734 { 726 735 *file_srgb_intent = info_ptr->colorspace.rendering_intent; 727 return (PNG_INFO_sRGB);728 } 729 730 return (0);736 return PNG_INFO_sRGB; 737 } 738 739 return 0; 731 740 } 732 741 #endif … … 752 761 if (compression_type != NULL) 753 762 *compression_type = PNG_COMPRESSION_TYPE_BASE; 754 return (PNG_INFO_iCCP);755 } 756 757 return (0);763 return PNG_INFO_iCCP; 764 } 765 766 return 0; 758 767 759 768 } … … 765 774 png_sPLT_tpp spalettes) 766 775 { 776 png_debug1(1, "in %s retrieval function", "sPLT"); 777 767 778 if (png_ptr != NULL && info_ptr != NULL && spalettes != NULL) 768 779 { … … 771 782 } 772 783 773 return (0);784 return 0; 774 785 } 775 786 #endif … … 797 808 *num_exif = info_ptr->num_exif; 798 809 *exif = info_ptr->exif; 799 return (PNG_INFO_eXIf);800 } 801 802 return (0);810 return PNG_INFO_eXIf; 811 } 812 813 return 0; 803 814 } 804 815 #endif … … 815 826 { 816 827 *hist = info_ptr->hist; 817 return (PNG_INFO_hIST);818 } 819 820 return (0);828 return PNG_INFO_hIST; 829 } 830 831 return 0; 821 832 } 822 833 #endif … … 831 842 832 843 if (png_ptr == NULL || info_ptr == NULL) 833 return (0);844 return 0; 834 845 835 846 if (width != NULL) … … 863 874 info_ptr->compression_type, info_ptr->filter_type); 864 875 865 return (1);876 return 1; 866 877 } 867 878 … … 880 891 *offset_y = info_ptr->y_offset; 881 892 *unit_type = (int)info_ptr->offset_unit_type; 882 return (PNG_INFO_oFFs);883 } 884 885 return (0);893 return PNG_INFO_oFFs; 894 } 895 896 return 0; 886 897 } 887 898 #endif … … 907 918 *units = info_ptr->pcal_units; 908 919 *params = info_ptr->pcal_params; 909 return (PNG_INFO_pCAL);910 } 911 912 return (0);920 return PNG_INFO_pCAL; 921 } 922 923 return 0; 913 924 } 914 925 #endif … … 922 933 int *unit, png_fixed_point *width, png_fixed_point *height) 923 934 { 935 png_debug1(1, "in %s retrieval function", "sCAL"); 936 924 937 if (png_ptr != NULL && info_ptr != NULL && 925 938 (info_ptr->valid & PNG_INFO_sCAL) != 0) … … 933 946 *height = png_fixed(png_ptr, atof(info_ptr->scal_s_height), 934 947 "sCAL height"); 935 return (PNG_INFO_sCAL);936 } 937 938 return (0);948 return PNG_INFO_sCAL; 949 } 950 951 return 0; 939 952 } 940 953 # endif /* FLOATING_ARITHMETIC */ … … 945 958 int *unit, double *width, double *height) 946 959 { 960 png_debug1(1, "in %s retrieval function", "sCAL(float)"); 961 947 962 if (png_ptr != NULL && info_ptr != NULL && 948 963 (info_ptr->valid & PNG_INFO_sCAL) != 0) … … 951 966 *width = atof(info_ptr->scal_s_width); 952 967 *height = atof(info_ptr->scal_s_height); 953 return (PNG_INFO_sCAL);954 } 955 956 return (0);968 return PNG_INFO_sCAL; 969 } 970 971 return 0; 957 972 } 958 973 # endif /* FLOATING POINT */ … … 961 976 int *unit, png_charpp width, png_charpp height) 962 977 { 978 png_debug1(1, "in %s retrieval function", "sCAL(str)"); 979 963 980 if (png_ptr != NULL && info_ptr != NULL && 964 981 (info_ptr->valid & PNG_INFO_sCAL) != 0) … … 967 984 *width = info_ptr->scal_s_width; 968 985 *height = info_ptr->scal_s_height; 969 return (PNG_INFO_sCAL);970 } 971 972 return (0);986 return PNG_INFO_sCAL; 987 } 988 989 return 0; 973 990 } 974 991 #endif /* sCAL */ … … 1005 1022 } 1006 1023 1007 return (retval);1024 return retval; 1008 1025 } 1009 1026 #endif /* pHYs */ … … 1021 1038 *num_palette = info_ptr->num_palette; 1022 1039 png_debug1(3, "num_palette = %d", *num_palette); 1023 return (PNG_INFO_PLTE);1024 } 1025 1026 return (0);1040 return PNG_INFO_PLTE; 1041 } 1042 1043 return 0; 1027 1044 } 1028 1045 … … 1038 1055 { 1039 1056 *sig_bit = &(info_ptr->sig_bit); 1040 return (PNG_INFO_sBIT);1041 } 1042 1043 return (0);1057 return PNG_INFO_sBIT; 1058 } 1059 1060 return 0; 1044 1061 } 1045 1062 #endif … … 1052 1069 if (png_ptr != NULL && info_ptr != NULL && info_ptr->num_text > 0) 1053 1070 { 1054 png_debug1(1, "in 0x%lx retrieval function",1071 png_debug1(1, "in text retrieval function, chunk typeid = 0x%lx", 1055 1072 (unsigned long)png_ptr->chunk_name); 1056 1073 … … 1067 1084 *num_text = 0; 1068 1085 1069 return (0);1086 return 0; 1070 1087 } 1071 1088 #endif … … 1082 1099 { 1083 1100 *mod_time = &(info_ptr->mod_time); 1084 return (PNG_INFO_tIME);1085 } 1086 1087 return (0);1101 return PNG_INFO_tIME; 1102 } 1103 1104 return 0; 1088 1105 } 1089 1106 #endif … … 1095 1112 { 1096 1113 png_uint_32 retval = 0; 1114 1115 png_debug1(1, "in %s retrieval function", "tRNS"); 1116 1097 1117 if (png_ptr != NULL && info_ptr != NULL && 1098 1118 (info_ptr->valid & PNG_INFO_tRNS) != 0) 1099 1119 { 1100 png_debug1(1, "in %s retrieval function", "tRNS");1101 1102 1120 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) 1103 1121 { … … 1131 1149 } 1132 1150 1133 return (retval);1151 return retval; 1134 1152 } 1135 1153 #endif … … 1146 1164 } 1147 1165 1148 return (0);1166 return 0; 1149 1167 } 1150 1168 #endif … … 1152 1170 #ifdef PNG_READ_RGB_TO_GRAY_SUPPORTED 1153 1171 png_byte PNGAPI 1154 png_get_rgb_to_gray_status 1172 png_get_rgb_to_gray_status(png_const_structrp png_ptr) 1155 1173 { 1156 1174 return (png_byte)(png_ptr ? png_ptr->rgb_to_gray_status : 0); … … 1193 1211 * by default in libpng-1.4.0 */ 1194 1212 png_uint_32 PNGAPI 1195 png_get_user_width_max 1213 png_get_user_width_max(png_const_structrp png_ptr) 1196 1214 { 1197 1215 return (png_ptr ? png_ptr->user_width_max : 0); … … 1199 1217 1200 1218 png_uint_32 PNGAPI 1201 png_get_user_height_max 1219 png_get_user_height_max(png_const_structrp png_ptr) 1202 1220 { 1203 1221 return (png_ptr ? png_ptr->user_height_max : 0); … … 1206 1224 /* This function was added to libpng 1.4.0 */ 1207 1225 png_uint_32 PNGAPI 1208 png_get_chunk_cache_max 1226 png_get_chunk_cache_max(png_const_structrp png_ptr) 1209 1227 { 1210 1228 return (png_ptr ? png_ptr->user_chunk_cache_max : 0); … … 1213 1231 /* This function was added to libpng 1.4.1 */ 1214 1232 png_alloc_size_t PNGAPI 1215 png_get_chunk_malloc_max 1233 png_get_chunk_malloc_max(png_const_structrp png_ptr) 1216 1234 { 1217 1235 return (png_ptr ? png_ptr->user_chunk_malloc_max : 0); … … 1222 1240 #ifdef PNG_IO_STATE_SUPPORTED 1223 1241 png_uint_32 PNGAPI 1224 png_get_io_state 1242 png_get_io_state(png_const_structrp png_ptr) 1225 1243 { 1226 1244 return png_ptr->io_state; … … 1228 1246 1229 1247 png_uint_32 PNGAPI 1230 png_get_io_chunk_type 1248 png_get_io_chunk_type(png_const_structrp png_ptr) 1231 1249 { 1232 1250 return png_ptr->chunk_name; … … 1242 1260 return png_ptr->num_palette_max; 1243 1261 1244 return (-1);1262 return -1; 1245 1263 } 1246 1264 # endif -
trunk/src/libs/libpng-1.6.42/pngpread.c
r96425 r103316 2 2 /* pngpread.c - read a png file in push mode 3 3 * 4 * Copyright (c) 2018 Cosmin Truta4 * Copyright (c) 2018-2024 Cosmin Truta 5 5 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 6 * Copyright (c) 1996-1997 Andreas Dilger … … 146 146 png_ptr->sig_bytes = (png_byte)(png_ptr->sig_bytes + num_to_check); 147 147 148 if (png_sig_cmp(info_ptr->signature, num_checked, num_to_check) )148 if (png_sig_cmp(info_ptr->signature, num_checked, num_to_check) != 0) 149 149 { 150 150 if (num_checked < 4 && 151 png_sig_cmp(info_ptr->signature, num_checked, num_to_check - 4) )151 png_sig_cmp(info_ptr->signature, num_checked, num_to_check - 4) != 0) 152 152 png_error(png_ptr, "Not a PNG file"); 153 153 … … 1090 1090 { 1091 1091 if (png_ptr == NULL) 1092 return (NULL);1092 return NULL; 1093 1093 1094 1094 return png_ptr->io_ptr; -
trunk/src/libs/libpng-1.6.42/pngpriv.h
r96425 r103316 2 2 /* pngpriv.h - private declarations for use inside libpng 3 3 * 4 * Copyright (c) 2018-20 19Cosmin Truta4 * Copyright (c) 2018-2024 Cosmin Truta 5 5 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 6 * Copyright (c) 1996-1997 Andreas Dilger … … 37 37 */ 38 38 #ifndef _POSIX_SOURCE 39 # define _POSIX_SOURCE 1 /* Just the POSIX 1003.1 and C89 APIs */39 # define _POSIX_SOURCE 1 /* Just the POSIX 1003.1 and C89 APIs */ 40 40 #endif 41 41 … … 175 175 /* The 'intrinsics' code simply won't compile without this -mfpu=neon: 176 176 */ 177 # if !defined(__aarch64__) 177 # if !defined(__aarch64__) && !defined(_M_ARM64) 178 178 /* The assembler code currently does not work on ARM64 */ 179 179 # define PNG_ARM_NEON_IMPLEMENTATION 2 … … 186 186 # define PNG_ARM_NEON_IMPLEMENTATION 1 187 187 # endif 188 #else /* PNG_ARM_NEON_OPT == 0 */ 189 # define PNG_ARM_NEON_IMPLEMENTATION 0 188 190 #endif /* PNG_ARM_NEON_OPT > 0 */ 189 191 190 192 #ifndef PNG_MIPS_MSA_OPT 191 # if defined(__mips_msa) && (__mips_isa_rev >= 5) && defined(PNG_ALIGNED_MEMORY_SUPPORTED) 193 # if defined(__mips_msa) && (__mips_isa_rev >= 5) && \ 194 defined(PNG_ALIGNED_MEMORY_SUPPORTED) 192 195 # define PNG_MIPS_MSA_OPT 2 193 196 # else 194 197 # define PNG_MIPS_MSA_OPT 0 198 # endif 199 #endif 200 201 #ifndef PNG_MIPS_MMI_OPT 202 # ifdef PNG_MIPS_MMI 203 # if defined(__mips_loongson_mmi) && (_MIPS_SIM == _ABI64) && \ 204 defined(PNG_ALIGNED_MEMORY_SUPPORTED) 205 # define PNG_MIPS_MMI_OPT 1 206 # else 207 # define PNG_MIPS_MMI_OPT 0 208 # endif 209 # else 210 # define PNG_MIPS_MMI_OPT 0 195 211 # endif 196 212 #endif … … 204 220 #endif 205 221 222 #ifndef PNG_LOONGARCH_LSX_OPT 223 # if defined(__loongarch_sx) 224 # define PNG_LOONGARCH_LSX_OPT 1 225 # else 226 # define PNG_LOONGARCH_LSX_OPT 0 227 # endif 228 #endif 229 206 230 #ifndef PNG_INTEL_SSE_OPT 207 231 # ifdef PNG_INTEL_SSE … … 210 234 * be off by default. See contrib/intel for more details. 211 235 */ 212 # if defined(__SSE4_1__) || defined(__AVX__) || defined(__SSSE3__) || \236 # if defined(__SSE4_1__) || defined(__AVX__) || defined(__SSSE3__) || \ 213 237 defined(__SSE2__) || defined(_M_X64) || defined(_M_AMD64) || \ 214 238 (defined(_M_IX86_FP) && _M_IX86_FP >= 2) … … 247 271 248 272 #if PNG_MIPS_MSA_OPT > 0 249 # define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_msa250 273 # ifndef PNG_MIPS_MSA_IMPLEMENTATION 251 274 # if defined(__mips_msa) … … 263 286 # ifndef PNG_MIPS_MSA_IMPLEMENTATION 264 287 # define PNG_MIPS_MSA_IMPLEMENTATION 1 288 # define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_mips 265 289 # endif 290 #else 291 # define PNG_MIPS_MSA_IMPLEMENTATION 0 266 292 #endif /* PNG_MIPS_MSA_OPT > 0 */ 293 294 #if PNG_MIPS_MMI_OPT > 0 295 # ifndef PNG_MIPS_MMI_IMPLEMENTATION 296 # if defined(__mips_loongson_mmi) && (_MIPS_SIM == _ABI64) 297 # define PNG_MIPS_MMI_IMPLEMENTATION 2 298 # else /* !defined __mips_loongson_mmi || _MIPS_SIM != _ABI64 */ 299 # define PNG_MIPS_MMI_IMPLEMENTATION 0 300 # endif /* __mips_loongson_mmi && _MIPS_SIM == _ABI64 */ 301 # endif /* !PNG_MIPS_MMI_IMPLEMENTATION */ 302 303 # if PNG_MIPS_MMI_IMPLEMENTATION > 0 304 # define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_mips 305 # endif 306 #else 307 # define PNG_MIPS_MMI_IMPLEMENTATION 0 308 #endif /* PNG_MIPS_MMI_OPT > 0 */ 267 309 268 310 #if PNG_POWERPC_VSX_OPT > 0 269 311 # define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_vsx 270 312 # define PNG_POWERPC_VSX_IMPLEMENTATION 1 271 #endif 272 313 #else 314 # define PNG_POWERPC_VSX_IMPLEMENTATION 0 315 #endif 316 317 #if PNG_LOONGARCH_LSX_OPT > 0 318 # define PNG_FILTER_OPTIMIZATIONS png_init_filter_functions_lsx 319 # define PNG_LOONGARCH_LSX_IMPLEMENTATION 1 320 #else 321 # define PNG_LOONGARCH_LSX_IMPLEMENTATION 0 322 #endif 273 323 274 324 /* Is this a build of a DLL where compilation of the object modules requires … … 493 543 #else 494 544 # define png_voidcast(type, value) (value) 495 # ifdef _WIN64 496 # ifdef __GNUC__ 497 typedef unsigned long long png_ptruint; 498 # else 499 typedef unsigned __int64 png_ptruint; 500 # endif 501 # else 502 typedef unsigned long png_ptruint; 503 # endif 504 # define png_constcast(type, value) ((type)(png_ptruint)(const void*)(value)) 545 # define png_constcast(type, value) ((type)(void*)(const void*)(value)) 505 546 # define png_aligncast(type, value) ((void*)(value)) 506 547 # define png_aligncastconst(type, value) ((const void*)(value)) … … 518 559 # include <float.h> 519 560 520 # if (defined(__MWERKS__) && defined(macintosh)) || defined(applec) || \ 521 defined(THINK_C) || defined(__SC__) || defined(TARGET_OS_MAC) 522 /* We need to check that <math.h> hasn't already been included earlier 523 * as it seems it doesn't agree with <fp.h>, yet we should really use 524 * <fp.h> if possible. 525 */ 526 # if !defined(__MATH_H__) && !defined(__MATH_H) && !defined(__cmath__) 527 # include <fp.h> 528 # endif 529 # else 530 # include <math.h> 531 # endif 561 # include <math.h> 562 532 563 # if defined(_AMIGA) && defined(__SASC) && defined(_M68881) 533 564 /* Amiga SAS/C: We must include builtin FPU functions when compiling using … … 559 590 */ 560 591 561 /* Memory model/platform independent fns */592 /* Platform-independent functions */ 562 593 #ifndef PNG_ABORT 563 # ifdef _WINDOWS_ 564 # define PNG_ABORT() ExitProcess(0) 565 # else 566 # define PNG_ABORT() abort() 567 # endif 594 # define PNG_ABORT() abort() 568 595 #endif 569 596 570 597 /* These macros may need to be architecture dependent. */ 571 #define PNG_ALIGN_NONE 0 /* do not use data alignment */572 #define PNG_ALIGN_ALWAYS 1 /* assume unaligned accesses are OK */598 #define PNG_ALIGN_NONE 0 /* do not use data alignment */ 599 #define PNG_ALIGN_ALWAYS 1 /* assume unaligned accesses are OK */ 573 600 #ifdef offsetof 574 # define PNG_ALIGN_OFFSET 2 /* use offsetof to determine alignment */601 # define PNG_ALIGN_OFFSET 2 /* use offsetof to determine alignment */ 575 602 #else 576 603 # define PNG_ALIGN_OFFSET -1 /* prevent the use of this */ 577 604 #endif 578 #define PNG_ALIGN_SIZE 3 /* use sizeof to determine alignment */605 #define PNG_ALIGN_SIZE 3 /* use sizeof to determine alignment */ 579 606 580 607 #ifndef PNG_ALIGN_TYPE … … 590 617 * structure members are supported, so the offsetof approach below fails. 591 618 * Set PNG_ALIGN_SIZE=0 for compiler combinations where unaligned access 592 * is good for performance. Do not do this unless you have tested the result593 * and understand it.594 */ 595 # define png_alignof(type) (sizeof 619 * is good for performance. Do not do this unless you have tested the 620 * result and understand it. 621 */ 622 # define png_alignof(type) (sizeof(type)) 596 623 #else 597 624 # if PNG_ALIGN_TYPE == PNG_ALIGN_OFFSET 598 # 625 # define png_alignof(type) offsetof(struct{char c; type t;}, t) 599 626 # else 600 # 601 # define png_alignof(type) (1)602 # 603 627 # if PNG_ALIGN_TYPE == PNG_ALIGN_ALWAYS 628 # define png_alignof(type) 1 629 # endif 630 /* Else leave png_alignof undefined to prevent use thereof */ 604 631 # endif 605 632 #endif 606 633 607 /* This implicitly assumes alignment is always to a powerof 2. */634 /* This implicitly assumes alignment is always a multiple of 2. */ 608 635 #ifdef png_alignof 609 # define png_isaligned(ptr, type)\ 610 (((type)((const char*)ptr-(const char*)0) & \ 611 (type)(png_alignof(type)-1)) == 0) 636 # define png_isaligned(ptr, type) \ 637 (((type)(size_t)((const void*)(ptr)) & (type)(png_alignof(type)-1)) == 0) 612 638 #else 613 639 # define png_isaligned(ptr, type) 0 … … 640 666 #define PNG_HAVE_PNG_SIGNATURE 0x1000U 641 667 #define PNG_HAVE_CHUNK_AFTER_IDAT 0x2000U /* Have another chunk after IDAT */ 642 /* 0x4000U (unused) */ 668 #define PNG_WROTE_eXIf 0x4000U 643 669 #define PNG_IS_READ_STRUCT 0x8000U /* Else is a write struct */ 644 670 … … 1320 1346 #endif 1321 1347 1322 #if PNG_MIPS_MSA_ OPT > 01348 #if PNG_MIPS_MSA_IMPLEMENTATION == 1 1323 1349 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_up_msa,(png_row_infop row_info, 1324 1350 png_bytep row, png_const_bytep prev_row),PNG_EMPTY); … … 1334 1360 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1335 1361 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_paeth4_msa,(png_row_infop 1362 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1363 #endif 1364 1365 #if PNG_MIPS_MMI_IMPLEMENTATION > 0 1366 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_up_mmi,(png_row_infop row_info, 1367 png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1368 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_sub3_mmi,(png_row_infop 1369 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1370 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_sub4_mmi,(png_row_infop 1371 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1372 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_avg3_mmi,(png_row_infop 1373 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1374 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_avg4_mmi,(png_row_infop 1375 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1376 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_paeth3_mmi,(png_row_infop 1377 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1378 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_paeth4_mmi,(png_row_infop 1336 1379 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1337 1380 #endif … … 1366 1409 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1367 1410 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_paeth4_sse2,(png_row_infop 1411 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1412 #endif 1413 1414 #if PNG_LOONGARCH_LSX_IMPLEMENTATION == 1 1415 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_up_lsx,(png_row_infop 1416 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1417 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_sub3_lsx,(png_row_infop 1418 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1419 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_sub4_lsx,(png_row_infop 1420 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1421 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_avg3_lsx,(png_row_infop 1422 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1423 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_avg4_lsx,(png_row_infop 1424 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1425 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_paeth3_lsx,(png_row_infop 1426 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1427 PNG_INTERNAL_FUNCTION(void,png_read_filter_row_paeth4_lsx,(png_row_infop 1368 1428 row_info, png_bytep row, png_const_bytep prev_row),PNG_EMPTY); 1369 1429 #endif … … 1924 1984 #define PNG_FP_INVALID 512 /* Available for callers as a distinct value */ 1925 1985 1926 /* Result codes for the parser (boolean - true mean ts ok, false means1986 /* Result codes for the parser (boolean - true means ok, false means 1927 1987 * not ok yet.) 1928 1988 */ … … 1960 2020 */ 1961 2021 PNG_INTERNAL_FUNCTION(int,png_check_fp_number,(png_const_charp string, 1962 size_t size, int *statep, png_size_tpwhereami),PNG_EMPTY);2022 size_t size, int *statep, size_t *whereami),PNG_EMPTY); 1963 2023 1964 2024 /* This is the same but it checks a complete string and returns true … … 2108 2168 #endif 2109 2169 2110 #if PNG_MIPS_MSA_ OPT > 02111 PNG_INTERNAL_FUNCTION(void, png_init_filter_functions_m sa,2170 #if PNG_MIPS_MSA_IMPLEMENTATION == 1 2171 PNG_INTERNAL_FUNCTION(void, png_init_filter_functions_mips, 2112 2172 (png_structp png_ptr, unsigned int bpp), PNG_EMPTY); 2113 2173 #endif 2174 2175 # if PNG_MIPS_MMI_IMPLEMENTATION > 0 2176 PNG_INTERNAL_FUNCTION(void, png_init_filter_functions_mips, 2177 (png_structp png_ptr, unsigned int bpp), PNG_EMPTY); 2178 # endif 2114 2179 2115 2180 # if PNG_INTEL_SSE_IMPLEMENTATION > 0 … … 2117 2182 (png_structp png_ptr, unsigned int bpp), PNG_EMPTY); 2118 2183 # endif 2184 #endif 2185 2186 #if PNG_LOONGARCH_LSX_OPT > 0 2187 PNG_INTERNAL_FUNCTION(void, png_init_filter_functions_lsx, 2188 (png_structp png_ptr, unsigned int bpp), PNG_EMPTY); 2119 2189 #endif 2120 2190 -
trunk/src/libs/libpng-1.6.42/pngread.c
r96425 r103316 2 2 /* pngread.c - read a PNG file 3 3 * 4 * Copyright (c) 2018-20 19Cosmin Truta4 * Copyright (c) 2018-2024 Cosmin Truta 5 5 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 6 * Copyright (c) 1996-1997 Andreas Dilger … … 569 569 570 570 #ifdef PNG_READ_TRANSFORMS_SUPPORTED 571 if (png_ptr->transformations )571 if (png_ptr->transformations || png_ptr->num_palette_max >= 0) 572 572 png_do_read_transformations(png_ptr, &row_info); 573 573 #endif … … 786 786 /* Report invalid palette index; added at libng-1.5.10 */ 787 787 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE && 788 png_ptr->num_palette_max > png_ptr->num_palette)788 png_ptr->num_palette_max >= png_ptr->num_palette) 789 789 png_benign_error(png_ptr, "Read palette index exceeding num_palette"); 790 790 #endif … … 1050 1050 int transforms, voidp params) 1051 1051 { 1052 png_debug(1, "in png_read_png"); 1053 1052 1054 if (png_ptr == NULL || info_ptr == NULL) 1053 1055 return; … … 3453 3455 for (pass = 0; pass < passes; ++pass) 3454 3456 { 3455 png_bytep row = png_voidcast(png_bytep, display->first_row);3456 3457 unsigned int startx, stepx, stepy; 3457 3458 png_uint_32 y; … … 3558 3559 inrow += 2; /* gray and alpha channel */ 3559 3560 } 3560 3561 row += display->row_bytes;3562 3561 } 3563 3562 } … … 3766 3765 output_gamma = PNG_DEFAULT_sRGB; 3767 3766 } 3768 3767 3769 3768 if ((change & PNG_FORMAT_FLAG_ASSOCIATED_ALPHA) != 0) 3770 3769 { … … 3772 3771 change &= ~PNG_FORMAT_FLAG_ASSOCIATED_ALPHA; 3773 3772 } 3774 3773 3775 3774 /* If 'do_local_background' is set check for the presence of gamma 3776 3775 * correction; this is part of the work-round for the libpng bug -
trunk/src/libs/libpng-1.6.42/pngrtran.c
r96425 r103316 2 2 /* pngrtran.c - transforms the data in a row for PNG readers 3 3 * 4 * Copyright (c) 2018-20 19Cosmin Truta4 * Copyright (c) 2018-2024 Cosmin Truta 5 5 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 6 * Copyright (c) 1996-1997 Andreas Dilger … … 22 22 # if PNG_ARM_NEON_IMPLEMENTATION == 1 23 23 # define PNG_ARM_NEON_INTRINSICS_AVAILABLE 24 # if defined(_MSC_VER) && defined(_M_ARM64)24 # if defined(_MSC_VER) && !defined(__clang__) && defined(_M_ARM64) 25 25 # include <arm64_neon.h> 26 26 # else … … 291 291 png_fixed_point file_gamma; 292 292 293 png_debug(1, "in png_set_alpha_mode ");293 png_debug(1, "in png_set_alpha_mode_fixed"); 294 294 295 295 if (png_rtran_ok(png_ptr, 0) == 0) … … 971 971 png_fixed_point red, png_fixed_point green) 972 972 { 973 png_debug(1, "in png_set_rgb_to_gray ");973 png_debug(1, "in png_set_rgb_to_gray_fixed"); 974 974 975 975 /* Need the IHDR here because of the check on color_type below. */ -
trunk/src/libs/libpng-1.6.42/pngrutil.c
r96425 r103316 2 2 /* pngrutil.c - utilities to read a PNG file 3 3 * 4 * Copyright (c) 2018 Cosmin Truta4 * Copyright (c) 2018-2024 Cosmin Truta 5 5 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 6 * Copyright (c) 1996-1997 Andreas Dilger … … 27 27 png_error(png_ptr, "PNG unsigned integer out of range"); 28 28 29 return (uval);29 return uval; 30 30 } 31 31 … … 141 141 { 142 142 if (num_checked < 4 && 143 png_sig_cmp(info_ptr->signature, num_checked, num_to_check - 4) )143 png_sig_cmp(info_ptr->signature, num_checked, num_to_check - 4) != 0) 144 144 png_error(png_ptr, "Not a PNG file"); 145 145 else … … 172 172 png_ptr->chunk_name = PNG_CHUNK_FROM_STRING(buf+4); 173 173 174 png_debug2(0, "Reading %lx chunk, length = %lu",174 png_debug2(0, "Reading chunk typeid = 0x%lx, length = %lu", 175 175 (unsigned long)png_ptr->chunk_name, (unsigned long)length); 176 176 … … 239 239 png_chunk_error(png_ptr, "CRC error"); 240 240 241 return (1);242 } 243 244 return (0);241 return 1; 242 } 243 244 return 0; 245 245 } 246 246 … … 278 278 { 279 279 crc = png_get_uint_32(crc_bytes); 280 return ((int)(crc != png_ptr->crc));280 return crc != png_ptr->crc; 281 281 } 282 282 283 283 else 284 return (0);284 return 0; 285 285 } 286 286 … … 302 302 if (buffer != NULL && new_size > png_ptr->read_buffer_size) 303 303 { 304 png_ptr->read_buffer = NULL;305 304 png_ptr->read_buffer = NULL; 306 305 png_ptr->read_buffer_size = 0; … … 423 422 } 424 423 425 #if ZLIB_VERNUM >= 0x1290 && \ 426 defined(PNG_SET_OPTION_SUPPORTED) && defined(PNG_IGNORE_ADLER32) 424 #ifdef PNG_DISABLE_ADLER32_CHECK_SUPPORTED 427 425 if (((png_ptr->options >> PNG_IGNORE_ADLER32) & 3) == PNG_OPTION_ON) 428 426 /* Turn off validation of the ADLER32 checksum in IDAT chunks */ … … 2077 2075 png_crc_read(png_ptr, buf, 1); 2078 2076 info_ptr->eXIf_buf[i] = buf[0]; 2079 if (i == 1 && buf[0] != 'M' && buf[0] != 'I' 2080 && info_ptr->eXIf_buf[0] != buf[0]) 2081 { 2082 png_crc_finish(png_ptr, length); 2083 png_chunk_benign_error(png_ptr, "incorrect byte-order specifier"); 2084 png_free(png_ptr, info_ptr->eXIf_buf); 2085 info_ptr->eXIf_buf = NULL; 2086 return; 2087 } 2088 } 2089 2090 if (png_crc_finish(png_ptr, 0) != 0) 2091 return; 2092 2093 png_set_eXIf_1(png_ptr, info_ptr, length, info_ptr->eXIf_buf); 2077 if (i == 1) 2078 { 2079 if ((buf[0] != 'M' && buf[0] != 'I') || 2080 (info_ptr->eXIf_buf[0] != buf[0])) 2081 { 2082 png_crc_finish(png_ptr, length - 2); 2083 png_chunk_benign_error(png_ptr, "incorrect byte-order specifier"); 2084 png_free(png_ptr, info_ptr->eXIf_buf); 2085 info_ptr->eXIf_buf = NULL; 2086 return; 2087 } 2088 } 2089 } 2090 2091 if (png_crc_finish(png_ptr, 0) == 0) 2092 png_set_eXIf_1(png_ptr, info_ptr, length, info_ptr->eXIf_buf); 2094 2093 2095 2094 png_free(png_ptr, info_ptr->eXIf_buf); … … 2127 2126 num = length / 2 ; 2128 2127 2129 if (num != (unsigned int) png_ptr->num_palette || 2130 num > (unsigned int) PNG_MAX_PALETTE_LENGTH) 2128 if (length != num * 2 || 2129 num != (unsigned int)png_ptr->num_palette || 2130 num > (unsigned int)PNG_MAX_PALETTE_LENGTH) 2131 2131 { 2132 2132 png_crc_finish(png_ptr, length); … … 3186 3186 png_debug2(0," length = %lu, limit = %lu", 3187 3187 (unsigned long)length,(unsigned long)limit); 3188 png_ chunk_error(png_ptr, "chunk data is too large");3188 png_benign_error(png_ptr, "chunk data is too large"); 3189 3189 } 3190 3190 } … … 4622 4622 { 4623 4623 png_bytep temp = png_ptr->big_row_buf + 32; 4624 int extra = (int)((temp - (png_bytep)0) & 0x0f);4624 size_t extra = (size_t)temp & 0x0f; 4625 4625 png_ptr->row_buf = temp - extra - 1/*filter byte*/; 4626 4626 4627 4627 temp = png_ptr->big_prev_row + 32; 4628 extra = ( int)((temp - (png_bytep)0) & 0x0f);4628 extra = (size_t)temp & 0x0f; 4629 4629 png_ptr->prev_row = temp - extra - 1/*filter byte*/; 4630 4630 } 4631 4632 4631 #else 4633 4632 /* Use 31 bytes of padding before and 17 bytes after row_buf. */ -
trunk/src/libs/libpng-1.6.42/pngset.c
r96425 r103316 2 2 /* pngset.c - storage of image information into info struct 3 3 * 4 * Copyright (c) 2018 Cosmin Truta4 * Copyright (c) 2018-2024 Cosmin Truta 5 5 * Copyright (c) 1998-2018 Glenn Randers-Pehrson 6 6 * Copyright (c) 1996-1997 Andreas Dilger … … 138 138 void PNGAPI 139 139 png_set_eXIf(png_const_structrp png_ptr, png_inforp info_ptr, 140 png_bytep e XIf_buf)140 png_bytep exif) 141 141 { 142 142 png_warning(png_ptr, "png_set_eXIf does not work; use png_set_eXIf_1"); 143 143 PNG_UNUSED(info_ptr) 144 PNG_UNUSED(e XIf_buf)144 PNG_UNUSED(exif) 145 145 } 146 146 147 147 void PNGAPI 148 148 png_set_eXIf_1(png_const_structrp png_ptr, png_inforp info_ptr, 149 png_uint_32 num_exif, png_bytep e XIf_buf)150 { 151 int i;149 png_uint_32 num_exif, png_bytep exif) 150 { 151 png_bytep new_exif; 152 152 153 153 png_debug1(1, "in %s storage function", "eXIf"); 154 154 155 if (png_ptr == NULL || info_ptr == NULL) 156 return; 157 158 if (info_ptr->exif) 159 { 160 png_free(png_ptr, info_ptr->exif); 161 info_ptr->exif = NULL; 162 } 155 if (png_ptr == NULL || info_ptr == NULL || 156 (png_ptr->mode & PNG_WROTE_eXIf) != 0) 157 return; 158 159 new_exif = png_voidcast(png_bytep, png_malloc_warn(png_ptr, num_exif)); 160 161 if (new_exif == NULL) 162 { 163 png_warning(png_ptr, "Insufficient memory for eXIf chunk data"); 164 return; 165 } 166 167 memcpy(new_exif, exif, (size_t)num_exif); 168 169 png_free_data(png_ptr, info_ptr, PNG_FREE_EXIF, 0); 163 170 164 171 info_ptr->num_exif = num_exif; 165 166 info_ptr->exif = png_voidcast(png_bytep, png_malloc_warn(png_ptr, 167 info_ptr->num_exif)); 168 169 if (info_ptr->exif == NULL) 170 { 171 png_warning(png_ptr, "Insufficient memory for eXIf chunk data"); 172 return; 173 } 174 172 info_ptr->exif = new_exif; 175 173 info_ptr->free_me |= PNG_FREE_EXIF; 176 177 for (i = 0; i < (int) info_ptr->num_exif; i++)178 info_ptr->exif[i] = eXIf_buf[i];179 180 174 info_ptr->valid |= PNG_INFO_eXIf; 181 175 } … … 238 232 { 239 233 png_warning(png_ptr, "Insufficient memory for hIST chunk data"); 240 241 return; 242 } 243 244 info_ptr->free_me |= PNG_FREE_HIST; 234 return; 235 } 245 236 246 237 for (i = 0; i < info_ptr->num_palette; i++) 247 238 info_ptr->hist[i] = hist[i]; 248 239 240 info_ptr->free_me |= PNG_FREE_HIST; 249 241 info_ptr->valid |= PNG_INFO_hIST; 250 242 } … … 368 360 memcpy(info_ptr->pcal_purpose, purpose, length); 369 361 362 info_ptr->free_me |= PNG_FREE_PCAL; 363 370 364 png_debug(3, "storing X0, X1, type, and nparams in info"); 371 365 info_ptr->pcal_X0 = X0; … … 384 378 { 385 379 png_warning(png_ptr, "Insufficient memory for pCAL units"); 386 387 380 return; 388 381 } … … 396 389 { 397 390 png_warning(png_ptr, "Insufficient memory for pCAL params"); 398 399 391 return; 400 392 } … … 414 406 { 415 407 png_warning(png_ptr, "Insufficient memory for pCAL parameter"); 416 417 408 return; 418 409 } … … 422 413 423 414 info_ptr->valid |= PNG_INFO_pCAL; 424 info_ptr->free_me |= PNG_FREE_PCAL;425 415 } 426 416 #endif … … 479 469 if (info_ptr->scal_s_height == NULL) 480 470 { 481 png_free 471 png_free(png_ptr, info_ptr->scal_s_width); 482 472 info_ptr->scal_s_width = NULL; 483 473 484 474 png_warning(png_ptr, "Memory allocation failed while processing sCAL"); 485 486 475 return; 487 476 } … … 489 478 memcpy(info_ptr->scal_s_height, sheight, lengthh); 490 479 480 info_ptr->free_me |= PNG_FREE_SCAL; 491 481 info_ptr->valid |= PNG_INFO_sCAL; 492 info_ptr->free_me |= PNG_FREE_SCAL;493 482 } 494 483 … … 626 615 memcpy(png_ptr->palette, palette, (unsigned int)num_palette * 627 616 (sizeof (png_color))); 617 628 618 info_ptr->palette = png_ptr->palette; 629 619 info_ptr->num_palette = png_ptr->num_palette = (png_uint_16)num_palette; 630 631 620 info_ptr->free_me |= PNG_FREE_PLTE; 632 633 621 info_ptr->valid |= PNG_INFO_PLTE; 634 622 } … … 776 764 int i; 777 765 778 png_debug1(1, "in %lx storage function", png_ptr == NULL ? 0xabadca11U :779 (unsigned long)png_ptr->chunk_name);766 png_debug1(1, "in text storage function, chunk typeid = 0x%lx", 767 png_ptr == NULL ? 0xabadca11UL : (unsigned long)png_ptr->chunk_name); 780 768 781 769 if (png_ptr == NULL || info_ptr == NULL || num_text <= 0 || text_ptr == NULL) 782 return (0);770 return 0; 783 771 784 772 /* Make sure we have enough space in the "text" array in info_struct … … 960 948 } 961 949 962 return (0);950 return 0; 963 951 } 964 952 #endif … … 1020 1008 png_malloc(png_ptr, PNG_MAX_PALETTE_LENGTH)); 1021 1009 memcpy(info_ptr->trans_alpha, trans_alpha, (size_t)num_trans); 1010 1011 info_ptr->free_me |= PNG_FREE_TRNS; 1012 info_ptr->valid |= PNG_INFO_tRNS; 1022 1013 } 1023 1014 png_ptr->trans_alpha = info_ptr->trans_alpha; … … 1052 1043 if (num_trans != 0) 1053 1044 { 1045 info_ptr->free_me |= PNG_FREE_TRNS; 1054 1046 info_ptr->valid |= PNG_INFO_tRNS; 1055 info_ptr->free_me |= PNG_FREE_TRNS;1056 1047 } 1057 1048 } … … 1073 1064 png_sPLT_tp np; 1074 1065 1066 png_debug1(1, "in %s storage function", "sPLT"); 1067 1075 1068 if (png_ptr == NULL || info_ptr == NULL || nentries <= 0 || entries == NULL) 1076 1069 return; … … 1087 1080 /* Out of memory or too many chunks */ 1088 1081 png_chunk_report(png_ptr, "too many sPLT chunks", PNG_CHUNK_WRITE_ERROR); 1089 1090 1082 return; 1091 1083 } 1092 1084 1093 1085 png_free(png_ptr, info_ptr->splt_palettes); 1086 1094 1087 info_ptr->splt_palettes = np; 1095 1088 info_ptr->free_me |= PNG_FREE_SPLT; … … 1245 1238 png_chunk_report(png_ptr, "too many unknown chunks", 1246 1239 PNG_CHUNK_WRITE_ERROR); 1247 1248 1240 return; 1249 1241 } 1250 1242 1251 1243 png_free(png_ptr, info_ptr->unknown_chunks); 1244 1252 1245 info_ptr->unknown_chunks = np; /* safe because it is initialized */ 1253 1246 info_ptr->free_me |= PNG_FREE_UNKN; … … 1327 1320 #ifdef PNG_MNG_FEATURES_SUPPORTED 1328 1321 png_uint_32 PNGAPI 1329 png_permit_mng_features 1322 png_permit_mng_features(png_structrp png_ptr, png_uint_32 mng_features) 1330 1323 { 1331 1324 png_debug(1, "in png_permit_mng_features"); … … 1547 1540 png_bytepp row_pointers) 1548 1541 { 1549 png_debug 1(1, "in %s storage function", "rows");1542 png_debug(1, "in png_set_rows"); 1550 1543 1551 1544 if (png_ptr == NULL || info_ptr == NULL) … … 1566 1559 png_set_compression_buffer_size(png_structrp png_ptr, size_t size) 1567 1560 { 1561 png_debug(1, "in png_set_compression_buffer_size"); 1562 1568 1563 if (png_ptr == NULL) 1569 1564 return; … … 1634 1629 /* This function was added to libpng 1.2.6 */ 1635 1630 void PNGAPI 1636 png_set_user_limits 1631 png_set_user_limits(png_structrp png_ptr, png_uint_32 user_width_max, 1637 1632 png_uint_32 user_height_max) 1638 1633 { 1634 png_debug(1, "in png_set_user_limits"); 1635 1639 1636 /* Images with dimensions larger than these limits will be 1640 1637 * rejected by png_set_IHDR(). To accept any PNG datastream … … 1650 1647 /* This function was added to libpng 1.4.0 */ 1651 1648 void PNGAPI 1652 png_set_chunk_cache_max (png_structrp png_ptr, png_uint_32 user_chunk_cache_max) 1653 { 1649 png_set_chunk_cache_max(png_structrp png_ptr, png_uint_32 user_chunk_cache_max) 1650 { 1651 png_debug(1, "in png_set_chunk_cache_max"); 1652 1654 1653 if (png_ptr != NULL) 1655 1654 png_ptr->user_chunk_cache_max = user_chunk_cache_max; … … 1658 1657 /* This function was added to libpng 1.4.1 */ 1659 1658 void PNGAPI 1660 png_set_chunk_malloc_max 1659 png_set_chunk_malloc_max(png_structrp png_ptr, 1661 1660 png_alloc_size_t user_chunk_malloc_max) 1662 1661 { 1662 png_debug(1, "in png_set_chunk_malloc_max"); 1663 1663 1664 if (png_ptr != NULL) 1664 1665 png_ptr->user_chunk_malloc_max = user_chunk_malloc_max; -
trunk/src/libs/libpng-1.6.42/pngstruct.h
r96425 r103316 2 2 /* pngstruct.h - header file for PNG reference library 3 3 * 4 * Copyright (c) 2018-20 19Cosmin Truta4 * Copyright (c) 2018-2022 Cosmin Truta 5 5 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 6 * Copyright (c) 1996-1997 Andreas Dilger … … 335 335 int process_mode; /* what push library is currently doing */ 336 336 int cur_palette; /* current push library palette index */ 337 338 337 #endif /* PROGRESSIVE_READ */ 339 340 #if defined(__TURBOC__) && !defined(_Windows) && !defined(__FLAT__)341 /* For the Borland special 64K segment handler */342 png_bytepp offset_table_ptr;343 png_bytep offset_table;344 png_uint_16 offset_table_number;345 png_uint_16 offset_table_count;346 png_uint_16 offset_table_count_free;347 #endif348 338 349 339 #ifdef PNG_READ_QUANTIZE_SUPPORTED -
trunk/src/libs/libpng-1.6.42/pngtest.c
r96425 r103316 2 2 /* pngtest.c - a simple test program to test libpng 3 3 * 4 * Copyright (c) 2018-20 19Cosmin Truta4 * Copyright (c) 2018-2024 Cosmin Truta 5 5 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 6 * Copyright (c) 1996-1997 Andreas Dilger … … 525 525 526 526 if (size == 0) 527 return (NULL);527 return NULL; 528 528 529 529 /* This calls the library allocator twice, once to get the requested … … 566 566 pinfo->pointer); 567 567 568 return (png_voidp) (pinfo->pointer);568 return (png_voidp)pinfo->pointer; 569 569 } 570 570 } … … 699 699 700 700 /* Return one of the following: 701 * return (-n); chunk had an error702 * return (0);did not recognize703 * return (n);success701 * return -n; chunk had an error 702 * return 0; did not recognize 703 * return n; success 704 704 * 705 705 * The unknown chunk structure contains the chunk data: … … 716 716 /* Found sTER chunk */ 717 717 if (chunk->size != 1) 718 return (-1); /* Error return */718 return -1; /* Error return */ 719 719 720 720 if (chunk->data[0] != 0 && chunk->data[0] != 1) 721 return (-1); /* Invalid mode */721 return -1; /* Invalid mode */ 722 722 723 723 if (set_location(png_ptr, my_user_chunk_data, have_sTER) != 0) 724 724 { 725 725 my_user_chunk_data->sTER_mode=chunk->data[0]; 726 return (1);726 return 1; 727 727 } 728 728 729 729 else 730 return (0); /* duplicate sTER - give it to libpng */730 return 0; /* duplicate sTER - give it to libpng */ 731 731 } 732 732 733 733 if (chunk->name[0] != 118 || chunk->name[1] != 112 || /* v p */ 734 734 chunk->name[2] != 65 || chunk->name[3] != 103) /* A g */ 735 return (0); /* Did not recognize */735 return 0; /* Did not recognize */ 736 736 737 737 /* Found ImageMagick vpAg chunk */ 738 738 739 739 if (chunk->size != 9) 740 return (-1); /* Error return */740 return -1; /* Error return */ 741 741 742 742 if (set_location(png_ptr, my_user_chunk_data, have_vpAg) == 0) 743 return (0); /* duplicate vpAg */743 return 0; /* duplicate vpAg */ 744 744 745 745 my_user_chunk_data->vpAg_width = png_get_uint_31(png_ptr, chunk->data); … … 747 747 my_user_chunk_data->vpAg_units = chunk->data[8]; 748 748 749 return (1);749 return 1; 750 750 } 751 751 … … 883 883 { 884 884 fprintf(STDERR, "Could not find input file %s\n", inname); 885 return (1);885 return 1; 886 886 } 887 887 … … 890 890 fprintf(STDERR, "Could not open output file %s\n", outname); 891 891 FCLOSE(fpin); 892 return (1);892 return 1; 893 893 } 894 894 … … 949 949 FCLOSE(fpin); 950 950 FCLOSE(fpout); 951 return (1);951 return 1; 952 952 } 953 953 … … 969 969 FCLOSE(fpin); 970 970 FCLOSE(fpout); 971 return (1);971 return 1; 972 972 } 973 973 #endif … … 1657 1657 pngtest_debug("Destroying data structs"); 1658 1658 #ifdef SINGLE_ROWBUF_ALLOC 1659 pngtest_debug(" destroying row_buf for read_ptr");1659 pngtest_debug("Destroying row_buf for read_ptr"); 1660 1660 png_free(read_ptr, row_buf); 1661 1661 row_buf = NULL; 1662 1662 #endif /* SINGLE_ROWBUF_ALLOC */ 1663 pngtest_debug(" destroying read_ptr, read_info_ptr, end_info_ptr");1663 pngtest_debug("Destroying read_ptr, read_info_ptr, end_info_ptr"); 1664 1664 png_destroy_read_struct(&read_ptr, &read_info_ptr, &end_info_ptr); 1665 1665 #ifdef PNG_WRITE_SUPPORTED 1666 pngtest_debug(" destroying write_end_info_ptr");1666 pngtest_debug("Destroying write_end_info_ptr"); 1667 1667 png_destroy_info_struct(write_ptr, &write_end_info_ptr); 1668 pngtest_debug(" destroying write_ptr, write_info_ptr");1668 pngtest_debug("Destroying write_ptr, write_info_ptr"); 1669 1669 png_destroy_write_struct(&write_ptr, &write_info_ptr); 1670 1670 #endif … … 1687 1687 1688 1688 if (strict != 0) 1689 return (1);1689 return 1; 1690 1690 } 1691 1691 … … 1705 1705 1706 1706 if (strict != 0) 1707 return (1);1707 return 1; 1708 1708 } 1709 1709 … … 1712 1712 { 1713 1713 fprintf(STDERR, "Could not find file %s\n", inname); 1714 return (1);1714 return 1; 1715 1715 } 1716 1716 … … 1719 1719 fprintf(STDERR, "Could not find file %s\n", outname); 1720 1720 FCLOSE(fpin); 1721 return (1);1721 return 1; 1722 1722 } 1723 1723 … … 1758 1758 1759 1759 if (strict != 0 && unsupported_chunks == 0) 1760 return (1);1760 return 1; 1761 1761 1762 1762 else 1763 return (0);1763 return 0; 1764 1764 } 1765 1765 … … 1795 1795 */ 1796 1796 if (strict != 0 && unsupported_chunks == 0) 1797 return (1);1797 return 1; 1798 1798 1799 1799 else 1800 return (0);1800 return 0; 1801 1801 } 1802 1802 } … … 1807 1807 FCLOSE(fpout); 1808 1808 1809 return (0);1809 return 0; 1810 1810 } 1811 1811 … … 2156 2156 2157 2157 /* Generate a compiler error if there is an old png.h in the search path. */ 2158 typedef png_libpng_version_1_6_ 37 Your_png_h_is_not_version_1_6_37;2158 typedef png_libpng_version_1_6_42 Your_png_h_is_not_version_1_6_42; -
trunk/src/libs/libpng-1.6.42/pngtrans.c
r96425 r103316 2 2 /* pngtrans.c - transforms the data in a row (used by both readers and writers) 3 3 * 4 * Copyright (c) 2018 Cosmin Truta4 * Copyright (c) 2018-2024 Cosmin Truta 5 5 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 6 * Copyright (c) 1996-1997 Andreas Dilger … … 104 104 { 105 105 png_ptr->transformations |= PNG_INTERLACE; 106 return (7);107 } 108 109 return (1);106 return 7; 107 } 108 109 return 1; 110 110 } 111 111 #endif … … 499 499 png_bytep ep = row + row_info->rowbytes; /* One beyond end of row */ 500 500 501 png_debug(1, "in png_do_strip_channel"); 502 501 503 /* At the start sp will point to the first byte to copy and dp to where 502 504 * it is copied to. ep always points just beyond the end of the row, so … … 699 701 png_do_check_palette_indexes(png_structrp png_ptr, png_row_infop row_info) 700 702 { 703 png_debug(1, "in png_do_check_palette_indexes"); 704 701 705 if (png_ptr->num_palette < (1 << row_info->bit_depth) && 702 706 png_ptr->num_palette > 0) /* num_palette can be 0 in MNG files */ … … 709 713 */ 710 714 int padding = PNG_PADBITS(row_info->pixel_depth, row_info->width); 711 png_bytep rp = png_ptr->row_buf + row_info->rowbytes - 1;715 png_bytep rp = png_ptr->row_buf + row_info->rowbytes; 712 716 713 717 switch (row_info->bit_depth) … … 834 838 { 835 839 if (png_ptr == NULL) 836 return (NULL);840 return NULL; 837 841 838 842 return png_ptr->user_transform_ptr; -
trunk/src/libs/libpng-1.6.42/pngwrite.c
r96425 r103316 2 2 /* pngwrite.c - general routines to write a PNG file 3 3 * 4 * Copyright (c) 2018-20 19Cosmin Truta4 * Copyright (c) 2018-2024 Cosmin Truta 5 5 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 6 * Copyright (c) 1996-1997 Andreas Dilger … … 76 76 * and put it in the correct location here. If you want the chunk written 77 77 * after the image data, put it in png_write_end(). I strongly encourage 78 * you to supply a PNG_INFO_ flag, and check info_ptr->valid before writing79 * the chunk, as that will keep the code from breaking if you want to just80 * write a plain PNG file. If you have long comments, I suggest writing81 * them in png_write_end(), and compressing them.78 * you to supply a PNG_INFO_<chunk> flag, and check info_ptr->valid before 79 * writing the chunk, as that will keep the code from breaking if you want 80 * to just write a plain PNG file. If you have long comments, I suggest 81 * writing them in png_write_end(), and compressing them. 82 82 */ 83 83 void PNGAPI … … 240 240 #ifdef PNG_WRITE_eXIf_SUPPORTED 241 241 if ((info_ptr->valid & PNG_INFO_eXIf) != 0) 242 { 242 243 png_write_eXIf(png_ptr, info_ptr->exif, info_ptr->num_exif); 244 png_ptr->mode |= PNG_WROTE_eXIf; 245 } 243 246 #endif 244 247 … … 367 370 368 371 #ifdef PNG_WRITE_CHECK_FOR_INVALID_INDEX_SUPPORTED 369 if (png_ptr->num_palette_max > png_ptr->num_palette) 372 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE && 373 png_ptr->num_palette_max >= png_ptr->num_palette) 370 374 png_benign_error(png_ptr, "Wrote palette index exceeding num_palette"); 371 375 #endif … … 440 444 441 445 #ifdef PNG_WRITE_eXIf_SUPPORTED 442 if ((info_ptr->valid & PNG_INFO_eXIf) != 0) 443 png_write_eXIf(png_ptr, info_ptr->exif, info_ptr->num_exif); 446 if ((info_ptr->valid & PNG_INFO_eXIf) != 0 && 447 (png_ptr->mode & PNG_WROTE_eXIf) == 0) 448 png_write_eXIf(png_ptr, info_ptr->exif, info_ptr->num_exif); 444 449 #endif 445 450 … … 490 495 491 496 tbuf = gmtime(&ttime); 497 if (tbuf == NULL) 498 { 499 /* TODO: add a safe function which takes a png_ptr argument and raises 500 * a png_error if the ttime argument is invalid and the call to gmtime 501 * fails as a consequence. 502 */ 503 memset(ptime, 0, sizeof(*ptime)); 504 return; 505 } 506 492 507 png_convert_from_struct_tm(ptime, tbuf); 493 508 } … … 701 716 png_row_info row_info; 702 717 718 png_debug2(1, "in png_write_row (row %u, pass %d)", 719 png_ptr->row_number, png_ptr->pass); 720 703 721 if (png_ptr == NULL) 704 722 return; 705 706 png_debug2(1, "in png_write_row (row %u, pass %d)",707 png_ptr->row_number, png_ptr->pass);708 723 709 724 /* Initialize transformations and other stuff if first time */ … … 1197 1212 png_set_compression_window_bits(png_structrp png_ptr, int window_bits) 1198 1213 { 1214 png_debug(1, "in png_set_compression_window_bits"); 1215 1199 1216 if (png_ptr == NULL) 1200 1217 return; … … 1280 1297 png_set_text_compression_window_bits(png_structrp png_ptr, int window_bits) 1281 1298 { 1299 png_debug(1, "in png_set_text_compression_window_bits"); 1300 1282 1301 if (png_ptr == NULL) 1283 1302 return; … … 1317 1336 png_set_write_status_fn(png_structrp png_ptr, png_write_status_ptr write_row_fn) 1318 1337 { 1338 png_debug(1, "in png_set_write_status_fn"); 1339 1319 1340 if (png_ptr == NULL) 1320 1341 return; … … 1344 1365 int transforms, voidp params) 1345 1366 { 1367 png_debug(1, "in png_write_png"); 1368 1346 1369 if (png_ptr == NULL || info_ptr == NULL) 1347 1370 return; -
trunk/src/libs/libpng-1.6.42/pngwutil.c
r96425 r103316 2 2 /* pngwutil.c - utilities to write a PNG file 3 3 * 4 * Copyright (c) 2018 Cosmin Truta4 * Copyright (c) 2018-2024 Cosmin Truta 5 5 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 6 6 * Copyright (c) 1996-1997 Andreas Dilger … … 1748 1748 png_uint_32 purpose_len; 1749 1749 size_t units_len, total_len; 1750 png_size_tpparams_len;1750 size_t *params_len; 1751 1751 png_byte buf[10]; 1752 1752 png_byte new_purpose[80]; … … 1770 1770 total_len = purpose_len + units_len + 10; 1771 1771 1772 params_len = ( png_size_tp)png_malloc(png_ptr,1772 params_len = (size_t *)png_malloc(png_ptr, 1773 1773 (png_alloc_size_t)((png_alloc_size_t)nparams * (sizeof (size_t)))); 1774 1774 … … 2312 2312 } 2313 2313 2314 return (sum);2314 return sum; 2315 2315 } 2316 2316 … … 2362 2362 } 2363 2363 2364 return (sum);2364 return sum; 2365 2365 } 2366 2366 static void /* PRIVATE */ … … 2418 2418 } 2419 2419 2420 return (sum);2420 return sum; 2421 2421 } 2422 2422 static void /* PRIVATE */ … … 2501 2501 } 2502 2502 2503 return (sum);2503 return sum; 2504 2504 } 2505 2505 static void /* PRIVATE */ -
trunk/src/libs/libpng-1.6.42/projects/vstudio/README.txt
r96425 r103316 2 2 ============================================================== 3 3 4 Copyright (c) 2018 Cosmin Truta4 Copyright (c) 2018,2022 Cosmin Truta 5 5 Copyright (c) 2010,2013,2015 Glenn Randers-Pehrson 6 6 … … 10 10 11 11 This directory contains a solution for building libpng under Microsoft 12 Visual Studio 201 0. It may also work under later versions of Visual13 Studio. You should be familiar with Visual Studio before using this 14 solution.12 Visual Studio 2019. It may also work under earlier or later versions 13 of Visual Studio. You should be familiar with Visual Studio before 14 using this solution. 15 15 16 16 Initial preparations -
trunk/src/libs/libpng-1.6.42/projects/vstudio/libpng/libpng.vcxproj
r96425 r103316 2 2 <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 3 <ItemGroup Label="ProjectConfigurations"> 4 <ProjectConfiguration Include="Debug Library|ARM64"> 5 <Configuration>Debug Library</Configuration> 6 <Platform>ARM64</Platform> 7 </ProjectConfiguration> 4 8 <ProjectConfiguration Include="Debug Library|Win32"> 5 9 <Configuration>Debug Library</Configuration> 6 10 <Platform>Win32</Platform> 7 11 </ProjectConfiguration> 12 <ProjectConfiguration Include="Debug|ARM64"> 13 <Configuration>Debug</Configuration> 14 <Platform>ARM64</Platform> 15 </ProjectConfiguration> 8 16 <ProjectConfiguration Include="Debug|Win32"> 9 17 <Configuration>Debug</Configuration> 10 18 <Platform>Win32</Platform> 11 19 </ProjectConfiguration> 20 <ProjectConfiguration Include="Release Library|ARM64"> 21 <Configuration>Release Library</Configuration> 22 <Platform>ARM64</Platform> 23 </ProjectConfiguration> 12 24 <ProjectConfiguration Include="Release Library|Win32"> 13 25 <Configuration>Release Library</Configuration> 14 26 <Platform>Win32</Platform> 27 </ProjectConfiguration> 28 <ProjectConfiguration Include="Release|ARM64"> 29 <Configuration>Release</Configuration> 30 <Platform>ARM64</Platform> 15 31 </ProjectConfiguration> 16 32 <ProjectConfiguration Include="Release|Win32"> … … 30 46 <CharacterSet>MultiByte</CharacterSet> 31 47 <WholeProgramOptimization>true</WholeProgramOptimization> 48 <PlatformToolset>v142</PlatformToolset> 49 </PropertyGroup> 50 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration"> 51 <ConfigurationType>DynamicLibrary</ConfigurationType> 52 <CharacterSet>MultiByte</CharacterSet> 53 <WholeProgramOptimization>true</WholeProgramOptimization> 54 <PlatformToolset>v142</PlatformToolset> 32 55 </PropertyGroup> 33 56 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'" Label="Configuration"> 34 57 <ConfigurationType>StaticLibrary</ConfigurationType> 35 58 <CharacterSet>MultiByte</CharacterSet> 59 <PlatformToolset>v142</PlatformToolset> 60 </PropertyGroup> 61 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'" Label="Configuration"> 62 <ConfigurationType>StaticLibrary</ConfigurationType> 63 <CharacterSet>MultiByte</CharacterSet> 64 <PlatformToolset>v142</PlatformToolset> 36 65 </PropertyGroup> 37 66 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> … … 39 68 <WholeProgramOptimization>true</WholeProgramOptimization> 40 69 <CharacterSet>MultiByte</CharacterSet> 70 <PlatformToolset>v142</PlatformToolset> 71 </PropertyGroup> 72 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration"> 73 <ConfigurationType>DynamicLibrary</ConfigurationType> 74 <WholeProgramOptimization>true</WholeProgramOptimization> 75 <CharacterSet>MultiByte</CharacterSet> 76 <PlatformToolset>v142</PlatformToolset> 41 77 </PropertyGroup> 42 78 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'" Label="Configuration"> 43 79 <ConfigurationType>StaticLibrary</ConfigurationType> 44 80 <CharacterSet>MultiByte</CharacterSet> 81 <PlatformToolset>v142</PlatformToolset> 82 </PropertyGroup> 83 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'" Label="Configuration"> 84 <ConfigurationType>StaticLibrary</ConfigurationType> 85 <CharacterSet>MultiByte</CharacterSet> 86 <PlatformToolset>v142</PlatformToolset> 45 87 </PropertyGroup> 46 88 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> … … 50 92 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 51 93 </ImportGroup> 94 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="PropertySheets"> 95 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 96 </ImportGroup> 52 97 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'" Label="PropertySheets"> 53 98 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 54 99 </ImportGroup> 100 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'" Label="PropertySheets"> 101 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 102 </ImportGroup> 55 103 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 56 104 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 57 105 </ImportGroup> 106 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="PropertySheets"> 107 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 108 </ImportGroup> 58 109 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'" Label="PropertySheets"> 59 110 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 60 111 </ImportGroup> 112 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'" Label="PropertySheets"> 113 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 114 </ImportGroup> 61 115 <PropertyGroup Label="UserMacros" /> 62 116 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> … … 66 120 <TargetName>$(ProjectName)16</TargetName> 67 121 </PropertyGroup> 122 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> 123 <LinkIncremental>false</LinkIncremental> 124 <CustomBuildBeforeTargets /> 125 <TargetName>$(ProjectName)16</TargetName> 126 </PropertyGroup> 68 127 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'"> 128 <LinkIncremental>false</LinkIncremental> 129 <CustomBuildBeforeTargets /> 130 <TargetName>$(ProjectName)16</TargetName> 131 </PropertyGroup> 132 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'"> 69 133 <LinkIncremental>false</LinkIncremental> 70 134 <CustomBuildBeforeTargets /> … … 77 141 <TargetName>$(ProjectName)16</TargetName> 78 142 </PropertyGroup> 143 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 144 <LinkIncremental>false</LinkIncremental> 145 <CustomBuildBeforeTargets /> 146 <TargetName>$(ProjectName)16</TargetName> 147 </PropertyGroup> 79 148 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'"> 80 149 <LinkIncremental>false</LinkIncremental> … … 82 151 <TargetName>$(ProjectName)16</TargetName> 83 152 </PropertyGroup> 153 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'"> 154 <LinkIncremental>false</LinkIncremental> 155 <CustomBuildBeforeTargets /> 156 <TargetName>$(ProjectName)16</TargetName> 157 </PropertyGroup> 84 158 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> 85 159 <ClCompile> … … 89 163 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 90 164 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 91 <PreprocessorDefinitions>WIN32;_DEBUG;_ WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>165 <PreprocessorDefinitions>WIN32;_DEBUG;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 92 166 <IntrinsicFunctions>true</IntrinsicFunctions> 93 167 <FunctionLevelLinking>true</FunctionLevelLinking> … … 112 186 </Link> 113 187 </ItemDefinitionGroup> 188 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> 189 <ClCompile> 190 <PrecompiledHeader>Use</PrecompiledHeader> 191 <WarningLevel>$(WarningLevel)</WarningLevel> 192 <MinimalRebuild>false</MinimalRebuild> 193 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 194 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 195 <PreprocessorDefinitions>WIN32;_DEBUG;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 196 <IntrinsicFunctions>true</IntrinsicFunctions> 197 <FunctionLevelLinking>true</FunctionLevelLinking> 198 <FloatingPointExceptions>false</FloatingPointExceptions> 199 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> 200 <PrecompiledHeaderFile>pngpriv.h</PrecompiledHeaderFile> 201 <BrowseInformation>true</BrowseInformation> 202 <CompileAs>CompileAsC</CompileAs> 203 <StringPooling>true</StringPooling> 204 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 205 <AdditionalIncludeDirectories>$(ZLibSrcDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 206 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 207 <Optimization>Disabled</Optimization> 208 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> 209 </ClCompile> 210 <Link> 211 <SubSystem>Windows</SubSystem> 212 <GenerateDebugInformation>true</GenerateDebugInformation> 213 <AdditionalDependencies>zlib.lib</AdditionalDependencies> 214 <Version>16</Version> 215 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 216 </Link> 217 </ItemDefinitionGroup> 114 218 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'"> 115 219 <ClCompile> 116 220 <PrecompiledHeader>Use</PrecompiledHeader> 117 <WarningLevel> $(WarningLevel)</WarningLevel>221 <WarningLevel>Level3</WarningLevel> 118 222 <MinimalRebuild>false</MinimalRebuild> 119 223 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 120 224 <Optimization>Disabled</Optimization> 121 225 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 122 <PreprocessorDefinitions>WIN32;_DEBUG; _WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>123 <IntrinsicFunctions>true</IntrinsicFunctions> 124 <FunctionLevelLinking>true</FunctionLevelLinking> 125 <FloatingPointExceptions>false</FloatingPointExceptions> 126 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> 127 <PrecompiledHeaderFile>pngpriv.h</PrecompiledHeaderFile> 128 <BrowseInformation>true</BrowseInformation> 129 <CompileAs>CompileAsC</CompileAs> 130 <StringPooling>true</StringPooling> 131 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 132 <AdditionalIncludeDirectories>$(ZLibSrcDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 133 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>226 <PreprocessorDefinitions>WIN32;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> 227 <IntrinsicFunctions>true</IntrinsicFunctions> 228 <FunctionLevelLinking>true</FunctionLevelLinking> 229 <FloatingPointExceptions>false</FloatingPointExceptions> 230 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> 231 <PrecompiledHeaderFile>pngpriv.h</PrecompiledHeaderFile> 232 <BrowseInformation>true</BrowseInformation> 233 <CompileAs>CompileAsC</CompileAs> 234 <StringPooling>true</StringPooling> 235 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 236 <AdditionalIncludeDirectories>$(ZLibSrcDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 237 <TreatWarningAsError>false</TreatWarningAsError> 134 238 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 135 239 </ClCompile> … … 139 243 </Link> 140 244 </ItemDefinitionGroup> 245 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'"> 246 <ClCompile> 247 <PrecompiledHeader>Use</PrecompiledHeader> 248 <WarningLevel>Level3</WarningLevel> 249 <MinimalRebuild>false</MinimalRebuild> 250 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 251 <Optimization>Disabled</Optimization> 252 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 253 <PreprocessorDefinitions>WIN32;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> 254 <IntrinsicFunctions>true</IntrinsicFunctions> 255 <FunctionLevelLinking>true</FunctionLevelLinking> 256 <FloatingPointExceptions>false</FloatingPointExceptions> 257 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> 258 <PrecompiledHeaderFile>pngpriv.h</PrecompiledHeaderFile> 259 <BrowseInformation>true</BrowseInformation> 260 <CompileAs>CompileAsC</CompileAs> 261 <StringPooling>true</StringPooling> 262 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 263 <AdditionalIncludeDirectories>$(ZLibSrcDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 264 <TreatWarningAsError>false</TreatWarningAsError> 265 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 266 </ClCompile> 267 <Link> 268 <SubSystem>Windows</SubSystem> 269 <GenerateDebugInformation>true</GenerateDebugInformation> 270 </Link> 271 </ItemDefinitionGroup> 141 272 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 142 273 <ClCompile> … … 146 277 <FunctionLevelLinking>true</FunctionLevelLinking> 147 278 <IntrinsicFunctions>true</IntrinsicFunctions> 148 <PreprocessorDefinitions>WIN32;NDEBUG;_ WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>279 <PreprocessorDefinitions>WIN32;NDEBUG;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 149 280 <FloatingPointExceptions>false</FloatingPointExceptions> 150 281 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> … … 169 300 </Link> 170 301 </ItemDefinitionGroup> 302 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 303 <ClCompile> 304 <WarningLevel>$(WarningLevel)</WarningLevel> 305 <PrecompiledHeader>Use</PrecompiledHeader> 306 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 307 <FunctionLevelLinking>true</FunctionLevelLinking> 308 <IntrinsicFunctions>true</IntrinsicFunctions> 309 <PreprocessorDefinitions>WIN32;NDEBUG;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 310 <FloatingPointExceptions>false</FloatingPointExceptions> 311 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> 312 <PrecompiledHeaderFile>pngpriv.h</PrecompiledHeaderFile> 313 <BrowseInformation>true</BrowseInformation> 314 <CompileAs>CompileAsC</CompileAs> 315 <StringPooling>true</StringPooling> 316 <MinimalRebuild>false</MinimalRebuild> 317 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 318 <AdditionalIncludeDirectories>$(ZLibSrcDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 319 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 320 <Optimization>Full</Optimization> 321 </ClCompile> 322 <Link> 323 <SubSystem>Windows</SubSystem> 324 <GenerateDebugInformation>true</GenerateDebugInformation> 325 <EnableCOMDATFolding>true</EnableCOMDATFolding> 326 <OptimizeReferences>true</OptimizeReferences> 327 <AdditionalDependencies>zlib.lib</AdditionalDependencies> 328 <Version>16</Version> 329 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 330 </Link> 331 </ItemDefinitionGroup> 171 332 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'"> 172 333 <ClCompile> 173 <WarningLevel> $(WarningLevel)</WarningLevel>334 <WarningLevel>Level3</WarningLevel> 174 335 <PrecompiledHeader>Use</PrecompiledHeader> 175 336 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 177 338 <FunctionLevelLinking>true</FunctionLevelLinking> 178 339 <IntrinsicFunctions>true</IntrinsicFunctions> 179 <PreprocessorDefinitions>WIN32;NDEBUG; _WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>180 <FloatingPointExceptions>false</FloatingPointExceptions> 181 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> 182 <PrecompiledHeaderFile>pngpriv.h</PrecompiledHeaderFile> 183 <BrowseInformation>true</BrowseInformation> 184 <CompileAs>CompileAsC</CompileAs> 185 <StringPooling>true</StringPooling> 186 <MinimalRebuild>false</MinimalRebuild> 187 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 188 <AdditionalIncludeDirectories>$(ZLibSrcDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 189 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>340 <PreprocessorDefinitions>WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> 341 <FloatingPointExceptions>false</FloatingPointExceptions> 342 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> 343 <PrecompiledHeaderFile>pngpriv.h</PrecompiledHeaderFile> 344 <BrowseInformation>true</BrowseInformation> 345 <CompileAs>CompileAsC</CompileAs> 346 <StringPooling>true</StringPooling> 347 <MinimalRebuild>false</MinimalRebuild> 348 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 349 <AdditionalIncludeDirectories>$(ZLibSrcDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 350 <TreatWarningAsError>false</TreatWarningAsError> 190 351 <Optimization>Full</Optimization> 191 352 <WholeProgramOptimization>true</WholeProgramOptimization> … … 201 362 </Lib> 202 363 </ItemDefinitionGroup> 364 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'"> 365 <ClCompile> 366 <WarningLevel>Level3</WarningLevel> 367 <PrecompiledHeader>Use</PrecompiledHeader> 368 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 369 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 370 <FunctionLevelLinking>true</FunctionLevelLinking> 371 <IntrinsicFunctions>true</IntrinsicFunctions> 372 <PreprocessorDefinitions>WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> 373 <FloatingPointExceptions>false</FloatingPointExceptions> 374 <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType> 375 <PrecompiledHeaderFile>pngpriv.h</PrecompiledHeaderFile> 376 <BrowseInformation>true</BrowseInformation> 377 <CompileAs>CompileAsC</CompileAs> 378 <StringPooling>true</StringPooling> 379 <MinimalRebuild>false</MinimalRebuild> 380 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 381 <AdditionalIncludeDirectories>$(ZLibSrcDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 382 <TreatWarningAsError>false</TreatWarningAsError> 383 <Optimization>Full</Optimization> 384 <WholeProgramOptimization>true</WholeProgramOptimization> 385 </ClCompile> 386 <Link> 387 <SubSystem>Windows</SubSystem> 388 <GenerateDebugInformation>true</GenerateDebugInformation> 389 <EnableCOMDATFolding>true</EnableCOMDATFolding> 390 <OptimizeReferences>true</OptimizeReferences> 391 </Link> 392 <Lib> 393 <LinkTimeCodeGeneration>true</LinkTimeCodeGeneration> 394 </Lib> 395 </ItemDefinitionGroup> 203 396 <ItemGroup> 397 <ClCompile Include="..\..\..\arm\arm_init.c"> 398 <DeploymentContent>true</DeploymentContent> 399 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">WIN32;_DEBUG;PNG_ARM_NEON_OPT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> 400 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">NotUsing</PrecompiledHeader> 401 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'">NotUsing</PrecompiledHeader> 402 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'">NotUsing</PrecompiledHeader> 403 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader> 404 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader> 405 </ClCompile> 406 <ClCompile Include="..\..\..\arm\filter_neon_intrinsics.c"> 407 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">NotUsing</PrecompiledHeader> 408 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">WIN32;_DEBUG;PNG_ARM_NEON_OPT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> 409 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'">NotUsing</PrecompiledHeader> 410 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'">NotUsing</PrecompiledHeader> 411 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader> 412 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader> 413 </ClCompile> 414 <ClCompile Include="..\..\..\arm\palette_neon_intrinsics.c"> 415 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">NotUsing</PrecompiledHeader> 416 <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">WIN32;_DEBUG;PNG_ARM_NEON_OPT=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> 417 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'">NotUsing</PrecompiledHeader> 418 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'">NotUsing</PrecompiledHeader> 419 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader> 420 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader> 421 </ClCompile> 204 422 <ClCompile Include="..\..\..\png.c"> 205 423 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader> 424 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">Create</PrecompiledHeader> 206 425 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'">Create</PrecompiledHeader> 426 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">Create</PrecompiledHeader> 207 427 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader> 428 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">Create</PrecompiledHeader> 208 429 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'">Create</PrecompiledHeader> 430 <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'">Create</PrecompiledHeader> 209 431 </ClCompile> 210 432 <ClCompile Include="..\..\..\pngerror.c" /> … … 226 448 <ResourceCompile Include="..\..\..\scripts\pngwin.rc"> 227 449 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'">true</ExcludedFromBuild> 450 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'">true</ExcludedFromBuild> 228 451 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'">true</ExcludedFromBuild> 452 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'">true</ExcludedFromBuild> 229 453 </ResourceCompile> 230 454 </ItemGroup> -
trunk/src/libs/libpng-1.6.42/projects/vstudio/pnglibconf/pnglibconf.vcxproj
r96425 r103316 2 2 <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 3 <ItemGroup Label="ProjectConfigurations"> 4 <ProjectConfiguration Include="Release|ARM64"> 5 <Configuration>Release</Configuration> 6 <Platform>ARM64</Platform> 7 </ProjectConfiguration> 4 8 <ProjectConfiguration Include="Release|Win32"> 5 9 <Configuration>Release</Configuration> … … 17 21 <WholeProgramOptimization>true</WholeProgramOptimization> 18 22 <CharacterSet>MultiByte</CharacterSet> 23 <PlatformToolset>v142</PlatformToolset> 24 </PropertyGroup> 25 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration"> 26 <ConfigurationType>Application</ConfigurationType> 27 <UseDebugLibraries>false</UseDebugLibraries> 28 <WholeProgramOptimization>true</WholeProgramOptimization> 29 <CharacterSet>MultiByte</CharacterSet> 30 <PlatformToolset>v142</PlatformToolset> 19 31 </PropertyGroup> 20 32 <Import Project="$(SolutionDir)\zlib.props" /> … … 25 37 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 26 38 </ImportGroup> 39 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="PropertySheets"> 40 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 41 </ImportGroup> 27 42 <PropertyGroup Label="UserMacros" /> 28 43 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 29 44 <CustomBuildBeforeTargets>Build</CustomBuildBeforeTargets> 30 45 </PropertyGroup> 46 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 47 <CustomBuildBeforeTargets>Build</CustomBuildBeforeTargets> 48 </PropertyGroup> 31 49 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 50 <ClCompile> 51 <WarningLevel>$(WarningLevel)</WarningLevel> 52 <Optimization>MaxSpeed</Optimization> 53 <FunctionLevelLinking>true</FunctionLevelLinking> 54 <IntrinsicFunctions>true</IntrinsicFunctions> 55 </ClCompile> 56 <Link> 57 <GenerateDebugInformation>true</GenerateDebugInformation> 58 <EnableCOMDATFolding>true</EnableCOMDATFolding> 59 <OptimizeReferences>true</OptimizeReferences> 60 </Link> 61 <CustomBuildStep> 62 <Command>copy ..\..\..\scripts\pnglibconf.h.prebuilt ..\..\..\pnglibconf.h</Command> 63 </CustomBuildStep> 64 <CustomBuildStep> 65 <Message>Generating pnglibconf.h</Message> 66 </CustomBuildStep> 67 <CustomBuildStep> 68 <Outputs>..\..\..\pnglibconf.h</Outputs> 69 </CustomBuildStep> 70 <CustomBuildStep> 71 <Inputs>..\..\..\scripts\pnglibconf.h.prebuilt</Inputs> 72 </CustomBuildStep> 73 </ItemDefinitionGroup> 74 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 32 75 <ClCompile> 33 76 <WarningLevel>$(WarningLevel)</WarningLevel> -
trunk/src/libs/libpng-1.6.42/projects/vstudio/pngstest/pngstest.vcxproj
r96425 r103316 2 2 <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 3 <ItemGroup Label="ProjectConfigurations"> 4 <ProjectConfiguration Include="Debug Library|ARM64"> 5 <Configuration>Debug Library</Configuration> 6 <Platform>ARM64</Platform> 7 </ProjectConfiguration> 4 8 <ProjectConfiguration Include="Debug Library|Win32"> 5 9 <Configuration>Debug Library</Configuration> 6 10 <Platform>Win32</Platform> 7 11 </ProjectConfiguration> 12 <ProjectConfiguration Include="Debug|ARM64"> 13 <Configuration>Debug</Configuration> 14 <Platform>ARM64</Platform> 15 </ProjectConfiguration> 8 16 <ProjectConfiguration Include="Debug|Win32"> 9 17 <Configuration>Debug</Configuration> 10 18 <Platform>Win32</Platform> 11 19 </ProjectConfiguration> 20 <ProjectConfiguration Include="Release Library|ARM64"> 21 <Configuration>Release Library</Configuration> 22 <Platform>ARM64</Platform> 23 </ProjectConfiguration> 12 24 <ProjectConfiguration Include="Release Library|Win32"> 13 25 <Configuration>Release Library</Configuration> 14 26 <Platform>Win32</Platform> 27 </ProjectConfiguration> 28 <ProjectConfiguration Include="Release|ARM64"> 29 <Configuration>Release</Configuration> 30 <Platform>ARM64</Platform> 15 31 </ProjectConfiguration> 16 32 <ProjectConfiguration Include="Release|Win32"> … … 29 45 <ConfigurationType>Application</ConfigurationType> 30 46 <CharacterSet>Unicode</CharacterSet> 47 <PlatformToolset>v142</PlatformToolset> 48 </PropertyGroup> 49 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration"> 50 <ConfigurationType>Application</ConfigurationType> 51 <CharacterSet>Unicode</CharacterSet> 52 <PlatformToolset>v142</PlatformToolset> 31 53 </PropertyGroup> 32 54 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'" Label="Configuration"> 33 55 <ConfigurationType>Application</ConfigurationType> 34 56 <CharacterSet>Unicode</CharacterSet> 57 <PlatformToolset>v142</PlatformToolset> 58 </PropertyGroup> 59 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'" Label="Configuration"> 60 <ConfigurationType>Application</ConfigurationType> 61 <CharacterSet>Unicode</CharacterSet> 62 <PlatformToolset>v142</PlatformToolset> 35 63 </PropertyGroup> 36 64 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> 37 65 <ConfigurationType>Application</ConfigurationType> 38 66 <CharacterSet>Unicode</CharacterSet> 67 <PlatformToolset>v142</PlatformToolset> 68 </PropertyGroup> 69 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration"> 70 <ConfigurationType>Application</ConfigurationType> 71 <CharacterSet>Unicode</CharacterSet> 72 <PlatformToolset>v142</PlatformToolset> 39 73 </PropertyGroup> 40 74 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'" Label="Configuration"> 41 75 <ConfigurationType>Application</ConfigurationType> 42 76 <CharacterSet>Unicode</CharacterSet> 77 <PlatformToolset>v142</PlatformToolset> 78 </PropertyGroup> 79 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'" Label="Configuration"> 80 <ConfigurationType>Application</ConfigurationType> 81 <CharacterSet>Unicode</CharacterSet> 82 <PlatformToolset>v142</PlatformToolset> 43 83 </PropertyGroup> 44 84 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> … … 48 88 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 49 89 </ImportGroup> 90 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="PropertySheets"> 91 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 92 </ImportGroup> 50 93 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'" Label="PropertySheets"> 51 94 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 52 95 </ImportGroup> 96 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'" Label="PropertySheets"> 97 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 98 </ImportGroup> 53 99 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 54 100 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 55 101 </ImportGroup> 102 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="PropertySheets"> 103 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 104 </ImportGroup> 56 105 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'" Label="PropertySheets"> 57 106 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 58 107 </ImportGroup> 108 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'" Label="PropertySheets"> 109 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 110 </ImportGroup> 59 111 <PropertyGroup Label="UserMacros" /> 60 112 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> … … 62 114 <CustomBuildAfterTargets /> 63 115 </PropertyGroup> 116 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> 117 <LinkIncremental>false</LinkIncremental> 118 <CustomBuildAfterTargets /> 119 </PropertyGroup> 64 120 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'"> 65 121 <LinkIncremental>false</LinkIncremental> 66 122 <CustomBuildAfterTargets /> 67 123 </PropertyGroup> 124 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'"> 125 <LinkIncremental>false</LinkIncremental> 126 <CustomBuildAfterTargets /> 127 </PropertyGroup> 68 128 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 69 129 <LinkIncremental>false</LinkIncremental> 70 130 <CustomBuildAfterTargets /> 71 131 </PropertyGroup> 132 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 133 <LinkIncremental>false</LinkIncremental> 134 <CustomBuildAfterTargets /> 135 </PropertyGroup> 72 136 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'"> 73 137 <LinkIncremental>false</LinkIncremental> 74 138 <CustomBuildAfterTargets /> 75 139 </PropertyGroup> 140 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'"> 141 <LinkIncremental>false</LinkIncremental> 142 <CustomBuildAfterTargets /> 143 </PropertyGroup> 76 144 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> 77 145 <ClCompile> 78 146 <PrecompiledHeader>NotUsing</PrecompiledHeader> 79 <WarningLevel> $(WarningLevel)</WarningLevel>147 <WarningLevel>Level3</WarningLevel> 80 148 <MinimalRebuild>false</MinimalRebuild> 81 149 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 86 154 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 87 155 <CompileAsManaged>false</CompileAsManaged> 88 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>156 <TreatWarningAsError>false</TreatWarningAsError> 89 157 <IntrinsicFunctions>true</IntrinsicFunctions> 90 158 <StringPooling>true</StringPooling> … … 107 175 </CustomBuildStep> 108 176 </ItemDefinitionGroup> 177 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> 178 <ClCompile> 179 <PrecompiledHeader>NotUsing</PrecompiledHeader> 180 <WarningLevel>Level3</WarningLevel> 181 <MinimalRebuild>false</MinimalRebuild> 182 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 183 <Optimization>Disabled</Optimization> 184 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 185 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 186 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 187 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 188 <CompileAsManaged>false</CompileAsManaged> 189 <TreatWarningAsError>false</TreatWarningAsError> 190 <IntrinsicFunctions>true</IntrinsicFunctions> 191 <StringPooling>true</StringPooling> 192 <FunctionLevelLinking>false</FunctionLevelLinking> 193 <BrowseInformation>true</BrowseInformation> 194 <FloatingPointExceptions>false</FloatingPointExceptions> 195 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> 196 </ClCompile> 197 <Link> 198 <SubSystem>Console</SubSystem> 199 <GenerateDebugInformation>true</GenerateDebugInformation> 200 <AdditionalDependencies>libpng16.lib</AdditionalDependencies> 201 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 202 </Link> 203 <CustomBuildStep> 204 <Message>Executing libpng simplified API test program</Message> 205 <Command>"$(OutDir)pngstest.exe" --strict --log --touch "$(IntDir)pngstest.out" ../../../contrib/pngsuite/basn0g01.png ../../../contrib/pngsuite/basn0g02.png ../../../contrib/pngsuite/basn0g04.png ../../../contrib/pngsuite/basn0g08.png ../../../contrib/pngsuite/basn0g16.png ../../../contrib/pngsuite/basn2c08.png ../../../contrib/pngsuite/basn2c16.png ../../../contrib/pngsuite/basn3p01.png ../../../contrib/pngsuite/basn3p02.png ../../../contrib/pngsuite/basn3p04.png ../../../contrib/pngsuite/basn3p08.png ../../../contrib/pngsuite/basn4a08.png ../../../contrib/pngsuite/basn4a16.png ../../../contrib/pngsuite/basn6a08.png ../../../contrib/pngsuite/basn6a16.png ../../../contrib/pngsuite/ftbbn0g01.png ../../../contrib/pngsuite/ftbbn0g02.png ../../../contrib/pngsuite/ftbbn0g04.png ../../../contrib/pngsuite/ftbbn2c16.png ../../../contrib/pngsuite/ftbbn3p08.png ../../../contrib/pngsuite/ftbgn2c16.png ../../../contrib/pngsuite/ftbgn3p08.png ../../../contrib/pngsuite/ftbrn2c08.png ../../../contrib/pngsuite/ftbwn0g16.png ../../../contrib/pngsuite/ftbwn3p08.png ../../../contrib/pngsuite/ftbyn3p08.png ../../../contrib/pngsuite/ftp0n0g08.png ../../../contrib/pngsuite/ftp0n2c08.png ../../../contrib/pngsuite/ftp0n3p08.png ../../../contrib/pngsuite/ftp1n3p08.png</Command> 206 <Outputs>$(IntDir)pngstest.out</Outputs> 207 <Inputs>$(OutDir)pngstest.exe</Inputs> 208 </CustomBuildStep> 209 </ItemDefinitionGroup> 109 210 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'"> 110 211 <ClCompile> 111 212 <PrecompiledHeader>NotUsing</PrecompiledHeader> 112 <WarningLevel> $(WarningLevel)</WarningLevel>213 <WarningLevel>Level3</WarningLevel> 113 214 <MinimalRebuild>false</MinimalRebuild> 114 215 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 120 221 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 121 222 <CompileAsManaged>false</CompileAsManaged> 122 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 223 <TreatWarningAsError>false</TreatWarningAsError> 224 <IntrinsicFunctions>true</IntrinsicFunctions> 225 <StringPooling>true</StringPooling> 226 <FunctionLevelLinking>false</FunctionLevelLinking> 227 <BrowseInformation>true</BrowseInformation> 228 <FloatingPointExceptions>false</FloatingPointExceptions> 229 </ClCompile> 230 <Link> 231 <SubSystem>Console</SubSystem> 232 <GenerateDebugInformation>true</GenerateDebugInformation> 233 <AdditionalDependencies>libpng16.lib;zlib.lib</AdditionalDependencies> 234 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 235 </Link> 236 <CustomBuildStep> 237 <Message>Executing libpng simplified API test program</Message> 238 <Command>"$(OutDir)pngstest.exe" --strict --log --touch "$(IntDir)pngstest.out" ../../../contrib/pngsuite/basn0g01.png ../../../contrib/pngsuite/basn0g02.png ../../../contrib/pngsuite/basn0g04.png ../../../contrib/pngsuite/basn0g08.png ../../../contrib/pngsuite/basn0g16.png ../../../contrib/pngsuite/basn2c08.png ../../../contrib/pngsuite/basn2c16.png ../../../contrib/pngsuite/basn3p01.png ../../../contrib/pngsuite/basn3p02.png ../../../contrib/pngsuite/basn3p04.png ../../../contrib/pngsuite/basn3p08.png ../../../contrib/pngsuite/basn4a08.png ../../../contrib/pngsuite/basn4a16.png ../../../contrib/pngsuite/basn6a08.png ../../../contrib/pngsuite/basn6a16.png ../../../contrib/pngsuite/ftbbn0g01.png ../../../contrib/pngsuite/ftbbn0g02.png ../../../contrib/pngsuite/ftbbn0g04.png ../../../contrib/pngsuite/ftbbn2c16.png ../../../contrib/pngsuite/ftbbn3p08.png ../../../contrib/pngsuite/ftbgn2c16.png ../../../contrib/pngsuite/ftbgn3p08.png ../../../contrib/pngsuite/ftbrn2c08.png ../../../contrib/pngsuite/ftbwn0g16.png ../../../contrib/pngsuite/ftbwn3p08.png ../../../contrib/pngsuite/ftbyn3p08.png ../../../contrib/pngsuite/ftp0n0g08.png ../../../contrib/pngsuite/ftp0n2c08.png ../../../contrib/pngsuite/ftp0n3p08.png ../../../contrib/pngsuite/ftp1n3p08.png</Command> 239 <Outputs>$(IntDir)pngstest.out</Outputs> 240 <Inputs>$(OutDir)pngstest.exe</Inputs> 241 </CustomBuildStep> 242 </ItemDefinitionGroup> 243 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'"> 244 <ClCompile> 245 <PrecompiledHeader>NotUsing</PrecompiledHeader> 246 <WarningLevel>Level3</WarningLevel> 247 <MinimalRebuild>false</MinimalRebuild> 248 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 249 <Optimization>Disabled</Optimization> 250 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 251 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 252 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 253 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 254 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 255 <CompileAsManaged>false</CompileAsManaged> 256 <TreatWarningAsError>false</TreatWarningAsError> 123 257 <IntrinsicFunctions>true</IntrinsicFunctions> 124 258 <StringPooling>true</StringPooling> … … 175 309 </CustomBuildStep> 176 310 </ItemDefinitionGroup> 311 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 312 <ClCompile> 313 <WarningLevel>$(WarningLevel)</WarningLevel> 314 <PrecompiledHeader>NotUsing</PrecompiledHeader> 315 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 316 <Optimization>Full</Optimization> 317 <FunctionLevelLinking>false</FunctionLevelLinking> 318 <IntrinsicFunctions>true</IntrinsicFunctions> 319 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 320 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 321 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 322 <CompileAsManaged>false</CompileAsManaged> 323 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 324 <StringPooling>true</StringPooling> 325 <MinimalRebuild>false</MinimalRebuild> 326 <BrowseInformation>true</BrowseInformation> 327 <WholeProgramOptimization>true</WholeProgramOptimization> 328 <FloatingPointExceptions>false</FloatingPointExceptions> 329 </ClCompile> 330 <Link> 331 <SubSystem>Console</SubSystem> 332 <GenerateDebugInformation>true</GenerateDebugInformation> 333 <EnableCOMDATFolding>true</EnableCOMDATFolding> 334 <OptimizeReferences>true</OptimizeReferences> 335 <AdditionalDependencies>libpng16.lib</AdditionalDependencies> 336 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 337 <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> 338 </Link> 339 <CustomBuildStep> 340 <Message>Executing libpng simplified API test program</Message> 341 <Command>"$(OutDir)pngstest.exe" --strict --log --touch "$(IntDir)pngstest.out" ../../../contrib/pngsuite/basn0g01.png ../../../contrib/pngsuite/basn0g02.png ../../../contrib/pngsuite/basn0g04.png ../../../contrib/pngsuite/basn0g08.png ../../../contrib/pngsuite/basn0g16.png ../../../contrib/pngsuite/basn2c08.png ../../../contrib/pngsuite/basn2c16.png ../../../contrib/pngsuite/basn3p01.png ../../../contrib/pngsuite/basn3p02.png ../../../contrib/pngsuite/basn3p04.png ../../../contrib/pngsuite/basn3p08.png ../../../contrib/pngsuite/basn4a08.png ../../../contrib/pngsuite/basn4a16.png ../../../contrib/pngsuite/basn6a08.png ../../../contrib/pngsuite/basn6a16.png ../../../contrib/pngsuite/ftbbn0g01.png ../../../contrib/pngsuite/ftbbn0g02.png ../../../contrib/pngsuite/ftbbn0g04.png ../../../contrib/pngsuite/ftbbn2c16.png ../../../contrib/pngsuite/ftbbn3p08.png ../../../contrib/pngsuite/ftbgn2c16.png ../../../contrib/pngsuite/ftbgn3p08.png ../../../contrib/pngsuite/ftbrn2c08.png ../../../contrib/pngsuite/ftbwn0g16.png ../../../contrib/pngsuite/ftbwn3p08.png ../../../contrib/pngsuite/ftbyn3p08.png ../../../contrib/pngsuite/ftp0n0g08.png ../../../contrib/pngsuite/ftp0n2c08.png ../../../contrib/pngsuite/ftp0n3p08.png ../../../contrib/pngsuite/ftp1n3p08.png</Command> 342 <Outputs>$(IntDir)pngstest.out</Outputs> 343 <Inputs>$(OutDir)pngstest.exe</Inputs> 344 </CustomBuildStep> 345 </ItemDefinitionGroup> 177 346 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'"> 178 347 <ClCompile> 179 <WarningLevel> $(WarningLevel)</WarningLevel>348 <WarningLevel>Level3</WarningLevel> 180 349 <PrecompiledHeader>NotUsing</PrecompiledHeader> 181 350 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 188 357 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 189 358 <CompileAsManaged>false</CompileAsManaged> 190 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 359 <TreatWarningAsError>false</TreatWarningAsError> 360 <StringPooling>true</StringPooling> 361 <MinimalRebuild>false</MinimalRebuild> 362 <BrowseInformation>true</BrowseInformation> 363 <WholeProgramOptimization>true</WholeProgramOptimization> 364 <FloatingPointExceptions>false</FloatingPointExceptions> 365 </ClCompile> 366 <Link> 367 <SubSystem>Console</SubSystem> 368 <GenerateDebugInformation>true</GenerateDebugInformation> 369 <EnableCOMDATFolding>true</EnableCOMDATFolding> 370 <OptimizeReferences>true</OptimizeReferences> 371 <AdditionalDependencies>libpng16.lib;zlib.lib</AdditionalDependencies> 372 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 373 <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> 374 </Link> 375 <CustomBuildStep> 376 <Message>Executing libpng simplified API test program</Message> 377 <Command>"$(OutDir)pngstest.exe" --strict --log --touch "$(IntDir)pngstest.out" ../../../contrib/pngsuite/basn0g01.png ../../../contrib/pngsuite/basn0g02.png ../../../contrib/pngsuite/basn0g04.png ../../../contrib/pngsuite/basn0g08.png ../../../contrib/pngsuite/basn0g16.png ../../../contrib/pngsuite/basn2c08.png ../../../contrib/pngsuite/basn2c16.png ../../../contrib/pngsuite/basn3p01.png ../../../contrib/pngsuite/basn3p02.png ../../../contrib/pngsuite/basn3p04.png ../../../contrib/pngsuite/basn3p08.png ../../../contrib/pngsuite/basn4a08.png ../../../contrib/pngsuite/basn4a16.png ../../../contrib/pngsuite/basn6a08.png ../../../contrib/pngsuite/basn6a16.png ../../../contrib/pngsuite/ftbbn0g01.png ../../../contrib/pngsuite/ftbbn0g02.png ../../../contrib/pngsuite/ftbbn0g04.png ../../../contrib/pngsuite/ftbbn2c16.png ../../../contrib/pngsuite/ftbbn3p08.png ../../../contrib/pngsuite/ftbgn2c16.png ../../../contrib/pngsuite/ftbgn3p08.png ../../../contrib/pngsuite/ftbrn2c08.png ../../../contrib/pngsuite/ftbwn0g16.png ../../../contrib/pngsuite/ftbwn3p08.png ../../../contrib/pngsuite/ftbyn3p08.png ../../../contrib/pngsuite/ftp0n0g08.png ../../../contrib/pngsuite/ftp0n2c08.png ../../../contrib/pngsuite/ftp0n3p08.png ../../../contrib/pngsuite/ftp1n3p08.png</Command> 378 <Outputs>$(IntDir)pngstest.out</Outputs> 379 <Inputs>$(OutDir)pngstest.exe</Inputs> 380 </CustomBuildStep> 381 </ItemDefinitionGroup> 382 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'"> 383 <ClCompile> 384 <WarningLevel>Level3</WarningLevel> 385 <PrecompiledHeader>NotUsing</PrecompiledHeader> 386 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 387 <Optimization>Full</Optimization> 388 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 389 <FunctionLevelLinking>false</FunctionLevelLinking> 390 <IntrinsicFunctions>true</IntrinsicFunctions> 391 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 392 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 393 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 394 <CompileAsManaged>false</CompileAsManaged> 395 <TreatWarningAsError>false</TreatWarningAsError> 191 396 <StringPooling>true</StringPooling> 192 397 <MinimalRebuild>false</MinimalRebuild> -
trunk/src/libs/libpng-1.6.42/projects/vstudio/pngtest/pngtest.vcxproj
r96425 r103316 2 2 <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 3 <ItemGroup Label="ProjectConfigurations"> 4 <ProjectConfiguration Include="Debug Library|ARM64"> 5 <Configuration>Debug Library</Configuration> 6 <Platform>ARM64</Platform> 7 </ProjectConfiguration> 4 8 <ProjectConfiguration Include="Debug Library|Win32"> 5 9 <Configuration>Debug Library</Configuration> 6 10 <Platform>Win32</Platform> 7 11 </ProjectConfiguration> 12 <ProjectConfiguration Include="Debug|ARM64"> 13 <Configuration>Debug</Configuration> 14 <Platform>ARM64</Platform> 15 </ProjectConfiguration> 8 16 <ProjectConfiguration Include="Debug|Win32"> 9 17 <Configuration>Debug</Configuration> 10 18 <Platform>Win32</Platform> 11 19 </ProjectConfiguration> 20 <ProjectConfiguration Include="Release Library|ARM64"> 21 <Configuration>Release Library</Configuration> 22 <Platform>ARM64</Platform> 23 </ProjectConfiguration> 12 24 <ProjectConfiguration Include="Release Library|Win32"> 13 25 <Configuration>Release Library</Configuration> 14 26 <Platform>Win32</Platform> 27 </ProjectConfiguration> 28 <ProjectConfiguration Include="Release|ARM64"> 29 <Configuration>Release</Configuration> 30 <Platform>ARM64</Platform> 15 31 </ProjectConfiguration> 16 32 <ProjectConfiguration Include="Release|Win32"> … … 29 45 <ConfigurationType>Application</ConfigurationType> 30 46 <CharacterSet>Unicode</CharacterSet> 47 <PlatformToolset>v142</PlatformToolset> 48 </PropertyGroup> 49 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration"> 50 <ConfigurationType>Application</ConfigurationType> 51 <CharacterSet>Unicode</CharacterSet> 52 <PlatformToolset>v142</PlatformToolset> 31 53 </PropertyGroup> 32 54 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'" Label="Configuration"> 33 55 <ConfigurationType>Application</ConfigurationType> 34 56 <CharacterSet>Unicode</CharacterSet> 57 <PlatformToolset>v142</PlatformToolset> 58 </PropertyGroup> 59 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'" Label="Configuration"> 60 <ConfigurationType>Application</ConfigurationType> 61 <CharacterSet>Unicode</CharacterSet> 62 <PlatformToolset>v142</PlatformToolset> 35 63 </PropertyGroup> 36 64 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> 37 65 <ConfigurationType>Application</ConfigurationType> 38 66 <CharacterSet>Unicode</CharacterSet> 67 <PlatformToolset>v142</PlatformToolset> 68 </PropertyGroup> 69 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration"> 70 <ConfigurationType>Application</ConfigurationType> 71 <CharacterSet>Unicode</CharacterSet> 72 <PlatformToolset>v142</PlatformToolset> 39 73 </PropertyGroup> 40 74 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'" Label="Configuration"> 41 75 <ConfigurationType>Application</ConfigurationType> 42 76 <CharacterSet>Unicode</CharacterSet> 77 <PlatformToolset>v142</PlatformToolset> 78 </PropertyGroup> 79 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'" Label="Configuration"> 80 <ConfigurationType>Application</ConfigurationType> 81 <CharacterSet>Unicode</CharacterSet> 82 <PlatformToolset>v142</PlatformToolset> 43 83 </PropertyGroup> 44 84 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> … … 48 88 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 49 89 </ImportGroup> 90 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="PropertySheets"> 91 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 92 </ImportGroup> 50 93 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'" Label="PropertySheets"> 51 94 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 52 95 </ImportGroup> 96 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'" Label="PropertySheets"> 97 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 98 </ImportGroup> 53 99 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 54 100 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 55 101 </ImportGroup> 102 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="PropertySheets"> 103 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 104 </ImportGroup> 56 105 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'" Label="PropertySheets"> 57 106 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 58 107 </ImportGroup> 108 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'" Label="PropertySheets"> 109 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 110 </ImportGroup> 59 111 <PropertyGroup Label="UserMacros" /> 60 112 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> … … 62 114 <CustomBuildAfterTargets /> 63 115 </PropertyGroup> 116 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> 117 <LinkIncremental>false</LinkIncremental> 118 <CustomBuildAfterTargets /> 119 </PropertyGroup> 64 120 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'"> 65 121 <LinkIncremental>false</LinkIncremental> 66 122 <CustomBuildAfterTargets /> 67 123 </PropertyGroup> 124 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'"> 125 <LinkIncremental>false</LinkIncremental> 126 <CustomBuildAfterTargets /> 127 </PropertyGroup> 68 128 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 69 129 <LinkIncremental>false</LinkIncremental> 70 130 <CustomBuildAfterTargets /> 71 131 </PropertyGroup> 132 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 133 <LinkIncremental>false</LinkIncremental> 134 <CustomBuildAfterTargets /> 135 </PropertyGroup> 72 136 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'"> 73 137 <LinkIncremental>false</LinkIncremental> 74 138 <CustomBuildAfterTargets /> 75 139 </PropertyGroup> 140 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'"> 141 <LinkIncremental>false</LinkIncremental> 142 <CustomBuildAfterTargets /> 143 </PropertyGroup> 76 144 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> 77 145 <ClCompile> 78 146 <PrecompiledHeader>NotUsing</PrecompiledHeader> 79 <WarningLevel> $(WarningLevel)</WarningLevel>147 <WarningLevel>Level3</WarningLevel> 80 148 <MinimalRebuild>false</MinimalRebuild> 81 149 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 86 154 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 87 155 <CompileAsManaged>false</CompileAsManaged> 88 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>156 <TreatWarningAsError>false</TreatWarningAsError> 89 157 <IntrinsicFunctions>true</IntrinsicFunctions> 90 158 <StringPooling>true</StringPooling> … … 107 175 </CustomBuildStep> 108 176 </ItemDefinitionGroup> 177 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> 178 <ClCompile> 179 <PrecompiledHeader>NotUsing</PrecompiledHeader> 180 <WarningLevel>Level3</WarningLevel> 181 <MinimalRebuild>false</MinimalRebuild> 182 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 183 <Optimization>Disabled</Optimization> 184 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 185 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 186 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 187 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 188 <CompileAsManaged>false</CompileAsManaged> 189 <TreatWarningAsError>false</TreatWarningAsError> 190 <IntrinsicFunctions>true</IntrinsicFunctions> 191 <StringPooling>true</StringPooling> 192 <FunctionLevelLinking>false</FunctionLevelLinking> 193 <BrowseInformation>true</BrowseInformation> 194 <FloatingPointExceptions>false</FloatingPointExceptions> 195 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> 196 </ClCompile> 197 <Link> 198 <SubSystem>Console</SubSystem> 199 <GenerateDebugInformation>true</GenerateDebugInformation> 200 <AdditionalDependencies>libpng16.lib</AdditionalDependencies> 201 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 202 </Link> 203 <CustomBuildStep> 204 <Message>Executing PNG test program</Message> 205 <Command>"$(OutDir)pngtest.exe" ..\..\..\pngtest.png "$(IntDir)pngout.png"</Command> 206 <Outputs>$(IntDir)pngout.png</Outputs> 207 <Inputs>..\..\..\pngtest.png;$(OutDir)pngtest.exe</Inputs> 208 </CustomBuildStep> 209 </ItemDefinitionGroup> 109 210 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'"> 110 211 <ClCompile> 111 212 <PrecompiledHeader>NotUsing</PrecompiledHeader> 112 <WarningLevel> $(WarningLevel)</WarningLevel>213 <WarningLevel>Level3</WarningLevel> 113 214 <MinimalRebuild>false</MinimalRebuild> 114 215 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 120 221 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 121 222 <CompileAsManaged>false</CompileAsManaged> 122 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 223 <TreatWarningAsError>false</TreatWarningAsError> 224 <IntrinsicFunctions>true</IntrinsicFunctions> 225 <StringPooling>true</StringPooling> 226 <FunctionLevelLinking>false</FunctionLevelLinking> 227 <BrowseInformation>true</BrowseInformation> 228 <FloatingPointExceptions>false</FloatingPointExceptions> 229 </ClCompile> 230 <Link> 231 <SubSystem>Console</SubSystem> 232 <GenerateDebugInformation>true</GenerateDebugInformation> 233 <AdditionalDependencies>libpng16.lib;zlib.lib</AdditionalDependencies> 234 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 235 </Link> 236 <CustomBuildStep> 237 <Message>Executing PNG test program</Message> 238 <Command>"$(OutDir)pngtest.exe" ..\..\..\pngtest.png "$(IntDir)pngout.png"</Command> 239 <Outputs>$(IntDir)pngout.png</Outputs> 240 <Inputs>..\..\..\pngtest.png;$(OutDir)pngtest.exe</Inputs> 241 </CustomBuildStep> 242 </ItemDefinitionGroup> 243 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'"> 244 <ClCompile> 245 <PrecompiledHeader>NotUsing</PrecompiledHeader> 246 <WarningLevel>Level3</WarningLevel> 247 <MinimalRebuild>false</MinimalRebuild> 248 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 249 <Optimization>Disabled</Optimization> 250 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 251 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 252 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 253 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 254 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 255 <CompileAsManaged>false</CompileAsManaged> 256 <TreatWarningAsError>false</TreatWarningAsError> 123 257 <IntrinsicFunctions>true</IntrinsicFunctions> 124 258 <StringPooling>true</StringPooling> … … 175 309 </CustomBuildStep> 176 310 </ItemDefinitionGroup> 311 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 312 <ClCompile> 313 <WarningLevel>$(WarningLevel)</WarningLevel> 314 <PrecompiledHeader>NotUsing</PrecompiledHeader> 315 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 316 <Optimization>Full</Optimization> 317 <FunctionLevelLinking>false</FunctionLevelLinking> 318 <IntrinsicFunctions>true</IntrinsicFunctions> 319 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 320 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 321 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 322 <CompileAsManaged>false</CompileAsManaged> 323 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 324 <StringPooling>true</StringPooling> 325 <MinimalRebuild>false</MinimalRebuild> 326 <BrowseInformation>true</BrowseInformation> 327 <WholeProgramOptimization>true</WholeProgramOptimization> 328 <FloatingPointExceptions>false</FloatingPointExceptions> 329 </ClCompile> 330 <Link> 331 <SubSystem>Console</SubSystem> 332 <GenerateDebugInformation>true</GenerateDebugInformation> 333 <EnableCOMDATFolding>true</EnableCOMDATFolding> 334 <OptimizeReferences>true</OptimizeReferences> 335 <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> 336 <AdditionalDependencies>libpng16.lib</AdditionalDependencies> 337 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 338 </Link> 339 <CustomBuildStep> 340 <Message>Executing PNG test program</Message> 341 <Command>"$(OutDir)pngtest.exe" ..\..\..\pngtest.png "$(IntDir)pngout.png"</Command> 342 <Outputs>$(IntDir)pngout.png</Outputs> 343 <Inputs>..\..\..\pngtest.png;$(OutDir)pngtest.exe</Inputs> 344 </CustomBuildStep> 345 </ItemDefinitionGroup> 177 346 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'"> 178 347 <ClCompile> 179 <WarningLevel> $(WarningLevel)</WarningLevel>348 <WarningLevel>Level3</WarningLevel> 180 349 <PrecompiledHeader>NotUsing</PrecompiledHeader> 181 350 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 188 357 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 189 358 <CompileAsManaged>false</CompileAsManaged> 190 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 359 <TreatWarningAsError>false</TreatWarningAsError> 360 <StringPooling>true</StringPooling> 361 <MinimalRebuild>false</MinimalRebuild> 362 <BrowseInformation>true</BrowseInformation> 363 <WholeProgramOptimization>true</WholeProgramOptimization> 364 <FloatingPointExceptions>false</FloatingPointExceptions> 365 </ClCompile> 366 <Link> 367 <SubSystem>Console</SubSystem> 368 <GenerateDebugInformation>true</GenerateDebugInformation> 369 <EnableCOMDATFolding>true</EnableCOMDATFolding> 370 <OptimizeReferences>true</OptimizeReferences> 371 <AdditionalDependencies>libpng16.lib;zlib.lib</AdditionalDependencies> 372 <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> 373 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 374 </Link> 375 <CustomBuildStep> 376 <Message>Executing PNG test program</Message> 377 <Command>$(OutDir)pngtest.exe ..\..\..\pngtest.png $(IntDir)pngout.png</Command> 378 <Command>"$(OutDir)pngtest.exe" ..\..\..\pngtest.png "$(IntDir)pngout.png"</Command> 379 <Outputs>$(IntDir)pngout.png</Outputs> 380 <Inputs>..\..\..\pngtest.png;$(OutDir)pngtest.exe</Inputs> 381 </CustomBuildStep> 382 </ItemDefinitionGroup> 383 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'"> 384 <ClCompile> 385 <WarningLevel>Level3</WarningLevel> 386 <PrecompiledHeader>NotUsing</PrecompiledHeader> 387 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 388 <Optimization>Full</Optimization> 389 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 390 <FunctionLevelLinking>false</FunctionLevelLinking> 391 <IntrinsicFunctions>true</IntrinsicFunctions> 392 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 393 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 394 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 395 <CompileAsManaged>false</CompileAsManaged> 396 <TreatWarningAsError>false</TreatWarningAsError> 191 397 <StringPooling>true</StringPooling> 192 398 <MinimalRebuild>false</MinimalRebuild> -
trunk/src/libs/libpng-1.6.42/projects/vstudio/pngunknown/pngunknown.vcxproj
r96425 r103316 2 2 <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 3 <ItemGroup Label="ProjectConfigurations"> 4 <ProjectConfiguration Include="Debug Library|ARM64"> 5 <Configuration>Debug Library</Configuration> 6 <Platform>ARM64</Platform> 7 </ProjectConfiguration> 4 8 <ProjectConfiguration Include="Debug Library|Win32"> 5 9 <Configuration>Debug Library</Configuration> 6 10 <Platform>Win32</Platform> 7 11 </ProjectConfiguration> 12 <ProjectConfiguration Include="Debug|ARM64"> 13 <Configuration>Debug</Configuration> 14 <Platform>ARM64</Platform> 15 </ProjectConfiguration> 8 16 <ProjectConfiguration Include="Debug|Win32"> 9 17 <Configuration>Debug</Configuration> 10 18 <Platform>Win32</Platform> 11 19 </ProjectConfiguration> 20 <ProjectConfiguration Include="Release Library|ARM64"> 21 <Configuration>Release Library</Configuration> 22 <Platform>ARM64</Platform> 23 </ProjectConfiguration> 12 24 <ProjectConfiguration Include="Release Library|Win32"> 13 25 <Configuration>Release Library</Configuration> 14 26 <Platform>Win32</Platform> 27 </ProjectConfiguration> 28 <ProjectConfiguration Include="Release|ARM64"> 29 <Configuration>Release</Configuration> 30 <Platform>ARM64</Platform> 15 31 </ProjectConfiguration> 16 32 <ProjectConfiguration Include="Release|Win32"> … … 29 45 <ConfigurationType>Application</ConfigurationType> 30 46 <CharacterSet>Unicode</CharacterSet> 47 <PlatformToolset>v142</PlatformToolset> 48 </PropertyGroup> 49 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration"> 50 <ConfigurationType>Application</ConfigurationType> 51 <CharacterSet>Unicode</CharacterSet> 52 <PlatformToolset>v142</PlatformToolset> 31 53 </PropertyGroup> 32 54 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'" Label="Configuration"> 33 55 <ConfigurationType>Application</ConfigurationType> 34 56 <CharacterSet>Unicode</CharacterSet> 57 <PlatformToolset>v142</PlatformToolset> 58 </PropertyGroup> 59 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'" Label="Configuration"> 60 <ConfigurationType>Application</ConfigurationType> 61 <CharacterSet>Unicode</CharacterSet> 62 <PlatformToolset>v142</PlatformToolset> 35 63 </PropertyGroup> 36 64 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> 37 65 <ConfigurationType>Application</ConfigurationType> 38 66 <CharacterSet>Unicode</CharacterSet> 67 <PlatformToolset>v142</PlatformToolset> 68 </PropertyGroup> 69 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration"> 70 <ConfigurationType>Application</ConfigurationType> 71 <CharacterSet>Unicode</CharacterSet> 72 <PlatformToolset>v142</PlatformToolset> 39 73 </PropertyGroup> 40 74 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'" Label="Configuration"> 41 75 <ConfigurationType>Application</ConfigurationType> 42 76 <CharacterSet>Unicode</CharacterSet> 77 <PlatformToolset>v142</PlatformToolset> 78 </PropertyGroup> 79 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'" Label="Configuration"> 80 <ConfigurationType>Application</ConfigurationType> 81 <CharacterSet>Unicode</CharacterSet> 82 <PlatformToolset>v142</PlatformToolset> 43 83 </PropertyGroup> 44 84 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> … … 48 88 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 49 89 </ImportGroup> 90 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="PropertySheets"> 91 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 92 </ImportGroup> 50 93 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'" Label="PropertySheets"> 51 94 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 52 95 </ImportGroup> 96 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'" Label="PropertySheets"> 97 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 98 </ImportGroup> 53 99 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 54 100 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 55 101 </ImportGroup> 102 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="PropertySheets"> 103 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 104 </ImportGroup> 56 105 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'" Label="PropertySheets"> 57 106 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 58 107 </ImportGroup> 108 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'" Label="PropertySheets"> 109 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 110 </ImportGroup> 59 111 <PropertyGroup Label="UserMacros" /> 60 112 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> … … 62 114 <CustomBuildAfterTargets /> 63 115 </PropertyGroup> 116 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> 117 <LinkIncremental>false</LinkIncremental> 118 <CustomBuildAfterTargets /> 119 </PropertyGroup> 64 120 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'"> 65 121 <LinkIncremental>false</LinkIncremental> 66 122 <CustomBuildAfterTargets /> 67 123 </PropertyGroup> 124 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'"> 125 <LinkIncremental>false</LinkIncremental> 126 <CustomBuildAfterTargets /> 127 </PropertyGroup> 68 128 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 69 129 <LinkIncremental>false</LinkIncremental> 70 130 <CustomBuildAfterTargets /> 71 131 </PropertyGroup> 132 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 133 <LinkIncremental>false</LinkIncremental> 134 <CustomBuildAfterTargets /> 135 </PropertyGroup> 72 136 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'"> 73 137 <LinkIncremental>false</LinkIncremental> 74 138 <CustomBuildAfterTargets /> 75 139 </PropertyGroup> 140 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'"> 141 <LinkIncremental>false</LinkIncremental> 142 <CustomBuildAfterTargets /> 143 </PropertyGroup> 76 144 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> 77 145 <ClCompile> 78 146 <PrecompiledHeader>NotUsing</PrecompiledHeader> 79 <WarningLevel> $(WarningLevel)</WarningLevel>147 <WarningLevel>Level3</WarningLevel> 80 148 <MinimalRebuild>false</MinimalRebuild> 81 149 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 86 154 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 87 155 <CompileAsManaged>false</CompileAsManaged> 88 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>156 <TreatWarningAsError>false</TreatWarningAsError> 89 157 <IntrinsicFunctions>true</IntrinsicFunctions> 90 158 <StringPooling>true</StringPooling> … … 107 175 </CustomBuildStep> 108 176 </ItemDefinitionGroup> 177 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> 178 <ClCompile> 179 <PrecompiledHeader>NotUsing</PrecompiledHeader> 180 <WarningLevel>Level3</WarningLevel> 181 <MinimalRebuild>false</MinimalRebuild> 182 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 183 <Optimization>Disabled</Optimization> 184 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 185 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 186 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 187 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 188 <CompileAsManaged>false</CompileAsManaged> 189 <TreatWarningAsError>false</TreatWarningAsError> 190 <IntrinsicFunctions>true</IntrinsicFunctions> 191 <StringPooling>true</StringPooling> 192 <FunctionLevelLinking>false</FunctionLevelLinking> 193 <BrowseInformation>true</BrowseInformation> 194 <FloatingPointExceptions>false</FloatingPointExceptions> 195 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> 196 </ClCompile> 197 <Link> 198 <SubSystem>Console</SubSystem> 199 <GenerateDebugInformation>true</GenerateDebugInformation> 200 <AdditionalDependencies>libpng16.lib</AdditionalDependencies> 201 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 202 </Link> 203 <CustomBuildStep> 204 <Message>Executing PNG validation program</Message> 205 <Command>"$(OutDir)pngunknown.exe" --strict --default --touch "$(IntDir)pngunknown.out" ../../../pngtest.png</Command> 206 <Outputs>$(IntDir)pngunknown.out</Outputs> 207 <Inputs>$(OutDir)pngunknown.exe</Inputs> 208 </CustomBuildStep> 209 </ItemDefinitionGroup> 109 210 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'"> 110 211 <ClCompile> 111 212 <PrecompiledHeader>NotUsing</PrecompiledHeader> 112 <WarningLevel> $(WarningLevel)</WarningLevel>213 <WarningLevel>Level3</WarningLevel> 113 214 <MinimalRebuild>false</MinimalRebuild> 114 215 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 120 221 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 121 222 <CompileAsManaged>false</CompileAsManaged> 122 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 223 <TreatWarningAsError>false</TreatWarningAsError> 224 <IntrinsicFunctions>true</IntrinsicFunctions> 225 <StringPooling>true</StringPooling> 226 <FunctionLevelLinking>false</FunctionLevelLinking> 227 <BrowseInformation>true</BrowseInformation> 228 <FloatingPointExceptions>false</FloatingPointExceptions> 229 </ClCompile> 230 <Link> 231 <SubSystem>Console</SubSystem> 232 <GenerateDebugInformation>true</GenerateDebugInformation> 233 <AdditionalDependencies>libpng16.lib;zlib.lib</AdditionalDependencies> 234 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 235 </Link> 236 <CustomBuildStep> 237 <Message>Executing PNG validation program</Message> 238 <Command>"$(OutDir)pngunknown.exe" --strict --default --touch "$(IntDir)pngunknown.out" ../../../pngtest.png</Command> 239 <Outputs>$(IntDir)pngunknown.out</Outputs> 240 <Inputs>$(OutDir)pngunknown.exe</Inputs> 241 </CustomBuildStep> 242 </ItemDefinitionGroup> 243 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'"> 244 <ClCompile> 245 <PrecompiledHeader>NotUsing</PrecompiledHeader> 246 <WarningLevel>Level3</WarningLevel> 247 <MinimalRebuild>false</MinimalRebuild> 248 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 249 <Optimization>Disabled</Optimization> 250 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 251 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 252 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 253 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 254 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 255 <CompileAsManaged>false</CompileAsManaged> 256 <TreatWarningAsError>false</TreatWarningAsError> 123 257 <IntrinsicFunctions>true</IntrinsicFunctions> 124 258 <StringPooling>true</StringPooling> … … 175 309 </CustomBuildStep> 176 310 </ItemDefinitionGroup> 311 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 312 <ClCompile> 313 <WarningLevel>$(WarningLevel)</WarningLevel> 314 <PrecompiledHeader>NotUsing</PrecompiledHeader> 315 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 316 <Optimization>Full</Optimization> 317 <FunctionLevelLinking>false</FunctionLevelLinking> 318 <IntrinsicFunctions>true</IntrinsicFunctions> 319 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 320 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 321 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 322 <CompileAsManaged>false</CompileAsManaged> 323 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 324 <StringPooling>true</StringPooling> 325 <MinimalRebuild>false</MinimalRebuild> 326 <BrowseInformation>true</BrowseInformation> 327 <WholeProgramOptimization>true</WholeProgramOptimization> 328 <FloatingPointExceptions>false</FloatingPointExceptions> 329 </ClCompile> 330 <Link> 331 <SubSystem>Console</SubSystem> 332 <GenerateDebugInformation>true</GenerateDebugInformation> 333 <EnableCOMDATFolding>true</EnableCOMDATFolding> 334 <OptimizeReferences>true</OptimizeReferences> 335 <AdditionalDependencies>libpng16.lib</AdditionalDependencies> 336 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 337 <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> 338 </Link> 339 <CustomBuildStep> 340 <Message>Executing PNG validation program</Message> 341 <Command>"$(OutDir)pngunknown.exe" --strict --default --touch "$(IntDir)pngunknown.out" ../../../pngtest.png</Command> 342 <Outputs>$(IntDir)pngunknown.out</Outputs> 343 <Inputs>$(OutDir)pngunknown.exe</Inputs> 344 </CustomBuildStep> 345 </ItemDefinitionGroup> 177 346 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'"> 178 347 <ClCompile> 179 <WarningLevel> $(WarningLevel)</WarningLevel>348 <WarningLevel>Level3</WarningLevel> 180 349 <PrecompiledHeader>NotUsing</PrecompiledHeader> 181 350 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 188 357 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 189 358 <CompileAsManaged>false</CompileAsManaged> 190 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 359 <TreatWarningAsError>false</TreatWarningAsError> 360 <StringPooling>true</StringPooling> 361 <MinimalRebuild>false</MinimalRebuild> 362 <BrowseInformation>true</BrowseInformation> 363 <WholeProgramOptimization>true</WholeProgramOptimization> 364 <FloatingPointExceptions>false</FloatingPointExceptions> 365 </ClCompile> 366 <Link> 367 <SubSystem>Console</SubSystem> 368 <GenerateDebugInformation>true</GenerateDebugInformation> 369 <EnableCOMDATFolding>true</EnableCOMDATFolding> 370 <OptimizeReferences>true</OptimizeReferences> 371 <AdditionalDependencies>libpng16.lib;zlib.lib</AdditionalDependencies> 372 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 373 <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> 374 </Link> 375 <CustomBuildStep> 376 <Message>Executing PNG validation program</Message> 377 <Command>"$(OutDir)pngunknown.exe" --strict --default --touch "$(IntDir)pngunknown.out" ../../../pngtest.png</Command> 378 <Outputs>$(IntDir)pngunknown.out</Outputs> 379 <Inputs>$(OutDir)pngunknown.exe</Inputs> 380 </CustomBuildStep> 381 </ItemDefinitionGroup> 382 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'"> 383 <ClCompile> 384 <WarningLevel>Level3</WarningLevel> 385 <PrecompiledHeader>NotUsing</PrecompiledHeader> 386 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 387 <Optimization>Full</Optimization> 388 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 389 <FunctionLevelLinking>false</FunctionLevelLinking> 390 <IntrinsicFunctions>true</IntrinsicFunctions> 391 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 392 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 393 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 394 <CompileAsManaged>false</CompileAsManaged> 395 <TreatWarningAsError>false</TreatWarningAsError> 191 396 <StringPooling>true</StringPooling> 192 397 <MinimalRebuild>false</MinimalRebuild> -
trunk/src/libs/libpng-1.6.42/projects/vstudio/pngvalid/pngvalid.vcxproj
r96425 r103316 2 2 <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 3 <ItemGroup Label="ProjectConfigurations"> 4 <ProjectConfiguration Include="Debug Library|ARM64"> 5 <Configuration>Debug Library</Configuration> 6 <Platform>ARM64</Platform> 7 </ProjectConfiguration> 4 8 <ProjectConfiguration Include="Debug Library|Win32"> 5 9 <Configuration>Debug Library</Configuration> 6 10 <Platform>Win32</Platform> 7 11 </ProjectConfiguration> 12 <ProjectConfiguration Include="Debug|ARM64"> 13 <Configuration>Debug</Configuration> 14 <Platform>ARM64</Platform> 15 </ProjectConfiguration> 8 16 <ProjectConfiguration Include="Debug|Win32"> 9 17 <Configuration>Debug</Configuration> 10 18 <Platform>Win32</Platform> 11 19 </ProjectConfiguration> 20 <ProjectConfiguration Include="Release Library|ARM64"> 21 <Configuration>Release Library</Configuration> 22 <Platform>ARM64</Platform> 23 </ProjectConfiguration> 12 24 <ProjectConfiguration Include="Release Library|Win32"> 13 25 <Configuration>Release Library</Configuration> 14 26 <Platform>Win32</Platform> 27 </ProjectConfiguration> 28 <ProjectConfiguration Include="Release|ARM64"> 29 <Configuration>Release</Configuration> 30 <Platform>ARM64</Platform> 15 31 </ProjectConfiguration> 16 32 <ProjectConfiguration Include="Release|Win32"> … … 29 45 <ConfigurationType>Application</ConfigurationType> 30 46 <CharacterSet>Unicode</CharacterSet> 47 <PlatformToolset>v142</PlatformToolset> 48 </PropertyGroup> 49 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration"> 50 <ConfigurationType>Application</ConfigurationType> 51 <CharacterSet>Unicode</CharacterSet> 52 <PlatformToolset>v142</PlatformToolset> 31 53 </PropertyGroup> 32 54 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'" Label="Configuration"> 33 55 <ConfigurationType>Application</ConfigurationType> 34 56 <CharacterSet>Unicode</CharacterSet> 57 <PlatformToolset>v142</PlatformToolset> 58 </PropertyGroup> 59 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'" Label="Configuration"> 60 <ConfigurationType>Application</ConfigurationType> 61 <CharacterSet>Unicode</CharacterSet> 62 <PlatformToolset>v142</PlatformToolset> 35 63 </PropertyGroup> 36 64 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> 37 65 <ConfigurationType>Application</ConfigurationType> 38 66 <CharacterSet>Unicode</CharacterSet> 67 <PlatformToolset>v142</PlatformToolset> 68 </PropertyGroup> 69 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration"> 70 <ConfigurationType>Application</ConfigurationType> 71 <CharacterSet>Unicode</CharacterSet> 72 <PlatformToolset>v142</PlatformToolset> 39 73 </PropertyGroup> 40 74 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'" Label="Configuration"> 41 75 <ConfigurationType>Application</ConfigurationType> 42 76 <CharacterSet>Unicode</CharacterSet> 77 <PlatformToolset>v142</PlatformToolset> 78 </PropertyGroup> 79 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'" Label="Configuration"> 80 <ConfigurationType>Application</ConfigurationType> 81 <CharacterSet>Unicode</CharacterSet> 82 <PlatformToolset>v142</PlatformToolset> 43 83 </PropertyGroup> 44 84 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> … … 48 88 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 49 89 </ImportGroup> 90 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="PropertySheets"> 91 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 92 </ImportGroup> 50 93 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'" Label="PropertySheets"> 51 94 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 52 95 </ImportGroup> 96 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'" Label="PropertySheets"> 97 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 98 </ImportGroup> 53 99 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 54 100 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 55 101 </ImportGroup> 102 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="PropertySheets"> 103 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 104 </ImportGroup> 56 105 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'" Label="PropertySheets"> 57 106 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 58 107 </ImportGroup> 108 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'" Label="PropertySheets"> 109 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 110 </ImportGroup> 59 111 <PropertyGroup Label="UserMacros" /> 60 112 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> … … 62 114 <CustomBuildAfterTargets /> 63 115 </PropertyGroup> 116 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> 117 <LinkIncremental>false</LinkIncremental> 118 <CustomBuildAfterTargets /> 119 </PropertyGroup> 64 120 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'"> 65 121 <LinkIncremental>false</LinkIncremental> 66 122 <CustomBuildAfterTargets /> 67 123 </PropertyGroup> 124 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'"> 125 <LinkIncremental>false</LinkIncremental> 126 <CustomBuildAfterTargets /> 127 </PropertyGroup> 68 128 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 69 129 <LinkIncremental>false</LinkIncremental> 70 130 <CustomBuildAfterTargets /> 71 131 </PropertyGroup> 132 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 133 <LinkIncremental>false</LinkIncremental> 134 <CustomBuildAfterTargets /> 135 </PropertyGroup> 72 136 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'"> 73 137 <LinkIncremental>false</LinkIncremental> 74 138 <CustomBuildAfterTargets /> 75 139 </PropertyGroup> 140 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'"> 141 <LinkIncremental>false</LinkIncremental> 142 <CustomBuildAfterTargets /> 143 </PropertyGroup> 76 144 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> 77 145 <ClCompile> 78 146 <PrecompiledHeader>NotUsing</PrecompiledHeader> 79 <WarningLevel> $(WarningLevel)</WarningLevel>147 <WarningLevel>Level3</WarningLevel> 80 148 <MinimalRebuild>false</MinimalRebuild> 81 149 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 86 154 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 87 155 <CompileAsManaged>false</CompileAsManaged> 88 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>156 <TreatWarningAsError>false</TreatWarningAsError> 89 157 <IntrinsicFunctions>true</IntrinsicFunctions> 90 158 <StringPooling>true</StringPooling> … … 107 175 </CustomBuildStep> 108 176 </ItemDefinitionGroup> 177 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> 178 <ClCompile> 179 <PrecompiledHeader>NotUsing</PrecompiledHeader> 180 <WarningLevel>Level3</WarningLevel> 181 <MinimalRebuild>false</MinimalRebuild> 182 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 183 <Optimization>Disabled</Optimization> 184 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 185 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 186 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 187 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 188 <CompileAsManaged>false</CompileAsManaged> 189 <TreatWarningAsError>false</TreatWarningAsError> 190 <IntrinsicFunctions>true</IntrinsicFunctions> 191 <StringPooling>true</StringPooling> 192 <FunctionLevelLinking>false</FunctionLevelLinking> 193 <BrowseInformation>true</BrowseInformation> 194 <FloatingPointExceptions>false</FloatingPointExceptions> 195 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> 196 </ClCompile> 197 <Link> 198 <SubSystem>Console</SubSystem> 199 <GenerateDebugInformation>true</GenerateDebugInformation> 200 <AdditionalDependencies>libpng16.lib;zlib.lib</AdditionalDependencies> 201 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 202 </Link> 203 <CustomBuildStep> 204 <Message>Executing PNG validation program</Message> 205 <Command>"$(OutDir)pngvalid.exe" --touch "$(IntDir)pngvalid.out"</Command> 206 <Outputs>$(IntDir)pngvalid.out</Outputs> 207 <Inputs>$(OutDir)pngvalid.exe</Inputs> 208 </CustomBuildStep> 209 </ItemDefinitionGroup> 109 210 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'"> 110 211 <ClCompile> 111 212 <PrecompiledHeader>NotUsing</PrecompiledHeader> 112 <WarningLevel> $(WarningLevel)</WarningLevel>213 <WarningLevel>Level3</WarningLevel> 113 214 <MinimalRebuild>false</MinimalRebuild> 114 215 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 120 221 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 121 222 <CompileAsManaged>false</CompileAsManaged> 122 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 223 <TreatWarningAsError>false</TreatWarningAsError> 224 <IntrinsicFunctions>true</IntrinsicFunctions> 225 <StringPooling>true</StringPooling> 226 <FunctionLevelLinking>false</FunctionLevelLinking> 227 <BrowseInformation>true</BrowseInformation> 228 <FloatingPointExceptions>false</FloatingPointExceptions> 229 </ClCompile> 230 <Link> 231 <SubSystem>Console</SubSystem> 232 <GenerateDebugInformation>true</GenerateDebugInformation> 233 <AdditionalDependencies>libpng16.lib;zlib.lib</AdditionalDependencies> 234 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 235 </Link> 236 <CustomBuildStep> 237 <Message>Executing PNG validation program</Message> 238 <Command>"$(OutDir)pngvalid.exe" --touch "$(IntDir)pngvalid.out"</Command> 239 <Outputs>$(IntDir)pngvalid.out</Outputs> 240 <Inputs>$(OutDir)pngvalid.exe</Inputs> 241 </CustomBuildStep> 242 </ItemDefinitionGroup> 243 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'"> 244 <ClCompile> 245 <PrecompiledHeader>NotUsing</PrecompiledHeader> 246 <WarningLevel>Level3</WarningLevel> 247 <MinimalRebuild>false</MinimalRebuild> 248 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 249 <Optimization>Disabled</Optimization> 250 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> 251 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 252 <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 253 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 254 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 255 <CompileAsManaged>false</CompileAsManaged> 256 <TreatWarningAsError>false</TreatWarningAsError> 123 257 <IntrinsicFunctions>true</IntrinsicFunctions> 124 258 <StringPooling>true</StringPooling> … … 175 309 </CustomBuildStep> 176 310 </ItemDefinitionGroup> 311 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 312 <ClCompile> 313 <WarningLevel>$(WarningLevel)</WarningLevel> 314 <PrecompiledHeader>NotUsing</PrecompiledHeader> 315 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 316 <Optimization>Full</Optimization> 317 <FunctionLevelLinking>false</FunctionLevelLinking> 318 <IntrinsicFunctions>true</IntrinsicFunctions> 319 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;PNG_USE_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> 320 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 321 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 322 <CompileAsManaged>false</CompileAsManaged> 323 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 324 <StringPooling>true</StringPooling> 325 <MinimalRebuild>false</MinimalRebuild> 326 <BrowseInformation>true</BrowseInformation> 327 <WholeProgramOptimization>true</WholeProgramOptimization> 328 <FloatingPointExceptions>false</FloatingPointExceptions> 329 </ClCompile> 330 <Link> 331 <SubSystem>Console</SubSystem> 332 <GenerateDebugInformation>true</GenerateDebugInformation> 333 <EnableCOMDATFolding>true</EnableCOMDATFolding> 334 <OptimizeReferences>true</OptimizeReferences> 335 <AdditionalDependencies>libpng16.lib;zlib.lib</AdditionalDependencies> 336 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 337 <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> 338 </Link> 339 <CustomBuildStep> 340 <Message>Executing PNG validation program</Message> 341 <Command>"$(OutDir)pngvalid.exe" --touch "$(IntDir)pngvalid.out"</Command> 342 <Outputs>$(IntDir)pngvalid.out</Outputs> 343 <Inputs>$(OutDir)pngvalid.exe</Inputs> 344 </CustomBuildStep> 345 </ItemDefinitionGroup> 177 346 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'"> 178 347 <ClCompile> 179 <WarningLevel> $(WarningLevel)</WarningLevel>348 <WarningLevel>Level3</WarningLevel> 180 349 <PrecompiledHeader>NotUsing</PrecompiledHeader> 181 350 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> … … 188 357 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 189 358 <CompileAsManaged>false</CompileAsManaged> 190 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 359 <TreatWarningAsError>false</TreatWarningAsError> 360 <StringPooling>true</StringPooling> 361 <MinimalRebuild>false</MinimalRebuild> 362 <BrowseInformation>true</BrowseInformation> 363 <WholeProgramOptimization>true</WholeProgramOptimization> 364 <FloatingPointExceptions>false</FloatingPointExceptions> 365 </ClCompile> 366 <Link> 367 <SubSystem>Console</SubSystem> 368 <GenerateDebugInformation>true</GenerateDebugInformation> 369 <EnableCOMDATFolding>true</EnableCOMDATFolding> 370 <OptimizeReferences>true</OptimizeReferences> 371 <AdditionalDependencies>libpng16.lib;zlib.lib</AdditionalDependencies> 372 <AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories> 373 <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> 374 </Link> 375 <CustomBuildStep> 376 <Message>Executing PNG validation program</Message> 377 <Command>"$(OutDir)pngvalid.exe" --touch "$(IntDir)pngvalid.out"</Command> 378 <Outputs>$(IntDir)pngvalid.out</Outputs> 379 <Inputs>$(OutDir)pngvalid.exe</Inputs> 380 </CustomBuildStep> 381 </ItemDefinitionGroup> 382 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'"> 383 <ClCompile> 384 <WarningLevel>Level3</WarningLevel> 385 <PrecompiledHeader>NotUsing</PrecompiledHeader> 386 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 387 <Optimization>Full</Optimization> 388 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 389 <FunctionLevelLinking>false</FunctionLevelLinking> 390 <IntrinsicFunctions>true</IntrinsicFunctions> 391 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 392 <AdditionalIncludeDirectories>$(ZLibSrcDir);..\..\..\scripts;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 393 <DisableSpecificWarnings>$(DisableSpecificWarnings)</DisableSpecificWarnings> 394 <CompileAsManaged>false</CompileAsManaged> 395 <TreatWarningAsError>false</TreatWarningAsError> 191 396 <StringPooling>true</StringPooling> 192 397 <MinimalRebuild>false</MinimalRebuild> -
trunk/src/libs/libpng-1.6.42/projects/vstudio/vstudio.sln
r96425 r103316 1 Microsoft Visual Studio Solution File, Format Version 11.00 2 # Visual Studio 2010 1 Microsoft Visual Studio Solution File, Format Version 12.00 2 # Visual Studio Version 16 3 VisualStudioVersion = 16.0.31515.178 4 MinimumVisualStudioVersion = 10.0.40219.1 3 5 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "zlib", "zlib\zlib.vcxproj", "{60F89955-91C6-3A36-8000-13C592FEC2DF}" 4 6 EndProject … … 41 43 Global 42 44 GlobalSection(SolutionConfigurationPlatforms) = preSolution 45 Debug Library|ARM64 = Debug Library|ARM64 43 46 Debug Library|Win32 = Debug Library|Win32 47 Debug|ARM64 = Debug|ARM64 44 48 Debug|Win32 = Debug|Win32 49 Release Library|ARM64 = Release Library|ARM64 45 50 Release Library|Win32 = Release Library|Win32 51 Release|ARM64 = Release|ARM64 46 52 Release|Win32 = Release|Win32 47 53 EndGlobalSection 48 54 GlobalSection(ProjectConfigurationPlatforms) = postSolution 55 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Debug Library|ARM64.ActiveCfg = Debug Library|ARM64 56 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Debug Library|ARM64.Build.0 = Debug Library|ARM64 57 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Debug Library|Win32.ActiveCfg = Debug Library|Win32 58 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Debug Library|Win32.Build.0 = Debug Library|Win32 59 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Debug|ARM64.ActiveCfg = Debug|ARM64 60 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Debug|ARM64.Build.0 = Debug|ARM64 61 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Debug|Win32.ActiveCfg = Debug|Win32 62 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Debug|Win32.Build.0 = Debug|Win32 63 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Release Library|ARM64.ActiveCfg = Release Library|ARM64 64 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Release Library|ARM64.Build.0 = Release Library|ARM64 65 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Release Library|Win32.ActiveCfg = Release Library|Win32 66 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Release Library|Win32.Build.0 = Release Library|Win32 67 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Release|ARM64.ActiveCfg = Release|ARM64 68 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Release|ARM64.Build.0 = Release|ARM64 69 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Release|Win32.ActiveCfg = Release|Win32 70 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Release|Win32.Build.0 = Release|Win32 71 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Debug Library|ARM64.ActiveCfg = Release|ARM64 72 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Debug Library|ARM64.Build.0 = Release|ARM64 73 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Debug Library|Win32.ActiveCfg = Release|Win32 74 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Debug Library|Win32.Build.0 = Release|Win32 75 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Debug|ARM64.ActiveCfg = Release|ARM64 76 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Debug|ARM64.Build.0 = Release|ARM64 77 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Debug|Win32.ActiveCfg = Release|Win32 78 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Debug|Win32.Build.0 = Release|Win32 79 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Release Library|ARM64.ActiveCfg = Release|ARM64 80 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Release Library|ARM64.Build.0 = Release|ARM64 81 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Release Library|Win32.ActiveCfg = Release|Win32 82 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Release Library|Win32.Build.0 = Release|Win32 83 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Release|ARM64.ActiveCfg = Release|ARM64 84 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Release|ARM64.Build.0 = Release|ARM64 85 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Release|Win32.ActiveCfg = Release|Win32 86 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Release|Win32.Build.0 = Release|Win32 87 {D6973076-9317-4EF2-A0B8-B7A18AC0713E}.Debug Library|ARM64.ActiveCfg = Debug Library|ARM64 88 {D6973076-9317-4EF2-A0B8-B7A18AC0713E}.Debug Library|ARM64.Build.0 = Debug Library|ARM64 49 89 {D6973076-9317-4EF2-A0B8-B7A18AC0713E}.Debug Library|Win32.ActiveCfg = Debug Library|Win32 50 90 {D6973076-9317-4EF2-A0B8-B7A18AC0713E}.Debug Library|Win32.Build.0 = Debug Library|Win32 91 {D6973076-9317-4EF2-A0B8-B7A18AC0713E}.Debug|ARM64.ActiveCfg = Debug|ARM64 92 {D6973076-9317-4EF2-A0B8-B7A18AC0713E}.Debug|ARM64.Build.0 = Debug|ARM64 51 93 {D6973076-9317-4EF2-A0B8-B7A18AC0713E}.Debug|Win32.ActiveCfg = Debug|Win32 52 94 {D6973076-9317-4EF2-A0B8-B7A18AC0713E}.Debug|Win32.Build.0 = Debug|Win32 95 {D6973076-9317-4EF2-A0B8-B7A18AC0713E}.Release Library|ARM64.ActiveCfg = Release Library|ARM64 96 {D6973076-9317-4EF2-A0B8-B7A18AC0713E}.Release Library|ARM64.Build.0 = Release Library|ARM64 53 97 {D6973076-9317-4EF2-A0B8-B7A18AC0713E}.Release Library|Win32.ActiveCfg = Release Library|Win32 54 98 {D6973076-9317-4EF2-A0B8-B7A18AC0713E}.Release Library|Win32.Build.0 = Release Library|Win32 99 {D6973076-9317-4EF2-A0B8-B7A18AC0713E}.Release|ARM64.ActiveCfg = Release|ARM64 100 {D6973076-9317-4EF2-A0B8-B7A18AC0713E}.Release|ARM64.Build.0 = Release|ARM64 55 101 {D6973076-9317-4EF2-A0B8-B7A18AC0713E}.Release|Win32.ActiveCfg = Release|Win32 56 102 {D6973076-9317-4EF2-A0B8-B7A18AC0713E}.Release|Win32.Build.0 = Release|Win32 103 {228BA965-50D5-42B2-8BCF-AFCC227E3C1D}.Debug Library|ARM64.ActiveCfg = Debug Library|ARM64 104 {228BA965-50D5-42B2-8BCF-AFCC227E3C1D}.Debug Library|ARM64.Build.0 = Debug Library|ARM64 57 105 {228BA965-50D5-42B2-8BCF-AFCC227E3C1D}.Debug Library|Win32.ActiveCfg = Debug Library|Win32 58 106 {228BA965-50D5-42B2-8BCF-AFCC227E3C1D}.Debug Library|Win32.Build.0 = Debug Library|Win32 107 {228BA965-50D5-42B2-8BCF-AFCC227E3C1D}.Debug|ARM64.ActiveCfg = Debug|ARM64 108 {228BA965-50D5-42B2-8BCF-AFCC227E3C1D}.Debug|ARM64.Build.0 = Debug|ARM64 59 109 {228BA965-50D5-42B2-8BCF-AFCC227E3C1D}.Debug|Win32.ActiveCfg = Debug|Win32 60 110 {228BA965-50D5-42B2-8BCF-AFCC227E3C1D}.Debug|Win32.Build.0 = Debug|Win32 111 {228BA965-50D5-42B2-8BCF-AFCC227E3C1D}.Release Library|ARM64.ActiveCfg = Release Library|ARM64 112 {228BA965-50D5-42B2-8BCF-AFCC227E3C1D}.Release Library|ARM64.Build.0 = Release Library|ARM64 61 113 {228BA965-50D5-42B2-8BCF-AFCC227E3C1D}.Release Library|Win32.ActiveCfg = Release Library|Win32 62 114 {228BA965-50D5-42B2-8BCF-AFCC227E3C1D}.Release Library|Win32.Build.0 = Release Library|Win32 115 {228BA965-50D5-42B2-8BCF-AFCC227E3C1D}.Release|ARM64.ActiveCfg = Release|ARM64 116 {228BA965-50D5-42B2-8BCF-AFCC227E3C1D}.Release|ARM64.Build.0 = Release|ARM64 63 117 {228BA965-50D5-42B2-8BCF-AFCC227E3C1D}.Release|Win32.ActiveCfg = Release|Win32 64 118 {228BA965-50D5-42B2-8BCF-AFCC227E3C1D}.Release|Win32.Build.0 = Release|Win32 65 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Debug Library|Win32.ActiveCfg = Debug Library|Win32 66 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Debug Library|Win32.Build.0 = Debug Library|Win32 67 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Debug|Win32.ActiveCfg = Debug|Win32 68 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Debug|Win32.Build.0 = Debug|Win32 69 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Release Library|Win32.ActiveCfg = Release Library|Win32 70 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Release Library|Win32.Build.0 = Release Library|Win32 71 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Release|Win32.ActiveCfg = Release|Win32 72 {60F89955-91C6-3A36-8000-13C592FEC2DF}.Release|Win32.Build.0 = Release|Win32 119 {9B36B6FE-7FC0-434F-A71F-BBEF8099F1D8}.Debug Library|ARM64.ActiveCfg = Debug Library|ARM64 120 {9B36B6FE-7FC0-434F-A71F-BBEF8099F1D8}.Debug Library|ARM64.Build.0 = Debug Library|ARM64 73 121 {9B36B6FE-7FC0-434F-A71F-BBEF8099F1D8}.Debug Library|Win32.ActiveCfg = Debug Library|Win32 74 122 {9B36B6FE-7FC0-434F-A71F-BBEF8099F1D8}.Debug Library|Win32.Build.0 = Debug Library|Win32 123 {9B36B6FE-7FC0-434F-A71F-BBEF8099F1D8}.Debug|ARM64.ActiveCfg = Debug|ARM64 124 {9B36B6FE-7FC0-434F-A71F-BBEF8099F1D8}.Debug|ARM64.Build.0 = Debug|ARM64 75 125 {9B36B6FE-7FC0-434F-A71F-BBEF8099F1D8}.Debug|Win32.ActiveCfg = Debug|Win32 76 126 {9B36B6FE-7FC0-434F-A71F-BBEF8099F1D8}.Debug|Win32.Build.0 = Debug|Win32 127 {9B36B6FE-7FC0-434F-A71F-BBEF8099F1D8}.Release Library|ARM64.ActiveCfg = Release Library|ARM64 128 {9B36B6FE-7FC0-434F-A71F-BBEF8099F1D8}.Release Library|ARM64.Build.0 = Release Library|ARM64 77 129 {9B36B6FE-7FC0-434F-A71F-BBEF8099F1D8}.Release Library|Win32.ActiveCfg = Release Library|Win32 78 130 {9B36B6FE-7FC0-434F-A71F-BBEF8099F1D8}.Release Library|Win32.Build.0 = Release Library|Win32 131 {9B36B6FE-7FC0-434F-A71F-BBEF8099F1D8}.Release|ARM64.ActiveCfg = Release|ARM64 132 {9B36B6FE-7FC0-434F-A71F-BBEF8099F1D8}.Release|ARM64.Build.0 = Release|ARM64 79 133 {9B36B6FE-7FC0-434F-A71F-BBEF8099F1D8}.Release|Win32.ActiveCfg = Release|Win32 80 134 {9B36B6FE-7FC0-434F-A71F-BBEF8099F1D8}.Release|Win32.Build.0 = Release|Win32 81 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Debug Library|Win32.ActiveCfg = Release|Win32 82 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Debug Library|Win32.Build.0 = Release|Win32 83 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Debug|Win32.ActiveCfg = Release|Win32 84 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Debug|Win32.Build.0 = Release|Win32 85 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Release Library|Win32.ActiveCfg = Release|Win32 86 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Release Library|Win32.Build.0 = Release|Win32 87 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Release|Win32.ActiveCfg = Release|Win32 88 {EB33566E-DA7F-4D28-9077-88C0B7C77E35}.Release|Win32.Build.0 = Release|Win32 135 {277AC57F-313B-4D06-B119-A3CDB672D2FF}.Debug Library|ARM64.ActiveCfg = Debug Library|ARM64 136 {277AC57F-313B-4D06-B119-A3CDB672D2FF}.Debug Library|ARM64.Build.0 = Debug Library|ARM64 89 137 {277AC57F-313B-4D06-B119-A3CDB672D2FF}.Debug Library|Win32.ActiveCfg = Debug Library|Win32 90 138 {277AC57F-313B-4D06-B119-A3CDB672D2FF}.Debug Library|Win32.Build.0 = Debug Library|Win32 139 {277AC57F-313B-4D06-B119-A3CDB672D2FF}.Debug|ARM64.ActiveCfg = Debug|ARM64 140 {277AC57F-313B-4D06-B119-A3CDB672D2FF}.Debug|ARM64.Build.0 = Debug|ARM64 91 141 {277AC57F-313B-4D06-B119-A3CDB672D2FF}.Debug|Win32.ActiveCfg = Debug|Win32 92 142 {277AC57F-313B-4D06-B119-A3CDB672D2FF}.Debug|Win32.Build.0 = Debug|Win32 143 {277AC57F-313B-4D06-B119-A3CDB672D2FF}.Release Library|ARM64.ActiveCfg = Release Library|ARM64 144 {277AC57F-313B-4D06-B119-A3CDB672D2FF}.Release Library|ARM64.Build.0 = Release Library|ARM64 93 145 {277AC57F-313B-4D06-B119-A3CDB672D2FF}.Release Library|Win32.ActiveCfg = Release Library|Win32 94 146 {277AC57F-313B-4D06-B119-A3CDB672D2FF}.Release Library|Win32.Build.0 = Release Library|Win32 147 {277AC57F-313B-4D06-B119-A3CDB672D2FF}.Release|ARM64.ActiveCfg = Release|ARM64 148 {277AC57F-313B-4D06-B119-A3CDB672D2FF}.Release|ARM64.Build.0 = Release|ARM64 95 149 {277AC57F-313B-4D06-B119-A3CDB672D2FF}.Release|Win32.ActiveCfg = Release|Win32 96 150 {277AC57F-313B-4D06-B119-A3CDB672D2FF}.Release|Win32.Build.0 = Release|Win32 151 {C5D3156C-8C8C-4936-B35F-2B829BA36FEC}.Debug Library|ARM64.ActiveCfg = Debug Library|ARM64 152 {C5D3156C-8C8C-4936-B35F-2B829BA36FEC}.Debug Library|ARM64.Build.0 = Debug Library|ARM64 97 153 {C5D3156C-8C8C-4936-B35F-2B829BA36FEC}.Debug Library|Win32.ActiveCfg = Debug Library|Win32 98 154 {C5D3156C-8C8C-4936-B35F-2B829BA36FEC}.Debug Library|Win32.Build.0 = Debug Library|Win32 155 {C5D3156C-8C8C-4936-B35F-2B829BA36FEC}.Debug|ARM64.ActiveCfg = Debug|ARM64 156 {C5D3156C-8C8C-4936-B35F-2B829BA36FEC}.Debug|ARM64.Build.0 = Debug|ARM64 99 157 {C5D3156C-8C8C-4936-B35F-2B829BA36FEC}.Debug|Win32.ActiveCfg = Debug|Win32 100 158 {C5D3156C-8C8C-4936-B35F-2B829BA36FEC}.Debug|Win32.Build.0 = Debug|Win32 159 {C5D3156C-8C8C-4936-B35F-2B829BA36FEC}.Release Library|ARM64.ActiveCfg = Release Library|ARM64 160 {C5D3156C-8C8C-4936-B35F-2B829BA36FEC}.Release Library|ARM64.Build.0 = Release Library|ARM64 101 161 {C5D3156C-8C8C-4936-B35F-2B829BA36FEC}.Release Library|Win32.ActiveCfg = Release Library|Win32 102 162 {C5D3156C-8C8C-4936-B35F-2B829BA36FEC}.Release Library|Win32.Build.0 = Release Library|Win32 163 {C5D3156C-8C8C-4936-B35F-2B829BA36FEC}.Release|ARM64.ActiveCfg = Release|ARM64 164 {C5D3156C-8C8C-4936-B35F-2B829BA36FEC}.Release|ARM64.Build.0 = Release|ARM64 103 165 {C5D3156C-8C8C-4936-B35F-2B829BA36FEC}.Release|Win32.ActiveCfg = Release|Win32 104 166 {C5D3156C-8C8C-4936-B35F-2B829BA36FEC}.Release|Win32.Build.0 = Release|Win32 … … 107 169 HideSolutionNode = FALSE 108 170 EndGlobalSection 171 GlobalSection(ExtensibilityGlobals) = postSolution 172 SolutionGuid = {785775C5-509E-4727-A290-F1B65E1B68B2} 173 EndGlobalSection 109 174 EndGlobal -
trunk/src/libs/libpng-1.6.42/projects/vstudio/zlib/zlib.vcxproj
r96425 r103316 2 2 <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 3 <ItemGroup Label="ProjectConfigurations"> 4 <ProjectConfiguration Include="Debug Library|ARM64"> 5 <Configuration>Debug Library</Configuration> 6 <Platform>ARM64</Platform> 7 </ProjectConfiguration> 4 8 <ProjectConfiguration Include="Debug Library|Win32"> 5 9 <Configuration>Debug Library</Configuration> 6 10 <Platform>Win32</Platform> 7 11 </ProjectConfiguration> 12 <ProjectConfiguration Include="Debug|ARM64"> 13 <Configuration>Debug</Configuration> 14 <Platform>ARM64</Platform> 15 </ProjectConfiguration> 8 16 <ProjectConfiguration Include="Debug|Win32"> 9 17 <Configuration>Debug</Configuration> 10 18 <Platform>Win32</Platform> 11 19 </ProjectConfiguration> 20 <ProjectConfiguration Include="Release Library|ARM64"> 21 <Configuration>Release Library</Configuration> 22 <Platform>ARM64</Platform> 23 </ProjectConfiguration> 12 24 <ProjectConfiguration Include="Release Library|Win32"> 13 25 <Configuration>Release Library</Configuration> 14 26 <Platform>Win32</Platform> 27 </ProjectConfiguration> 28 <ProjectConfiguration Include="Release|ARM64"> 29 <Configuration>Release</Configuration> 30 <Platform>ARM64</Platform> 15 31 </ProjectConfiguration> 16 32 <ProjectConfiguration Include="Release|Win32"> … … 41 57 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'" Label="Configuration"> 42 58 <ConfigurationType>StaticLibrary</ConfigurationType> 59 <PlatformToolset>v142</PlatformToolset> 60 </PropertyGroup> 61 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'" Label="Configuration"> 62 <ConfigurationType>StaticLibrary</ConfigurationType> 63 <PlatformToolset>v142</PlatformToolset> 43 64 </PropertyGroup> 44 65 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> 45 66 <ConfigurationType>StaticLibrary</ConfigurationType> 67 <PlatformToolset>v142</PlatformToolset> 68 </PropertyGroup> 69 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration"> 70 <ConfigurationType>StaticLibrary</ConfigurationType> 71 <PlatformToolset>v142</PlatformToolset> 46 72 </PropertyGroup> 47 73 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'" Label="Configuration"> 48 74 <ConfigurationType>StaticLibrary</ConfigurationType> 75 <PlatformToolset>v142</PlatformToolset> 76 </PropertyGroup> 77 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'" Label="Configuration"> 78 <ConfigurationType>StaticLibrary</ConfigurationType> 79 <PlatformToolset>v142</PlatformToolset> 49 80 </PropertyGroup> 50 81 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> 51 82 <ConfigurationType>StaticLibrary</ConfigurationType> 52 83 </PropertyGroup> 84 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration"> 85 <ConfigurationType>StaticLibrary</ConfigurationType> 86 </PropertyGroup> 53 87 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> 54 88 <ConfigurationType>StaticLibrary</ConfigurationType> 89 <PlatformToolset>v142</PlatformToolset> 90 </PropertyGroup> 91 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration"> 92 <ConfigurationType>StaticLibrary</ConfigurationType> 93 <PlatformToolset>v142</PlatformToolset> 55 94 </PropertyGroup> 56 95 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> … … 60 99 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 61 100 </ImportGroup> 101 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'" Label="PropertySheets"> 102 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 103 </ImportGroup> 62 104 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> 63 105 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 64 106 </ImportGroup> 107 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="PropertySheets"> 108 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 109 </ImportGroup> 65 110 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'" Label="PropertySheets"> 111 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 112 </ImportGroup> 113 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'" Label="PropertySheets"> 66 114 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> 67 115 </ImportGroup> … … 69 117 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 70 118 </ImportGroup> 119 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="PropertySheets"> 120 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 121 </ImportGroup> 71 122 <PropertyGroup Label="UserMacros" /> 72 123 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'"> 73 124 <LinkIncremental>true</LinkIncremental> 74 125 </PropertyGroup> 126 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'"> 127 <LinkIncremental>true</LinkIncremental> 128 </PropertyGroup> 75 129 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> 76 130 <LinkIncremental>true</LinkIncremental> 77 131 </PropertyGroup> 132 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> 133 <LinkIncremental>true</LinkIncremental> 134 </PropertyGroup> 78 135 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'"> 79 136 <LinkIncremental>true</LinkIncremental> 80 137 </PropertyGroup> 138 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'"> 139 <LinkIncremental>true</LinkIncremental> 140 </PropertyGroup> 81 141 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 82 142 <LinkIncremental>true</LinkIncremental> 83 143 </PropertyGroup> 144 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 145 <LinkIncremental>true</LinkIncremental> 146 </PropertyGroup> 84 147 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 85 148 <LinkIncremental>true</LinkIncremental> 86 149 </PropertyGroup> 150 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 151 <LinkIncremental>true</LinkIncremental> 152 </PropertyGroup> 87 153 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|Win32'"> 88 154 <ClCompile> 89 <PreprocessorDefinitions>WIN32;_DEBUG; _WINDOWS;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions>155 <PreprocessorDefinitions>WIN32;_DEBUG;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> 90 156 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 91 <WarningLevel> $(WarningLevel)</WarningLevel>157 <WarningLevel>Level3</WarningLevel> 92 158 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 93 159 <Optimization>Disabled</Optimization> … … 95 161 <FunctionLevelLinking>true</FunctionLevelLinking> 96 162 <DisableSpecificWarnings>$(DisableSpecificWarnings);4127;4131;4242;4244</DisableSpecificWarnings> 97 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>163 <TreatWarningAsError>false</TreatWarningAsError> 98 164 </ClCompile> 99 165 <Link> … … 103 169 </Link> 104 170 </ItemDefinitionGroup> 171 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Library|ARM64'"> 172 <ClCompile> 173 <PreprocessorDefinitions>WIN32;_DEBUG;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> 174 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 175 <WarningLevel>Level3</WarningLevel> 176 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 177 <Optimization>Disabled</Optimization> 178 <BrowseInformation>true</BrowseInformation> 179 <FunctionLevelLinking>true</FunctionLevelLinking> 180 <DisableSpecificWarnings>$(DisableSpecificWarnings);4127;4131;4242;4244</DisableSpecificWarnings> 181 <TreatWarningAsError>false</TreatWarningAsError> 182 </ClCompile> 183 <Link> 184 <GenerateDebugInformation>true</GenerateDebugInformation> 185 <SubSystem>Windows</SubSystem> 186 </Link> 187 </ItemDefinitionGroup> 105 188 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> 106 189 <ClCompile> 107 <PreprocessorDefinitions>WIN32;_DEBUG; _WINDOWS;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions>108 <WarningLevel> $(WarningLevel)</WarningLevel>190 <PreprocessorDefinitions>WIN32;_DEBUG;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> 191 <WarningLevel>Level3</WarningLevel> 109 192 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 110 193 <Optimization>Disabled</Optimization> … … 112 195 <FunctionLevelLinking>true</FunctionLevelLinking> 113 196 <DisableSpecificWarnings>$(DisableSpecificWarnings);4127;4131;4242;4244</DisableSpecificWarnings> 114 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>197 <TreatWarningAsError>false</TreatWarningAsError> 115 198 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> 116 199 </ClCompile> … … 121 204 </Link> 122 205 </ItemDefinitionGroup> 206 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> 207 <ClCompile> 208 <PreprocessorDefinitions>WIN32;_DEBUG;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> 209 <WarningLevel>Level3</WarningLevel> 210 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 211 <Optimization>Disabled</Optimization> 212 <BrowseInformation>true</BrowseInformation> 213 <FunctionLevelLinking>true</FunctionLevelLinking> 214 <DisableSpecificWarnings>$(DisableSpecificWarnings);4127;4131;4242;4244</DisableSpecificWarnings> 215 <TreatWarningAsError>false</TreatWarningAsError> 216 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> 217 </ClCompile> 218 <Link> 219 <GenerateDebugInformation>true</GenerateDebugInformation> 220 <SubSystem>Windows</SubSystem> 221 </Link> 222 </ItemDefinitionGroup> 123 223 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|Win32'"> 124 224 <ClCompile> 125 <WarningLevel> $(WarningLevel)</WarningLevel>225 <WarningLevel>Level3</WarningLevel> 126 226 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 127 227 <Optimization>Full</Optimization> … … 132 232 <FunctionLevelLinking>true</FunctionLevelLinking> 133 233 <DisableSpecificWarnings>$(DisableSpecificWarnings);4127;4131;4242;4244</DisableSpecificWarnings> 134 <TreatWarningAsError> $(TreatWarningAsError)</TreatWarningAsError>234 <TreatWarningAsError>false</TreatWarningAsError> 135 235 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 136 <PreprocessorDefinitions>WIN32;NDEBUG; _WINDOWS;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions>236 <PreprocessorDefinitions>WIN32;NDEBUG;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> 137 237 </ClCompile> 138 238 <Link> … … 145 245 </Lib> 146 246 </ItemDefinitionGroup> 147 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release |Win32'">148 <ClCompile> 149 <WarningLevel> $(WarningLevel)</WarningLevel>247 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Library|ARM64'"> 248 <ClCompile> 249 <WarningLevel>Level3</WarningLevel> 150 250 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 151 251 <Optimization>Full</Optimization> … … 156 256 <FunctionLevelLinking>true</FunctionLevelLinking> 157 257 <DisableSpecificWarnings>$(DisableSpecificWarnings);4127;4131;4242;4244</DisableSpecificWarnings> 158 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 159 <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> 160 </ClCompile> 161 <Link> 162 <TargetMachine>MachineX86</TargetMachine> 163 <GenerateDebugInformation>true</GenerateDebugInformation> 164 <SubSystem>Windows</SubSystem> 165 <EnableCOMDATFolding>true</EnableCOMDATFolding> 166 <OptimizeReferences>true</OptimizeReferences> 258 <TreatWarningAsError>false</TreatWarningAsError> 259 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 260 <PreprocessorDefinitions>WIN32;NDEBUG;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> 261 </ClCompile> 262 <Link> 263 <GenerateDebugInformation>true</GenerateDebugInformation> 264 <SubSystem>Windows</SubSystem> 167 265 </Link> 168 266 <Lib> … … 170 268 </Lib> 171 269 </ItemDefinitionGroup> 270 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 271 <ClCompile> 272 <WarningLevel>$(WarningLevel)</WarningLevel> 273 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 274 <Optimization>Full</Optimization> 275 <IntrinsicFunctions>true</IntrinsicFunctions> 276 <WholeProgramOptimization>true</WholeProgramOptimization> 277 <BufferSecurityCheck>false</BufferSecurityCheck> 278 <BrowseInformation>true</BrowseInformation> 279 <FunctionLevelLinking>true</FunctionLevelLinking> 280 <DisableSpecificWarnings>$(DisableSpecificWarnings);4127;4131;4242;4244</DisableSpecificWarnings> 281 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 282 <PreprocessorDefinitions>WIN32;NDEBUG;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> 283 </ClCompile> 284 <Link> 285 <TargetMachine>MachineX86</TargetMachine> 286 <GenerateDebugInformation>true</GenerateDebugInformation> 287 <SubSystem>Windows</SubSystem> 288 <EnableCOMDATFolding>true</EnableCOMDATFolding> 289 <OptimizeReferences>true</OptimizeReferences> 290 </Link> 291 <Lib> 292 <LinkTimeCodeGeneration>true</LinkTimeCodeGeneration> 293 </Lib> 294 </ItemDefinitionGroup> 295 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> 296 <ClCompile> 297 <WarningLevel>$(WarningLevel)</WarningLevel> 298 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 299 <Optimization>Full</Optimization> 300 <IntrinsicFunctions>true</IntrinsicFunctions> 301 <WholeProgramOptimization>true</WholeProgramOptimization> 302 <BufferSecurityCheck>false</BufferSecurityCheck> 303 <BrowseInformation>true</BrowseInformation> 304 <FunctionLevelLinking>true</FunctionLevelLinking> 305 <DisableSpecificWarnings>$(DisableSpecificWarnings);4127;4131;4242;4244</DisableSpecificWarnings> 306 <TreatWarningAsError>$(TreatWarningAsError)</TreatWarningAsError> 307 <PreprocessorDefinitions>WIN32;NDEBUG;Z_SOLO;%(PreprocessorDefinitions)</PreprocessorDefinitions> 308 </ClCompile> 309 <Link> 310 <GenerateDebugInformation>true</GenerateDebugInformation> 311 <SubSystem>Windows</SubSystem> 312 <EnableCOMDATFolding>true</EnableCOMDATFolding> 313 <OptimizeReferences>true</OptimizeReferences> 314 </Link> 315 <Lib> 316 <LinkTimeCodeGeneration>true</LinkTimeCodeGeneration> 317 </Lib> 318 </ItemDefinitionGroup> 172 319 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> 173 320 <ImportGroup Label="ExtensionTargets"> -
trunk/src/libs/libpng-1.6.42/scripts/README.txt
r96425 r103316 14 14 makefile.bc32 => 32-bit Borland C++ (all modules compiled in C mode) 15 15 makefile.beos => BeOS makefile 16 makefile.c egcc => minge32ce for Windows CEmakefile16 makefile.clang => Generic clang makefile 17 17 makefile.darwin => Darwin makefile, for macOS (formerly Mac OS X) 18 18 makefile.dec => DEC Alpha UNIX makefile … … 76 76 prefix.dfn => Used by autoconf tools 77 77 78 79 Further information can be found in comments in the individualmakefiles.78 Further information can be found in comments in the individual scripts and 79 makefiles. -
trunk/src/libs/libpng-1.6.42/scripts/checksym.awk
r96425 r103316 1 1 #!/bin/awk -f 2 2 3 # Check a list of symbols against the master definition 3 4 # (official) list. Arguments: -
trunk/src/libs/libpng-1.6.42/scripts/descrip.mms
r96425 r103316 7 7 .endif 8 8 9 OBJS = png.obj, pngerror.obj, pngget.obj, pngmem.obj, pngpread.obj,\ 10 pngread.obj, pngrio.obj, pngrtran.obj, pngrutil.obj, pngset.obj,\ 11 pngtrans.obj, pngwio.obj, pngwrite.obj, pngwtran.obj, pngwutil.obj 9 12 10 11 OBJS = png.obj, pngset.obj, pngget.obj, pngrutil.obj, pngtrans.obj,\ 12 pngwutil.obj, pngread.obj, pngmem.obj, pngwrite.obj, pngrtran.obj,\ 13 pngwtran.obj, pngrio.obj, pngwio.obj, pngerror.obj, pngpread.obj 14 15 16 CFLAGS= $(C_DEB) $(CC_DEFS) $(PREF) 13 CFLAGS = $(C_DEB) $(CC_DEFS) $(PREF) 17 14 18 15 all : pngtest.exe libpng.olb … … 22 19 @ write sys$output " libpng available" 23 20 24 25 21 pngtest.exe : pngtest.obj libpng.olb 26 22 link pngtest,libpng.olb/lib,$(ZLIBSRC)libz.olb/lib 27 23 28 24 test : pngtest.exe 29 25 run pngtest 30 26 31 27 clean : 32 28 delete *.obj;*,*.exe; 33 29 34 35 30 # Other dependencies. 36 png.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 31 png.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 32 pngerror.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 33 pngget.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 34 pngmem.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 37 35 pngpread.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 38 pngset.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 39 pngget.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 40 pngread.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 36 pngread.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 37 pngrio.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 41 38 pngrtran.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 42 39 pngrutil.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 43 pngerror.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 44 pngmem.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 45 pngrio.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 46 pngwio.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 40 pngset.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 47 41 pngtrans.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 42 pngwio.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 48 43 pngwrite.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 49 44 pngwtran.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 50 45 pngwutil.obj : png.h, pngconf.h, pnglibconf.h, pngpriv.h, pngstruct.h,pnginfo.h, pngdebug.h 51 46 52 pngtest.obj : png.h, pngconf.h, pnglibconf.h47 pngtest.obj : png.h, pngconf.h, pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/dfn.awk
r96425 r103316 1 1 #!/bin/awk -f 2 2 3 # scripts/dfn.awk - process a .dfn file 3 #4 # last changed in libpng version 1.5.19 - August 21, 20145 4 # 6 5 # Copyright (c) 2013-2014 Glenn Randers-Pehrson … … 126 125 else while (1) { 127 126 if (getline nextline) { 128 # If the line starts with '#' it is a preproces or line directive127 # If the line starts with '#' it is a preprocessor line directive 129 128 # from cc -E; skip it: 130 129 if (nextline !~ /^#/) { -
trunk/src/libs/libpng-1.6.42/scripts/intprefix.c
r96425 r103316 2 2 /* intprefix.c - generate an unprefixed internal symbol list 3 3 * 4 * Last changed in libpng version 1.6.16 [December 22, 2014]5 4 * Copyright (c) 2013-2014 Glenn Randers-Pehrson 6 5 * -
trunk/src/libs/libpng-1.6.42/scripts/libpng-config-head.in
r96425 r103316 12 12 # Modeled after libxml-config. 13 13 14 version=1.6. 3714 version=1.6.42 15 15 prefix="" 16 16 libdir="" -
trunk/src/libs/libpng-1.6.42/scripts/libpng.pc.in
r96425 r103316 6 6 Name: libpng 7 7 Description: Loads and saves PNG files 8 Version: 1.6. 378 Version: 1.6.42 9 9 Libs: -L${libdir} -lpng16 10 10 Cflags: -I${includedir} -
trunk/src/libs/libpng-1.6.42/scripts/makefile.32sunu
r96425 r103316 1 1 # makefile for libpng on Solaris 2.x with cc 2 2 # Contributed by William L. Sebok, based on makefile.linux 3 # Copyright (C) 2020-2022 Cosmin Truta 3 4 # Copyright (C) 2002, 2006, 2010-2014 Glenn Randers-Pehrson 4 5 # Copyright (C) 1998 Greg Roelofs 5 6 # Copyright (C) 1996, 1997 Andreas Dilger 6 7 # 7 8 # This code is released under the libpng license. 8 9 # For conditions of distribution and use, see the disclaimer … … 11 12 # Library name: 12 13 LIBNAME=libpng16 13 PNGMAJ =1614 PNGMAJ=16 14 15 15 16 # Shared library names: 16 17 LIBSO=$(LIBNAME).so 17 18 LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) 18 LIBSOREL=$(LIBSOMAJ).$(RELEASE)19 OLDSO=libpng.so20 19 21 20 # Utilities: 22 21 CC=cc 23 22 AR_RC=ar rc 23 RANLIB=echo 24 24 MKDIR_P=mkdir -p 25 25 LN_SF=ln -f -s 26 RANLIB=echo27 26 RM_F=/bin/rm -f 28 27 29 28 SUN_CC_FLAGS=-fast -xtarget=ultra 30 29 SUN_LD_FLAGS=-fast -xtarget=ultra 31 32 # where make install puts libpng.a, libpng16.so and libpng16/png.h33 prefix=/a34 exec_prefix=$(prefix)35 30 36 31 # Where the zlib library and include files are located … … 45 40 WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ 46 41 -Wmissing-declarations -Wtraditional -Wcast-align \ 47 -Wstrict-prototypes -Wmissing-prototypes # -Wconversion42 -Wstrict-prototypes -Wmissing-prototypes # -Wconversion 48 43 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 49 44 CFLAGS=$(SUN_CC_FLAGS) # $(WARNMORE) -g 50 45 LDFLAGS=$(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) libpng.a -lz -lm 51 46 52 INCPATH=$(prefix)/include 53 LIBPATH=$(exec_prefix)/lib 54 MANPATH=$(prefix)/man 55 BINPATH=$(exec_prefix)/bin 56 57 # override DESTDIR= on the make install command line to easily support 58 # installing into a temporary location. Example: 59 # 60 # make install DESTDIR=/tmp/build/libpng 61 # 62 # If you're going to install into a temporary location 63 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before 64 # you execute make install. 65 DESTDIR= 66 67 DB=$(DESTDIR)$(BINPATH) 68 DI=$(DESTDIR)$(INCPATH) 69 DL=$(DESTDIR)$(LIBPATH) 70 DM=$(DESTDIR)$(MANPATH) 71 72 OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ 73 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ 74 pngwtran.o pngmem.o pngerror.o pngpread.o 47 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 48 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 49 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 75 50 76 51 OBJSDLL = $(OBJS:.o=.pic.o) … … 84 59 $(CC) -c $(CPPFLAGS) $(CFLAGS) -KPIC -o $@ $*.c 85 60 86 all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config61 all: libpng.a $(LIBSO) pngtest 87 62 88 63 include scripts/pnglibconf.mak … … 93 68 $(AR_RC) $@ $(OBJS) 94 69 $(RANLIB) $@ 95 96 libpng.pc:97 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \98 -e s!@exec_prefix@!$(exec_prefix)! \99 -e s!@libdir@!$(LIBPATH)! \100 -e s!@includedir@!$(INCPATH)! \101 -e s!-lpng16!-lpng16\ -lz\ -lm! > libpng.pc102 103 libpng-config:104 ( cat scripts/libpng-config-head.in; \105 echo prefix=\"$(prefix)\"; \106 echo libdir=\"$(LIBPATH)\"; \107 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \108 echo L_opts=\"-L$(LIBPATH)\"; \109 echo R_opts=\"-R$(LIBPATH)\"; \110 echo ccopts=\"-fast -xtarget=ultra\"; \111 echo ldopts=\"-fast -xtarget=ultra\"; \112 echo libs=\"-lpng16 -lz -lm\"; \113 cat scripts/libpng-config-body.in ) > libpng-config114 chmod +x libpng-config115 70 116 71 $(LIBSO): $(LIBSOMAJ) … … 139 94 ./pngtest 140 95 141 install-headers: png.h pngconf.h pnglibconf.h 142 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 143 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 144 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 145 chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h 146 -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h 147 -@$(RM_F) $(DI)/libpng 148 (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) 96 install: 97 @echo "The $@ target is no longer supported by this makefile." 98 @false 149 99 150 install-static: install-headers libpng.a 151 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 152 cp libpng.a $(DL)/$(LIBNAME).a 153 chmod 644 $(DL)/$(LIBNAME).a 154 -@$(RM_F) $(DL)/libpng.a 155 (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) 100 install-static: 101 @echo "The $@ target is no longer supported by this makefile." 102 @false 156 103 157 install-shared: install-headers $(LIBSOMAJ) libpng.pc 158 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 159 -@$(RM_F) $(DL)/$(LIBSO) 160 -@$(RM_F) $(DL)/$(LIBSOREL) 161 -@$(RM_F) $(DL)/$(OLDSO) 162 cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) 163 chmod 755 $(DL)/$(LIBSOREL) 164 (cd $(DL); \ 165 $(LN_SF) $(LIBSOREL) $(LIBSO); \ 166 $(LN_SF) $(LIBSO) $(OLDSO)) 167 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi 168 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc 169 -@$(RM_F) $(DL)/pkgconfig/libpng.pc 170 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc 171 chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc 172 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) 173 174 install-man: libpng.3 libpngpf.3 png.5 175 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi 176 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi 177 -@$(RM_F) $(DM)/man3/libpng.3 178 -@$(RM_F) $(DM)/man3/libpngpf.3 179 cp libpng.3 $(DM)/man3 180 cp libpngpf.3 $(DM)/man3 181 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi 182 -@$(RM_F) $(DM)/man5/png.5 183 cp png.5 $(DM)/man5 184 185 install-config: libpng-config 186 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi 187 -@$(RM_F) $(DB)/libpng-config 188 -@$(RM_F) $(DB)/$(LIBNAME)-config 189 cp libpng-config $(DB)/$(LIBNAME)-config 190 chmod 755 $(DB)/$(LIBNAME)-config 191 (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) 192 193 install: install-static install-shared install-man install-config 194 195 # If you installed in $(DESTDIR), test-installed won't work until you 196 # move the library to its final location. Use test-dd to test it 197 # before then. 198 199 test-dd: 200 echo 201 echo Testing installed dynamic shared library in $(DL). 202 $(CC) $(SUN_CC_FLAGS) -I$(DI) $(CPPFLAGS) \ 203 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 204 -o pngtestd -L$(DL) -R$(DL) `$(BINPATH)/$(LIBNAME)-config --ldflags` \ 205 $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) 206 ./pngtestd pngtest.png 207 208 test-installed: 209 echo 210 echo Testing installed dynamic shared library. 211 $(CC) $(SUN_CC_FLAGS) $(CPPFLAGS) \ 212 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 213 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` \ 214 $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) 215 ./pngtesti pngtest.png 104 install-shared: 105 @echo "The $@ target is no longer supported by this makefile." 106 @false 216 107 217 108 clean: 218 $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ 219 libpng-config $(LIBSO) $(LIBSOMAJ)* \ 220 libpng.pc 221 222 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO 223 writelock: 224 chmod a-w *.[ch35] $(DOCS) scripts/* 109 $(RM_F) *.o libpng.a pngtest pngout.png 110 $(RM_F) $(LIBSO) $(LIBSOMAJ)* 225 111 226 112 # DO NOT DELETE THIS LINE -- make depend depends on it. 227 113 228 png.o png.pic.o:png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h114 png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 229 115 pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 230 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 231 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 232 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 233 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 234 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 235 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 116 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 117 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 118 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 119 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 120 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 236 121 pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 237 122 pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 123 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 238 124 pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 125 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 239 126 pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 240 127 pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 241 128 pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 242 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h243 129 244 130 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.64sunu
r96425 r103316 1 1 # makefile for libpng on Solaris 2.x with cc 2 2 # Contributed by William L. Sebok, based on makefile.linux 3 # Copyright (C) 2020-2022 Cosmin Truta 3 4 # Copyright (C) 2002, 2006, 2010-2014 Glenn Randers-Pehrson 4 5 # Copyright (C) 1998 Greg Roelofs 5 6 # Copyright (C) 1996, 1997 Andreas Dilger 6 7 # 7 8 # This code is released under the libpng license. 8 9 # For conditions of distribution and use, see the disclaimer … … 11 12 # Library name: 12 13 LIBNAME=libpng16 13 PNGMAJ =1614 PNGMAJ=16 14 15 15 16 # Shared library names: 16 17 LIBSO=$(LIBNAME).so 17 18 LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) 18 LIBSOREL=$(LIBSOMAJ).$(RELEASE)19 OLDSO=libpng.so20 19 21 20 # Utilities: 22 21 CC=cc 23 22 AR_RC=ar rc 23 RANLIB=echo 24 24 MKDIR_P=mkdir -p 25 25 LN_SF=ln -f -s 26 RANLIB=echo27 26 RM_F=/bin/rm -f 28 27 29 28 SUN_CC_FLAGS=-fast -xtarget=ultra -xarch=v9 30 29 SUN_LD_FLAGS=-fast -xtarget=ultra -xarch=v9 31 32 # where make install puts libpng.a, libpng16.so and libpng16/png.h33 prefix=/a34 exec_prefix=$(prefix)35 30 36 31 # Where the zlib library and include files are located … … 45 40 WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ 46 41 -Wmissing-declarations -Wtraditional -Wcast-align \ 47 -Wstrict-prototypes -Wmissing-prototypes # -Wconversion42 -Wstrict-prototypes -Wmissing-prototypes # -Wconversion 48 43 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 49 44 CFLAGS= $(SUN_CC_FLAGS) # $(WARNMORE) -g 50 45 LDFLAGS=-L. -R. $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng16 -lz -lm 51 46 52 INCPATH=$(prefix)/include 53 LIBPATH=$(exec_prefix)/lib 54 MANPATH=$(prefix)/man 55 BINPATH=$(exec_prefix)/bin 56 57 # override DESTDIR= on the make install command line to easily support 58 # installing into a temporary location. Example: 59 # 60 # make install DESTDIR=/tmp/build/libpng 61 # 62 # If you're going to install into a temporary location 63 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before 64 # you execute make install. 65 DESTDIR= 66 67 DB=$(DESTDIR)$(BINPATH) 68 DI=$(DESTDIR)$(INCPATH) 69 DL=$(DESTDIR)$(LIBPATH) 70 DM=$(DESTDIR)$(MANPATH) 71 72 OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ 73 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ 74 pngwtran.o pngmem.o pngerror.o pngpread.o 47 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 48 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 49 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 75 50 76 51 OBJSDLL = $(OBJS:.o=.pic.o) … … 84 59 $(CC) -c $(CPPFLAGS) $(CFLAGS) -KPIC -o $@ $*.c 85 60 86 all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config61 all: libpng.a $(LIBSO) pngtest 87 62 88 63 include scripts/pnglibconf.mak … … 93 68 $(AR_RC) $@ $(OBJS) 94 69 $(RANLIB) $@ 95 96 libpng.pc:97 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \98 -e s!@exec_prefix@!$(exec_prefix)! \99 -e s!@libdir@!$(LIBPATH)! \100 -e s!@includedir@!$(INCPATH)! \101 -e s!-lpng16!-lpng16\ -lz\ -lm! > libpng.pc102 103 libpng-config:104 ( cat scripts/libpng-config-head.in; \105 echo prefix=\"$(prefix)\"; \106 echo libdir=\"$(LIBPATH)\"; \107 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \108 echo L_opts=\"-L$(LIBPATH)\"; \109 echo R_opts=\"-R$(LIBPATH)\"; \110 echo ccopts=\"-fast -xtarget=ultra -xarch=v9\"; \111 echo ldopts=\"-fast -xtarget=ultra -xarch=v9\"; \112 echo libs=\"-lpng16 -lz -lm\"; \113 cat scripts/libpng-config-body.in ) > libpng-config114 chmod +x libpng-config115 70 116 71 $(LIBSO): $(LIBSOMAJ) … … 139 94 ./pngtest 140 95 141 install-headers: png.h pngconf.h 142 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 143 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 144 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 145 chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h 146 -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h 147 -@$(RM_F) $(DI)/libpng 148 (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) 96 install: 97 @echo "The $@ target is no longer supported by this makefile." 98 @false 149 99 150 install-static: install-headers libpng.a 151 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 152 cp libpng.a $(DL)/$(LIBNAME).a 153 chmod 644 $(DL)/$(LIBNAME).a 154 -@$(RM_F) $(DL)/libpng.a 155 (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) 100 install-static: 101 @echo "The $@ target is no longer supported by this makefile." 102 @false 156 103 157 install-shared: install-headers $(LIBSOMAJ) libpng.pc 158 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 159 -@$(RM_F) $(DL)/$(LIBSO) 160 -@$(RM_F) $(DL)/$(LIBSOREL) 161 -@$(RM_F) $(DL)/$(OLDSO) 162 cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) 163 chmod 755 $(DL)/$(LIBSOREL) 164 (cd $(DL); \ 165 $(LN_SF) $(LIBSOREL) $(LIBSO); \ 166 $(LN_SF) $(LIBSO) $(OLDSO)) 167 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi 168 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc 169 -@$(RM_F) $(DL)/pkgconfig/libpng.pc 170 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc 171 chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc 172 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) 173 174 install-man: libpng.3 libpngpf.3 png.5 175 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi 176 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi 177 -@$(RM_F) $(DM)/man3/libpng.3 178 -@$(RM_F) $(DM)/man3/libpngpf.3 179 cp libpng.3 $(DM)/man3 180 cp libpngpf.3 $(DM)/man3 181 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi 182 -@$(RM_F) $(DM)/man5/png.5 183 cp png.5 $(DM)/man5 184 185 install-config: libpng-config 186 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi 187 -@$(RM_F) $(DB)/libpng-config 188 -@$(RM_F) $(DB)/$(LIBNAME)-config 189 cp libpng-config $(DB)/$(LIBNAME)-config 190 chmod 755 $(DB)/$(LIBNAME)-config 191 (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) 192 193 install: install-static install-shared install-man install-config 194 195 # If you installed in $(DESTDIR), test-installed won't work until you 196 # move the library to its final location. Use test-dd to test it 197 # before then. 198 199 test-dd: 200 echo 201 echo Testing installed dynamic shared library in $(DL). 202 $(CC) $(SUN_CC_FLAGS) -I$(DI) $(CPPFLAGS) \ 203 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 204 -o pngtestd -L$(DL) -R$(DL) `$(BINPATH)/$(LIBNAME)-config --ldflags` \ 205 $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) 206 ./pngtestd pngtest.png 207 208 test-installed: 209 echo 210 echo Testing installed dynamic shared library. 211 $(CC) $(SUN_CC_FLAGS) $(CPPFLAGS) \ 212 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 213 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` \ 214 $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) 215 ./pngtesti pngtest.png 104 install-shared: 105 @echo "The $@ target is no longer supported by this makefile." 106 @false 216 107 217 108 clean: 218 $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ 219 libpng-config $(LIBSO) $(LIBSOMAJ)* \ 220 libpng.pc 221 222 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO 223 writelock: 224 chmod a-w *.[ch35] $(DOCS) scripts/* 109 $(RM_F) *.o libpng.a pngtest pngout.png 110 $(RM_F) $(LIBSO) $(LIBSOMAJ)* 225 111 226 112 # DO NOT DELETE THIS LINE -- make depend depends on it. 227 113 228 png.o png.pic.o:png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h114 png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 229 115 pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 230 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 231 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 232 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 233 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 234 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 235 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 116 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 117 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 118 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 119 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 120 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 236 121 pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 237 122 pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 123 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 238 124 pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 125 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 239 126 pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 240 127 pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 241 128 pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 242 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h243 129 244 130 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.aix
r96425 r103316 1 1 # makefile for libpng using gcc (generic, static library) 2 # Copyright (C) 2000, 2022 Cosmin Truta 2 3 # Copyright (C) 2002, 2006-2009, 2014 Glenn Randers-Pehrson 3 # Copyright (C) 2000 Cosmin Truta4 4 # Copyright (C) 2000 Marc O. Gloor (AIX support added, from makefile.gcc) 5 5 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 17 17 LD = $(CC) 18 18 AR_RC = ar rcs 19 RANLIB = ranlib 19 20 MKDIR_P = mkdir -p 20 RANLIB = ranlib21 21 RM_F = rm -f 22 LN_SF = ln -f -s23 22 24 23 LIBNAME = libpng16 25 24 PNGMAJ = 16 26 25 27 prefix=/usr/local28 INCPATH=$(prefix)/include29 LIBPATH=$(prefix)/lib30 31 # override DESTDIR= on the make install command line to easily support32 # installing into a temporary location. Example:33 #34 # make install DESTDIR=/tmp/build/libpng35 #36 # If you're going to install into a temporary location37 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before38 # you execute make install.39 DESTDIR=40 41 DI=$(DESTDIR)$(INCPATH)42 DL=$(DESTDIR)$(LIBPATH)43 44 26 WARNMORE = 45 27 CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5 46 CFLAGS = - W -Wall -O2# $(WARNMORE) -g47 LDFLAGS = -L. -L$(ZLIBLIB) -lpng16 -lz -lm 28 CFLAGS = -O2 -Wall -Wextra -Wundef # $(WARNMORE) -g 29 LDFLAGS = -L. -L$(ZLIBLIB) -lpng16 -lz -lm # -g 48 30 49 # Variables50 OBJS = 51 52 31 # File lists 32 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 33 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 34 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 53 35 54 36 # Targets … … 56 38 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< 57 39 58 all: $(LIBNAME).a pngtest $(E)40 all: $(LIBNAME).a pngtest 59 41 60 42 include scripts/pnglibconf.mak … … 66 48 $(RANLIB) $@ 67 49 68 test: pngtest $(E)69 ./pngtest $(E)50 test: pngtest 51 ./pngtest 70 52 71 pngtest $(E): pngtest.o $(LIBNAME).a53 pngtest: pngtest.o $(LIBNAME).a 72 54 $(LD) -o $@ pngtest.o $(LDFLAGS) 73 55 74 install: $(LIBNAME).a 75 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 76 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 77 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 78 -@$(RM_F) $(DI)/$(LIBNAME)/png.h 79 -@$(RM_F) $(DI)/$(LIBNAME)/pngconf.h 80 -@$(RM_F) $(DI)/$(LIBNAME)/pnglibconf.h 81 -@$(RM_F) $(DI)/png.h 82 -@$(RM_F) $(DI)/pngconf.h 83 -@$(RM_F) $(DI)/pnglibconf.h 84 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 85 chmod 644 $(DI)/$(LIBNAME)/png.h \ 86 $(DI)/$(LIBNAME)/pngconf.h \ 87 $(DI)/$(LIBNAME)/pnglibconf.h 88 -@$(RM_F) -r $(DI)/libpng 89 (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) 90 -@$(RM_F) $(DL)/$(LIBNAME).a 91 -@$(RM_F) $(DL)/libpng.a 92 cp $(LIBNAME).a $(DL)/$(LIBNAME).a 93 chmod 644 $(DL)/$(LIBNAME).a 94 (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) 95 (cd $(DI); $(LN_SF) libpng/* .;) 56 install: 57 @echo "The $@ target is no longer supported by this makefile." 58 @false 96 59 97 60 clean: -
trunk/src/libs/libpng-1.6.42/scripts/makefile.amiga
r96425 r103316 34 34 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 35 35 36 OBJS = png.o png set.o pngget.o pngrutil.o pngtrans.o pngwutil.o \37 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \38 pngwtran.o pngmem.o pngerror.o pngpread.o36 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 37 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 38 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 39 39 40 40 all: libpng.lib pngtest -
trunk/src/libs/libpng-1.6.42/scripts/makefile.atari
r96425 r103316 1 1 # makefile for libpng 2 # Copyright (C) 2022 Cosmin Truta 2 3 # Copyright (C) 2002, 2014 Glenn Randers-Pehrson 3 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 10 11 # rules for library management 11 12 # 12 CPPFLAGS = -I.. \zlib13 CPPFLAGS = -I../zlib 13 14 CFLAGS = -O 14 15 LBR = png.lib 15 LDFLAGS = -L. -L..\zlib -lpng -lz -lm 16 17 # where make install puts libpng.a and png.h 18 prefix=/usr/local 19 INCPATH=$(prefix)/include 20 LIBPATH=$(prefix)/lib 21 22 # override DESTDIR= on the make install command line to easily support 23 # installing into a temporary location. Example: 24 # 25 # make install DESTDIR=/tmp/build/libpng 26 # 27 # If you're going to install into a temporary location 28 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before 29 # you execute make install. 30 DESTDIR= 16 LDFLAGS = -L. -L../zlib -lpng -lz -lm 31 17 32 18 # Pre-built configuration … … 34 20 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 35 21 36 OBJS = $(LBR)(png.o) $(LBR)(png set.o) $(LBR)(pngget.o) $(LBR)(pngrutil.o)\37 $(LBR)(pngtrans.o) $(LBR)(pngwutil.o)\38 $(LBR)(pngread.o) $(LBR)(pngerror.o) $(LBR)(pngwrite.o)\39 $(LBR)(pngrtran.o) $(LBR)(pngwtran.o)\40 $(LBR)(pngmem.o) $(LBR)(pngrio.o) $(LBR)(pngwio.o) $(LBR)(pngpread.o)22 OBJS = $(LBR)(png.o) $(LBR)(pngerror.o) $(LBR)(pngget.o) $(LBR)(pngmem.o) \ 23 $(LBR)(pngpread.o) $(LBR)(pngread.o) $(LBR)(pngrio.o) \ 24 $(LBR)(pngrtran.o) $(LBR)(pngrutil.o) $(LBR)(pngset.o) \ 25 $(LBR)(pngtrans.o) $(LBR)(pngwio.o) $(LBR)(pngwrite.o) \ 26 $(LBR)(pngwtran.o) $(LBR)(pngwutil.o) 41 27 42 28 all: $(LBR) pngtest.ttp … … 55 41 $(CC) $(CFLAGS) $(LDFLAGS) -o$@ pngtest.o 56 42 57 install: libpng.a 58 -@mkdir $(DESTDIR)$(INCPATH) 59 -@mkdir $(DESTDIR)$(INCPATH)/libpng 60 -@mkdir $(DESTDIR)$(LIBPATH) 61 -@rm -f $(DESTDIR)$(INCPATH)/png.h 62 -@rm -f $(DESTDIR)$(INCPATH)/pngconf.h 63 -@rm -f $(DESTDIR)$(INCPATH)/pnglibconf.h 64 cp png.h $(DESTDIR)$(INCPATH)/libpng 65 cp pngconf.h $(DESTDIR)$(INCPATH)/libpng 66 cp pnglibconf.h $(DESTDIR)$(INCPATH)/libpng 67 chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h 68 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h 69 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pnglibconf.h 70 (cd $(DESTDIR)$(INCPATH); ln -f -s $(LIBNAME) libpng; \ 71 ln -f -s $(LIBNAME)/* .) 43 install: 44 @echo "The $@ target is no longer supported by this makefile." 45 @false -
trunk/src/libs/libpng-1.6.42/scripts/makefile.bc32
r96425 r103316 51 51 LDFLAGS=-L$(ZLIB_DIR) -M $(LDEBUG) 52 52 53 # Pre-built configuration53 ## Pre-built configuration 54 54 # See scripts\pnglibconf.mak for more options 55 55 !ifndef PNGLIBCONF_H_PREBUILT … … 57 57 !endif 58 58 59 ## Variables59 ## File lists 60 60 OBJS = \ 61 61 png.obj \ … … 122 122 $(CP) $(PNGLIBCONF_H_PREBUILT) $@ 123 123 124 png.obj: png.cpng.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h124 png.obj: png.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 125 125 pngerror.obj: pngerror.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 126 pngget.obj: pngget.cpng.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h127 pngmem.obj: pngmem.cpng.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h126 pngget.obj: pngget.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 127 pngmem.obj: pngmem.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 128 128 pngpread.obj: pngpread.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 129 pngread.obj: pngread.cpng.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h130 pngrio.obj: pngrio.cpng.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h129 pngread.obj: pngread.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 130 pngrio.obj: pngrio.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 131 131 pngrtran.obj: pngrtran.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 132 132 pngrutil.obj: pngrutil.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 133 pngset.obj: pngset.cpng.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h133 pngset.obj: pngset.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 134 134 pngtrans.obj: pngtrans.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 135 pngwio.obj: pngwio.cpng.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h135 pngwio.obj: pngwio.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 136 136 pngwrite.obj: pngwrite.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 137 137 pngwtran.obj: pngwtran.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 138 138 pngwutil.obj: pngwutil.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 139 pngtest.obj: pngtest.cpng.h pngconf.h pnglibconf.h139 pngtest.obj: pngtest.c png.h pngconf.h pnglibconf.h 140 140 141 141 $(LIBNAME): $(OBJS) -
trunk/src/libs/libpng-1.6.42/scripts/makefile.beos
r96425 r103316 1 1 # makefile for libpng on BeOS x86 ELF with gcc 2 2 # modified from makefile.linux by Sander Stoks 3 # Copyright (C) 2020-2022 Cosmin Truta 3 4 # Copyright (C) 2002, 2006, 2008, 2010-2014 Glenn Randers-Pehrson 4 5 # Copyright (C) 1999 Greg Roelofs … … 11 12 # Library name: 12 13 LIBNAME=libpng16 13 PNGMAJ =1614 PNGMAJ=16 14 15 15 16 # Shared library names: 16 17 LIBSO=$(LIBNAME).so 17 18 LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) 18 LIBSOREL=$(LIBSOMAJ).$(RELEASE)19 OLDSO=libpng.so20 19 21 20 # Utilities: 22 21 CC=gcc 23 22 AR_RC=ar rc 23 RANLIB=ranlib 24 24 MKDIR_P=mkdir -p 25 25 LN_SF=ln -sf 26 RANLIB=ranlib27 26 CP=cp 28 27 RM_F=/bin/rm -f … … 38 37 WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ 39 38 -Wmissing-declarations -Wtraditional -Wcast-align \ 40 -Wstrict-prototypes -Wmissing-prototypes # -Wconversion39 -Wstrict-prototypes -Wmissing-prototypes # -Wconversion 41 40 42 41 # On BeOS, -O1 is actually better than -O3. This is a known bug but it's 43 42 # still here in R4.5 44 43 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 45 CFLAGS=- W -Wall -O1 -funroll-loops $(ALIGN)# $(WARNMORE) -g44 CFLAGS=-O1 -funroll-loops $(ALIGN) -Wall -Wextra -Wundef # $(WARNMORE) -g 46 45 # LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng -lz 47 LDFLAGS=-L. -Wl,-soname=$(LIBSOMAJ) -L$(ZLIBLIB) -lz 48 49 # where make install puts libpng.a, libpng16.so*, and png.h 50 prefix=/usr/local 51 exec_prefix=$(prefix) 52 INCPATH=$(prefix)/include 53 LIBPATH=$(exec_prefix)/lib 54 MANPATH=$(prefix)/man 55 BINPATH=$(exec_prefix)/bin 56 57 # override DESTDIR= on the make install command line to easily support 58 # installing into a temporary location. Example: 59 # 60 # make install DESTDIR=/tmp/build/libpng 61 # 62 # If you're going to install into a temporary location 63 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before 64 # you execute make install. 65 DESTDIR= 66 67 DB=$(DESTDIR)$(BINPATH) 68 DI=$(DESTDIR)$(INCPATH) 69 DL=$(DESTDIR)$(LIBPATH) 70 DM=$(DESTDIR)$(MANPATH) 46 LDFLAGS=-L. -Wl,-soname=$(LIBSOMAJ) -L$(ZLIBLIB) -lz # -g 71 47 72 48 # Pre-built configuration … … 74 50 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 75 51 76 OBJS = png.o png set.o pngget.o pngrutil.o pngtrans.o pngwutil.o \77 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \78 pngwtran.o pngmem.o pngerror.o pngpread.o52 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 53 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 54 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 79 55 80 56 OBJSDLL = $(OBJS) … … 85 61 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< 86 62 87 all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config63 all: libpng.a $(LIBSO) pngtest 88 64 89 65 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT) … … 94 70 $(RANLIB) $@ 95 71 96 libpng.pc:97 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \98 -e s!@exec_prefix@!$(exec_prefix)! \99 -e s!@libdir@!$(LIBPATH)! \100 -e s!@includedir@!$(INCPATH)! \101 -e s!-lpng16!-lpng16\ -lz\ -lm! > libpng.pc102 103 libpng-config:104 ( cat scripts/libpng-config-head.in; \105 echo prefix=\"$(prefix)\"; \106 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \107 echo libs=\"-lpng16 -lz \"; \108 cat scripts/libpng-config-body.in ) > libpng-config109 chmod +x libpng-config110 111 72 $(LIBSO): $(LIBSOMAJ) 112 73 $(LN_SF) $(LIBSOMAJ) $(LIBSO) … … 114 75 115 76 $(LIBSOMAJ): $(OBJSDLL) 116 $(CC) -nostart -Wl,-soname,$(LIBSOMAJ) -o\117 $(LIBSOMAJ) $(OBJSDLL) $(LDFLAGS)77 $(CC) -nostart -Wl,-soname,$(LIBSOMAJ) \ 78 -o $(LIBSOMAJ) $(OBJSDLL) $(LDFLAGS) 118 79 119 80 pngtest: pngtest.o $(LIBSO) … … 123 84 ./pngtest 124 85 125 install-headers: png.h pngconf.h pnglibconf.h 126 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 127 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 128 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 129 chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h 130 -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h 131 -@$(RM_F) $(DI)/libpng 132 (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) 86 install: 87 @echo "The $@ target is no longer supported by this makefile." 88 @false 133 89 134 install-static: install-headers libpng.a 135 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 136 cp libpng.a $(DL)/$(LIBNAME).a 137 chmod 644 $(DL)/$(LIBNAME).a 138 -@$(RM_F) $(DL)/libpng.a 139 (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) 90 install-static: 91 @echo "The $@ target is no longer supported by this makefile." 92 @false 140 93 141 install-shared: install-headers $(LIBSOMAJ) libpng.pc 142 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 143 -@$(RM_F) $(DL)/$(LIBSO) 144 -@$(RM_F) $(DL)/$(LIBSOREL) 145 -@$(RM_F) $(DL)/$(OLDSO) 146 cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) 147 chmod 755 $(DL)/$(LIBSOREL) 148 (cd $(DL); \ 149 $(LN_SF) $(LIBSOREL) $(LIBSO); \ 150 $(LN_SF) $(LIBSO) $(OLDSO)) 151 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi 152 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc 153 -@$(RM_F) $(DL)/pkgconfig/libpng.pc 154 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc 155 chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc 156 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) 157 158 install-man: libpng.3 libpngpf.3 png.5 159 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi 160 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi 161 -@$(RM_F) $(DM)/man3/libpng.3 162 -@$(RM_F) $(DM)/man3/libpngpf.3 163 cp libpng.3 $(DM)/man3 164 cp libpngpf.3 $(DM)/man3 165 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi 166 -@$(RM_F) $(DM)/man5/png.5 167 cp png.5 $(DM)/man5 168 169 install-config: libpng-config 170 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi 171 -@$(RM_F) $(DB)/libpng-config 172 -@$(RM_F) $(DB)/$(LIBNAME)-config 173 cp libpng-config $(DB)/$(LIBNAME)-config 174 chmod 755 $(DB)/$(LIBNAME)-config 175 (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) 176 177 install: install-static install-shared install-man install-config 178 179 # If you installed in $(DESTDIR), test-installed won't work until you 180 # move the library to its final location. Use test-dd to test it 181 # before then. 182 183 test-dd: 184 echo 185 echo Testing installed dynamic shared library in $(DL). 186 $(CC) -I$(DI) $(CPPFLAGS) $(CFLAGS) \ 187 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 188 -L$(DL) -L$(ZLIBLIB) -Wl,-rpath $(ZLIBLIB):$(DL) \ 189 -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` 190 ./pngtestd pngtest.png 191 192 test-installed: 193 $(CC) $(CPPFLAGS) $(CFLAGS) \ 194 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 195 -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \ 196 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` 197 ./pngtesti pngtest.png 94 install-shared: 95 @echo "The $@ target is no longer supported by this makefile." 96 @false 198 97 199 98 clean: 200 $(RM_F) *.o libpng.a pngtest pngout.png libpng-config \ 201 $(LIBSO) $(LIBSOMAJ)* pngtesti \ 202 pnglibconf.h libpng.pc 99 $(RM_F) *.o libpng.a pngtest pngout.png 100 $(RM_F) $(LIBSO) $(LIBSOMAJ)* pnglibconf.h 203 101 204 102 # DO NOT DELETE THIS LINE -- make depend depends on it. 205 103 206 png.o png.pic.o:png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h104 png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 207 105 pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 208 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 209 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 210 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 211 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 212 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 213 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 106 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 107 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 108 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 109 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 110 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 214 111 pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 215 112 pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 113 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 216 114 pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 115 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 217 116 pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 218 117 pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 219 118 pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 220 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h221 119 222 120 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.clang
r96425 r103316 1 1 # makefile for libpng using clang (generic, static library) 2 # Copyright (C) 2000, 2014, 2019-2022 Cosmin Truta 2 3 # Copyright (C) 2008, 2014 Glenn Randers-Pehrson 3 # Copyright (C) 2000, 2014, 2019 Cosmin Truta4 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. 5 5 # … … 20 20 RM_F = rm -f 21 21 22 # Compiler and linker flags 23 NOHWOPT = -DPNG_ARM_NEON_OPT=0 -DPNG_MIPS_MSA_OPT=0 \ 24 -DPNG_POWERPC_VSX_OPT=0 -DPNG_INTEL_SSE_OPT=0 22 25 WARNMORE = -Wwrite-strings -Wpointer-arith -Wshadow \ 23 26 -Wmissing-declarations -Wtraditional -Wcast-align \ 24 27 -Wstrict-prototypes -Wmissing-prototypes # -Wconversion 25 CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5 26 CFLAGS = -W -Wall -O2 # $(WARNMORE) -g 27 LDFLAGS = -L$(ZLIBLIB) 28 DEFS = $(NOHWOPT) 29 CPPFLAGS = -I$(ZLIBINC) $(DEFS) # -DPNG_DEBUG=5 30 CFLAGS = -O2 -Wall -Wextra -Wundef # $(WARNMORE) -g 31 LDFLAGS = -L$(ZLIBLIB) # -g 28 32 LIBS = -lz -lm 29 33 … … 35 39 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 36 40 37 # Variables38 OBJS = 39 40 41 # File lists 42 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 43 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 44 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 41 45 42 46 # Targets -
trunk/src/libs/libpng-1.6.42/scripts/makefile.darwin
r96425 r103316 1 # makefile for libpng on Darwin / Mac OS X 1 # makefile for libpng on Darwin / macOS 2 # Copyright (C) 2020-2022 Cosmin Truta 2 3 # Copyright (C) 2002, 2004, 2006, 2008, 2010-2014 Glenn Randers-Pehrson 3 4 # Copyright (C) 2001 Christoph Pfisterer … … 10 11 # and license in png.h 11 12 12 # where "make install" puts libpng.a, libpng16.dylib, png.h, pngconf.h,13 # and pnglibconf.h14 prefix=/usr/local15 exec_prefix=$(prefix)16 17 13 # Where the zlib library and include files are located 18 14 ZLIBLIB=/usr/lib … … 20 16 21 17 # Library name: 22 LIBNAME =libpng1623 PNGMAJ =1618 LIBNAME=libpng16 19 PNGMAJ=16 24 20 25 21 # Shared library names: 26 22 LIBSO=$(LIBNAME).dylib 27 23 LIBSOMAJ=$(LIBNAME).$(PNGMAJ).dylib 28 LIBSOREL=$(LIBNAME).$(PNGMAJ).$(RELEASE).dylib29 OLDSO=libpng.dylib30 24 31 25 # Utilities: 32 26 CC=cc 33 27 AR_RC=ar rc 28 RANLIB=ranlib 34 29 MKDIR_P=mkdir -p 35 30 LN_SF=ln -sf 36 RANLIB=ranlib37 31 CP=cp 38 RM_F= /bin/rm -f32 RM_F=rm -f 39 33 40 CPPFLAGS=-I$(ZLIBINC) 41 # CFLAGS=-W -Wall -O3 -funroll-loops 42 CFLAGS=-W -Wall -O -funroll-loops 34 NOHWOPT=-DPNG_ARM_NEON_OPT=0 -DPNG_MIPS_MSA_OPT=0 \ 35 -DPNG_POWERPC_VSX_OPT=0 -DPNG_INTEL_SSE_OPT=0 36 DEFS=$(NOHWOPT) 37 CPPFLAGS=-I$(ZLIBINC) $(DEFS) 38 CFLAGS=-O3 -funroll-loops -Wall -Wextra -Wundef 43 39 LDFLAGS=-L. -L$(ZLIBLIB) -lpng16 -lz 44 45 INCPATH=$(prefix)/include46 LIBPATH=$(exec_prefix)/lib47 MANPATH=$(prefix)/man48 BINPATH=$(exec_prefix)/bin49 50 # override DESTDIR= on the make install command line to easily support51 # installing into a temporary location. Example:52 #53 # make install DESTDIR=/tmp/build/libpng54 #55 # If you're going to install into a temporary location56 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before57 # you execute make install.58 DESTDIR=59 60 DB=$(DESTDIR)$(BINPATH)61 DI=$(DESTDIR)$(INCPATH)62 DL=$(DESTDIR)$(LIBPATH)63 DM=$(DESTDIR)$(MANPATH)64 40 65 41 # Pre-built configuration … … 67 43 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 68 44 69 OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ 70 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ 71 pngwtran.o pngmem.o pngerror.o pngpread.o 45 # File lists 46 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 47 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 48 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 72 49 73 50 OBJSDLL = $(OBJS:.o=.pic.o) … … 81 58 $(CC) -c $(CPPFLAGS) $(CFLAGS) -fno-common -o $@ $*.c 82 59 83 all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config60 all: libpng.a $(LIBSO) pngtest 84 61 85 62 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT) … … 90 67 $(RANLIB) $@ 91 68 92 libpng.pc:93 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \94 -e s!@exec_prefix@!$(exec_prefix)! \95 -e s!@libdir@!$(LIBPATH)! \96 -e s!@includedir@!$(INCPATH)! \97 -e s!-lpng16!-lpng16\ -lz! > libpng.pc98 99 libpng-config:100 ( cat scripts/libpng-config-head.in; \101 echo prefix=\"$(prefix)\"; \102 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \103 echo L_opts=\"-L$(LIBPATH)\"; \104 echo libs=\"-lpng16 -lz\"; \105 cat scripts/libpng-config-body.in ) > libpng-config106 chmod +x libpng-config107 108 69 $(LIBSO): $(LIBSOMAJ) 109 70 $(LN_SF) $(LIBSOMAJ) $(LIBSO) … … 111 72 $(LIBSOMAJ): $(OBJSDLL) 112 73 $(CC) -dynamiclib \ 113 -install_name $(LIBPATH)/$(LIBSOMAJ) \114 74 -current_version 16 -compatibility_version 16 \ 115 75 -o $(LIBSOMAJ) \ … … 122 82 ./pngtest 123 83 124 install-headers: png.h pngconf.h pnglibconf.h 125 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 126 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 127 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 128 chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h 129 -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h 130 -@$(RM_F) $(DI)/libpng 131 (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) 84 install: 85 @echo "The $@ target is no longer supported by this makefile." 86 @false 132 87 133 install-static: install-headers libpng.a 134 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 135 cp libpng.a $(DL)/$(LIBNAME).a 136 chmod 644 $(DL)/$(LIBNAME).a 137 $(RANLIB) $(DL)/$(LIBNAME).a 138 -@$(RM_F) $(DL)/libpng.a 139 (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) 88 install-static: 89 @echo "The $@ target is no longer supported by this makefile." 90 @false 140 91 141 install-shared: install-headers $(LIBSOMAJ) libpng.pc 142 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 143 -@$(RM_F) $(DL)/$(LIBSO) 144 -@$(RM_F) $(DL)/$(LIBSOMAJ) 145 -@$(RM_F) $(DL)/$(OLDSO) 146 cp $(LIBSOMAJ) $(DL) 147 chmod 755 $(DL)/$(LIBSOMAJ) 148 (cd $(DL); \ 149 $(LN_SF) $(LIBSOREL) $(LIBSO); \ 150 $(LN_SF) $(LIBSO) $(OLDSO)) 151 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi 152 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc 153 -@$(RM_F) $(DL)/pkgconfig/libpng.pc 154 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc 155 chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc 156 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) 157 158 install-man: libpng.3 libpngpf.3 png.5 159 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi 160 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi 161 -@$(RM_F) $(DM)/man3/libpng.3 162 -@$(RM_F) $(DM)/man3/libpngpf.3 163 cp libpng.3 $(DM)/man3 164 cp libpngpf.3 $(DM)/man3 165 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi 166 -@$(RM_F) $(DM)/man5/png.5 167 cp png.5 $(DM)/man5 168 169 install-config: libpng-config 170 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi 171 -@$(RM_F) $(DB)/libpng-config 172 -@$(RM_F) $(DB)/$(LIBNAME)-config 173 cp libpng-config $(DB)/$(LIBNAME)-config 174 chmod 755 $(DB)/$(LIBNAME)-config 175 (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) 176 177 install: install-static install-shared install-man install-config 178 179 # If you installed in $(DESTDIR), test-installed won't work until you 180 # move the library to its final location. Use test-dd to test it 181 # before then. 182 183 test-dd: 184 echo 185 echo Testing installed dynamic shared library in $(DL). 186 $(CC) -I$(DI) $(CPPFLAGS) \ 187 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 188 -L$(DL) -L$(ZLIBLIB) \ 189 -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` 190 ./pngtestd pngtest.png 191 192 test-installed: 193 $(CC) $(CPPFLAGS) $(CFLAGS) \ 194 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 195 -L$(ZLIBLIB) \ 196 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` 197 ./pngtesti pngtest.png 92 install-shared: 93 @echo "The $@ target is no longer supported by this makefile." 94 @false 198 95 199 96 clean: 200 $(RM_F) *.o libpng.a pngtest pngout.png libpng-config \ 201 libpng.pc $(LIBNAME).*dylib pngtesti pnglibconf.h 202 203 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO 204 writelock: 205 chmod a-w *.[ch35] $(DOCS) scripts/* 97 $(RM_F) *.o libpng.a pngtest pngout.png 98 $(RM_F) $(LIBNAME).*dylib pnglibconf.h 206 99 207 100 # DO NOT DELETE THIS LINE -- make depend depends on it. 208 101 209 png.o png.pic.o:png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h102 png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 210 103 pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 211 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 212 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 213 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 214 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 215 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 216 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 104 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 105 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 106 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 107 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 108 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 217 109 pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 218 110 pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 111 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 219 112 pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 113 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 220 114 pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 221 115 pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 222 116 pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 223 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h224 117 225 118 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.dec
r96425 r103316 1 1 # makefile for libpng on DEC Alpha Unix 2 # Copyright (C) 2020-2022 Cosmin Truta 2 3 # Copyright (C) 2000-2002, 2006, 2010-2014 Glenn Randers-Pehrson 3 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 8 9 9 10 # Library name: 10 PNGMAJ =1611 LIBNAME = libpng1611 LIBNAME=libpng16 12 PNGMAJ=16 12 13 13 14 # Shared library names: 14 15 LIBSO=$(LIBNAME).so 15 16 LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) 16 LIBSOREL=$(LIBSOMAJ).$(RELEASE)17 OLDSO=libpng.so18 17 19 18 # Utilities: 19 CC=cc 20 20 AR_RC=ar rc 21 CC=cc 21 RANLIB=ranlib 22 22 MKDIR_P=mkdir 23 23 LN_SF=ln -f -s 24 RANLIB=ranlib25 24 CP=cp 26 25 RM_F=/bin/rm -f 27 28 # where make install puts libpng.a and png.h29 prefix=/usr/local30 exec_prefix=$(prefix)31 INCPATH=$(prefix)/include32 LIBPATH=$(exec_prefix)/lib33 MANPATH=$(prefix)/man34 BINPATH=$(exec_prefix)/bin35 36 # override DESTDIR= on the make install command line to easily support37 # installing into a temporary location. Example:38 #39 # make install DESTDIR=/tmp/build/libpng40 #41 # If you're going to install into a temporary location42 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before43 # you execute make install.44 DESTDIR=45 46 DB=$(DESTDIR)$(BINPATH)47 DI=$(DESTDIR)$(INCPATH)48 DL=$(DESTDIR)$(LIBPATH)49 DM=$(DESTDIR)$(MANPATH)50 26 51 27 # Where the zlib library and include files are located … … 63 39 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 64 40 65 OBJS = png.o png set.o pngget.o pngrutil.o pngtrans.o pngwutil.o \66 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \67 pngwtran.o pngmem.o pngerror.o pngpread.o41 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 42 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 43 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 68 44 69 45 .c.o: 70 46 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< 71 47 72 all: $(LIBSO) libpng.a pngtest libpng.pc libpng-config48 all: $(LIBSO) libpng.a pngtest 73 49 74 50 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT) … … 76 52 77 53 libpng.a: $(OBJS) 78 $(AR_RC) $@ 54 $(AR_RC) $@ $(OBJS) 79 55 $(RANLIB) $@ 80 81 libpng.pc:82 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \83 -e s!@exec_prefix@!$(exec_prefix)! \84 -e s!@libdir@!$(LIBPATH)! \85 -e s!@includedir@!$(INCPATH)! \86 -e s!-lpng16!-lpng16\ -lz\ -lm! > libpng.pc87 88 libpng-config:89 ( cat scripts/libpng-config-head.in; \90 echo prefix=\"$(prefix)\"; \91 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \92 echo ccopts=\"-std\"; \93 echo L_opts=\"-L$(LIBPATH)\"; \94 echo libs=\"-lpng16 -lz -lm\"; \95 cat scripts/libpng-config-body.in ) > libpng-config96 chmod +x libpng-config97 56 98 57 $(LIBSO): $(LIBSOMAJ) … … 100 59 101 60 $(LIBSOMAJ): $(OBJS) 102 $(CC) -shared -o $@ $(OBJS) -L$(ZLIBLIB) \ 103 -soname $(LIBSOMAJ) 61 $(CC) -shared -o $@ $(OBJS) -L$(ZLIBLIB) -soname $(LIBSOMAJ) 104 62 105 63 pngtest: pngtest.o libpng.a … … 109 67 ./pngtest 110 68 111 install-headers: png.h pngconf.h pnglibconf.h 112 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 113 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 114 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 115 chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h 116 -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h 117 -@/bin/rm -f $(DI)/libpng 118 (cd $(DI); $(LN_SF)(LIBNAME) libpng; $(LN_SF)(LIBNAME)/* .) 69 install: 70 @echo "The $@ target is no longer supported by this makefile." 71 @false 119 72 120 install-static: install-headers libpng.a 121 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 122 cp libpng.a $(DL)/$(LIBNAME).a 123 chmod 644 $(DL)/$(LIBNAME).a 124 -@/bin/rm -f $(DL)/libpng.a 125 (cd $(DL); $(LN_SF)(LIBNAME).a libpng.a) 73 install-static: 74 @echo "The $@ target is no longer supported by this makefile." 75 @false 126 76 127 install-shared: install-headers $(LIBSOMAJ) libpng.pc 128 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 129 -@$(RM_F) $(DL)/$(LIBSO) 130 -@$(RM_F) $(DL)/$(LIBSOREL) 131 -@$(RM_F) $(DL)/$(OLDSO) 132 cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) 133 chmod 755 $(DL)/$(LIBSOREL) 134 (cd $(DL); \ 135 $(LN_SF) $(LIBSOREL) $(LIBSO); \ 136 $(LN_SF) $(LIBSO) $(OLDSO)) 137 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi 138 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc 139 -@$(RM_F) $(DL)/pkgconfig/libpng.pc 140 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc 141 chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc 142 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) 143 144 install-man: libpng.3 libpngpf.3 png.5 145 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi 146 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi 147 -@/bin/rm -f $(DM)/man3/libpng.3 148 -@/bin/rm -f $(DM)/man3/libpngpf.3 149 cp libpng.3 $(DM)/man3 150 cp libpngpf.3 $(DM)/man3 151 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi 152 -@/bin/rm -f $(DM)/man5/png.5 153 cp png.5 $(DM)/man5 154 155 install-config: libpng-config 156 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi 157 -@/bin/rm -f $(DB)/libpng-config 158 -@/bin/rm -f $(DB)/$(LIBNAME)-config 159 cp libpng-config $(DB)/$(LIBNAME)-config 160 chmod 755 $(DB)/$(LIBNAME)-config 161 (cd $(DB); $(LN_SF)(LIBNAME)-config libpng-config) 162 163 install: install-static install-shared install-man install-config 164 165 # If you installed in $(DESTDIR), test-installed won't work until you 166 # move the library to its final location. Use test-dd to test it 167 # before then. 168 169 test-dd: 170 echo 171 echo Testing installed dynamic shared library in $(DL). 172 $(CC) -w1 -I$(DI) $(CPPFLAGS) \ 173 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 174 -L$(DL) -L$(ZLIBLIB) -R$(ZLIBLIB) -R$(DL) \ 175 -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` 176 ./pngtestd pngtest.png 177 178 test-installed: 179 echo 180 echo Testing installed dynamic shared library. 181 $(CC) -w1 $(CPPFLAGS) \ 182 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 183 -L$(ZLIBLIB) -R$(ZLIBLIB) \ 184 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` 185 ./pngtesti pngtest.png 77 install-shared: 78 @echo "The $@ target is no longer supported by this makefile." 79 @false 186 80 187 81 clean: 188 $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ 189 libpng-config $(LIBSO) $(LIBSOMAJ)* \ 190 libpng.pc pnglibconf.h 82 $(RM_F) *.o libpng.a pngtest pngout.png 83 $(RM_F) $(LIBSO) $(LIBSOMAJ)* pnglibconf.h 191 84 192 85 # DO NOT DELETE THIS LINE -- make depend depends on it. 193 86 194 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h87 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 195 88 pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 196 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 197 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 198 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 199 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 200 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 201 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 89 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 90 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 91 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 92 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 93 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 202 94 pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 203 95 pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 96 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 204 97 pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 98 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 205 99 pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 206 100 pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 207 101 pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 208 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h209 102 210 pngtest.o: png.h pngconf.h pnglibconf.h103 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.dj2
r96425 r103316 1 1 # DJGPP (DOS gcc) makefile for libpng 2 # Copyright (C) 2020-2022 Cosmin Truta 2 3 # Copyright (C) 2002, 2006, 2009-2014 Glenn Randers-Pehrson 3 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 7 8 # and license in png.h 8 9 9 # where make install will put libpng.a and png.h10 #prefix=/usr/local11 prefix=.12 INCPATH=$(prefix)/include13 LIBPATH=$(prefix)/lib14 15 10 CC=gcc 16 11 CPPFLAGS=-I../zlib -DPNG_NO_SNPRINTF 17 12 CFLAGS=-O 18 13 LDFLAGS=-L. -L../zlib/ -lpng -lz -lm 19 20 RANLIB=ranlib21 14 22 15 CP=cp … … 27 20 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 28 21 29 OBJS = png.o png set.o pngget.o pngrutil.o pngtrans.o pngwutil.o \30 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o pngwtran.o \31 pngmem.o pngerror.o pngpread.o22 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 23 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 24 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 32 25 33 26 .c.o: … … 40 33 41 34 libpng.a: $(OBJS) 42 ar rc $@ 43 $(RANLIB)$@35 ar rc $@ $(OBJS) 36 ranlib $@ 44 37 45 38 pngtest: pngtest.o libpng.a … … 49 42 test: pngtest 50 43 ./pngtest 44 45 install: 46 @echo "The $@ target is no longer supported by this makefile." 47 @false 48 51 49 clean: 52 50 $(RM_F) *.o libpng.a pngtest pngout.png pnglibconf.h … … 54 52 # DO NOT DELETE THIS LINE -- make depend depends on it. 55 53 56 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h54 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 57 55 pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 58 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h59 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h60 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h61 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h62 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h63 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h56 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 57 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 58 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 59 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 60 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 61 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 64 62 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 65 63 pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h … … 70 68 pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 71 69 72 pngtest.o: png.h pngconf.h pnglibconf.h70 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.freebsd
r96425 r103316 1 1 # makefile for libpng under FreeBSD 2 # Copyright (C) 2020-2022 Cosmin Truta 2 3 # Copyright (C) 2014 Glenn Randers-Pehrson and Andrey A. Chernov 3 4 # Copyright (C) 2002, 2007, 2009 Glenn Randers-Pehrson and Andrey A. Chernov … … 7 8 # and license in png.h 8 9 9 PREFIX?= /usr/local10 SHLIB_VER?= 1611 12 10 LIB= png 11 SHLIB_VER= 16 13 12 SHLIB_MAJOR= ${SHLIB_VER} 14 13 SHLIB_MINOR= 0 15 NO_PROFILE= YES16 NO_OBJ= YES17 14 18 # where make install puts libpng.a and png.h19 DESTDIR= ${PREFIX}20 LIBDIR= /lib21 INCS= png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h22 INCSDIR= /include/libpng23 INCDIR= ${INCSDIR} # for 4.x bsd.lib.mk24 MAN= libpng.3 libpngpf.3 png.525 MANDIR= /man/man26 SYMLINKS= libpng/png.h ${INCSDIR}/../png.h \27 libpng/pngconf.h ${INCSDIR}/../pngconf.h \28 libpng/pnglibconf.h ${INCSDIR}/../pnglibconf.h29 30 # where make install finds libz.a and zlib.h31 15 ZLIBLIB= /usr/lib 32 16 ZLIBINC= /usr/include … … 38 22 39 23 CPPFLAGS+= -I. -I${ZLIBINC} 40 CFLAGS+= -W -Wall 24 CFLAGS+= -Wall -Wextra -Wundef 25 LDFLAGS+= -L. -L${ZLIBLIB} 26 27 CLEANFILES+= pngtest pngtest.o pngout.png 41 28 42 29 # Pre-built configuration … … 44 31 PNGLIBCONF_H_PREBUILT= scripts/pnglibconf.h.prebuilt 45 32 46 SRCS= png.c png set.c pngget.c pngrutil.c pngtrans.c pngwutil.c \47 pngread.c pngrio.c png wio.c pngwrite.c pngrtran.c \48 png wtran.c pngmem.c pngerror.c pngpread.c33 SRCS= png.c pngerror.c pngget.c pngmem.c pngpread.c \ 34 pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c \ 35 pngtrans.c pngwio.c pngwrite.c pngwtran.c pngwutil.c 49 36 50 37 .c.o: 51 $ (CC) -c $(CPPFLAGS) $(CFLAGS)-o $@ $<38 ${CC} -c ${CPPFLAGS} ${CFLAGS} -o $@ $< 52 39 53 pngtest: pngtest.o libpng.a 54 ${CC} ${CFLAGS} -L. -static -o pngtest pngtest.o -L${ZLIBLIB} \ 55 -lpng ${LDADD} 40 pnglibconf.h: ${PNGLIBCONF_H_PREBUILT} 41 cp ${PNGLIBCONF_H_PREBUILT} $@ 56 42 57 CLEANFILES= pngtest pngtest.o pngout.png 43 pngtest: pngtest.o libpng.a 44 ${CC} ${LDFLAGS} -static -o pngtest pngtest.o -lpng ${LDADD} 58 45 59 test: 46 test: pngtest 60 47 ./pngtest 61 48 62 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT) 63 cp $(PNGLIBCONF_H_PREBUILT) $@ 64 65 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO 66 writelock: 67 chmod a-w *.[ch35] $(DOCS) scripts/* 49 install: 50 @echo "The $@ target is no longer supported by this makefile." 51 @false 68 52 69 53 .include <bsd.lib.mk> -
trunk/src/libs/libpng-1.6.42/scripts/makefile.gcc
r96425 r103316 1 1 # makefile for libpng using gcc (generic, static library) 2 # Copyright (C) 2000, 2014, 2019-2022 Cosmin Truta 2 3 # Copyright (C) 2008, 2014 Glenn Randers-Pehrson 3 # Copyright (C) 2000, 2014, 2019 Cosmin Truta4 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. 5 5 # … … 20 20 RM_F = rm -f 21 21 22 # Compiler and linker flags 23 NOHWOPT = -DPNG_ARM_NEON_OPT=0 -DPNG_MIPS_MSA_OPT=0 \ 24 -DPNG_POWERPC_VSX_OPT=0 -DPNG_INTEL_SSE_OPT=0 22 25 WARNMORE = -Wwrite-strings -Wpointer-arith -Wshadow \ 23 26 -Wmissing-declarations -Wtraditional -Wcast-align \ 24 27 -Wstrict-prototypes -Wmissing-prototypes # -Wconversion 25 CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5 26 CFLAGS = -W -Wall -O2 # $(WARNMORE) -g 27 LDFLAGS = -L$(ZLIBLIB) 28 DEFS = $(NOHWOPT) 29 CPPFLAGS = -I$(ZLIBINC) $(DEFS) # -DPNG_DEBUG=5 30 CFLAGS = -O2 -Wall -Wextra -Wundef # $(WARNMORE) -g 31 LDFLAGS = -L$(ZLIBLIB) # -g 28 32 LIBS = -lz -lm 29 33 … … 35 39 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 36 40 37 # Variables38 OBJS = 39 40 41 # File lists 42 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 43 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 44 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 41 45 42 46 # Targets -
trunk/src/libs/libpng-1.6.42/scripts/makefile.hp64
r96425 r103316 1 1 # makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product. 2 # Copyright (C) 2020-2022 Cosmin Truta 2 3 # Copyright (C) 1999-2002, 2006, 2009, 2010-2014 Glenn Randers-Pehrson 3 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42 … … 20 21 21 22 # Library name: 22 LIBNAME =libpng1623 PNGMAJ =1623 LIBNAME=libpng16 24 PNGMAJ=16 24 25 25 26 # Shared library names: 26 27 LIBSO=$(LIBNAME).sl 27 28 LIBSOMAJ=$(LIBNAME).sl.$(PNGMAJ) 28 LIBSOREL=$(LIBSOMAJ).$(RELEASE)29 OLDSO=libpng.sl30 29 31 30 # Utilities: 31 CC=cc 32 32 AR_RC=ar rc 33 CC=cc 33 RANLIB=ranlib 34 34 MKDIR_P=mkdir -p 35 35 LN_SF=ln -sf 36 RANLIB=ranlib37 36 CP=cp 38 37 RM_F=/bin/rm -f … … 46 45 LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm 47 46 48 # where make install puts libpng.a, libpng16.sl, and png.h49 prefix=/opt/libpng50 exec_prefix=$(prefix)51 INCPATH=$(prefix)/include52 LIBPATH=$(exec_prefix)/lib53 MANPATH=$(prefix)/man54 BINPATH=$(exec_prefix)/bin55 56 # override DESTDIR= on the make install command line to easily support57 # installing into a temporary location. Example:58 #59 # make install DESTDIR=/tmp/build/libpng60 #61 # If you're going to install into a temporary location62 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before63 # you execute make install.64 DESTDIR=65 66 DB=$(DESTDIR)$(BINPATH)67 DI=$(DESTDIR)$(INCPATH)68 DL=$(DESTDIR)$(LIBPATH)69 DM=$(DESTDIR)$(MANPATH)70 71 47 # Pre-built configuration 72 48 # See scripts/pnglibconf.mak for more options 73 49 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 74 50 75 OBJS = png.o png set.o pngget.o pngrutil.o pngtrans.o pngwutil.o \76 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \77 pngwtran.o pngmem.o pngerror.o pngpread.o51 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 52 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 53 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 78 54 79 55 OBJSDLL = $(OBJS:.o=.pic.o) … … 87 63 $(CC) -c $(CPPFLAGS) $(CFLAGS) +z -o $@ $*.c 88 64 89 all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config65 all: libpng.a $(LIBSO) pngtest 90 66 91 67 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT) … … 95 71 $(AR_RC) $@ $(OBJS) 96 72 $(RANLIB) $@ 97 98 libpng.pc:99 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \100 -e s!@exec_prefix@!$(exec_prefix)! \101 -e s!@libdir@!$(LIBPATH)! \102 -e s!@includedir@!$(INCPATH)! \103 -e s!-lpng16!-lpng16\ -lz\ -lm! > libpng.pc104 105 libpng-config:106 ( cat scripts/libpng-config-head.in; \107 echo prefix=\"$(prefix)\"; \108 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \109 echo ccopts=\"-O -Ae -Wl,+vnocompatwarnings +DD64 +Z\"; \110 echo L_opts=\"-L$(LIBPATH)\"; \111 echo libs=\"-lpng16 -lz -lm\"; \112 cat scripts/libpng-config-body.in ) > libpng-config113 chmod +x libpng-config114 73 115 74 $(LIBSO): $(LIBSOMAJ) … … 126 85 ./pngtest 127 86 128 install-headers: png.h pngconf.h pnglibconf.h 129 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 130 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 131 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 132 chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h 133 -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h 134 -@$(RM_F) $(DI)/libpng 135 (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) 87 install: 88 @echo "The $@ target is no longer supported by this makefile." 89 @false 136 90 137 install-static: install-headers libpng.a 138 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 139 cp libpng.a $(DL)/$(LIBNAME).a 140 chmod 644 $(DL)/$(LIBNAME).a 141 -@$(RM_F) $(DL)/libpng.a 142 (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) 91 install-static: 92 @echo "The $@ target is no longer supported by this makefile." 93 @false 143 94 144 install-shared: install-headers $(LIBSOMAJ) libpng.pc 145 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 146 -@$(RM_F) $(DL)/$(LIBSO) 147 -@$(RM_F) $(DL)/$(LIBSOREL) 148 -@$(RM_F) $(DL)/$(OLDSO) 149 cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) 150 chmod 755 $(DL)/$(LIBSOREL) 151 (cd $(DL); \ 152 $(LN_SF) $(LIBSOREL) $(LIBSO); \ 153 $(LN_SF) $(LIBSO) $(OLDSO)) 154 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi 155 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc 156 -@$(RM_F) $(DL)/pkgconfig/libpng.pc 157 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc 158 chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc 159 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) 160 161 install-man: libpng.3 libpngpf.3 png.5 162 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi 163 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi 164 -@$(RM_F) $(DM)/man3/libpng.3 165 -@$(RM_F) $(DM)/man3/libpngpf.3 166 cp libpng.3 $(DM)/man3 167 cp libpngpf.3 $(DM)/man3 168 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi 169 -@$(RM_F) $(DM)/man5/png.5 170 cp png.5 $(DM)/man5 171 172 install-config: libpng-config 173 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi 174 -@$(RM_F) $(DB)/libpng-config 175 -@$(RM_F) $(DB)/$(LIBNAME)-config 176 cp libpng-config $(DB)/$(LIBNAME)-config 177 chmod 755 $(DB)/$(LIBNAME)-config 178 (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) 179 180 install: install-static install-shared install-man install-config 181 182 # If you installed in $(DESTDIR), test-installed won't work until you 183 # move the library to its final location. Use test-dd to test it 184 # before then. 185 186 test-dd: 187 echo 188 echo Testing installed dynamic shared library in $(DL). 189 $(CC) -I$(DI) $(CPPFLAGS) $(CCFLAGS) \ 190 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 191 -L$(DL) -L$(ZLIBLIB) \ 192 -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` 193 ./pngtestd pngtest.png 194 195 test-installed: 196 echo 197 echo Testing installed dynamic shared library. 198 $(CC) $(CPPFLAGS) $(CCFLAGS) \ 199 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 200 -L$(ZLIBLIB) \ 201 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` 202 ./pngtesti pngtest.png 95 install-shared: 96 @echo "The $@ target is no longer supported by this makefile." 97 @false 203 98 204 99 clean: 205 $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ 206 libpng-config $(LIBSO) $(LIBSOMAJ)* \ 207 libpng.pc pnglibconf.h 208 209 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO 210 writelock: 211 chmod a-w *.[ch35] $(DOCS) scripts/* 100 $(RM_F) *.o libpng.a pngtest pngout.png 101 $(RM_F) $(LIBSO) $(LIBSOMAJ)* pnglibconf.h 212 102 213 103 # DO NOT DELETE THIS LINE -- make depend depends on it. 214 104 215 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h105 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 216 106 pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 217 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 218 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 219 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 220 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 221 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 222 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 107 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 108 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 109 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 110 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 111 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 223 112 pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 224 113 pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 114 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 225 115 pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 116 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 226 117 pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 227 118 pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 228 119 pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 229 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h230 120 231 pngtest.o: png.h pngconf.h pnglibconf.h121 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.hpgcc
r96425 r103316 1 1 # makefile for libpng on HP-UX using GCC with the HP ANSI/C linker. 2 # Copyright (C) 2020-2022 Cosmin Truta 2 3 # Copyright (C) 2002, 2006-2008, 2010-2014 Glenn Randers-Pehrson 3 4 # Copyright (C) 2001, Laurent faillie … … 10 11 11 12 # Library name: 12 LIBNAME =libpng1613 PNGMAJ =1613 LIBNAME=libpng16 14 PNGMAJ=16 14 15 15 16 # Shared library names: 16 17 LIBSO=$(LIBNAME).sl 17 18 LIBSOMAJ=$(LIBNAME).sl.$(PNGMAJ) 18 LIBSOREL=$(LIBSOMAJ).$(RELEASE)19 OLDSO=libpng.sl20 19 21 20 # Utilities: … … 23 22 LD=ld 24 23 AR_RC=ar rc 24 RANLIB=ranlib 25 25 MKDIR_P=mkdir -p 26 26 LN_SF=ln -sf 27 RANLIB=ranlib28 27 CP=cp 29 28 RM_F=/bin/rm -f 30 31 # where "make install" puts libpng.a, $(OLDSO)*, png.h, pngconf.h32 # and pnglibconf.h33 prefix=/usr/local34 exec_prefix=$(prefix)35 29 36 30 # Where the zlib library and include files are located … … 45 39 # SHAREDLIB=libz.sl 46 40 47 ALIGN=48 # for i386:49 #ALIGN=-malign-loops=2 -malign-functions=250 51 41 WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ 52 42 -Wmissing-declarations -Wtraditional -Wcast-align \ 53 -Wstrict-prototypes -Wmissing-prototypes #-Wconversion 54 55 # for pgcc version 2.95.1, -O3 is buggy; don't use it. 43 -Wstrict-prototypes -Wmissing-prototypes # -Wconversion 56 44 57 45 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 58 CFLAGS=- W -Wall -O3 -funroll-loops $(ALIGN)# $(WARNMORE) -g59 #LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng16 -lz -lm 60 LDFLAGS=-L. -L$(ZLIBLIB) -lpng16 -lz -lm 46 CFLAGS=-O3 -funroll-loops -Wall -Wextra -Wundef # $(WARNMORE) -g 47 #LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng16 -lz -lm # -g 48 LDFLAGS=-L. -L$(ZLIBLIB) -lpng16 -lz -lm # -g 61 49 62 INCPATH=$(prefix)/include 63 LIBPATH=$(exec_prefix)/lib 64 MANPATH=$(prefix)/man 65 BINPATH=$(exec_prefix)/bin 66 67 # override DESTDIR= on the make install command line to easily support 68 # installing into a temporary location. Example: 69 # 70 # make install DESTDIR=/tmp/build/libpng 71 # 72 # If you're going to install into a temporary location 73 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before 74 # you execute make install. 75 DESTDIR= 76 77 DB=$(DESTDIR)$(BINPATH) 78 DI=$(DESTDIR)$(INCPATH) 79 DL=$(DESTDIR)$(LIBPATH) 80 DM=$(DESTDIR)$(MANPATH) 81 82 OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ 83 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ 84 pngwtran.o pngmem.o pngerror.o pngpread.o 50 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 51 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 52 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 85 53 86 54 OBJSDLL = $(OBJS:.o=.pic.o) … … 94 62 $(CC) -c $(CPPFLAGS) $(CFLAGS) -fPIC -o $@ $*.c 95 63 96 all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config64 all: libpng.a $(LIBSO) pngtest 97 65 98 66 libpng.a: $(OBJS) 99 67 $(AR_RC) $@ $(OBJS) 100 68 $(RANLIB) $@ 101 102 libpng.pc:103 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \104 -e s!@exec_prefix@!$(exec_prefix)! \105 -e s!@libdir@!$(LIBPATH)! \106 -e s!@includedir@!$(INCPATH)! \107 -e s!-lpng16!-lpng16\ -lz\ -lm! > libpng.pc108 109 libpng-config:110 ( cat scripts/libpng-config-head.in; \111 echo prefix=\"$(prefix)\"; \112 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \113 echo libs=\"-lpng16 -lz -lm\"; \114 cat scripts/libpng-config-body.in ) > libpng-config115 chmod +x libpng-config116 69 117 70 $(LIBSO): $(LIBSOMAJ) … … 128 81 ./pngtest 129 82 83 install: 84 @echo "The $@ target is no longer supported by this makefile." 85 @false 130 86 131 install-headers: png.h pngconf.h pnglibconf.h 132 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 133 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 134 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 135 chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h 136 -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h 137 -@$(RM_F) $(DI)/libpng 138 (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) 87 install-static: 88 @echo "The $@ target is no longer supported by this makefile." 89 @false 139 90 140 install-static: install-headers libpng.a 141 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 142 cp libpng.a $(DL)/$(LIBNAME).a 143 chmod 644 $(DL)/$(LIBNAME).a 144 -@$(RM_F) $(DL)/libpng.a 145 (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) 146 147 install-shared: install-headers $(LIBSOMAJ) libpng.pc 148 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 149 -@$(RM_F) $(DL)/$(LIBSO) 150 -@$(RM_F) $(DL)/$(LIBSOREL) 151 -@$(RM_F) $(DL)/$(OLDSO) 152 cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) 153 chmod 755 $(DL)/$(LIBSOREL) 154 (cd $(DL); \ 155 $(LN_SF) $(LIBSOREL) $(LIBSO); \ 156 $(LN_SF) $(LIBSO) $(OLDSO)) 157 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi 158 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc 159 -@$(RM_F) $(DL)/pkgconfig/libpng.pc 160 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc 161 chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc 162 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) 163 164 install-man: libpng.3 libpngpf.3 png.5 165 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi 166 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi 167 -@$(RM_F) $(DM)/man3/libpng.3 168 -@$(RM_F) $(DM)/man3/libpngpf.3 169 cp libpng.3 $(DM)/man3 170 cp libpngpf.3 $(DM)/man3 171 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi 172 -@$(RM_F) $(DM)/man5/png.5 173 cp png.5 $(DM)/man5 174 175 install-config: libpng-config 176 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi 177 -@$(RM_F) $(DB)/libpng-config 178 -@$(RM_F) $(DB)/$(LIBNAME)-config 179 cp libpng-config $(DB)/$(LIBNAME)-config 180 chmod 755 $(DB)/$(LIBNAME)-config 181 (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) 182 183 install: install-static install-shared install-man install-config 184 185 # If you installed in $(DESTDIR), test-installed won't work until you 186 # move the library to its final location. Use test-dd to test it 187 # before then. 188 189 test-dd: 190 echo 191 echo Testing installed dynamic shared library in $(DL). 192 $(CC) -I$(DI) $(CPPFLAGS) \ 193 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 194 -L$(DL) -L$(ZLIBLIB) -Wl,-rpath,$(DL) -Wl,-rpath,$(ZLIBLIB) \ 195 -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` 196 ./pngtestd pngtest.png 197 198 test-installed: 199 echo 200 echo Testing installed dynamic shared library. 201 $(CC) $(CPPFLAGS) \ 202 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 203 -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \ 204 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` 205 ./pngtesti pngtest.png 91 install-shared: 92 @echo "The $@ target is no longer supported by this makefile." 93 @false 206 94 207 95 clean: 208 $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ 209 libpng-config $(LIBSO) $(LIBSOMAJ)* \ 210 libpng.pc pnglibconf.h 211 212 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO 213 writelock: 214 chmod a-w *.[ch35] $(DOCS) scripts/* 96 $(RM_F) *.o libpng.a pngtest pngout.png 97 $(RM_F) $(LIBSO) $(LIBSOMAJ)* pnglibconf.h 215 98 216 99 # DO NOT DELETE THIS LINE -- make depend depends on it. 217 100 218 png.o png.pic.o:png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h101 png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 219 102 pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 220 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 221 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 222 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 223 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 224 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 225 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 103 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 104 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 105 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 106 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 107 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 226 108 pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 227 109 pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 110 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 228 111 pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 112 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 229 113 pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 230 114 pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 231 115 pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 232 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h233 116 234 117 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.hpux
r96425 r103316 1 1 # makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product. 2 # Copyright (C) 2020-2022 Cosmin Truta 2 3 # Copyright (C) 1999-2002, 2006, 2010-2014 Glenn Randers-Pehrson 3 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42 … … 21 22 22 23 # Library name: 23 LIBNAME =libpng1624 PNGMAJ =1624 LIBNAME=libpng16 25 PNGMAJ=16 25 26 26 27 # Shared library names: 27 28 LIBSO=$(LIBNAME).sl 28 29 LIBSOMAJ=$(LIBNAME).sl.$(PNGMAJ) 29 LIBSOREL=$(LIBSOMAJ).$(RELEASE)30 OLDSO=libpng.sl31 30 32 31 # Utilities: 32 CC=cc 33 33 AR_RC=ar rc 34 CC=cc 34 RANLIB=ranlib 35 35 MKDIR_P=mkdir -p 36 36 LN_SF=ln -sf 37 RANLIB=ranlib38 37 RM_F=/bin/rm -f 39 40 # where make install puts libpng.a, libpng16.sl, and png.h41 prefix=/opt/libpng42 exec_prefix=$(prefix)43 INCPATH=$(prefix)/include44 LIBPATH=$(exec_prefix)/lib45 MANPATH=$(prefix)/man46 BINPATH=$(exec_prefix)/bin47 38 48 39 CPPFLAGS=-I$(ZLIBINC) … … 52 43 LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm 53 44 54 # override DESTDIR= on the make install command line to easily support55 # installing into a temporary location. Example:56 #57 # make install DESTDIR=/tmp/build/libpng58 #59 # If you're going to install into a temporary location60 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before61 # you execute make install.62 DESTDIR=63 64 DB=$(DESTDIR)$(BINPATH)65 DI=$(DESTDIR)$(INCPATH)66 DL=$(DESTDIR)$(LIBPATH)67 DM=$(DESTDIR)$(MANPATH)68 69 45 # Pre-built configuration 70 46 # See scripts/pnglibconf.mak for more options 71 47 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 72 48 73 OBJS = png.o png set.o pngget.o pngrutil.o pngtrans.o pngwutil.o \74 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \75 pngwtran.o pngmem.o pngerror.o pngpread.o49 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 50 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 51 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 76 52 77 53 OBJSDLL = $(OBJS:.o=.pic.o) … … 85 61 $(CC) -c $(CPPFLAGS) $(CFLAGS) +z -o $@ $*.c 86 62 87 all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config63 all: libpng.a $(LIBSO) pngtest 88 64 89 65 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT) … … 93 69 $(AR_RC) $@ $(OBJS) 94 70 $(RANLIB) $@ 95 96 libpng.pc:97 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \98 -e s!@exec_prefix@!$(exec_prefix)! \99 -e s!@libdir@!$(LIBPATH)! \100 -e s!@includedir@!$(INCPATH)! \101 -e s!-lpng16!-lpng16\ -lz\ -lm! > libpng.pc102 103 libpng-config:104 ( cat scripts/libpng-config-head.in; \105 echo prefix=\"$(prefix)\"; \106 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \107 echo ccopts=\"-O -Ae +DA1.1 +DS2.0\"; \108 echo L_opts=\"-L$(LIBPATH)\"; \109 echo libs=\"-lpng16 -lz -lm\"; \110 cat scripts/libpng-config-body.in ) > libpng-config111 chmod +x libpng-config112 71 113 72 $(LIBSO): $(LIBSOMAJ) … … 124 83 ./pngtest 125 84 126 install-headers: png.h pngconf.h pnglibconf.h 127 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 128 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 129 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 130 chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h 131 -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h 132 -@$(RM_F) $(DI)/libpng 133 (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) 85 install: 86 @echo "The $@ target is no longer supported by this makefile." 87 @false 134 88 135 install-static: install-headers libpng.a 136 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 137 cp libpng.a $(DL)/$(LIBNAME).a 138 chmod 644 $(DL)/$(LIBNAME).a 139 -@$(RM_F) $(DL)/libpng.a 140 (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) 89 install-static: 90 @echo "The $@ target is no longer supported by this makefile." 91 @false 141 92 142 install-shared: install-headers $(LIBSOMAJ) libpng.pc 143 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 144 -@$(RM_F) $(DL)/$(LIBSO) 145 -@$(RM_F) $(DL)/$(LIBSOREL) 146 -@$(RM_F) $(DL)/$(OLDSO) 147 cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) 148 chmod 755 $(DL)/$(LIBSOREL) 149 (cd $(DL); \ 150 $(LN_SF) $(LIBSOREL) $(LIBSO); \ 151 $(LN_SF) $(LIBSO) $(OLDSO)) 152 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi 153 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc 154 -@$(RM_F) $(DL)/pkgconfig/libpng.pc 155 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc 156 chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc 157 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) 158 159 install-man: libpng.3 libpngpf.3 png.5 160 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi 161 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi 162 -@$(RM_F) $(DM)/man3/libpng.3 163 -@$(RM_F) $(DM)/man3/libpngpf.3 164 cp libpng.3 $(DM)/man3 165 cp libpngpf.3 $(DM)/man3 166 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi 167 -@$(RM_F) $(DM)/man5/png.5 168 cp png.5 $(DM)/man5 169 170 install-config: libpng-config 171 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi 172 -@$(RM_F) $(DB)/libpng-config 173 -@$(RM_F) $(DB)/$(LIBNAME)-config 174 cp libpng-config $(DB)/$(LIBNAME)-config 175 chmod 755 $(DB)/$(LIBNAME)-config 176 (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) 177 178 install: install-static install-shared install-man install-config 179 180 # If you installed in $(DESTDIR), test-installed won't work until you 181 # move the library to its final location. Use test-dd to test it 182 # before then. 183 184 test-dd: 185 echo 186 echo Testing installed dynamic shared library in $(DL). 187 $(CC) -I$(DI) $(CPPFLAGS) $(CCFLAGS) \ 188 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 189 -L$(DL) -L$(ZLIBLIB) \ 190 -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` 191 ./pngtestd pngtest.png 192 193 test-installed: 194 echo 195 echo Testing installed dynamic shared library. 196 $(CC) $(CPPFLAGS) $(CCFLAGS) \ 197 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 198 -L$(ZLIBLIB) \ 199 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` 200 ./pngtesti pngtest.png 93 install-shared: 94 @echo "The $@ target is no longer supported by this makefile." 95 @false 201 96 202 97 clean: 203 $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ 204 libpng-config $(LIBSO) $(LIBSOMAJ)* \ 205 libpng.pc pnglibconf.h 206 207 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO 208 writelock: 209 chmod a-w *.[ch35] $(DOCS) scripts/* 98 $(RM_F) *.o libpng.a pngtest pngout.png 99 $(RM_F) $(LIBSO) $(LIBSOMAJ)* pnglibconf.h 210 100 211 101 # DO NOT DELETE THIS LINE -- make depend depends on it. 212 102 213 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h103 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 214 104 pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 215 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 216 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 217 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 218 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 219 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 220 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 105 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 106 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 107 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 108 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 109 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 221 110 pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 222 111 pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 112 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 223 113 pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 114 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 224 115 pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 225 116 pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 226 117 pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 227 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h228 118 229 pngtest.o: png.h pngconf.h pnglibconf.h119 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.ibmc
r96425 r103316 2 2 # IBM C version 3.x for Win32 and OS/2 3 3 # Copyright (C) 2006, 2014 Glenn Randers-Pehrson 4 # Copyright (C) 2000 Cosmin Truta4 # Copyright (C) 2000, 2020 Cosmin Truta 5 5 # 6 6 # This code is released under the libpng license. … … 38 38 E=.exe 39 39 40 # Variables40 # File lists 41 41 OBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \ 42 43 42 pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \ 43 pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O) 44 44 45 45 LIBS = libpng$(A) $(ZLIBLIB)/zlib$(A) … … 66 66 67 67 clean: 68 $(RM) *$(O)69 $(RM) libpng$(A)70 $(RM) pnglibconf.h71 $(RM) pngtest$(E)72 $(RM) pngout.png68 -$(RM) *$(O) 69 -$(RM) libpng$(A) 70 -$(RM) pnglibconf.h 71 -$(RM) pngtest$(E) 72 -$(RM) pngout.png 73 73 74 74 png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.intel
r96425 r103316 32 32 # -------------------------------------------------------------------------- 33 33 34 CC=icl -c34 CC=icl 35 35 CPPFLAGS=-I$(ZLIBINC) 36 36 CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -nologo … … 43 43 PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt 44 44 45 # File extensions 45 46 O=.obj 46 47 47 OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \ 48 pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \ 49 pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) 48 # File lists 49 OBJS1=png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) 50 OBJS2=pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) 51 OBJS3=pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O) 52 OBJS=$(OBJS1) $(OBJS2) $(OBJS3) 50 53 54 # Targets 51 55 all: test 52 56 … … 55 59 56 60 png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 57 $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 61 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 62 63 pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 64 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 65 66 pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 67 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 68 69 pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 70 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 71 72 pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 73 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 74 75 pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 76 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 77 78 pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 79 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 80 81 pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 82 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 83 84 pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 85 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 58 86 59 87 pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 60 $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)88 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 61 89 62 pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 63 $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 64 65 pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 66 $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 67 68 pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 69 $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 70 71 pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 72 $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 73 74 pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 75 $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 76 77 pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 78 $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 79 80 pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 81 $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 82 83 pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 84 $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 90 pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 91 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 85 92 86 93 pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 87 $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 88 89 pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 90 $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 94 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 91 95 92 96 pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 93 $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)97 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 94 98 95 99 pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 96 $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)100 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 97 101 98 102 pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 99 $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)103 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 100 104 101 105 libpng.lib: $(OBJS) … … 107 111 108 112 pngtest$(O): png.h pngconf.h pnglibconf.h 109 $(CC) $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)113 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 110 114 111 115 test: pngtest.exe 112 116 pngtest.exe 113 117 114 115 118 # End of makefile for libpng -
trunk/src/libs/libpng-1.6.42/scripts/makefile.linux
r96425 r103316 1 1 # makefile for libpng.a and libpng16.so on Linux ELF with gcc 2 # Copyright (C) 2020-2022 Cosmin Truta 2 3 # Copyright (C) 1998, 1999, 2002, 2006, 2008, 2010-2014 Greg Roelofs and 3 4 # Glenn Randers-Pehrson … … 9 10 10 11 # Library name: 11 LIBNAME = libpng16 12 PNGMAJ = 16 13 RELEASE = 37 12 LIBNAME=libpng16 13 PNGMAJ=16 14 14 15 15 # Shared library names: 16 16 LIBSO=$(LIBNAME).so 17 17 LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) 18 LIBSOREL=$(LIBSOMAJ).$(RELEASE)19 OLDSO=libpng.so20 18 21 19 # Utilities: 20 CC=gcc 22 21 AR_RC=ar rc 23 CC=gcc 22 RANLIB=ranlib 24 23 MKDIR_P=mkdir -p 25 24 LN_SF=ln -sf 26 RANLIB=ranlib27 25 CP=cp 28 RM_F=/bin/rm -f 29 30 # where "make install" puts libpng16.a, libpng16.so*, 31 # libpng16/png.h, libpng16/pngconf.h, and libpng16/pnglibconf.h 32 # Prefix must be a full pathname. 33 prefix=/usr/local 34 exec_prefix=$(prefix) 26 RM_F=rm -f 35 27 36 28 # Where the zlib library and include files are located. … … 40 32 ZLIBINC=../zlib 41 33 42 ALIGN= 43 # for i386: 44 #ALIGN=-malign-loops=2 -malign-functions=2 45 34 # Compiler and linker flags 35 NOHWOPT=-DPNG_ARM_NEON_OPT=0 -DPNG_MIPS_MSA_OPT=0 \ 36 -DPNG_POWERPC_VSX_OPT=0 -DPNG_INTEL_SSE_OPT=0 46 37 WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ 47 38 -Wmissing-declarations -Wtraditional -Wcast-align \ 48 -Wstrict-prototypes -Wmissing-prototypes #-Wconversion 49 50 # for pgcc version 2.95.1, -O3 is buggy; don't use it. 51 52 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 53 CFLAGS=-W -Wall -O3 -funroll-loops $(ALIGN) # $(WARNMORE) -g 54 55 LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng16 -lz -lm 56 LDFLAGS_A=-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) libpng.a -lz -lm 57 58 INCPATH=$(prefix)/include 59 LIBPATH=$(exec_prefix)/lib 60 MANPATH=$(prefix)/man 61 BINPATH=$(exec_prefix)/bin 62 63 # override DESTDIR= on the make install command line to easily support 64 # installing into a temporary location. Example: 65 # 66 # make install DESTDIR=/tmp/build/libpng 67 # 68 # If you're going to install into a temporary location 69 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before 70 # you execute make install. 71 DESTDIR= 72 73 DB=$(DESTDIR)$(BINPATH) 74 DI=$(DESTDIR)$(INCPATH) 75 DL=$(DESTDIR)$(LIBPATH) 76 DM=$(DESTDIR)$(MANPATH) 39 -Wstrict-prototypes -Wmissing-prototypes # -Wconversion 40 DEFS=$(NOHWOPT) 41 CPPFLAGS=-I$(ZLIBINC) $(DEFS) # -DPNG_DEBUG=5 42 CFLAGS=-O3 -funroll-loops -Wall -Wextra -Wundef # $(WARNMORE) -g 43 LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng16 -lz -lm # -g 44 LDFLAGS_A=-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) libpng.a -lz -lm # -g 77 45 78 46 # Pre-built configuration … … 80 48 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 81 49 82 OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ 83 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ 84 pngwtran.o pngmem.o pngerror.o pngpread.o 50 # File lists 51 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 52 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 53 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 85 54 86 55 OBJSDLL = $(OBJS:.o=.pic.o) … … 94 63 $(CC) -c $(CPPFLAGS) $(CFLAGS) -fPIC -o $@ $*.c 95 64 96 all: libpng.a $(LIBSO) pngtest pngtest-static libpng.pc libpng-config65 all: libpng.a $(LIBSO) pngtest pngtest-static 97 66 98 67 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT) … … 102 71 $(AR_RC) $@ $(OBJS) 103 72 $(RANLIB) $@ 104 105 libpng.pc:106 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \107 -e s!@exec_prefix@!$(exec_prefix)! \108 -e s!@libdir@!$(LIBPATH)! \109 -e s!@includedir@!$(INCPATH)! \110 -e s!-lpng16!-lpng16\ -lz\ -lm! > libpng.pc111 112 libpng-config:113 ( cat scripts/libpng-config-head.in; \114 echo prefix=\"$(prefix)\"; \115 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \116 echo L_opts=\"-L$(LIBPATH)\"; \117 echo R_opts=\"-Wl,-rpath,$(LIBPATH)\"; \118 echo libs=\"-lpng16 -lz -lm\"; \119 cat scripts/libpng-config-body.in ) > libpng-config120 chmod +x libpng-config121 73 122 74 $(LIBSO): $(LIBSOMAJ) … … 142 94 ./pngtest-static 143 95 144 install-headers: png.h pngconf.h pnglibconf.h 145 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 146 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 147 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 148 chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h 149 -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h 150 -@$(RM_F) $(DI)/libpng 151 (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) 96 install: 97 @echo "The $@ target is no longer supported by this makefile." 98 @false 152 99 153 install-static: install-headers libpng.a 154 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 155 cp libpng.a $(DL)/$(LIBNAME).a 156 chmod 644 $(DL)/$(LIBNAME).a 157 -@$(RM_F) $(DL)/libpng.a 158 (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) 100 install-static: 101 @echo "The $@ target is no longer supported by this makefile." 102 @false 159 103 160 install-shared: install-headers $(LIBSOMAJ) libpng.pc 161 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 162 -@$(RM_F) $(DL)/$(LIBSO) 163 -@$(RM_F) $(DL)/$(LIBSOREL) 164 -@$(RM_F) $(DL)/$(OLDSO) 165 cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) 166 chmod 755 $(DL)/$(LIBSOREL) 167 (cd $(DL); \ 168 $(LN_SF) $(LIBSOREL) $(LIBSO); \ 169 $(LN_SF) $(LIBSO) $(OLDSO)) 170 171 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi 172 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc 173 -@$(RM_F) $(DL)/pkgconfig/libpng.pc 174 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc 175 chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc 176 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) 177 178 install-man: libpng.3 libpngpf.3 png.5 179 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi 180 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi 181 -@$(RM_F) $(DM)/man3/libpng.3 182 -@$(RM_F) $(DM)/man3/libpngpf.3 183 cp libpng.3 $(DM)/man3 184 cp libpngpf.3 $(DM)/man3 185 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi 186 -@$(RM_F) $(DM)/man5/png.5 187 cp png.5 $(DM)/man5 188 189 install-config: libpng-config 190 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi 191 -@$(RM_F) $(DB)/libpng-config 192 -@$(RM_F) $(DB)/$(LIBNAME)-config 193 cp libpng-config $(DB)/$(LIBNAME)-config 194 chmod 755 $(DB)/$(LIBNAME)-config 195 (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) 196 197 install: install-static install-shared install-man install-config 198 199 # If you installed in $(DESTDIR), test-installed won't work until you 200 # move the library to its final location. Use test-dd to test it 201 # before then. 202 203 test-dd: 204 echo 205 echo Testing installed dynamic shared library in $(DL). 206 $(CC) -I$(DI) $(CPPFLAGS) \ 207 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 208 -L$(DL) -L$(ZLIBLIB) -Wl, -rpath,$(DL) -Wl,-rpath,$(ZLIBLIB) \ 209 -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` 210 ./pngtestd pngtest.png 211 212 test-installed: 213 $(CC) $(CPPFLAGS) \ 214 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 215 -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \ 216 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` 217 ./pngtesti pngtest.png 104 install-shared: 105 @echo "The $@ target is no longer supported by this makefile." 106 @false 218 107 219 108 clean: 220 $(RM_F) *.o libpng.a pngtest pngout.png libpng-config \ 221 $(LIBSO) $(LIBSOMAJ)* pngtest-static pngtesti \ 222 libpng.pc pnglibconf.h 223 224 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO 225 writelock: 226 chmod a-w *.[ch35] $(DOCS) scripts/* 109 $(RM_F) $(OBJS) $(OBJSDLL) libpng.a 110 $(RM_F) $(LIBSO) $(LIBSOMAJ)* pnglibconf.h 111 $(RM_F) pngtest*.o pngtest pngtest-static pngout.png 227 112 228 113 # DO NOT DELETE THIS LINE -- make depend depends on it. 229 114 230 png.o png.pic.o:png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h115 png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 231 116 pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 232 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 233 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 234 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 235 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 236 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 237 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 117 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 118 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 119 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 120 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 121 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 238 122 pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 239 123 pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 124 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 240 125 pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 126 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 241 127 pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 242 128 pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 243 129 pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 244 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h245 130 246 131 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.mips
r96425 r103316 1 1 # makefile for libpng 2 # Copyright (C) 2020-2022 Cosmin Truta 2 3 # Copyright (C) 1998-2014 Glenn Randers-Pehrson 3 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 7 8 # and license in png.h 8 9 9 # where make install puts libpng.a and png.h10 prefix=/usr/local11 INCPATH=$(prefix)/include12 LIBPATH=$(prefix)/lib13 14 # override DESTDIR= on the make install command line to easily support15 # installing into a temporary location. Example:16 #17 # make install DESTDIR=/tmp/build/libpng18 #19 # If you're going to install into a temporary location20 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before21 # you execute make install.22 DESTDIR=23 24 10 CC=cc 25 11 CPPFLAGS=-I../zlib -DSYSV -Dmips … … 28 14 LDFLAGS=-L. -L../zlib/ -lpng -lz -lm 29 15 16 AR_RC=ar rc 30 17 #RANLIB=ranlib 31 18 RANLIB=echo 32 33 CP=cp34 19 35 20 # Pre-built configuration … … 37 22 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 38 23 39 OBJS = png.o png set.o pngget.o pngrutil.o pngtrans.o pngwutil.o \40 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \41 pngwtran.o pngmem.o pngerror.o pngpread.o24 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 25 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 26 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 42 27 43 28 .c.o: … … 47 32 48 33 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT) 49 $(CP)$(PNGLIBCONF_H_PREBUILT) $@34 cp $(PNGLIBCONF_H_PREBUILT) $@ 50 35 51 36 libpng.a: $(OBJS) 52 ar rc $@$(OBJS)37 $(AR_RC) $@ $(OBJS) 53 38 $(RANLIB) $@ 54 39 … … 59 44 ./pngtest 60 45 61 install: libpng.a 62 -@mkdir $(DESTDIR)$(INCPATH) 63 -@mkdir $(DESTDIR)$(INCPATH)/libpng 64 -@mkdir $(DESTDIR)$(LIBPATH) 65 -@rm -f $(DESTDIR)$(INCPATH)/png.h 66 -@rm -f $(DESTDIR)$(INCPATH)/pngconf.h 67 -@rm -f $(DESTDIR)$(INCPATH)/pnglibconf.h 68 cp png.h $(DESTDIR)$(INCPATH)/libpng 69 cp pngconf.h $(DESTDIR)$(INCPATH)/libpng 70 cp pnglibconf.h $(DESTDIR)$(INCPATH)/libpng 71 chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h 72 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h 73 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pnglibconf.h 74 (cd $(DESTDIR)$(INCPATH); ln -f -s libpng/* .) 75 cp libpng.a $(DESTDIR)$(LIBPATH) 76 chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a 46 install: 47 @echo "The $@ target is no longer supported by this makefile." 48 @false 77 49 78 50 clean: 79 51 rm -f *.o libpng.a pngtest pngout.png pnglibconf.h 80 52 81 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO82 writelock:83 chmod a-w *.[ch35] $(DOCS) scripts/*84 85 53 # DO NOT DELETE THIS LINE -- make depend depends on it. 86 54 87 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h55 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 88 56 pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 89 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 90 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 91 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 92 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 93 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 94 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 57 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 58 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 95 59 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 60 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 61 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 96 62 pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 97 63 pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 64 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 98 65 pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 66 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 99 67 pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 100 68 pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 101 69 pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 102 70 103 pngtest.o: png.h pngconf.h pnglibconf.h71 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.msys
r96425 r103316 1 1 # makefile for libpng using MSYS/gcc (shared, static library) 2 # Copyright (C) 2019 Cosmin Truta2 # Copyright (C) 2019-2022 Cosmin Truta 3 3 # Copyright (C) 2012 Glenn Randers-Pehrson and Christopher M. Wheeler 4 4 # … … 13 13 # For conditions of distribution and use, see the disclaimer 14 14 # and license in png.h 15 # # # # # # # # # # # # # # # # #16 prefix=/usr/local17 exec_prefix=$(prefix)18 15 19 16 # Library name: 20 LIBNAME = libpng16 21 PNGMAJ = 16 22 RELEASE = 37 17 LIBNAME=libpng16 18 PNGMAJ=16 23 19 24 20 # Shared library names: 25 21 LIBSO=$(LIBNAME).dll 26 22 LIBSOMAJ=$(LIBNAME).dll.$(PNGMAJ) 27 LIBSOREL=$(PNGMAJ).$(RELEASE)28 OLDSO=libpng.dll29 23 30 24 # Where the zlib library and include files are located. … … 44 38 LN_SF=ln -sf 45 39 46 #ARCH = -march=pentium347 #ARCH = -march=i68648 ARCH =49 40 CPPFLAGS = # -DPNG_DEBUG=5 50 CFLAGS = - W -Wall -O2 $(ARCH)# -g51 LDFLAGS = 41 CFLAGS = -O2 -Wall -Wextra -Wundef # -g 42 LDFLAGS = # -g 52 43 LIBS = -lz -lm 53 44 … … 55 46 EXEEXT=.exe 56 47 57 INCPATH=$(prefix)/include58 LIBPATH=$(exec_prefix)/lib59 MANPATH=$(prefix)/man60 BINPATH=$(exec_prefix)/bin61 62 # override DESTDIR= on the make install command line to easily support63 # installing into a temporary location. Example:64 #65 # make install DESTDIR=/tmp/build/libpng66 #67 # If you're going to install into a temporary location68 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before69 # you execute make install.70 71 DESTDIR=72 73 DB=$(DESTDIR)$(BINPATH)74 DI=$(DESTDIR)$(INCPATH)75 DL=$(DESTDIR)$(LIBPATH)76 DM=$(DESTDIR)$(MANPATH)77 78 48 # Pre-built configuration 79 49 # See scripts/pnglibconf.mak for more options 80 50 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 81 51 82 # Variables83 OBJS = 84 85 52 # File lists 53 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 54 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 55 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 86 56 87 57 # Targets … … 109 79 $(RANLIB) $@ 110 80 111 install-headers: png.h pngconf.h pnglibconf.h 112 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 113 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 114 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 115 -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h 116 -@$(RM_F) $(DI)/libpng 117 (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) 81 install: 82 @echo "The $@ target is no longer supported by this makefile." 83 @false 118 84 119 install-static: install-headers libpng.a 120 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 121 cp libpng.a $(DL)/$(LIBNAME).a 122 -@$(RM_F) $(DL)/libpng.a 123 (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) 85 install-static: 86 @echo "The $@ target is no longer supported by this makefile." 87 @false 124 88 125 libpng.pc: 126 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \ 127 -e s!@exec_prefix@!$(exec_prefix)! \ 128 -e s!@libdir@!$(LIBPATH)! \ 129 -e s!@includedir@!$(INCPATH)! \ 130 -e s!-lpng16!-lpng16\ -lz\ -lm! > libpng.pc 131 132 libpng-config: 133 ( cat scripts/libpng-config-head.in; \ 134 echo prefix=\"$(prefix)\"; \ 135 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ 136 echo L_opts=\"-L$(LIBPATH)\"; \ 137 echo R_opts=\"-Wl,-rpath,$(LIBPATH)\"; \ 138 echo libs=\"-lpng16 -lz -lm\"; \ 139 cat scripts/libpng-config-body.in ) > libpng-config 140 141 install-shared: install-headers $(LIBSOMAJ) libpng.pc 142 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 143 -@$(RM_F) $(DL)/$(LIBSO) 144 -@$(RM_F) $(DL)/$(OLDSO) 145 cp $(LIBSO) $(DL)/$(LIBSOREL) 146 (cd $(DL); \ 147 $(LN_SF) $(LIBSOREL) $(LIBSO); \ 148 $(LN_SF) $(LIBSO) $(OLDSO)) 149 150 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi 151 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc 152 -@$(RM_F) $(DL)/pkgconfig/libpng.pc 153 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc 154 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) 155 156 install-man: libpng.3 libpngpf.3 png.5 157 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi 158 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi 159 -@$(RM_F) $(DM)/man3/libpng.3 160 -@$(RM_F) $(DM)/man3/libpngpf.3 161 cp libpng.3 $(DM)/man3 162 cp libpngpf.3 $(DM)/man3 163 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi 164 -@$(RM_F) $(DM)/man5/png.5 165 cp png.5 $(DM)/man5 166 167 install-config: libpng-config 168 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi 169 -@$(RM_F) $(DB)/libpng-config 170 -@$(RM_F) $(DB)/$(LIBNAME)-config 171 cp libpng-config $(DB)/$(LIBNAME)-config 172 (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) 173 174 install: install-static install-shared install-man install-config 89 install-shared: 90 @echo "The $@ target is no longer supported by this makefile." 91 @false 175 92 176 93 test: pngtest$(EXEEXT) … … 181 98 182 99 clean: 183 $(RM_F) *.o libpng.a pngtest$(EXEEXT) pngout.png pnglibconf.h $(LIBSO) \ 184 $(LIBSOMAJ) libpng-config 100 $(RM_F) $(OBJS) libpng.a 101 $(RM_F) $(LIBSO) $(LIBSOMAJ) pnglibconf.h 102 $(RM_F) pngtest*.o pngtest$(EXEEXT) pngout.png 185 103 186 104 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.netbsd
r96425 r103316 1 # makefile for libpng for NetBSD for the standard2 # make obj && make depend && make && make test3 # make includes && make install1 # makefile for libpng on NetBSD 2 # Copyright (C) 2020-2022 Cosmin Truta 3 # Copyright (C) 2007-2009, 2014 Glenn Randers-Pehrson 4 4 # Copyright (C) 2002 Patrick R.L. Welche 5 # Copyright (C) 2007-2009, 2014 Glenn Randers-Pehrson6 5 # 7 6 # This code is released under the libpng license. … … 9 8 # and license in png.h 10 9 11 LOCALBASE?=/usr/local12 LIBDIR= ${LOCALBASE}/lib13 MANDIR= ${LOCALBASE}/man14 INCSDIR=${LOCALBASE}/include15 16 10 SHLIB_MAJOR= 16 17 SHLIB_MINOR= 1.6.3711 SHLIB_MINOR= 0 18 12 19 13 LIB= png 20 14 SRCS= png.c pngerror.c pngget.c pngmem.c pngpread.c \ 21 pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c\22 png wio.c pngwrite.c pngwtran.c pngwutil.c15 pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c \ 16 pngtrans.c pngwio.c pngwrite.c pngwtran.c pngwutil.c 23 17 INCS= png.h pngconf.h pnglibconf.h 24 MAN= libpng.3 libpngpf.3 png.525 18 26 CPPFLAGS+=-I${.CURDIR} 19 CPPFLAGS+= -I${.CURDIR} 20 CFLAGS+= -Wall -Wextra -Wundef 21 22 CLEANFILES+= pngtest.o pngtest pnglibconf.h 27 23 28 24 # Pre-built configuration … … 36 32 # .endif 37 33 38 CLEANFILES+=pngtest.o pngtest pnglibconf.h39 40 34 .c.o: 41 35 ${CC} -c ${CPPFLAGS} ${CFLAGS} -o $@ $< 42 36 43 pnglibconf.h: 37 pnglibconf.h: ${PNGLIBCONF_H_PREBUILT} 44 38 cp ${PNGLIBCONF_H_PREBUILT} $@ 45 39 … … 51 45 52 46 test: pngtest 53 cd ${.CURDIR} && ${.OBJDIR}/pngtest 47 ./pngtest 48 49 install: 50 @echo "The $@ target is no longer supported by this makefile." 51 @false 54 52 55 53 .include <bsd.lib.mk> -
trunk/src/libs/libpng-1.6.42/scripts/makefile.openbsd
r96425 r103316 1 1 # makefile for libpng 2 # Copyright (C) 2020-2022 Cosmin Truta 2 3 # Copyright (C) 2007-2009, 2014 Glenn Randers-Pehrson 3 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 7 8 # and license in png.h 8 9 9 PREFIX?= /usr/local10 LIBDIR= ${PREFIX}/lib11 MANDIR= ${PREFIX}/man/cat12 13 10 SHLIB_MAJOR= 16 14 SHLIB_MINOR= 1.6.3711 SHLIB_MINOR= 0 15 12 16 13 LIB= png 17 14 SRCS= png.c pngerror.c pngget.c pngmem.c pngpread.c \ 18 pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c\19 png wio.c pngwrite.c pngwtran.c pngwutil.c15 pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c \ 16 pngtrans.c pngwio.c pngwrite.c pngwtran.c pngwutil.c 20 17 HDRS= png.h pngconf.h pnglibconf.h 21 MAN= libpng.3 libpngpf.3 png.522 DOCS= ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO \23 libpng-manual.txt24 18 25 C FLAGS+= -W -Wall26 C PPFLAGS+= -I${.CURDIR}19 CPPFLAGS+= -I${.CURDIR} 20 CFLAGS+= -Wall -Wextra -Wundef 27 21 28 NOPROFILE= Yes 29 30 CLEANFILES+= pngtest.o pngtest pnglibconf.h 22 CLEANFILES+= pngtest.o pngtest pnglibconf.h 31 23 32 24 # Pre-built configuration … … 37 29 ${CC} -c ${CPPFLAGS} ${CFLAGS} -o $@ $< 38 30 39 pnglibconf.h: 31 pnglibconf.h: ${PNGLIBCONF_H_PREBUILT} 40 32 cp ${PNGLIBCONF_H_PREBUILT} $@ 41 33 … … 47 39 48 40 test: pngtest 49 cd ${.OBJDIR} && env \ 50 LD_LIBRARY_PATH="${.OBJDIR}" ${.OBJDIR}/pngtest 41 env LD_LIBRARY_PATH="${.OBJDIR}" ./pngtest 51 42 52 beforeinstall: 53 if [ ! -d ${DESTDIR}${PREFIX}/include/libpng ]; then \ 54 ${INSTALL} -d -o root -g wheel ${DESTDIR}${PREFIX}/include; \ 55 fi 56 if [ ! -d ${DESTDIR}${LIBDIR} ]; then \ 57 ${INSTALL} -d -o root -g wheel ${DESTDIR}${LIBDIR}; \ 58 fi 59 if [ ! -d ${DESTDIR}${LIBDIR}/debug ]; then \ 60 ${INSTALL} -d -o root -g wheel ${DESTDIR}${LIBDIR}/debug; \ 61 fi 62 if [ ! -d ${DESTDIR}${MANDIR}3 ]; then \ 63 ${INSTALL} -d -o root -g wheel ${DESTDIR}${MANDIR}3; \ 64 fi 65 if [ ! -d ${DESTDIR}${MANDIR}5 ]; then \ 66 ${INSTALL} -d -o root -g wheel ${DESTDIR}${MANDIR}5; \ 67 fi 68 if [ ! -d ${DESTDIR}${PREFIX}/share/doc/png ]; then \ 69 ${INSTALL} -d -o root -g wheel ${DESTDIR}${PREFIX}/share/doc/png; \ 70 fi 71 72 afterinstall: 73 @rm -f ${DESTDIR}${LIBDIR}/libpng_pic.a 74 @rm -f ${DESTDIR}${LIBDIR}/debug/libpng.a 75 @rm -f ${DESTDIR}${PREFIX}/include/png.h 76 @rm -f ${DESTDIR}${PREFIX}/include/pngconf.h 77 @rm -f ${DESTDIR}${PREFIX}/include/pnglibconf.h 78 @rmdir ${DESTDIR}${LIBDIR}/debug 2>/dev/null || true 79 ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \ 80 -m ${NONBINMODE} ${HDRS} ${DESTDIR}${PREFIX}/include 81 ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \ 82 -m ${NONBINMODE} ${HDRS} ${DESTDIR}${PREFIX}/include 83 ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \ 84 -m ${NONBINMODE} ${DOCS} ${DESTDIR}${PREFIX}/share/doc/png 43 install: 44 @echo "The $@ target is no longer supported by this makefile." 45 @false 85 46 86 47 .include <bsd.lib.mk> -
trunk/src/libs/libpng-1.6.42/scripts/makefile.sco
r96425 r103316 2 2 # Contributed by Mike Hopkirk (hops at sco.com) modified from Makefile.lnx 3 3 # force ELF build dynamic linking, SONAME setting in lib and RPATH in app 4 # Copyright (C) 2020-2022 Cosmin Truta 4 5 # Copyright (C) 2002, 2006, 2010-2014 Glenn Randers-Pehrson 5 6 # Copyright (C) 1998 Greg Roelofs … … 11 12 12 13 # Library name: 13 LIBNAME =libpng1614 PNGMAJ =1614 LIBNAME=libpng16 15 PNGMAJ=16 15 16 16 17 # Shared library names: 17 18 LIBSO=$(LIBNAME).so 18 19 LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) 19 LIBSOREL=$(LIBSOMAJ).$(RELEASE)20 OLDSO=libpng.so21 20 22 21 # Utilities: 23 22 CC=cc 24 23 AR_RC=ar rc 24 RANLIB=echo 25 25 MKDIR_P=mkdir 26 26 LN_SF=ln -f -s 27 RANLIB=echo28 27 CP=cp 29 28 RM_F=/bin/rm -f 30 31 # where make install puts libpng.a, $(OLDSO)*, and png.h32 prefix=/usr/local33 exec_prefix=$(prefix)34 29 35 30 # Where the zlib library and include files are located … … 43 38 LDFLAGS=-L. -L$(ZLIBLIB) -lpng16 -lz -lm 44 39 45 INCPATH=$(prefix)/include46 LIBPATH=$(exec_prefix)/lib47 MANPATH=$(prefix)/man48 BINPATH=$(exec_prefix)/bin49 50 # override DESTDIR= on the make install command line to easily support51 # installing into a temporary location. Example:52 #53 # make install DESTDIR=/tmp/build/libpng54 #55 # If you're going to install into a temporary location56 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before57 # you execute make install.58 DESTDIR=59 60 DB=$(DESTDIR)$(BINPATH)61 DI=$(DESTDIR)$(INCPATH)62 DL=$(DESTDIR)$(LIBPATH)63 DM=$(DESTDIR)$(MANPATH)64 65 40 # Pre-built configuration 66 41 # See scripts/pnglibconf.mak for more options 67 42 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 68 43 69 OBJS = png.o png set.o pngget.o pngrutil.o pngtrans.o pngwutil.o \70 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \71 pngwtran.o pngmem.o pngerror.o pngpread.o44 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 45 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 46 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 72 47 73 48 OBJSDLL = $(OBJS:.o=.pic.o) … … 81 56 $(CC) -c $(CPPFLAGS) $(CFLAGS) -KPIC -o $@ $*.c 82 57 83 all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config58 all: libpng.a $(LIBSO) pngtest 84 59 85 60 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT) … … 89 64 $(AR_RC) $@ $(OBJS) 90 65 $(RANLIB) $@ 91 92 libpng.pc:93 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \94 -e s!@exec_prefix@!$(exec_prefix)! \95 -e s!@libdir@!$(LIBPATH)! \96 -e s!@includedir@!$(INCPATH)! \97 -e s!-lpng16!-lpng16\ -lz\ -lm! > libpng.pc98 99 libpng-config:100 ( cat scripts/libpng-config-head.in; \101 echo prefix=\"$(prefix)\"; \102 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \103 echo ccopts=\"-belf\"; \104 echo L_opts=\"-L$(LIBPATH)\"; \105 echo libs=\"-lpng16 -lz -lm\"; \106 cat scripts/libpng-config-body.in ) > libpng-config107 chmod +x libpng-config108 66 109 67 $(LIBSO): $(LIBSOMAJ) … … 120 78 ./pngtest 121 79 122 install-headers: png.h pngconf.h pnglibconf.h 123 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 124 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 125 -@$(RM_F) $(DI)/png.h 126 -@$(RM_F) $(DI)/pngconf.h 127 -@$(RM_F) $(DI)/pnglibconf.h 128 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 129 chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h 130 -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h 131 -@$(RM_F) $(DI)/libpng 132 (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) 80 install: 81 @echo "The $@ target is no longer supported by this makefile." 82 @false 133 83 134 install-static: install-headers libpng.a 135 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 136 cp libpng.a $(DL)/$(LIBNAME).a 137 chmod 644 $(DL)/$(LIBNAME).a 138 -@$(RM_F) $(DL)/libpng.a 139 (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) 84 install-static: 85 @echo "The $@ target is no longer supported by this makefile." 86 @false 140 87 141 install-shared: install-headers $(LIBSOMAJ) libpng.pc 142 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 143 -@$(RM_F) $(DL)/$(LIBSO) 144 -@$(RM_F) $(DL)/$(LIBSOREL) 145 -@$(RM_F) $(DL)/$(OLDSO) 146 cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) 147 chmod 755 $(DL)/$(LIBSOREL) 148 (cd $(DL); \ 149 $(LN_SF) $(LIBSOREL) $(LIBSO); \ 150 $(LN_SF) $(LIBSO) $(OLDSO)) 151 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi 152 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc 153 -@$(RM_F) $(DL)/pkgconfig/libpng.pc 154 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc 155 chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc 156 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) 157 158 install-man: libpng.3 libpngpf.3 png.5 159 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi 160 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi 161 -@$(RM_F) $(DM)/man3/libpng.3 162 -@$(RM_F) $(DM)/man3/libpngpf.3 163 cp libpng.3 $(DM)/man3 164 cp libpngpf.3 $(DM)/man3 165 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi 166 -@$(RM_F) $(DM)/man5/png.5 167 cp png.5 $(DM)/man5 168 169 install-config: libpng-config 170 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi 171 -@$(RM_F) $(DB)/libpng-config 172 -@$(RM_F) $(DB)/$(LIBNAME)-config 173 cp libpng-config $(DB)/$(LIBNAME)-config 174 chmod 755 $(DB)/$(LIBNAME)-config 175 (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) 176 177 install: install-static install-shared install-man install-config 178 179 # If you installed in $(DESTDIR), test-installed won't work until you 180 # move the library to its final location. Use test-dd to test it 181 # before then. 182 183 test-dd: 184 echo 185 echo Testing installed dynamic shared library in $(DL). 186 $(CC) -I$(DI) $(CPPFLAGS) \ 187 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 188 -L$(DL) -L$(ZLIBLIB) \ 189 -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` 190 ./pngtestd pngtest.png 191 192 test-installed: 193 $(CC) $(CPPFLAGS) $(CFLAGS) \ 194 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 195 -L$(ZLIBLIB) \ 196 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` 197 ./pngtesti pngtest.png 88 install-shared: 89 @echo "The $@ target is no longer supported by this makefile." 90 @false 198 91 199 92 clean: 200 $(RM_F) *.o libpng.a pngtest pngout.png libpng-config \ 201 $(LIBSO) $(LIBSOMAJ)* pngtest-static pngtesti \ 202 pnglibconf.h libpng.pc 203 204 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO 205 writelock: 206 chmod a-w *.[ch35] $(DOCS) scripts/* 93 $(RM_F) *.o libpng.a pngtest pngout.png 94 $(RM_F) $(LIBSO) $(LIBSOMAJ)* pngtest-static pnglibconf.h 207 95 208 96 # DO NOT DELETE THIS LINE -- make depend depends on it. 209 97 210 png.o png.pic.o:png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h98 png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 211 99 pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 212 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 213 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 214 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 215 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 216 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 217 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 100 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 101 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 102 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 103 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 104 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 218 105 pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 219 106 pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 107 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 220 108 pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 109 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 221 110 pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 222 111 pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 223 112 pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 224 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h225 113 226 114 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.sggcc
r96425 r103316 1 1 # makefile for libpng.a and libpng16.so, SGI IRIX with 'cc' 2 # Copyright (C) 2020-2022 Cosmin Truta 2 3 # Copyright (C) 2001-2002, 2006, 2010-2014 Glenn Randers-Pehrson 3 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 9 10 # Library name: 10 11 LIBNAME=libpng16 11 PNGMAJ =1612 PNGMAJ=16 12 13 13 14 # Shared library names: 14 15 LIBSO=$(LIBNAME).so 15 16 LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) 16 LIBSOREL=$(LIBSOMAJ).$(RELEASE)17 OLDSO=libpng.so18 17 19 18 # Utilities: 19 CC=gcc 20 20 AR_RC=ar rc 21 CC=gcc 21 RANLIB=echo 22 22 MKDIR_P=mkdir -p 23 23 LN_SF=ln -sf 24 RANLIB=echo25 24 CP=cp 26 25 RM_F=/bin/rm -f 27 28 # Where make install puts libpng.a, libpng16.so, and libpng16/png.h29 # Prefix must be a full pathname.30 31 prefix=/usr/local32 exec_prefix=$(prefix)33 26 34 27 # Where the zlib library and include files are located … … 47 40 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 48 41 CFLAGS=$(ABI) -O $(WARNMORE) -fPIC -mabi=n32 # -g 49 LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm 42 LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm # -g 50 43 LDSHARED=cc $(ABI) -shared -soname $(LIBSOMAJ) \ 51 44 -set_version sgi$(PNGMAJ).0 52 45 # See "man dso" for info about shared objects 53 54 INCPATH=$(prefix)/include55 LIBPATH=$(exec_prefix)/lib56 #LIBPATH=$(exec_prefix)/lib3257 MANPATH=$(prefix)/man58 BINPATH=$(exec_prefix)/bin59 60 # override DESTDIR= on the make install command line to easily support61 # installing into a temporary location. Example:62 #63 # make install DESTDIR=/tmp/build/libpng64 #65 # If you're going to install into a temporary location66 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before67 # you execute make install.68 DESTDIR=69 70 DB=$(DESTDIR)$(BINPATH)71 DI=$(DESTDIR)$(INCPATH)72 DL=$(DESTDIR)$(LIBPATH)73 DM=$(DESTDIR)$(MANPATH)74 46 75 47 # Pre-built configuration … … 77 49 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 78 50 79 OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \80 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \81 pngwtran.o pngmem.o pngerror.o pngpread.o51 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 52 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 53 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 82 54 83 55 .c.o: 84 56 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< 85 57 86 all: libpng.a pngtest shared libpng.pc libpng-config58 all: libpng.a pngtest shared 87 59 88 60 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT) … … 94 66 95 67 shared: $(LIBSOMAJ) 96 97 libpng.pc:98 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \99 -e s!@exec_prefix@!$(exec_prefix)! \100 -e s!@libdir@!$(LIBPATH)! \101 -e s!@includedir@!$(INCPATH)! \102 -e s!-lpng16!-lpng16\ -lz\ -lm! > libpng.pc103 104 libpng-config:105 ( cat scripts/libpng-config-head.in; \106 echo prefix=\"$(prefix)\"; \107 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \108 echo ccopts=\"$(ABI)\"; \109 echo cppflags=\"\"; \110 echo ldopts=\"$(ABI)\"; \111 echo L_opts=\"-L$(LIBPATH)\"; \112 echo libdir=\"$(LIBPATH)\"; \113 echo libs=\"-lpng16 -lz -lm\"; \114 cat scripts/libpng-config-body.in ) > libpng-config115 chmod +x libpng-config116 68 117 69 $(LIBSO): $(LIBSOMAJ) … … 130 82 ./pngtest 131 83 132 install-headers: png.h pngconf.h pnglibconf.h 133 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 134 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 135 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 136 chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h 137 -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h 138 -@$(RM_F) $(DI)/libpng 139 (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) 84 install: 85 @echo "The $@ target is no longer supported by this makefile." 86 @false 140 87 141 install-static: install-headers libpng.a 142 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 143 cp libpng.a $(DL)/$(LIBNAME).a 144 chmod 644 $(DL)/$(LIBNAME).a 145 -@$(RM_F) $(DL)/libpng.a 146 (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) 88 install-static: 89 @echo "The $@ target is no longer supported by this makefile." 90 @false 147 91 148 install-shared: install-headers $(LIBSOMAJ) libpng.pc 149 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 150 -@$(RM_F) $(DL)/$(LIBSO) 151 -@$(RM_F) $(DL)/$(LIBSOREL) 152 -@$(RM_F) $(DL)/$(OLDSO) 153 cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) 154 chmod 755 $(DL)/$(LIBSOREL) 155 (cd $(DL); \ 156 $(LN_SF) $(LIBSOREL) $(LIBSO); \ 157 $(LN_SF) $(LIBSO) $(OLDSO)) 158 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi 159 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc 160 -@$(RM_F) $(DL)/pkgconfig/libpng.pc 161 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc 162 chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc 163 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) 164 165 install-man: libpng.3 libpngpf.3 png.5 166 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi 167 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi 168 -@$(RM_F) $(DM)/man3/libpng.3 169 -@$(RM_F) $(DM)/man3/libpngpf.3 170 cp libpng.3 $(DM)/man3 171 cp libpngpf.3 $(DM)/man3 172 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi 173 -@$(RM_F) $(DM)/man5/png.5 174 cp png.5 $(DM)/man5 175 176 install-config: libpng-config 177 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi 178 -@$(RM_F) $(DB)/libpng-config 179 -@$(RM_F) $(DB)/$(LIBNAME)-config 180 cp libpng-config $(DB)/$(LIBNAME)-config 181 chmod 755 $(DB)/$(LIBNAME)-config 182 (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) 183 184 install: install-static install-shared install-man install-config 185 186 # If you installed in $(DESTDIR), test-installed won't work until you 187 # move the library to its final location. Use test-dd to test it 188 # before then. 189 190 test-dd: 191 echo 192 echo Testing installed dynamic shared library in $(DL). 193 $(CC) -I$(DI) $(CPPFLAGS) \ 194 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 195 -L$(DL) -L$(ZLIBLIB) \ 196 -rpath $(ZLIBLIB):$(DL) \ 197 -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` 198 ./pngtestd pngtest.png 199 200 test-installed: 201 echo 202 echo Testing installed dynamic shared library. 203 $(CC) $(CPPFLAGS) \ 204 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 205 -L$(ZLIBLIB) \ 206 -rpath $(ZLIBLIB):`$(BINPATH)/$(LIBNAME)-config --libdir` \ 207 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` 208 ./pngtesti pngtest.png 92 install-shared: 93 @echo "The $@ target is no longer supported by this makefile." 94 @false 209 95 210 96 clean: 211 $(RM_F) libpng.a pngtest pngtesti pngout.png libpng.pc \ 212 so_locations libpng-config $(LIBSO) $(LIBSOMAJ)* pnglibconf.h 213 214 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO 215 writelock: 216 chmod a-w *.[ch35] $(DOCS) scripts/* 97 $(RM_F) libpng.a pngtest pngout.png 98 $(RM_F) so_locations $(LIBSO) $(LIBSOMAJ)* pnglibconf.h 217 99 218 100 # DO NOT DELETE THIS LINE -- make depend depends on it. 219 101 220 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h102 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 221 103 pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 222 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 223 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 224 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 225 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 226 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 227 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 104 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 105 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 106 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 107 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 108 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 228 109 pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 229 110 pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 111 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 230 112 pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 113 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 231 114 pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 232 115 pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 233 116 pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 234 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h235 117 236 pngtest.o: png.h pngconf.h pnglibconf.h118 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.sgi
r96425 r103316 1 1 # makefile for libpng.a and libpng16.so, SGI IRIX with 'cc' 2 # Copyright (C) 2020-2022 Cosmin Truta 2 3 # Copyright (C) 2001-2002, 2006, 2007, 2010-2014 Glenn Randers-Pehrson 3 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 9 10 # Library name: 10 11 LIBNAME=libpng16 11 PNGMAJ =1612 PNGMAJ=16 12 13 13 14 # Shared library names: 14 15 LIBSO=$(LIBNAME).so 15 16 LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) 16 LIBSOREL=$(LIBSOMAJ).$(RELEASE)17 OLDSO=libpng.so18 17 19 18 # Utilities: 19 CC=cc 20 20 AR_RC=ar rc 21 CC=cc 21 RANLIB=echo 22 22 MKDIR_P=mkdir -p 23 23 LN_SF=ln -sf 24 RANLIB=echo25 24 CP=cp 26 25 RM_F=/bin/rm -f 27 28 # Where make install puts libpng.a, libpng16.so, and libpng16/png.h29 # Prefix must be a full pathname.30 31 prefix=/usr/local32 exec_prefix=$(prefix)33 26 34 27 # Where the zlib library and include files are located … … 48 41 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 49 42 #CFLAGS= $(ABI) -O $(WARNMORE) -KPIC # -g 50 CFLAGS=$(ABI) -O $(WARNMORE) 51 LDFLAGS_A=$(ABI) -L. -L$(ZLIBLIB) -lpng16 -lz -lm 52 LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm 43 CFLAGS=$(ABI) -O $(WARNMORE) # -g 44 LDFLAGS_A=$(ABI) -L. -L$(ZLIBLIB) -lpng16 -lz -lm # -g 45 LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm # -g 53 46 LDSHARED=cc $(ABI) -shared -soname $(LIBSOMAJ) \ 54 47 -set_version sgi$(PNGMAJ).0 55 48 # See "man dso" for info about shared objects 56 57 INCPATH=$(prefix)/include58 LIBPATH=$(exec_prefix)/lib59 #LIBPATH=$(exec_prefix)/lib3260 MANPATH=$(prefix)/man61 BINPATH=$(exec_prefix)/bin62 63 # override DESTDIR= on the make install command line to easily support64 # installing into a temporary location. Example:65 #66 # make install DESTDIR=/tmp/build/libpng67 #68 # If you're going to install into a temporary location69 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before70 # you execute make install.71 DESTDIR=72 73 DB=$(DESTDIR)$(BINPATH)74 DI=$(DESTDIR)$(INCPATH)75 DL=$(DESTDIR)$(LIBPATH)76 DM=$(DESTDIR)$(MANPATH)77 49 78 50 # Pre-built configuration … … 80 52 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 81 53 82 OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \83 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \84 pngwtran.o pngmem.o pngerror.o pngpread.o54 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 55 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 56 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 85 57 86 58 .c.o: 87 59 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< 88 60 89 all: libpng.a pngtest shared libpng.pc libpng-config61 all: libpng.a pngtest shared 90 62 91 63 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT) … … 95 67 $(AR_RC) $@ $(OBJS) 96 68 $(RANLIB) $@ 97 98 libpng.pc:99 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \100 -e s!@exec_prefix@!$(exec_prefix)! \101 -e s!@libdir@!$(LIBPATH)! \102 -e s!@includedir@!$(INCPATH)! \103 -e s!-lpng16!-lpng16\ -lz\ -lm! > libpng.pc104 105 libpng-config:106 ( cat scripts/libpng-config-head.in; \107 echo prefix=\"$(prefix)\"; \108 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \109 echo ccopts=\"$(ABI)\"; \110 echo ldopts=\"$(ABI)\"; \111 echo L_opts=\"-L$(LIBPATH)\"; \112 echo libdir=\"$(LIBPATH)\"; \113 echo libs=\"-lpng16 -lz -lm\"; \114 cat scripts/libpng-config-body.in ) > libpng-config115 chmod +x libpng-config116 69 117 70 $(LIBSO): $(LIBSOMAJ) … … 130 83 ./pngtest 131 84 132 install-headers: png.h pngconf.h pnglibconf.h 133 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 134 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 135 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 136 chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h 137 -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h 138 -@$(RM_F) $(DI)/libpng 139 (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) 85 install: 86 @echo "The $@ target is no longer supported by this makefile." 87 @false 140 88 141 install-static: install-headers libpng.a 142 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 143 cp libpng.a $(DL)/$(LIBNAME).a 144 chmod 644 $(DL)/$(LIBNAME).a 145 -@$(RM_F) $(DL)/libpng.a 146 (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) 89 install-static: 90 @echo "The $@ target is no longer supported by this makefile." 91 @false 147 92 148 install-shared: install-headers $(LIBSOMAJ) libpng.pc 149 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 150 -@$(RM_F) $(DL)/$(LIBSO) 151 -@$(RM_F) $(DL)/$(LIBSOREL) 152 -@$(RM_F) $(DL)/$(OLDSO) 153 cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) 154 chmod 755 $(DL)/$(LIBSOREL) 155 (cd $(DL); \ 156 $(LN_SF) $(LIBSOREL) $(LIBSO); \ 157 $(LN_SF) $(LIBSO) $(OLDSO)) 158 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi 159 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc 160 -@$(RM_F) $(DL)/pkgconfig/libpng.pc 161 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc 162 chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc 163 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) 164 165 install-man: libpng.3 libpngpf.3 png.5 166 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi 167 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi 168 -@$(RM_F) $(DM)/man3/libpng.3 169 -@$(RM_F) $(DM)/man3/libpngpf.3 170 cp libpng.3 $(DM)/man3 171 cp libpngpf.3 $(DM)/man3 172 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi 173 -@$(RM_F) $(DM)/man5/png.5 174 cp png.5 $(DM)/man5 175 176 install-config: libpng-config 177 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi 178 -@$(RM_F) $(DB)/libpng-config 179 -@$(RM_F) $(DB)/$(LIBNAME)-config 180 cp libpng-config $(DB)/$(LIBNAME)-config 181 chmod 755 $(DB)/$(LIBNAME)-config 182 (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) 183 184 install: install-static install-shared install-man install-config 185 186 # If you installed in $(DESTDIR), test-installed won't work until you 187 # move the library to its final location. Use test-dd to test it 188 # before then. 189 190 test-dd: 191 echo 192 echo Testing installed dynamic shared library in $(DL). 193 $(CC) -I$(DI) $(CPPFLAGS) \ 194 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 195 -L$(DL) -L$(ZLIBLIB) \ 196 -rpath $(ZLIBLIB):$(DL) \ 197 -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` 198 ./pngtestd pngtest.png 199 200 test-installed: 201 echo 202 echo Testing installed dynamic shared library. 203 $(CC) $(CPPFLAGS) \ 204 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 205 -L$(ZLIBLIB) \ 206 -rpath $(ZLIBLIB):`$(BINPATH)/$(LIBNAME)-config --libdir` \ 207 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` 208 ./pngtesti pngtest.png 93 install-shared: 94 @echo "The $@ target is no longer supported by this makefile." 95 @false 209 96 210 97 clean: 211 $(RM_F) *.o libpng.a pngtest pngtesti pngout.png libpng.pc libpng-config \ 212 $(LIBSO) $(LIBSOMAJ)* \ 213 so_locations pnglibconf.h 214 215 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO 216 writelock: 217 chmod a-w *.[ch35] $(DOCS) scripts/* 98 $(RM_F) *.o libpng.a pngtest pngout.png 99 $(RM_F) $(LIBSO) $(LIBSOMAJ)* so_locations pnglibconf.h 218 100 219 101 # DO NOT DELETE THIS LINE -- make depend depends on it. 220 102 221 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h103 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 222 104 pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 223 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 224 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 225 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 226 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 227 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 228 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 105 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 106 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 107 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 108 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 109 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 229 110 pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 230 111 pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 112 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 231 113 pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 114 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 232 115 pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 233 116 pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 234 117 pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 235 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h236 118 237 pngtest.o: png.h pngconf.h pnglibconf.h119 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.so9
r96425 r103316 2 2 # Updated by Chad Schrock for Solaris 9 3 3 # Contributed by William L. Sebok, based on makefile.linux 4 # Copyright (C) 2020-2022 Cosmin Truta 4 5 # Copyright (C) 2002, 2006, 2008, 2010-2014 Glenn Randers-Pehrson 5 6 # Copyright (C) 1998-2001 Greg Roelofs … … 11 12 12 13 # Library name: 13 PNGMAJ =1614 LIBNAME = libpng1614 LIBNAME=libpng16 15 PNGMAJ=16 15 16 16 17 # Shared library names: 17 18 LIBSO=$(LIBNAME).so 18 19 LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) 19 LIBSOREL=$(LIBSOMAJ).$(RELEASE)20 OLDSO=libpng.so21 20 22 21 # Utilities: … … 24 23 CC=cc 25 24 AR_RC=ar rc 25 RANLIB=echo 26 26 MKDIR_P=mkdir -p 27 27 LN_SF=ln -f -s 28 RANLIB=echo29 28 CP=cp 30 29 RM_F=/bin/rm -f 31 32 # Where make install puts libpng.a, $(OLDSO)*, and png.h33 prefix=/usr/local34 exec_prefix=$(prefix)35 30 36 31 # Where the zlib library and include files are located … … 45 40 ZLIBINC=/usr/include 46 41 47 #WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \48 -Wmissing-declarations -Wtraditional -Wcast-align \49 -Wstrict-prototypes -Wmissing-prototypes #-Wconversion50 42 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 51 #CFLAGS=-W -Wall -O3 $(WARNMORE) -g52 43 CFLAGS=-O3 53 44 LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng16 -lz -lm 54 55 INCPATH=$(prefix)/include56 LIBPATH=$(exec_prefix)/lib57 MANPATH=$(prefix)/man58 BINPATH=$(exec_prefix)/bin59 60 # override DESTDIR= on the make install command line to easily support61 # installing into a temporary location. Example:62 #63 # make install DESTDIR=/tmp/build/libpng64 #65 # If you're going to install into a temporary location66 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before67 # you execute make install.68 DESTDIR=69 70 DB=$(DESTDIR)$(BINPATH)71 DI=$(DESTDIR)$(INCPATH)72 DL=$(DESTDIR)$(LIBPATH)73 DM=$(DESTDIR)$(MANPATH)74 45 75 46 # Pre-built configuration … … 77 48 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 78 49 79 OBJS = png.o png set.o pngget.o pngrutil.o pngtrans.o pngwutil.o \80 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \81 pngwtran.o pngmem.o pngerror.o pngpread.o50 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 51 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 52 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 82 53 83 54 OBJSDLL = $(OBJS:.o=.pic.o) … … 91 62 $(CC) -c $(CPPFLAGS) $(CFLAGS) -KPIC -o $@ $*.c 92 63 93 all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config64 all: libpng.a $(LIBSO) pngtest 94 65 95 66 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT) … … 99 70 $(AR_RC) $@ $(OBJS) 100 71 $(RANLIB) $@ 101 102 libpng.pc:103 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \104 -e s!@exec_prefix@!$(exec_prefix)! \105 -e s!@libdir@!$(LIBPATH)! \106 -e s!@includedir@!$(INCPATH)! \107 -e s!-lpng16!-lpng16\ -lz\ -lm! > libpng.pc108 109 libpng-config:110 ( cat scripts/libpng-config-head.in; \111 echo prefix=\"$(prefix)\"; \112 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \113 echo L_opts=\"-L$(LIBPATH)\"; \114 echo R_opts=\"-R$(LIBPATH)\"; \115 echo libs=\"-lpng16 -lz -lm\"; \116 cat scripts/libpng-config-body.in ) > libpng-config117 chmod +x libpng-config118 72 119 73 $(LIBSO): $(LIBSOMAJ) … … 142 96 ./pngtest 143 97 144 install-headers: png.h pngconf.h pnglibconf.h 145 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 146 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 147 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 148 chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h 149 -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h 150 -@$(RM_F) $(DI)/libpng 151 (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) 98 install: 99 @echo "The $@ target is no longer supported by this makefile." 100 @false 152 101 153 install-static: install-headers libpng.a 154 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 155 cp libpng.a $(DL)/$(LIBNAME).a 156 chmod 644 $(DL)/$(LIBNAME).a 157 -@$(RM_F) $(DL)/libpng.a 158 (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) 102 install-static: 103 @echo "The $@ target is no longer supported by this makefile." 104 @false 159 105 160 install-shared: install-headers $(LIBSOMAJ) libpng.pc 161 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 162 -@$(RM_F) $(DL)/$(LIBSO) 163 -@$(RM_F) $(DL)/$(LIBSOREL) 164 -@$(RM_F) $(DL)/$(OLDSO) 165 cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) 166 chmod 755 $(DL)/$(LIBSOREL) 167 (cd $(DL); \ 168 $(LN_SF) $(LIBSOREL) $(LIBSO); \ 169 $(LN_SF) $(LIBSO) $(OLDSO)) 170 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi 171 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc 172 -@$(RM_F) $(DL)/pkgconfig/libpng.pc 173 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc 174 chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc 175 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) 176 177 install-man: libpng.3 libpngpf.3 png.5 178 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi 179 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi 180 -@$(RM_F) $(DM)/man3/libpng.3 181 -@$(RM_F) $(DM)/man3/libpngpf.3 182 cp libpng.3 $(DM)/man3 183 cp libpngpf.3 $(DM)/man3 184 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi 185 -@$(RM_F) $(DM)/man5/png.5 186 cp png.5 $(DM)/man5 187 188 install-config: libpng-config 189 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi 190 -@$(RM_F) $(DB)/libpng-config 191 -@$(RM_F) $(DB)/$(LIBNAME)-config 192 cp libpng-config $(DB)/$(LIBNAME)-config 193 chmod 755 $(DB)/$(LIBNAME)-config 194 (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) 195 196 install: install-static install-shared install-man install-config 197 198 # If you installed in $(DESTDIR), test-installed won't work until you 199 # move the library to its final location. Use test-dd to test it 200 # before then. 201 202 test-dd: 203 echo 204 echo Testing installed dynamic shared library in $(DL). 205 $(CC) -I$(DI) $(CPPFLAGS) \ 206 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 207 -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` \ 208 -L$(DL) -L$(ZLIBLIB) -R$(ZLIBLIB) -R$(DL) 209 ./pngtestd pngtest.png 210 211 test-installed: 212 echo 213 echo Testing installed dynamic shared library. 214 $(CC) $(CPPFLAGS) \ 215 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 216 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` \ 217 -L$(ZLIBLIB) -R$(ZLIBLIB) 218 ./pngtesti pngtest.png 106 install-shared: 107 @echo "The $@ target is no longer supported by this makefile." 108 @false 219 109 220 110 clean: 221 $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ 222 libpng-config $(LIBSO) $(LIBSOMAJ)* \ 223 libpng.pc pnglibconf.h 224 225 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO 226 writelock: 227 chmod a-w *.[ch35] $(DOCS) scripts/* 111 $(RM_F) *.o libpng.a pngtest pngout.png 112 $(RM_F) $(LIBSO) $(LIBSOMAJ)* pnglibconf.h 228 113 229 114 # DO NOT DELETE THIS LINE -- make depend depends on it. 230 115 231 png.o png.pic.o:png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h116 png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 232 117 pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 233 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 234 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 235 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 236 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 237 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 238 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 118 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 119 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 120 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 121 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 122 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 239 123 pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 240 124 pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 125 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 241 126 pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 127 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 242 128 pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 243 129 pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 244 130 pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 245 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h246 131 247 132 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.solaris
r96425 r103316 1 1 # makefile for libpng on Solaris 2.x with gcc 2 # Copyright (C) 2020-2022 Cosmin Truta 2 3 # Copyright (C) 2004, 2006-2008, 2010-2014 Glenn Randers-Pehrson 3 4 # Contributed by William L. Sebok, based on makefile.linux … … 10 11 11 12 # Library name: 12 LIBNAME =libpng1613 PNGMAJ =1613 LIBNAME=libpng16 14 PNGMAJ=16 14 15 15 16 # Shared library names: 16 17 LIBSO=$(LIBNAME).so 17 18 LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ) 18 LIBSOREL=$(LIBSOMAJ).$(RELEASE)19 OLDSO=libpng.so20 19 21 20 # Utilities: 21 CC=gcc 22 22 AR_RC=ar rc 23 CC=gcc 23 RANLIB=echo 24 24 MKDIR_P=mkdir -p 25 25 LN_SF=ln -f -s 26 RANLIB=echo27 26 CP=cp 28 27 RM_F=/bin/rm -f 29 30 # Where make install puts libpng.a, libpng16.so*, and png.h31 prefix=/usr/local32 exec_prefix=$(prefix)33 28 34 29 # Where the zlib library and include files are located … … 43 38 WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \ 44 39 -Wmissing-declarations -Wtraditional -Wcast-align \ 45 -Wstrict-prototypes -Wmissing-prototypes # -Wconversion40 -Wstrict-prototypes -Wmissing-prototypes # -Wconversion 46 41 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 47 CFLAGS=-W -Wall -O # $(WARNMORE) -g 48 LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng16 -lz -lm 49 50 INCPATH=$(prefix)/include 51 LIBPATH=$(exec_prefix)/lib 52 MANPATH=$(prefix)/man 53 BINPATH=$(exec_prefix)/bin 54 55 # override DESTDIR= on the make install command line to easily support 56 # installing into a temporary location. Example: 57 # 58 # make install DESTDIR=/tmp/build/libpng 59 # 60 # If you're going to install into a temporary location 61 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before 62 # you execute make install. 63 DESTDIR= 64 65 DB=$(DESTDIR)$(BINPATH) 66 DI=$(DESTDIR)$(INCPATH) 67 DL=$(DESTDIR)$(LIBPATH) 68 DM=$(DESTDIR)$(MANPATH) 42 CFLAGS=-O -Wall -Wextra -Wundef # $(WARNMORE) -g 43 LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng16 -lz -lm # -g 69 44 70 45 # Pre-built configuration … … 72 47 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 73 48 74 OBJS = png.o png set.o pngget.o pngrutil.o pngtrans.o pngwutil.o \75 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \76 pngwtran.o pngmem.o pngerror.o pngpread.o49 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 50 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 51 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 77 52 78 53 OBJSDLL = $(OBJS:.o=.pic.o) … … 86 61 $(CC) -c $(CPPFLAGS) $(CFLAGS) -fPIC -o $@ $*.c 87 62 88 all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config63 all: libpng.a $(LIBSO) pngtest 89 64 90 65 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT) … … 94 69 $(AR_RC) $@ $(OBJS) 95 70 $(RANLIB) $@ 96 97 libpng.pc:98 cat scripts/libpng.pc.in | sed -e s!@prefix@!$(prefix)! \99 -e s!@exec_prefix@!$(exec_prefix)! \100 -e s!@libdir@!$(LIBPATH)! \101 -e s!@includedir@!$(INCPATH)! \102 -e s!-lpng16!-lpng16\ -lz\ -lm! > libpng.pc103 104 libpng-config:105 ( cat scripts/libpng-config-head.in; \106 echo prefix=\"$(prefix)\"; \107 echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \108 echo cppflags=\"\"; \109 echo L_opts=\"-L$(LIBPATH)\"; \110 echo R_opts=\"-R$(LIBPATH)\"; \111 echo libs=\"-lpng16 -lz -lm\"; \112 cat scripts/libpng-config-body.in ) > libpng-config113 chmod +x libpng-config114 71 115 72 $(LIBSO): $(LIBSOMAJ) … … 138 95 ./pngtest 139 96 140 install-headers: png.h pngconf.h pnglibconf.h 141 -@if [ ! -d $(DI) ]; then $(MKDIR_P) $(DI); fi 142 -@if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR_P) $(DI)/$(LIBNAME); fi 143 cp png.h pngconf.h pnglibconf.h $(DI)/$(LIBNAME) 144 chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h $(DI)/$(LIBNAME)/pnglibconf.h 145 -@$(RM_F) $(DI)/png.h $(DI)/pngconf.h $(DI)/pnglibconf.h 146 -@$(RM_F) $(DI)/libpng 147 (cd $(DI); $(LN_SF) $(LIBNAME) libpng; $(LN_SF) $(LIBNAME)/* .) 97 install: 98 @echo "The $@ target is no longer supported by this makefile." 99 @false 148 100 149 install-static: install-headers libpng.a 150 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 151 cp libpng.a $(DL)/$(LIBNAME).a 152 chmod 644 $(DL)/$(LIBNAME).a 153 -@$(RM_F) $(DL)/libpng.a 154 (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a) 101 install-static: 102 @echo "The $@ target is no longer supported by this makefile." 103 @false 155 104 156 install-shared: install-headers $(LIBSOMAJ) libpng.pc 157 -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi 158 -@$(RM_F) $(DL)/$(LIBSO) 159 -@$(RM_F) $(DL)/$(LIBSOREL) 160 -@$(RM_F) $(DL)/$(OLDSO) 161 cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) 162 chmod 755 $(DL)/$(LIBSOREL) 163 (cd $(DL); \ 164 $(LN_SF) $(LIBSOREL) $(LIBSO); \ 165 $(LN_SF) $(LIBSO) $(OLDSO)) 166 -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi 167 -@$(RM_F) $(DL)/pkgconfig/$(LIBNAME).pc 168 -@$(RM_F) $(DL)/pkgconfig/libpng.pc 169 cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc 170 chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc 171 (cd $(DL)/pkgconfig; $(LN_SF) $(LIBNAME).pc libpng.pc) 172 173 install-man: libpng.3 libpngpf.3 png.5 174 -@if [ ! -d $(DM) ]; then $(MKDIR_P) $(DM); fi 175 -@if [ ! -d $(DM)/man3 ]; then $(MKDIR_P) $(DM)/man3; fi 176 -@$(RM_F) $(DM)/man3/libpng.3 177 -@$(RM_F) $(DM)/man3/libpngpf.3 178 cp libpng.3 $(DM)/man3 179 cp libpngpf.3 $(DM)/man3 180 -@if [ ! -d $(DM)/man5 ]; then $(MKDIR_P) $(DM)/man5; fi 181 -@$(RM_F) $(DM)/man5/png.5 182 cp png.5 $(DM)/man5 183 184 install-config: libpng-config 185 -@if [ ! -d $(DB) ]; then $(MKDIR_P) $(DB); fi 186 -@$(RM_F) $(DB)/libpng-config 187 -@$(RM_F) $(DB)/$(LIBNAME)-config 188 cp libpng-config $(DB)/$(LIBNAME)-config 189 chmod 755 $(DB)/$(LIBNAME)-config 190 (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config) 191 192 install: install-static install-shared install-man install-config 193 194 # If you installed in $(DESTDIR), test-installed won't work until you 195 # move the library to its final location. Use test-dd to test it 196 # before then. 197 198 test-dd: 199 echo 200 echo Testing installed dynamic shared library in $(DL). 201 $(CC) -I$(DI) $(CPPFLAGS) \ 202 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 203 -o pngtestd `$(BINPATH)/$(LIBNAME)-config --ldflags` \ 204 -L$(DL) -L$(ZLIBLIB) -R$(ZLIBLIB) -R$(DL) 205 ./pngtestd pngtest.png 206 207 test-installed: 208 echo 209 echo Testing installed dynamic shared library. 210 $(CC) $(CPPFLAGS) \ 211 `$(BINPATH)/$(LIBNAME)-config --cflags` pngtest.c \ 212 -o pngtesti `$(BINPATH)/$(LIBNAME)-config --ldflags` \ 213 -L$(ZLIBLIB) -R$(ZLIBLIB) 214 ./pngtesti pngtest.png 105 install-shared: 106 @echo "The $@ target is no longer supported by this makefile." 107 @false 215 108 216 109 clean: 217 $(RM_F) *.o libpng.a pngtest pngtesti pngout.png \ 218 libpng-config $(LIBSO) $(LIBSOMAJ)* \ 219 libpng.pc pnglibconf.h 220 221 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO 222 writelock: 223 chmod a-w *.[ch35] $(DOCS) scripts/* 110 $(RM_F) *.o libpng.a pngtest pngout.png 111 $(RM_F) $(LIBSO) $(LIBSOMAJ)* pnglibconf.h 224 112 225 113 # DO NOT DELETE THIS LINE -- make depend depends on it. 226 114 227 png.o png.pic.o:png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h115 png.o png.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 228 116 pngerror.o pngerror.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 229 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 230 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 231 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 232 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 233 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 234 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 117 pngget.o pngget.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 118 pngmem.o pngmem.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 119 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 120 pngread.o pngread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 121 pngrio.o pngrio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 235 122 pngrtran.o pngrtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 236 123 pngrutil.o pngrutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 124 pngset.o pngset.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 237 125 pngtrans.o pngtrans.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 126 pngwio.o pngwio.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 238 127 pngwrite.o pngwrite.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 239 128 pngwtran.o pngwtran.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 240 129 pngwutil.o pngwutil.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 241 pngpread.o pngpread.pic.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h242 130 243 131 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.std
r96425 r103316 1 1 # makefile for libpng 2 # Copyright (C) 2020-2022 Cosmin Truta 2 3 # Copyright (C) 2002, 2006, 2014 Glenn Randers-Pehrson 3 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 6 7 # For conditions of distribution and use, see the disclaimer 7 8 # and license in png.h 8 9 # where make install puts libpng.a and png.h10 prefix=/usr/local11 INCPATH=$(prefix)/include12 LIBPATH=$(prefix)/lib13 14 # override DESTDIR= on the make install command line to easily support15 # installing into a temporary location. Example:16 #17 # make install DESTDIR=/tmp/build/libpng18 #19 # If you're going to install into a temporary location20 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before21 # you execute make install.22 DESTDIR=23 9 24 10 # Where the zlib library and include files are located … … 29 15 30 16 CC = cc 17 CPP = $(CC) -E 18 LD = $(CC) 31 19 AR_RC = ar rc 20 RANLIB = ranlib 32 21 MKDIR_P = mkdir 33 LN_SF = ln -sf 34 RANLIB = ranlib 35 CP = cp 22 MV_F = mv -f 36 23 RM_F = rm -f 37 24 AWK = awk 38 SED = sed39 CPP = $(CC) -E40 ECHO = echo41 25 26 NOHWOPT = -DPNG_ARM_NEON_OPT=0 -DPNG_MIPS_MSA_OPT=0 \ 27 -DPNG_POWERPC_VSX_OPT=0 -DPNG_INTEL_SSE_OPT=0 42 28 DFNFLAGS = # DFNFLAGS contains -D options to use in the libpng build 43 29 DFA_EXTRA = # extra files that can be used to control configuration 44 CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=530 CPPFLAGS = -I$(ZLIBINC) $(NOHWOPT) # -DPNG_DEBUG=5 45 31 CFLAGS = -O # -g 46 LDFLAGS = -L. -L$(ZLIBLIB) -lpng -lz -lm 32 LDFLAGS = -L$(ZLIBLIB) # -g 33 LIBS = -lz -lm 47 34 48 35 # Pre-built configuration … … 50 37 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 51 38 52 OBJS = png.o png set.o pngget.o pngrutil.o pngtrans.o pngwutil.o \53 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \54 pngwtran.o pngmem.o pngerror.o pngpread.o39 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 40 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 41 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 55 42 56 43 .c.o: … … 63 50 pnglibconf.h: pnglibconf.dfn 64 51 $(RM_F) $@ pnglibconf.c pnglibconf.out pnglibconf.tmp 65 $(ECHO)'#include "pnglibconf.dfn"' >pnglibconf.c66 $(ECHO) "If '$(CC) -E' crashestry /lib/cpp (e.g. CPP='/lib/cpp')" >&252 echo '#include "pnglibconf.dfn"' >pnglibconf.c 53 @echo "## If '$(CC) -E' fails, try /lib/cpp (e.g. CPP='/lib/cpp')" >&2 67 54 $(CPP) $(DFNFLAGS) pnglibconf.c >pnglibconf.out 68 $(AWK) -f "scripts/dfn.awk" out="pnglibconf.tmp" pnglibconf.out 1>&269 mvpnglibconf.tmp $@55 $(AWK) -f scripts/dfn.awk out=pnglibconf.tmp pnglibconf.out >&2 56 $(MV_F) pnglibconf.tmp $@ 70 57 71 58 pnglibconf.dfn: scripts/pnglibconf.dfa scripts/options.awk pngconf.h pngusr.dfa $(DFA_XTRA) 72 59 $(RM_F) $@ pnglibconf.pre pnglibconf.tmp 73 $(ECHO) "Calling $(AWK) from scripts/pnglibconf.mak" >&274 $(ECHO) "If 'awk' crashestry a better awk (e.g. AWK='nawk')" >&275 $(AWK) -f scripts/options.awk out= "pnglibconf.pre"\60 @echo "## Calling $(AWK) from scripts/pnglibconf.mak" >&2 61 @echo "## If 'awk' fails, try a better awk (e.g. AWK='nawk')" >&2 62 $(AWK) -f scripts/options.awk out=pnglibconf.pre\ 76 63 version=search pngconf.h scripts/pnglibconf.dfa\ 77 pngusr.dfa $(DFA_XTRA) 1>&278 $(AWK) -f scripts/options.awk out= "pnglibconf.tmp" pnglibconf.pre 1>&279 mvpnglibconf.tmp $@64 pngusr.dfa $(DFA_XTRA) >&2 65 $(AWK) -f scripts/options.awk out=pnglibconf.tmp pnglibconf.pre >&2 66 $(MV_F) pnglibconf.tmp $@ 80 67 81 68 libpng.a: $(OBJS) 82 $(AR_RC) $@ 69 $(AR_RC) $@ $(OBJS) 83 70 $(RANLIB) $@ 84 71 85 72 pngtest: pngtest.o libpng.a 86 $( CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)73 $(LD) $(LDFLAGS) -o $@ pngtest.o libpng.a $(LIBS) 87 74 88 75 test: pngtest 89 76 ./pngtest 90 77 91 install: libpng.a pnglibconf.h 92 -@$(MKDIR_P) $(DESTDIR)$(INCPATH) 93 -@$(MKDIR_P) $(DESTDIR)$(INCPATH)/libpng 94 -@$(MKDIR_P) $(DESTDIR)$(LIBPATH) 95 -@$(RM_F) $(DESTDIR)$(INCPATH)/png.h 96 -@$(RM_F) $(DESTDIR)$(INCPATH)/pngconf.h 97 -@$(RM_F) $(DESTDIR)$(INCPATH)/pnglibconf.h 98 cp png.h $(DESTDIR)$(INCPATH)/libpng 99 cp pngconf.h $(DESTDIR)$(INCPATH)/libpng 100 cp pnglibconf.h $(DESTDIR)$(INCPATH)/libpng 101 chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h 102 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h 103 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pnglibconf.h 104 (cd $(DESTDIR)$(INCPATH); ln -f -s libpng/* .) 105 cp libpng.a $(DESTDIR)$(LIBPATH) 106 chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a 78 install: 79 @echo "The $@ target is no longer supported by this makefile." 80 @false 107 81 108 82 clean: 109 $(RM_F) *.o libpng.a pngtest pngout.png pnglibconf.h pnglibconf.c \ 110 pnglibconf.out 111 112 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO 113 writelock: 114 chmod a-w *.[ch35] $(DOCS) scripts/* 83 $(RM_F) *.o libpng.a pngtest pngout.png pnglibconf.h 84 $(RM_F) pnglibconf.c pnglibconf.dfn pnglibconf.out pnglibconf.pre 115 85 116 86 # DO NOT DELETE THIS LINE -- make depend depends on it. 117 87 118 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h88 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 119 89 pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 120 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 121 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 122 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 123 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 124 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 90 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 91 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 125 92 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 126 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 93 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 94 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 127 95 pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 128 96 pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 97 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 129 98 pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 99 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 130 100 pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 131 101 pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 132 102 pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 133 103 134 pngtest.o: png.h pngconf.h pnglibconf.h104 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.sunos
r96425 r103316 1 1 # makefile for libpng 2 # Copyright (C) 2020-2022 Cosmin Truta 2 3 # Copyright (C) 2002, 2006, 2014 Glenn Randers-Pehrson 3 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 7 8 # and license in png.h 8 9 9 # where make install puts libpng.a and png.h10 prefix=/usr/local11 INCPATH=$(prefix)/include12 LIBPATH=$(prefix)/lib13 14 # override DESTDIR= on the make install command line to easily support15 # installing into a temporary location. Example:16 #17 # make install DESTDIR=/tmp/build/libpng18 #19 # If you're going to install into a temporary location20 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before21 # you execute make install.22 DESTDIR=23 24 10 # Where the zlib library and include files are located 25 11 #ZLIBLIB=/usr/local/lib … … 28 14 ZLIBINC=../zlib 29 15 30 31 WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow -Wconversion \32 -Wmissing-declarations -Wtraditional -Wcast-align \33 -Wstrict-prototypes -Wmissing-prototypes34 35 16 CC=gcc 36 17 AR_RC=ar rc 18 RANLIB=ranlib 37 19 MKDIR_P=mkdir -p 38 LN_SF=ln -f -s39 RANLIB=ranlib40 20 CP=cp 41 21 RM_F=/bin/rm -f 42 22 43 23 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 44 CFLAGS=-O # $(WARNMORE)24 CFLAGS=-O 45 25 LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm 46 26 … … 49 29 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt 50 30 51 OBJS = png.o png set.o pngget.o pngrutil.o pngtrans.o pngwutil.o \52 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \53 pngwtran.o pngmem.o pngerror.o pngpread.o31 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 32 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 33 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 54 34 55 35 .c.o: … … 62 42 63 43 libpng.a: $(OBJS) 64 $(AR_RC) $@ 44 $(AR_RC) $@ $(OBJS) 65 45 $(RANLIB) $@ 66 46 … … 71 51 ./pngtest 72 52 73 install: libpng.a 74 -@$(MKDIR_P) $(DESTDIR)$(INCPATH) 75 -@$(MKDIR_P) $(DESTDIR)$(INCPATH)/libpng 76 -@$(MKDIR_P) $(DESTDIR)$(LIBPATH) 77 -@$(RM_F) $(DESTDIR)$(INCPATH)/png.h 78 -@$(RM_F) $(DESTDIR)$(INCPATH)/pngconf.h 79 -@$(RM_F) $(DESTDIR)$(INCPATH)/pnglibconf.h 80 cp png.h $(DESTDIR)$(INCPATH)/libpng 81 cp pngconf.h $(DESTDIR)$(INCPATH)/libpng 82 cp pnglibconf.h $(DESTDIR)$(INCPATH)/libpng 83 chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h 84 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h 85 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pnglibconf.h 86 (cd $(DESTDIR)$(INCPATH); $(LN_SF) libpng/* .) 87 cp libpng.a $(DESTDIR)$(LIBPATH) 88 chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a 53 install: 54 @echo "The $@ target is no longer supported by this makefile." 55 @false 89 56 90 57 clean: 91 58 $(RM_F) *.o libpng.a pngtest pngout.png pnglibconf.h 92 59 93 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO94 writelock:95 chmod a-w *.[ch35] $(DOCS) scripts/*96 97 60 # DO NOT DELETE THIS LINE -- make depend depends on it. 98 61 99 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h62 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 100 63 pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 101 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 102 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 103 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 104 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 105 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 106 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 64 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 65 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 66 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 67 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 68 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 107 69 pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 108 70 pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 71 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 109 72 pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 73 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 110 74 pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 111 75 pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 112 76 pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 113 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h114 77 115 pngtest.o: png.h pngconf.h pnglibconf.h78 pngtest.o: png.h pngconf.h pnglibconf.h -
trunk/src/libs/libpng-1.6.42/scripts/makefile.vcwin32
r96425 r103316 23 23 RM = del 24 24 25 # Uncomment next to put error messages in a file 26 #ERRFILE= >> pngerrs.log 27 25 28 # Pre-built configuration 26 29 # See scripts\pnglibconf.mak for more options … … 30 33 O=.obj 31 34 32 #uncomment next to put error messages in a file 33 #ERRFILE= >> pngerrs.log 34 35 # Variables 35 # File lists 36 36 OBJS1 = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) 37 37 OBJS2 = pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) … … 48 48 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 49 49 50 png set$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h50 pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 51 51 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 52 52 … … 54 54 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 55 55 56 pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 57 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 58 59 pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 60 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 61 56 62 pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 57 63 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 58 64 59 png pread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h65 pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 60 66 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 61 67 … … 66 72 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 67 73 68 png error$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h74 pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 69 75 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 70 76 71 pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 72 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 73 74 pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 77 pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 75 78 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 76 79 77 80 pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h 78 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE)79 80 pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h81 81 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 82 82 … … 94 94 $(AR) $(ARFLAGS) -out:$@ $(OBJS) $(ERRFILE) 95 95 96 pngtest.exe: pngtest$(O) libpng.lib 97 $(LD) $(LDFLAGS) -out:$@ pngtest$(O) libpng.lib ..\zlib\zlib.lib $(ERRFILE) 98 96 99 pngtest$(O): png.h pngconf.h pnglibconf.h 97 100 $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c $(ERRFILE) 98 101 99 pngtest.exe: pngtest$(O) libpng.lib100 $(LD) $(LDFLAGS) -out:$@ pngtest$(O) libpng.lib ..\zlib\zlib.lib $(ERRFILE)101 102 102 test: pngtest.exe 103 pngtest 103 pngtest.exe 104 104 105 105 clean: … … 111 111 112 112 # End of makefile for libpng 113 -
trunk/src/libs/libpng-1.6.42/scripts/options.awk
r96425 r103316 1 1 #!/bin/awk -f 2 2 3 # scripts/options.awk - library build configuration control 3 #4 # last changed in libpng version 1.6.11 - June 5, 20145 4 # 6 5 # Copyright (c) 1998-2014 Glenn Randers-Pehrson … … 244 243 # option NAME ( (requires|enables|if) NAME* | on | off | disabled | 245 244 # sets SETTING VALUE+ )* 246 # 245 # 247 246 # Declares an option 'NAME' and describes its default setting (disabled) 248 247 # and its relationship to other options. The option is disabled -
trunk/src/libs/libpng-1.6.42/scripts/pnglibconf.dfa
r96425 r103316 9 9 version 10 10 com 11 com Copyright (c) 2018-20 19Cosmin Truta11 com Copyright (c) 2018-2024 Cosmin Truta 12 12 com Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson 13 13 com … … 70 70 # 1) Create 'pngusr.h', enter the required private build information 71 71 # detailed below and #define PNG_NO_<option> for each option you 72 # don't want in that file in that file. You can also turn on options73 # using PNG_<option>_SUPPORTED. When you have finished rerun74 # configureand rebuild pnglibconf.h file with -DPNG_USER_CONFIG:72 # don't want in that file. You can also turn on options using 73 # PNG_<option>_SUPPORTED. When you have finished, rerun configure 74 # and rebuild pnglibconf.h file with -DPNG_USER_CONFIG: 75 75 # 76 76 # make clean … … 257 257 sets POWERPC_VSX_OPT 1 258 258 259 # These options are specific to the MIPS MSA hardware optimizations. 260 # 261 # MIPS_MSA_OPT: unset: check at compile time (__mips_msa must be defined by 262 # the compiler, typically as a result of specifying 263 # "-mmsa -mfp64" compiler flags) 264 # 0: disable (even if the CPU supports MSA.) 265 # 1: check at run time (via MIPS_MSA_{API,CHECK}) 266 # 2: switch on unconditionally (inadvisable - instead pass 267 # -mmsa -mfp64 to compiler options) 268 # When building libpng avoid using any setting other than '0'; '1' is 269 # set automatically when either 'API' or 'CHECK' are configured in, 270 # '2' should not be necessary as "-mmsa -mfp64" will achieve the same 271 # effect as well as applying MSA optimizations to the rest of the 272 # libpng code. 273 # NOTE: any setting other than '0' requires ALIGNED_MEMORY 274 # MIPS_MSA_API: (PNG_MIPS_MSA == 1) allow the optimization to be switched on 275 # with png_set_option. 276 # MIPS_MSA_CHECK: (PNG_MIPS_MSA == 1) compile a run-time check to see if MSA 277 # extensions are supported. 278 setting MIPS_MSA_OPT 279 option MIPS_MSA_API disabled requires ALIGNED_MEMORY enables SET_OPTION, 280 sets MIPS_MSA_OPT 1 281 option MIPS_MSA_CHECK disabled requires ALIGNED_MEMORY, 282 sets MIPS_MSA_OPT 1 283 284 # These options are specific to the MIPS MMI hardware optimizations. 285 # 286 # MIPS_MMI_OPT: unset: check at compile time (__mips_loongson_mmi must be defined by 287 # the compiler, typically as a result of specifying 288 # "-mloongson-mmi -march=loongson3a" compiler flags) 289 # 0: disable (even if the CPU supports MMI.) 290 # 1: check at run time (via MIPS_MMI_{API,CHECK}) 291 # 2: switch on unconditionally (inadvisable - instead pass 292 # -mloongson-mmi -march=loongson3a to compiler options) 293 # When building libpng avoid using any setting other than '0'; '1' is 294 # set automatically when either 'API' or 'CHECK' are configured in, 295 # '2' should not be necessary as "-mloongson-mmi -march=loongson3a" will achieve the same 296 # effect as well as applying MMI optimizations to the rest of the 297 # libpng code. 298 # MIPS_MMI_API: (PNG_MIPS_MMI == 1) allow the optimization to be switched on 299 # with png_set_option 300 # MIPS_MMI_CHECK: (PNG_MIPS_MMI == 1) compile a run-time check to see if MMI 301 # extensions are supported. 302 setting MIPS_MMI_OPT 303 option MIPS_MMI_API disabled requires ALIGNED_MEMORY enables SET_OPTION, 304 sets MIPS_MMI_OPT 1 305 option MIPS_MMI_CHECK disabled requires ALIGNED_MEMORY, 306 sets MIPS_MMI_OPT 1 307 259 308 260 309 # These settings configure the default compression level (0-9) and 'strategy'; … … 337 386 option BENIGN_READ_ERRORS requires BENIGN_ERRORS 338 387 388 # Adler32 checksum 389 # 390 # This option allows the check of the Adler32 checksum performed by zlib to 391 # be turned off for IDAT chunks (only). Unless this option is enabled and 392 # turned on (not the default even if enabled) a failed Adler32 at the end of the 393 # stream will result in a decompression (inflate) failure on read even though 394 # the entire image might have been read successfully. 395 # 396 # This option relies on an undocumented function 'inflateValidate' which is 397 # present in only some versions of zlib. If the function is not present in the 398 # zlib used with libpng code which uses -lpng is likely to fail to link or to 399 # launch in the case of a DLL. 400 # 401 # Therefore this option is currently disabled by default; it has to be turned on 402 # in pngusr.dfa and then the application program has to explicitly turn the 403 # functionality on by calling png_set_option. 404 # 405 # Furthermore the option is explicitly turned off here if the zlib version 406 # number is below that required - libpng wouldn't compile in that case if the 407 # option were turned on. 408 option DISABLE_ADLER32_CHECK requires READ enables SET_OPTION disabled 409 410 # ZLIB_VERNUM must be used here, not PNG_ZLIB_VERNUM, because 411 # scripts/options.awk ends up putting this test adhead of the setting of 412 # PNG_ZLIB_VERNUM (apparently above, but not because of the two-pass processing) 413 @#if ZLIB_VERNUM < 0x1290 414 @# define PNG_NO_DISABLE_ADLER32_CHECK 415 @#endif 339 416 340 417 # Generic options - affect both read and write. -
trunk/src/libs/libpng-1.6.42/scripts/pnglibconf.h.prebuilt
r96425 r103316 1 1 /* pnglibconf.h - library build configuration */ 2 2 3 /* libpng version 1.6. 37*/4 5 /* Copyright (c) 2018-20 19Cosmin Truta */3 /* libpng version 1.6.42 */ 4 5 /* Copyright (c) 2018-2024 Cosmin Truta */ 6 6 /* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson */ 7 7 … … 28 28 #define PNG_CONSOLE_IO_SUPPORTED 29 29 #define PNG_CONVERT_tIME_SUPPORTED 30 /*#undef PNG_DISABLE_ADLER32_CHECK_SUPPORTED*/ 30 31 #define PNG_EASY_ACCESS_SUPPORTED 31 32 /*#undef PNG_ERROR_NUMBERS_SUPPORTED*/ … … 42 43 #define PNG_INFO_IMAGE_SUPPORTED 43 44 #define PNG_IO_STATE_SUPPORTED 45 /*#undef PNG_MIPS_MMI_API_SUPPORTED*/ 46 /*#undef PNG_MIPS_MMI_CHECK_SUPPORTED*/ 47 /*#undef PNG_MIPS_MSA_API_SUPPORTED*/ 48 /*#undef PNG_MIPS_MSA_CHECK_SUPPORTED*/ 44 49 #define PNG_MNG_FEATURES_SUPPORTED 45 50 #define PNG_POINTER_INDEXING_SUPPORTED -
trunk/src/libs/libpng-1.6.42/scripts/pnglibconf.mak
r96425 r103316 12 12 AWK = nawk 13 13 AWK = one-true-awk 14 AWK = awk # Crashes on SunOS 5.10 -use 'nawk'15 CPP = $(CC) -E # On SUN OS 5.10 if this causes problems use /lib/cpp14 AWK = awk # This fails on SunOS 5.10; use 'nawk' 15 CPP = $(CC) -E # If this fails on SunOS 5.10, use '/lib/cpp' 16 16 17 MOVE = mv 17 MOVE = mv -f 18 18 DELETE = rm -f 19 ECHO = echo 19 20 20 DFA_XTRA = # Put your configuration file here, see scripts/pnglibconf.dfa. Eg: 21 21 # DFA_XTRA = pngusr.dfa … … 26 26 DFNFLAGS = $(DEFS) $(CPPFLAGS) $(CFLAGS) 27 27 28 # srcdir is a de facto standard for the location of the source28 # srcdir is a de-facto standard for the location of the source 29 29 srcdir = . 30 30 … … 33 33 pnglibconf.h: pnglibconf.dfn 34 34 $(DELETE) $@ pnglibconf.c pnglibconf.out pnglibconf.tmp 35 $(ECHO)'#include "pnglibconf.dfn"' >pnglibconf.c36 $(ECHO) "If '$(CC) -E' crashestry /lib/cpp (e.g. CPP='/lib/cpp')" >&235 echo '#include "pnglibconf.dfn"' >pnglibconf.c 36 @echo "## If '$(CC) -E' fails, try /lib/cpp (e.g. CPP='/lib/cpp')" >&2 37 37 $(CPP) $(DFNFLAGS) pnglibconf.c >pnglibconf.out 38 $(AWK) -f "$(srcdir)/scripts/dfn.awk" out="pnglibconf.tmp" pnglibconf.out 1>&238 $(AWK) -f $(srcdir)/scripts/dfn.awk out=pnglibconf.tmp pnglibconf.out >&2 39 39 $(MOVE) pnglibconf.tmp $@ 40 40 41 41 pnglibconf.dfn: $(srcdir)/scripts/pnglibconf.dfa $(srcdir)/scripts/options.awk $(srcdir)/pngconf.h $(srcdir)/pngusr.dfa $(DFA_XTRA) 42 42 $(DELETE) $@ pnglibconf.pre pnglibconf.tmp 43 $(ECHO) "Calling $(AWK) from scripts/pnglibconf.mak" >&244 $(ECHO) "If 'awk' crashestry a better awk (e.g. AWK='nawk')" >&245 $(AWK) -f $(srcdir)/scripts/options.awk out= "pnglibconf.pre"\43 @echo "## Calling $(AWK) from scripts/pnglibconf.mak" >&2 44 @echo "## If 'awk' fails, try a better awk (e.g. AWK='nawk')" >&2 45 $(AWK) -f $(srcdir)/scripts/options.awk out=pnglibconf.pre\ 46 46 version=search $(srcdir)/pngconf.h $(srcdir)/scripts/pnglibconf.dfa\ 47 $(srcdir)/pngusr.dfa $(DFA_XTRA) 1>&248 $(AWK) -f $(srcdir)/scripts/options.awk out= "pnglibconf.tmp" pnglibconf.pre 1>&247 $(srcdir)/pngusr.dfa $(DFA_XTRA) >&2 48 $(AWK) -f $(srcdir)/scripts/options.awk out=pnglibconf.tmp pnglibconf.pre >&2 49 49 $(MOVE) pnglibconf.tmp $@ 50 50 -
trunk/src/libs/libpng-1.6.42/scripts/prefix.c
r96425 r103316 2 2 /* prefix.c - generate an unprefixed symbol list 3 3 * 4 * Last changed in libpng version 1.6.16 [December 22, 2014]5 4 * Copyright (c) 2013-2014 Glenn Randers-Pehrson 6 5 * -
trunk/src/libs/libpng-1.6.42/scripts/smakefile.ppc
r96425 r103316 20 20 MKDIR = makedir 21 21 22 OBJS = png.o png set.o pngget.o pngrutil.o pngtrans.o pngwutil.o pngread.o \23 png error.o pngpread.o pngwrite.o pngrtran.o pngwtran.o pngrio.o \24 png wio.o pngmem.o22 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ 23 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \ 24 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o 25 25 26 26 all: $(LIBNAME) pngtest -
trunk/src/libs/libpng-1.6.42/scripts/sym.c
r96425 r103316 2 2 /* sym.c - define format of libpng.sym 3 3 * 4 * Last changed in libpng version 1.6.16 [December 22, 2014]5 4 * Copyright (c) 2011-2014 Glenn Randers-Pehrson 6 5 * -
trunk/src/libs/libpng-1.6.42/scripts/symbols.c
r96425 r103316 2 2 /* symbols.c - find all exported symbols 3 3 * 4 * Last changed in libpng version 1.6.16 [December 22, 2014]5 4 * Copyright (c) 2011-2014 Glenn Randers-Pehrson 6 5 * -
trunk/src/libs/libpng-1.6.42/scripts/vers.c
r96425 r103316 2 2 /* vers.c - define format of libpng.vers 3 3 * 4 * Last changed in libpng version 1.6.16 [December 22, 2014]5 4 * Copyright (c) 2011-2014 Glenn Randers-Pehrson 6 5 * -
trunk/src/libs/libpng-1.6.42/test-driver
r96425 r103316 4 4 scriptversion=2018-03-07.03; # UTC 5 5 6 # Copyright (C) 2011-20 18Free Software Foundation, Inc.6 # Copyright (C) 2011-2021 Free Software Foundation, Inc. 7 7 # 8 8 # This program is free software; you can redistribute it and/or modify … … 43 43 cat <<END 44 44 Usage: 45 test-driver --test-name =NAME --log-file=PATH --trs-file=PATH46 [--expect-failure ={yes|no}] [--color-tests={yes|no}]47 [--enable-hard-errors ={yes|no}] [--]45 test-driver --test-name NAME --log-file PATH --trs-file PATH 46 [--expect-failure {yes|no}] [--color-tests {yes|no}] 47 [--enable-hard-errors {yes|no}] [--] 48 48 TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS] 49 49 50 The '--test-name', '--log-file' and '--trs-file' options are mandatory. 51 See the GNU Automake documentation for information. 50 52 END 51 53 } … … 104 106 trap "st=143; $do_exit" 15 105 107 106 # Test script is run here. 107 "$@" >$log_file 2>&1 108 # Test script is run here. We create the file first, then append to it, 109 # to ameliorate tests themselves also writing to the log file. Our tests 110 # don't, but others can (automake bug#35762). 111 : >"$log_file" 112 "$@" >>"$log_file" 2>&1 108 113 estatus=$? 109 114 … … 127 132 # file, without the need of also peaking into the corresponding '.trs' 128 133 # file (automake bug#11814). 129 echo "$res $test_name (exit status: $estatus)" >> $log_file134 echo "$res $test_name (exit status: $estatus)" >>"$log_file" 130 135 131 136 # Report outcome to console.
Note:
See TracChangeset
for help on using the changeset viewer.