Changeset 105469 in vbox
- Timestamp:
- Jul 24, 2024 10:11:32 AM (10 months ago)
- svn:sync-xref-src-repo-rev:
- 164130
- Location:
- trunk/src/libs/libpng-1.6.43
- Files:
-
- 1 deleted
- 54 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/libpng-1.6.43/ANNOUNCE
r103316 r105469 1 libpng 1.6.4 2 - January 29, 20242 ================================ 1 libpng 1.6.43 - February 23, 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.4 2.tar.xz (LZMA-compressed, recommended)13 * libpng-1.6.4 2.tar.gz (deflate-compressed)12 * libpng-1.6.43.tar.xz (LZMA-compressed, recommended) 13 * libpng-1.6.43.tar.gz (deflate-compressed) 14 14 15 15 Source files with CRLF line endings (for Windows): 16 16 17 * lpng164 2.7z (LZMA-compressed, recommended)18 * lpng164 2.zip (deflate-compressed)17 * lpng1643.7z (LZMA-compressed, recommended) 18 * lpng1643.zip (deflate-compressed) 19 19 20 20 Other information: … … 26 26 27 27 28 Changes from version 1.6.4 1 to version 1.6.4228 Changes from version 1.6.42 to version 1.6.43 29 29 --------------------------------------------- 30 30 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. 31 * Fixed the row width check in png_check_IHDR(). 32 This corrected a bug that was specific to the 16-bit platforms, 33 and removed a spurious compiler warning from the 64-bit builds. 34 (Reported by Jacek Caban; fixed by John Bowler) 35 * Added eXIf chunk support to the push-mode reader in pngpread.c. 36 (Contributed by Chris Blume) 37 * Added contrib/pngexif for the benefit of the users who would like 38 to inspect the content of eXIf chunks. 39 * Added contrib/conftest/basic.dfa, a basic build-time configuration. 52 40 (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. 41 * Fixed a preprocessor condition in pngread.c that broke build-time 42 configurations like contrib/conftest/pngcp.dfa. 68 43 (Contributed by John Bowler) 44 * Added CMake build support for LoongArch LSX. 45 (Contributed by GuXiWei) 46 * Fixed a CMake build error that occurred under a peculiar state of the 47 dependency tree. This was a regression introduced in libpng-1.6.41. 48 (Contributed by Dan Rosser) 49 * Marked the installed libpng headers as system headers in CMake. 50 (Contributed by Benjamin Buch) 51 * Updated the build support for RISCOS. 52 (Contributed by Cameron Cawley) 53 * Updated the makefiles to allow cross-platform builds to initialize 54 conventional make variables like AR and ARFLAGS. 55 * Added various improvements to the CI scripts in areas like version 56 consistency verification and text linting. 57 * Added version consistency verification to pngtest.c also. 69 58 70 59 -
trunk/src/libs/libpng-1.6.43/AUTHORS
r103316 r105469 7 7 * Adam Richter 8 8 * Andreas Dilger 9 * Chris Blume 9 10 * Cosmin Truta 10 11 * Dave Martindale -
trunk/src/libs/libpng-1.6.43/CHANGES
r103316 r105469 6131 6131 6132 6132 Version 1.6.41 [January 24, 2024] 6133 Added SIMD-optimized code for the Loong arch LSX hardware.6133 Added SIMD-optimized code for the LoongArch LSX hardware. 6134 6134 (Contributed by GuXiWei, JinBo and ZhangLixia) 6135 6135 Fixed the run-time discovery of MIPS MSA hardware. … … 6166 6166 This was an API regression, introduced in libpng-1.6.41. 6167 6167 (Reported by Matthieu Darbois) 6168 Fixed and updated the libpng manual. 6169 6170 Version 1.6.43 [February 23, 2024] 6171 Fixed the row width check in png_check_IHDR(). 6172 This corrected a bug that was specific to the 16-bit platforms, 6173 and removed a spurious compiler warning from the 64-bit builds. 6174 (Reported by Jacek Caban; fixed by John Bowler) 6175 Added eXIf chunk support to the push-mode reader in pngpread.c. 6176 (Contributed by Chris Blume) 6177 Added contrib/pngexif for the benefit of the users who would like 6178 to inspect the content of eXIf chunks. 6179 Added contrib/conftest/basic.dfa, a basic build-time configuration. 6180 (Contributed by John Bowler) 6181 Fixed a preprocessor condition in pngread.c that broke build-time 6182 configurations like contrib/conftest/pngcp.dfa. 6183 (Contributed by John Bowler) 6184 Added CMake build support for LoongArch LSX. 6185 (Contributed by GuXiWei) 6186 Fixed a CMake build error that occurred under a peculiar state of the 6187 dependency tree. This was a regression introduced in libpng-1.6.41. 6188 (Contributed by Dan Rosser) 6189 Marked the installed libpng headers as system headers in CMake. 6190 (Contributed by Benjamin Buch) 6191 Updated the build support for RISCOS. 6192 (Contributed by Cameron Cawley) 6193 Updated the makefiles to allow cross-platform builds to initialize 6194 conventional make variables like AR and ARFLAGS. 6195 Added various improvements to the CI scripts in areas like version 6196 consistency verification and text linting. 6197 Added version consistency verification to pngtest.c also. 6168 6198 6169 6199 Send comments/corrections/commendations to png-mng-implement at lists.sf.net. -
trunk/src/libs/libpng-1.6.43/CMakeLists.txt
r103316 r105469 20 20 set(PNGLIB_MAJOR 1) 21 21 set(PNGLIB_MINOR 6) 22 set(PNGLIB_REVISION 4 1)22 set(PNGLIB_REVISION 43) 23 23 set(PNGLIB_SUBREVISION 0) 24 24 #set(PNGLIB_SUBREVISION "git") … … 63 63 64 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. 65 # These artifacts are NOT part of libpng proper, and are subject to change 66 # at any time. 66 67 option(PNG_TESTS "Build the libpng tests" ON) 67 option(PNG_TOOLS "Build the libpng tools" ON) 68 69 # Same as above, but for the third-party tools. 70 # Although these tools are targetted at development environments only, 71 # the users are allowed to override the option to build by default. 72 if (ANDROID OR IOS) 73 option(PNG_TOOLS "Build the libpng tools" OFF) 74 else() 75 option(PNG_TOOLS "Build the libpng tools" ON) 76 endif() 68 77 69 78 # Maintain backwards compatibility with the deprecated option PNG_EXECUTABLES. … … 90 99 find_package(ZLIB REQUIRED) 91 100 elseif(POLICY CMP0074) 92 # TODO: Remove the policy check if CMake version 3.12 or greater becomes the minimum required.93 101 if("x${ZLIB_ROOT}" STREQUAL "x") 94 102 message(DEPRECATION … … 250 258 endif() 251 259 260 # Set definitions and sources for LoongArch. 261 if(TARGET_ARCH MATCHES "^(loongarch)") 262 include(CheckCCompilerFlag) 263 set(PNG_LOONGARCH_LSX_POSSIBLE_VALUES on off) 264 set(PNG_LOONGARCH_LSX "on" 265 CACHE STRING "Enable LOONGARCH_LSX optimizations: on|off; on is default") 266 set_property(CACHE PNG_LOONGARCH_LSX 267 PROPERTY STRINGS ${PNG_LOONGARCH_LSX_POSSIBLE_VALUES}) 268 list(FIND PNG_LOONGARCH_LSX_POSSIBLE_VALUES ${PNG_LOONGARCH_LSX} index) 269 if(index EQUAL -1) 270 message(FATAL_ERROR "PNG_LOONGARCH_LSX must be one of [${PNG_LOONGARCH_LSX_POSSIBLE_VALUES}]") 271 elseif(NOT PNG_LOONGARCH_LSX STREQUAL "off") 272 CHECK_C_COMPILER_FLAG("-mlsx" COMPILER_SUPPORTS_LSX) 273 if(COMPILER_SUPPORTS_LSX) 274 set(libpng_loongarch_sources 275 loongarch/loongarch_lsx_init.c 276 loongarch/filter_lsx_intrinsics.c) 277 set_source_files_properties(${libpng_loongarch_sources} 278 PROPERTIES 279 COMPILE_FLAGS "-mlsx") 280 add_definitions(-DPNG_LOONGARCH_LSX_OPT=1) 281 else() 282 message(FATAL_ERROR "Compiler does not support -mlsx option") 283 endif() 284 else() 285 add_definitions(-DPNG_LOONGARCH_LSX_OPT=0) 286 endif() 287 endif() 288 252 289 else(PNG_HARDWARE_OPTIMIZATIONS) 253 290 … … 270 307 if(TARGET_ARCH MATCHES "^(mipsel|mips64el)") 271 308 add_definitions(-DPNG_MIPS_MSA_OPT=0) 309 endif() 310 311 # Set definitions and sources for LoongArch. 312 if(TARGET_ARCH MATCHES "^(loongarch)") 313 add_definitions(-DPNG_LOONGARCH_LSX_OPT=0) 272 314 endif() 273 315 … … 311 353 endif() 312 354 313 find_program(AWK NAMES gawk awk) 355 # Find an AWK language processor. 356 # Start with specific AWK implementations like gawk and nawk, which are 357 # known to work with our scripts, then fall back to the system awk. 358 find_program(AWK NAMES gawk nawk awk) 359 if(AWK) 360 message(STATUS "Found AWK program: ${AWK}") 361 else() 362 message(STATUS "Could not find an AWK-compatible program") 363 endif() 314 364 315 365 include_directories(${CMAKE_CURRENT_BINARY_DIR}) … … 353 403 "-DINPUT=${_GC_INPUT}" 354 404 "-DOUTPUT=${_GC_OUTPUT}" 355 -P "${CMAKE_CURRENT_BINARY_DIR}/ genchk.cmake"405 -P "${CMAKE_CURRENT_BINARY_DIR}/scripts/cmake/genchk.cmake" 356 406 DEPENDS "${_GC_INPUT}" ${_GC_DEPENDS} 357 407 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") … … 376 426 "-DINPUT=${_GO_INPUT}" 377 427 "-DOUTPUT=${_GO_OUTPUT}" 378 -P "${CMAKE_CURRENT_BINARY_DIR}/ genout.cmake"428 -P "${CMAKE_CURRENT_BINARY_DIR}/scripts/cmake/genout.cmake" 379 429 DEPENDS "${_GO_INPUT}" ${_GO_DEPENDS} 380 430 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") … … 395 445 COMMAND "${CMAKE_COMMAND}" 396 446 "-DOUTPUT=${_GSO_OUTPUT}" 397 -P "${CMAKE_CURRENT_BINARY_DIR}/ gensrc.cmake"447 -P "${CMAKE_CURRENT_BINARY_DIR}/scripts/cmake/gensrc.cmake" 398 448 DEPENDS ${_GSO_DEPENDS} 399 449 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") … … 525 575 COMMAND "${CMAKE_COMMAND}" 526 576 "-DOUTPUT=scripts/pnglibconf.h.prebuilt" 527 -P "${CMAKE_CURRENT_BINARY_DIR}/ gensrc.cmake"577 -P "${CMAKE_CURRENT_BINARY_DIR}/scripts/cmake/gensrc.cmake" 528 578 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}") 529 579 … … 582 632 ${libpng_mips_sources} 583 633 ${libpng_powerpc_sources} 634 ${libpng_loongarch_sources} 584 635 ) 585 636 set(pngtest_sources … … 663 714 endif() 664 715 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}) 716 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) 717 target_include_directories(png_shared SYSTEM 718 INTERFACE $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/libpng${PNGLIB_ABI_VERSION}>) 669 719 target_link_libraries(png_shared PUBLIC ZLIB::ZLIB ${M_LIBRARY}) 670 720 endif() … … 678 728 DEBUG_POSTFIX "${PNG_DEBUG_POSTFIX}") 679 729 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}) 730 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) 731 target_include_directories(png_static SYSTEM 732 INTERFACE $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/libpng${PNGLIB_ABI_VERSION}>) 684 733 target_link_libraries(png_static PUBLIC ZLIB::ZLIB ${M_LIBRARY}) 685 734 endif() 686 735 687 if(PNG_FRAMEWORK AND APPLE) 736 if(PNG_FRAMEWORK AND NOT APPLE) 737 message(AUTHOR_WARNING 738 "Setting PNG_FRAMEWORK to OFF, as it only applies to Apple systems") 739 set(PNG_FRAMEWORK OFF) 740 endif() 741 742 if(PNG_FRAMEWORK) 688 743 add_library(png_framework SHARED ${libpng_sources}) 689 744 add_dependencies(png_framework png_genfiles) … … 702 757 set_target_properties(png_framework PROPERTIES DEFINE_SYMBOL "") 703 758 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}) 759 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) 760 target_include_directories(png_framework SYSTEM 761 INTERFACE $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/libpng${PNGLIB_ABI_VERSION}>) 708 762 target_link_libraries(png_framework PUBLIC ZLIB::ZLIB ${M_LIBRARY}) 709 763 endif() … … 968 1022 # Create source generation scripts. 969 1023 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake/genchk.cmake.in 970 ${CMAKE_CURRENT_BINARY_DIR}/ genchk.cmake1024 ${CMAKE_CURRENT_BINARY_DIR}/scripts/cmake/genchk.cmake 971 1025 @ONLY) 972 1026 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake/genout.cmake.in 973 ${CMAKE_CURRENT_BINARY_DIR}/ genout.cmake1027 ${CMAKE_CURRENT_BINARY_DIR}/scripts/cmake/genout.cmake 974 1028 @ONLY) 975 1029 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake/gensrc.cmake.in 976 ${CMAKE_CURRENT_BINARY_DIR}/ gensrc.cmake1030 ${CMAKE_CURRENT_BINARY_DIR}/scripts/cmake/gensrc.cmake 977 1031 @ONLY) 978 1032 -
trunk/src/libs/libpng-1.6.43/README
r103316 r105469 1 README for libpng version 1.6.4 21 README for libpng version 1.6.43 2 2 ================================ 3 3 … … 143 143 pngwtran.c => Write data transformations 144 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 145 arm/ => Optimized code for ARM Neon 146 intel/ => Optimized code for INTEL SSE2 147 loongarch/ => Optimized code for LoongArch LSX 148 mips/ => Optimized code for MIPS MSA and MIPS MMI 149 powerpc/ => Optimized code for PowerPC VSX 149 150 ci/ => Scripts for continuous integration 150 151 contrib/ => External contributions … … 159 160 oss-fuzz/ => Files used by the OSS-Fuzz project for fuzz-testing 160 161 libpng 162 pngexif/ => Program to inspect the EXIF information in PNG files 161 163 pngminim/ => Minimal decoder, encoder, and progressive decoder 162 164 programs demonstrating the use of pngusr.dfa -
trunk/src/libs/libpng-1.6.43/configure
r103316 r105469 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for libpng 1.6.4 2.3 # Generated by GNU Autoconf 2.72 for libpng 1.6.43. 4 4 # 5 5 # Report bugs to <[email protected]>. … … 615 615 PACKAGE_NAME='libpng' 616 616 PACKAGE_TARNAME='libpng' 617 PACKAGE_VERSION='1.6.4 2'618 PACKAGE_STRING='libpng 1.6.4 2'617 PACKAGE_VERSION='1.6.43' 618 PACKAGE_STRING='libpng 1.6.43' 619 619 PACKAGE_BUGREPORT='[email protected]' 620 620 PACKAGE_URL='' … … 868 868 CPP 869 869 LT_SYS_LIBRARY_PATH 870 AWK 870 871 PNG_COPTS' 871 872 … … 1417 1418 # This message is too long to be a string in the A/UX 3.1 sh. 1418 1419 cat <<_ACEOF 1419 'configure' configures libpng 1.6.4 2to adapt to many kinds of systems.1420 'configure' configures libpng 1.6.43 to adapt to many kinds of systems. 1420 1421 1421 1422 Usage: $0 [OPTION]... [VAR=VALUE]... … … 1488 1489 if test -n "$ac_init_help"; then 1489 1490 case $ac_init_help in 1490 short | recursive ) echo "Configuration of libpng 1.6.4 2:";;1491 short | recursive ) echo "Configuration of libpng 1.6.43:";; 1491 1492 esac 1492 1493 cat <<\_ACEOF … … 1544 1545 change this. 1545 1546 --enable-hardware-optimizations 1546 Enable hardware optimizations: =no/off, yes/on :1547 Enable hardware optimizations: =no/off, yes/on. 1547 1548 --enable-arm-neon Enable ARM NEON optimizations: =no/off, check, api, 1548 yes/on :no/off: disable the optimizations; check:1549 yes/on. no/off: disable the optimizations; check: 1549 1550 use internal checking code (deprecated and poorly 1550 1551 supported); api: disable by default, enable by a … … 1553 1554 compiler. 1554 1555 --enable-mips-msa Enable MIPS MSA optimizations: =no/off, check, api, 1555 yes/on :no/off: disable the optimizations; check:1556 yes/on. no/off: disable the optimizations; check: 1556 1557 use internal checking code (deprecated and poorly 1557 1558 supported); api: disable by default, enable by a … … 1560 1561 compiler. 1561 1562 --enable-mips-mmi Enable MIPS MMI optimizations: =no/off, check, api, 1562 yes/on :no/off: disable the optimizations; check:1563 yes/on. no/off: disable the optimizations; check: 1563 1564 use internal checking code (deprecated and poorly 1564 1565 supported); api: disable by default, enable by a … … 1566 1567 unconditionally. If not specified: determined by the 1567 1568 compiler. 1568 --enable-intel-sse Enable Intel SSE optimizations: =no/off, yes/on :1569 --enable-intel-sse Enable Intel SSE optimizations: =no/off, yes/on. 1569 1570 no/off: disable the optimizations; yes/on: enable 1570 1571 the optimizations. If not specified: determined by 1571 1572 the compiler. 1572 1573 --enable-powerpc-vsx Enable POWERPC VSX optimizations: =no/off, check, 1573 api, yes/on :no/off: disable the optimizations;1574 check: use internal checking code api: disable by1575 default, enable by a call to png_set_option yes/on:1574 api, yes/on. no/off: disable the optimizations; 1575 check: use internal checking code; api: disable by 1576 default, enable by a call to png_set_option; yes/on: 1576 1577 turn on unconditionally. If not specified: 1577 1578 determined by the compiler. … … 1614 1615 LT_SYS_LIBRARY_PATH 1615 1616 User-defined run-time library search path. 1616 PNG_COPTS additional flags for the C compiler, use this for options that 1617 AWK AWK language processor 1618 PNG_COPTS additional flags for the C compiler, to be used for options that 1617 1619 would cause configure itself to fail 1618 1620 … … 1684 1686 if $ac_init_version; then 1685 1687 cat <<\_ACEOF 1686 libpng configure 1.6.4 21688 libpng configure 1.6.43 1687 1689 generated by GNU Autoconf 2.72 1688 1690 … … 1947 1949 running configure, to aid debugging if configure makes a mistake. 1948 1950 1949 It was created by libpng $as_me 1.6.4 2, which was1951 It was created by libpng $as_me 1.6.43, which was 1950 1952 generated by GNU Autoconf 2.72. Invocation command line was 1951 1953 … … 3247 3249 # Define the identity of the package. 3248 3250 PACKAGE='libpng' 3249 VERSION='1.6.4 2'3251 VERSION='1.6.43' 3250 3252 3251 3253 … … 3380 3382 3381 3383 3382 PNGLIB_VERSION=1.6.4 23384 PNGLIB_VERSION=1.6.43 3383 3385 PNGLIB_MAJOR=1 3384 3386 PNGLIB_MINOR=6 3385 PNGLIB_RELEASE=4 13387 PNGLIB_RELEASE=43 3386 3388 3387 3389 … … 3390 3392 3391 3393 3392 # Check s forprograms.3394 # Check for basic programs. 3393 3395 ac_ext=c 3394 3396 ac_cpp='$CPP $CPPFLAGS' … … 13660 13662 13661 13663 13662 # Some awks crash when confronted with pnglibconf.dfa, do a test run now 13663 # to make sure this doesn't happen 13664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that AWK works" >&5 13665 printf %s "checking that AWK works... " >&6; } 13664 13665 13666 # Some awk implementations crash when confronted with pnglibconf.dfa. 13667 # Run a test now, to make sure this doesn't happen. 13668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if awk ($AWK) works" >&5 13669 printf %s "checking if awk ($AWK) works... " >&6; } 13666 13670 if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\ 13667 13671 ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\ 13668 13672 ${srcdir}/pngusr.dfa 1>&2 13669 13673 then 13670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&513671 printf "%s\n" " ok" >&6; }13674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13675 printf "%s\n" "yes" >&6; } 13672 13676 else 13673 13677 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13674 13678 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13675 as_fn_error 1 " failed13679 as_fn_error 1 "no 13676 13680 See 'config.log' for more details" "$LINENO" 5; } 13677 13681 fi … … 14224 14228 printf %s "checking for symbol prefix... " >&6; } 14225 14229 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \ 14226 | ${CPP -${CC-gcc} -E} - 2>&1 \14227 | ${EGREP -grep} "^PREFIX=" \14228 | ${SED -sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`14230 | ${CPP:-${CC:-gcc} -E} - 2>&1 \ 14231 | ${EGREP:-grep} "^PREFIX=" \ 14232 | ${SED:-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"` 14229 14233 14230 14234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5 … … 14426 14430 14427 14431 14428 # ARM 14429 # === 14430 # 14431 # ARM NEON (SIMD) support. 14432 # ARM NEON 14433 # ======== 14432 14434 14433 14435 # Check whether --enable-arm-neon was given. … … 14454 14456 printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h 14455 14457 14456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api' , if14457 you want the optimizations unconditionally pass -mfpu=neon14458 to the compiler." >&514459 printf "%s\n" "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api' , if14460 you want the optimizations unconditionally pass -mfpu=neon14461 to the compiler." >&2;};;14458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api'; 14459 if you want the optimizations unconditionally, 14460 pass '-mfpu=neon' to the compiler." >&5 14461 printf "%s\n" "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api'; 14462 if you want the optimizations unconditionally, 14463 pass '-mfpu=neon' to the compiler." >&2;};; 14462 14464 *) 14463 as_fn_error $? "--enable-arm-neon=${enable_arm_neon}: invalid value" "$LINENO" 5 14465 as_fn_error $? "--enable-arm-neon=${enable_arm_neon}: 14466 invalid argument" "$LINENO" 5 14464 14467 esac 14465 14468 fi … … 14467 14470 14468 14471 # Add ARM-specific files to all builds where $host_cpu is arm ('arm*') or 14469 # where ARM optimizations were explicitly requested (this allows a fallback14470 # if a future host CPU does not match 'arm*' )14472 # where ARM optimizations were explicitly requested. (This allows a fallback 14473 # if a future host CPU does not match 'arm*'.) 14471 14474 14472 14475 if test "$enable_arm_neon" != 'no' && … … 14483 14486 14484 14487 14485 # MIPS 14486 # ==== 14487 # 14488 # MIPS MSA (SIMD) support. 14488 # MIPS MSA 14489 # ======== 14489 14490 14490 14491 # Check whether --enable-mips-msa was given. … … 14511 14512 printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h 14512 14513 14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-msa: please specify 'check' or 'api' , if14514 you want the optimizations unconditionally pass '-mmsa -mfp64'14515 to the compiler." >&514516 printf "%s\n" "$as_me: WARNING: --enable-mips-msa: please specify 'check' or 'api' , if14517 you want the optimizations unconditionally pass '-mmsa -mfp64'14518 to the compiler." >&2;};;14514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-msa: please specify 'check' or 'api'; 14515 if you want the optimizations unconditionally, 14516 pass '-mmsa -mfp64' to the compiler." >&5 14517 printf "%s\n" "$as_me: WARNING: --enable-mips-msa: please specify 'check' or 'api'; 14518 if you want the optimizations unconditionally, 14519 pass '-mmsa -mfp64' to the compiler." >&2;};; 14519 14520 *) 14520 as_fn_error $? "--enable-mips-msa=${enable_mips_msa}: invalid value" "$LINENO" 5 14521 as_fn_error $? "--enable-mips-msa=${enable_mips_msa}: 14522 invalid argument" "$LINENO" 5 14521 14523 esac 14522 14524 fi … … 14524 14526 14525 14527 # Add MIPS-specific files to all builds where $host_cpu is mips ('mips*') or 14526 # where MIPS optimizations were explicitly requested (this allows a fallback14527 # if a future host CPU does not match 'mips*' )14528 # where MIPS optimizations were explicitly requested. (This allows a fallback 14529 # if a future host CPU does not match 'mips*'.) 14528 14530 14529 14531 if test "$enable_mips_msa" != 'no' && … … 14539 14541 14540 14542 14541 # MIPS 14542 # === 14543 # 14544 # MIPS MMI (SIMD) support. 14543 # MIPS MMI 14544 # ======== 14545 14545 14546 14546 # Check whether --enable-mips-mmi was given. … … 14567 14567 printf "%s\n" "#define PNG_MIPS_MMI_OPT 1" >>confdefs.h 14568 14568 14569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-mmi: please specify 'check' or 'api' , if14570 you want the optimizations unconditionally pass '-mloongson-mmi -march=loongson3a'14571 to the compiler." >&514572 printf "%s\n" "$as_me: WARNING: --enable-mips-mmi: please specify 'check' or 'api' , if14573 you want the optimizations unconditionally pass '-mloongson-mmi -march=loongson3a'14574 to the compiler." >&2;};;14569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-mmi: please specify 'check' or 'api'; 14570 if you want the optimizations unconditionally 14571 pass '-mloongson-mmi -march=loongson3a' to the compiler." >&5 14572 printf "%s\n" "$as_me: WARNING: --enable-mips-mmi: please specify 'check' or 'api'; 14573 if you want the optimizations unconditionally 14574 pass '-mloongson-mmi -march=loongson3a' to the compiler." >&2;};; 14575 14575 *) 14576 as_fn_error $? "--enable-mips-mmi=${enable_mips_mmi}: invalid value" "$LINENO" 5 14576 as_fn_error $? "--enable-mips-mmi=${enable_mips_mmi}: 14577 invalid argument" "$LINENO" 5 14577 14578 esac 14578 14579 fi … … 14580 14581 14581 14582 # Add MIPS specific files to all builds where the host_cpu is mips ('mips*') or 14582 # where MIPS optimizations were explicitly requested (this allows a fallback if a14583 # future host CPU does not match 'mips*')14583 # where MIPS optimizations were explicitly requested. (This allows a fallback 14584 # if a future host CPU does not match 'mips*'.) 14584 14585 14585 14586 if test "$enable_mips_mmi" != 'no' && 14586 14587 case "$host_cpu" in 14587 mipsel*|mips64el*) : ;;14588 mipsel*|mips64el*) : ;; 14588 14589 esac; then 14589 14590 PNG_MIPS_MMI_TRUE= … … 14595 14596 14596 14597 14597 # INTEL 14598 # ===== 14599 # 14600 # INTEL SSE (SIMD) support. 14598 # INTEL SSE 14599 # ========= 14601 14600 14602 14601 # Check whether --enable-intel-sse was given. … … 14616 14615 ;; 14617 14616 *) 14618 as_fn_error $? "--enable-intel-sse=${enable_intel_sse}: invalid value" "$LINENO" 5 14617 as_fn_error $? "--enable-intel-sse=${enable_intel_sse}: 14618 invalid argument" "$LINENO" 5 14619 14619 esac 14620 14620 fi … … 14622 14622 14623 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 fallback14625 # if a future host CPU does not match 'x86*' )14624 # where Intel optimizations were explicitly requested. (This allows a fallback 14625 # if a future host CPU does not match 'x86*'.) 14626 14626 if test "$enable_intel_sse" != 'no' && 14627 14627 case "$host_cpu" in … … 14637 14637 14638 14638 14639 # PowerPC 14640 # ======= 14641 # 14642 # PowerPC VSX (SIMD) support. 14639 # POWERPC VSX 14640 # =========== 14643 14641 14644 14642 # Check whether --enable-powerpc-vsx was given. … … 14657 14655 printf "%s\n" "#define PNG_POWERPC_VSX_CHECK_SUPPORTED /**/" >>confdefs.h 14658 14656 14659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file14660 for the list of supported OSes." >&514661 printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file14662 for the list of supported OSes." >&2;};;14657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please see contrib/powerpc/README 14658 for the list of supported systems." >&5 14659 printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx: please see contrib/powerpc/README 14660 for the list of supported systems." >&2;};; 14663 14661 api) 14664 14662 … … 14669 14667 printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h 14670 14668 14671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api' , if14672 you want the optimizations unconditionally pass '-maltivec -mvsx'14673 or '-mcpu=power8' to the compiler." >&514674 printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api' , if14675 you want the optimizations unconditionally pass '-maltivec -mvsx'14676 or '-mcpu=power8' to the compiler." >&2;};;14669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api'; 14670 if you want the optimizations unconditionally, 14671 pass '-maltivec -mvsx' or '-mcpu=power8' to the compiler." >&5 14672 printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api'; 14673 if you want the optimizations unconditionally, 14674 pass '-maltivec -mvsx' or '-mcpu=power8' to the compiler." >&2;};; 14677 14675 *) 14678 as_fn_error $? "--enable-powerpc-vsx=${enable_powerpc_vsx}: invalid value" "$LINENO" 5 14676 as_fn_error $? "--enable-powerpc-vsx=${enable_powerpc_vsx}: 14677 invalid argument" "$LINENO" 5 14679 14678 esac 14680 14679 fi 14681 14680 14682 14681 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 fallback14685 # if a future host CPU does not match 'powerpc*')14682 # Add PowerPC-specific files to all builds where $host_cpu is powerpc 14683 # ('powerpc*') or where PowerPC optimizations were explicitly requested. 14684 # (This allows a fallback if a future host CPU does not match 'powerpc*'.) 14686 14685 14687 14686 if test "$enable_powerpc_vsx" != 'no' && … … 14697 14696 14698 14697 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 14698 # LOONGARCH LSX 14699 # ============= 14700 14701 # Check whether --enable-loongarch-lsx was given. 14702 if test ${enable_loongarch_lsx+y} 14703 then : 14704 enableval=$enable_loongarch_lsx; case "$enableval" in 14705 no|off) 14706 # disable the default enabling on __loongarch_simd systems: 14707 14708 printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 0" >>confdefs.h 14709 14710 # Prevent inclusion of the assembler files below: 14711 enable_loongarch_lsx=no;; 14712 yes|on) 14713 14714 printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h 14715 14716 ;; 14717 *) 14718 as_fn_error $? "--enable-loongarch-lsx=${enable_loongarch_lsx}: 14719 invalid argument" "$LINENO" 5 14720 esac 14721 fi 14722 14723 14724 if test "$enable_loongarch_lsx" != "no" && 14725 case "$host_cpu" in 14726 loongarch*) : ;; 14727 *) test "$enable_loongarch_lsx" != '' ;; 14728 esac 14729 then 14730 compiler_support_loongarch_lsx=no 14731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use LoongArch LSX intrinsics" >&5 14732 printf %s "checking whether to use LoongArch LSX intrinsics... " >&6; } 14733 save_CFLAGS="$CFLAGS" 14734 LSX_CFLAGS="${LSX_CFLAGS:-"-mlsx"}" 14735 CFLAGS="$CFLAGS $LSX_CFLAGS" 14736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14714 14737 /* end confdefs.h. */ 14715 14738 14716 #include <lsxintrin.h>14739 #include <lsxintrin.h> 14717 14740 int main(){ 14718 14719 14720 14741 __m128i a, b, c; 14742 a = __lsx_vadd_w(b, c); 14743 return 0; 14721 14744 } 14722 14745 _ACEOF … … 14726 14749 fi 14727 14750 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" >&514751 CFLAGS="$save_CFLAGS" 14752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $compiler_support_loongarch_lsx" >&5 14730 14753 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 14754 if test "$compiler_support_loongarch_lsx" = "yes"; then 14756 14755 14757 14756 printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h … … 14763 14762 fi 14764 14763 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 && 14764 # Add LoongArch specific files to all builds where the host_cpu is loongarch 14765 # ('loongarch*') or where LoongArch optimizations were explicitly requested. 14766 # (This allows a fallback if a future host CPU does not match 'loongarch*'.) 14767 14768 if test "$enable_loongarch_lsx" != "no" && 14769 test "$compiler_support_loongarch_lsx" = "yes" && 14770 14770 case "$host_cpu" in 14771 loongarch*) : ;;14772 *) test "$enable_loongarch_lsx" != '' ;;14771 loongarch*) : ;; 14772 *) test "$enable_loongarch_lsx" != '' ;; 14773 14773 esac; then 14774 14774 PNG_LOONGARCH_LSX_TRUE= … … 15383 15383 # values after options handling. 15384 15384 ac_log=" 15385 This file was extended by libpng $as_me 1.6.4 2, which was15385 This file was extended by libpng $as_me 1.6.43, which was 15386 15386 generated by GNU Autoconf 2.72. Invocation command line was 15387 15387 … … 15451 15451 ac_cs_config='$ac_cs_config_escaped' 15452 15452 ac_cs_version="\\ 15453 libpng config.status 1.6.4 215453 libpng config.status 1.6.43 15454 15454 configured by $0, generated by GNU Autoconf 2.72, 15455 15455 with options \\"\$ac_cs_config\\" -
trunk/src/libs/libpng-1.6.43/configure.ac
r103316 r105469 26 26 dnl Version number stuff here: 27 27 28 AC_INIT([libpng],[1.6.4 2],[[email protected]])28 AC_INIT([libpng],[1.6.43],[[email protected]]) 29 29 AC_CONFIG_MACRO_DIR([scripts/autoconf]) 30 30 … … 47 47 dnl stop configure from automagically running automake 48 48 49 PNGLIB_VERSION=1.6.4 249 PNGLIB_VERSION=1.6.43 50 50 PNGLIB_MAJOR=1 51 51 PNGLIB_MINOR=6 52 PNGLIB_RELEASE=4 152 PNGLIB_RELEASE=43 53 53 54 54 dnl End of version number stuff … … 57 57 AC_CONFIG_HEADERS([config.h]) 58 58 59 # Check s forprograms.59 # Check for basic programs. 60 60 AC_LANG([C]) 61 61 AC_PROG_CC … … 73 73 LT_PREREQ([2.4.2]) 74 74 75 # Some awks crash when confronted with pnglibconf.dfa, do a test run now 76 # to make sure this doesn't happen 77 AC_MSG_CHECKING([that AWK works]) 75 dnl Declare the AWK variable. 76 AC_ARG_VAR(AWK, [AWK language processor]) 77 78 # Some awk implementations crash when confronted with pnglibconf.dfa. 79 # Run a test now, to make sure this doesn't happen. 80 AC_MSG_CHECKING([if awk ($AWK) works]) 78 81 if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\ 79 82 ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\ 80 83 ${srcdir}/pngusr.dfa 1>&2 81 84 then 82 AC_MSG_RESULT([ ok])85 AC_MSG_RESULT([yes]) 83 86 else 84 AC_MSG_FAILURE([ failed], 1)87 AC_MSG_FAILURE([no], 1) 85 88 fi 86 89 … … 112 115 # Add the following option to deal with this: 113 116 AC_ARG_VAR(PNG_COPTS, 114 [additional flags for the C compiler, use thisfor options that would]117 [additional flags for the C compiler, to be used for options that would] 115 118 [cause configure itself to fail]) 116 119 AC_ARG_ENABLE(werror, … … 224 227 AC_MSG_CHECKING([for symbol prefix]) 225 228 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \ 226 | ${CPP -${CC-gcc} -E} - 2>&1 \227 | ${EGREP -grep} "^PREFIX=" \228 | ${SED -sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`229 | ${CPP:-${CC:-gcc} -E} - 2>&1 \ 230 | ${EGREP:-grep} "^PREFIX=" \ 231 | ${SED:-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"` 229 232 AC_SUBST(SYMBOL_PREFIX) 230 233 AC_MSG_RESULT($SYMBOL_PREFIX) … … 319 322 AC_ARG_ENABLE([hardware-optimizations], 320 323 AS_HELP_STRING([[[--enable-hardware-optimizations]]], 321 [Enable hardware optimizations: =no/off, yes/on :]),324 [Enable hardware optimizations: =no/off, yes/on.]), 322 325 [case "$enableval" in 323 326 no|off) … … 377 380 esac]) 378 381 379 # ARM 380 # === 381 # 382 # ARM NEON (SIMD) support. 382 # ARM NEON 383 # ======== 383 384 384 385 AC_ARG_ENABLE([arm-neon], 385 386 AS_HELP_STRING([[[--enable-arm-neon]]], 386 [Enable ARM NEON optimizations: =no/off, check, api, yes/on:] 387 [no/off: disable the optimizations; check: use internal checking code] 388 [(deprecated and poorly supported); api: disable by default, enable by] 389 [a call to png_set_option; yes/on: turn on unconditionally.] 387 [Enable ARM NEON optimizations: =no/off, check, api, yes/on.] 388 [no/off: disable the optimizations;] 389 [check: use internal checking code (deprecated and poorly supported);] 390 [api: disable by default, enable by a call to png_set_option;] 391 [yes/on: turn on unconditionally.] 390 392 [If not specified: determined by the compiler.]), 391 393 [case "$enableval" in … … 405 407 AC_DEFINE([PNG_ARM_NEON_OPT], [2], 406 408 [Enable ARM Neon optimizations]) 407 AC_MSG_WARN([--enable-arm-neon: please specify 'check' or 'api' , if]408 [ you want the optimizations unconditionally pass -mfpu=neon]409 [ to the compiler.]);;409 AC_MSG_WARN([--enable-arm-neon: please specify 'check' or 'api';] 410 [if you want the optimizations unconditionally,] 411 [pass '-mfpu=neon' to the compiler.]);; 410 412 *) 411 AC_MSG_ERROR([--enable-arm-neon=${enable_arm_neon}: invalid value]) 413 AC_MSG_ERROR([--enable-arm-neon=${enable_arm_neon}:] 414 [invalid argument]) 412 415 esac]) 413 416 414 417 # Add ARM-specific files to all builds where $host_cpu is arm ('arm*') or 415 # where ARM optimizations were explicitly requested (this allows a fallback416 # if a future host CPU does not match 'arm*' )418 # where ARM optimizations were explicitly requested. (This allows a fallback 419 # if a future host CPU does not match 'arm*'.) 417 420 418 421 AM_CONDITIONAL([PNG_ARM_NEON], … … 423 426 esac]) 424 427 425 # MIPS 426 # ==== 427 # 428 # MIPS MSA (SIMD) support. 428 # MIPS MSA 429 # ======== 429 430 430 431 AC_ARG_ENABLE([mips-msa], 431 432 AS_HELP_STRING([[[--enable-mips-msa]]], 432 [Enable MIPS MSA optimizations: =no/off, check, api, yes/on:] 433 [no/off: disable the optimizations; check: use internal checking code] 434 [(deprecated and poorly supported); api: disable by default, enable by] 435 [a call to png_set_option; yes/on: turn on unconditionally.] 433 [Enable MIPS MSA optimizations: =no/off, check, api, yes/on.] 434 [no/off: disable the optimizations;] 435 [check: use internal checking code (deprecated and poorly supported);] 436 [api: disable by default, enable by a call to png_set_option;] 437 [yes/on: turn on unconditionally.] 436 438 [If not specified: determined by the compiler.]), 437 439 [case "$enableval" in … … 451 453 AC_DEFINE([PNG_MIPS_MSA_OPT], [2], 452 454 [Enable MIPS MSA optimizations]) 453 AC_MSG_WARN([--enable-mips-msa: please specify 'check' or 'api' , if]454 [ you want the optimizations unconditionally pass '-mmsa -mfp64']455 [ to the compiler.]);;455 AC_MSG_WARN([--enable-mips-msa: please specify 'check' or 'api';] 456 [if you want the optimizations unconditionally,] 457 [pass '-mmsa -mfp64' to the compiler.]);; 456 458 *) 457 AC_MSG_ERROR([--enable-mips-msa=${enable_mips_msa}: invalid value]) 459 AC_MSG_ERROR([--enable-mips-msa=${enable_mips_msa}:] 460 [invalid argument]) 458 461 esac]) 459 462 460 463 # Add MIPS-specific files to all builds where $host_cpu is mips ('mips*') or 461 # where MIPS optimizations were explicitly requested (this allows a fallback462 # if a future host CPU does not match 'mips*' )464 # where MIPS optimizations were explicitly requested. (This allows a fallback 465 # if a future host CPU does not match 'mips*'.) 463 466 464 467 AM_CONDITIONAL([PNG_MIPS_MSA], … … 468 471 esac]) 469 472 470 # MIPS 471 # === 472 # 473 # MIPS MMI (SIMD) support. 473 # MIPS MMI 474 # ======== 474 475 475 476 AC_ARG_ENABLE([mips-mmi], 476 477 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.] 478 [Enable MIPS MMI optimizations: =no/off, check, api, yes/on.] 479 [no/off: disable the optimizations;] 480 [check: use internal checking code (deprecated and poorly supported);] 481 [api: disable by default, enable by a call to png_set_option;] 482 [yes/on: turn on unconditionally.] 481 483 [If not specified: determined by the compiler.]), 482 484 [case "$enableval" in … … 496 498 AC_DEFINE([PNG_MIPS_MMI_OPT], [1], 497 499 [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.]);;500 AC_MSG_WARN([--enable-mips-mmi: please specify 'check' or 'api';] 501 [if you want the optimizations unconditionally] 502 [pass '-mloongson-mmi -march=loongson3a' to the compiler.]);; 501 503 *) 502 AC_MSG_ERROR([--enable-mips-mmi=${enable_mips_mmi}: invalid value]) 504 AC_MSG_ERROR([--enable-mips-mmi=${enable_mips_mmi}:] 505 [invalid argument]) 503 506 esac]) 504 507 505 508 # Add MIPS specific files to all builds where the host_cpu is mips ('mips*') or 506 # where MIPS optimizations were explicitly requested (this allows a fallback if a507 # future host CPU does not match 'mips*')509 # where MIPS optimizations were explicitly requested. (This allows a fallback 510 # if a future host CPU does not match 'mips*'.) 508 511 509 512 AM_CONDITIONAL([PNG_MIPS_MMI], 510 513 [test "$enable_mips_mmi" != 'no' && 511 514 case "$host_cpu" in 512 mipsel*|mips64el*) : ;;515 mipsel*|mips64el*) : ;; 513 516 esac]) 514 517 515 # INTEL 516 # ===== 517 # 518 # INTEL SSE (SIMD) support. 518 # INTEL SSE 519 # ========= 519 520 520 521 AC_ARG_ENABLE([intel-sse], 521 522 AS_HELP_STRING([[[--enable-intel-sse]]], 522 [Enable Intel SSE optimizations: =no/off, yes/on :]523 [Enable Intel SSE optimizations: =no/off, yes/on.] 523 524 [no/off: disable the optimizations;] 524 525 [yes/on: enable the optimizations.] … … 535 536 [Enable Intel SSE optimizations]);; 536 537 *) 537 AC_MSG_ERROR([--enable-intel-sse=${enable_intel_sse}: invalid value]) 538 AC_MSG_ERROR([--enable-intel-sse=${enable_intel_sse}:] 539 [invalid argument]) 538 540 esac]) 539 541 540 542 # Add Intel-specific files to all builds where $host_cpu is Intel ('x86*') or 541 # where Intel optimizations were explicitly requested (this allows a fallback542 # if a future host CPU does not match 'x86*' )543 # where Intel optimizations were explicitly requested. (This allows a fallback 544 # if a future host CPU does not match 'x86*'.) 543 545 AM_CONDITIONAL([PNG_INTEL_SSE], 544 546 [test "$enable_intel_sse" != 'no' && … … 548 550 esac]) 549 551 550 # PowerPC 551 # ======= 552 # 553 # PowerPC VSX (SIMD) support. 552 # POWERPC VSX 553 # =========== 554 554 555 555 AC_ARG_ENABLE([powerpc-vsx], 556 556 AS_HELP_STRING([[[--enable-powerpc-vsx]]], 557 [Enable POWERPC VSX optimizations: =no/off, check, api, yes/on:] 558 [no/off: disable the optimizations; check: use internal checking code] 559 [api: disable by default, enable by a call to png_set_option] 557 [Enable POWERPC VSX optimizations: =no/off, check, api, yes/on.] 558 [no/off: disable the optimizations;] 559 [check: use internal checking code;] 560 [api: disable by default, enable by a call to png_set_option;] 560 561 [yes/on: turn on unconditionally.] 561 562 [If not specified: determined by the compiler.]), … … 570 571 AC_DEFINE([PNG_POWERPC_VSX_CHECK_SUPPORTED], [], 571 572 [Check for POWERPC VSX support at run-time]) 572 AC_MSG_WARN([--enable-powerpc-vsx Please check contrib/powerpc/README file]573 [for the list of supported OSes.]);;573 AC_MSG_WARN([--enable-powerpc-vsx: please see contrib/powerpc/README] 574 [for the list of supported systems.]);; 574 575 api) 575 576 AC_DEFINE([PNG_POWERPC_VSX_API_SUPPORTED], [], … … 578 579 AC_DEFINE([PNG_POWERPC_VSX_OPT], [2], 579 580 [Enable POWERPC VSX optimizations]) 580 AC_MSG_WARN([--enable-powerpc-vsx: please specify 'check' or 'api' , if]581 [ you want the optimizations unconditionally pass '-maltivec -mvsx']582 [ or '-mcpu=power8' to the compiler.]);;581 AC_MSG_WARN([--enable-powerpc-vsx: please specify 'check' or 'api';] 582 [if you want the optimizations unconditionally,] 583 [pass '-maltivec -mvsx' or '-mcpu=power8' to the compiler.]);; 583 584 *) 584 AC_MSG_ERROR([--enable-powerpc-vsx=${enable_powerpc_vsx}: invalid value]) 585 AC_MSG_ERROR([--enable-powerpc-vsx=${enable_powerpc_vsx}:] 586 [invalid argument]) 585 587 esac]) 586 588 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 fallback589 # if a future host CPU does not match 'powerpc*')589 # Add PowerPC-specific files to all builds where $host_cpu is powerpc 590 # ('powerpc*') or where PowerPC optimizations were explicitly requested. 591 # (This allows a fallback if a future host CPU does not match 'powerpc*'.) 590 592 591 593 AM_CONDITIONAL([PNG_POWERPC_VSX], … … 595 597 esac]) 596 598 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) 599 # LOONGARCH LSX 600 # ============= 619 601 620 602 AC_ARG_ENABLE([loongarch-lsx], … … 636 618 ;; 637 619 *) 638 AC_MSG_ERROR([--enable-loongarch-lsx=${enable_loongarch_lsx}: invalid value]) 620 AC_MSG_ERROR([--enable-loongarch-lsx=${enable_loongarch_lsx}:] 621 [invalid argument]) 639 622 esac]) 640 623 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]) 624 if test "$enable_loongarch_lsx" != "no" && 625 case "$host_cpu" in 626 loongarch*) : ;; 627 *) test "$enable_loongarch_lsx" != '' ;; 628 esac 629 then 630 compiler_support_loongarch_lsx=no 631 AC_MSG_CHECKING(whether to use LoongArch LSX intrinsics) 632 save_CFLAGS="$CFLAGS" 633 LSX_CFLAGS="${LSX_CFLAGS:-"-mlsx"}" 634 CFLAGS="$CFLAGS $LSX_CFLAGS" 635 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ 636 #include <lsxintrin.h> 637 int main(){ 638 __m128i a, b, c; 639 a = __lsx_vadd_w(b, c); 640 return 0; 641 }]])],compiler_support_loongarch_lsx=yes) 642 CFLAGS="$save_CFLAGS" 643 AC_MSG_RESULT($compiler_support_loongarch_lsx) 644 if test "$compiler_support_loongarch_lsx" = "yes"; then 645 AC_DEFINE([PNG_LOONGARCH_LSX_OPT], [1], 646 [Enable LOONGARCH LSX optimizations]) 644 647 else 645 648 AC_MSG_WARN([Compiler does not support loongarch LSX.]) … … 647 650 fi 648 651 649 # Add L OONGARCH specific files to all builds where the host_cpu is loongarch ('loongarch*') or650 # where LOONGARCH optimizations were explicitly requested (this allows a fallback if a651 # future host CPU does not match 'loongarch*')652 # Add LoongArch specific files to all builds where the host_cpu is loongarch 653 # ('loongarch*') or where LoongArch optimizations were explicitly requested. 654 # (This allows a fallback if a future host CPU does not match 'loongarch*'.) 652 655 653 656 AM_CONDITIONAL([PNG_LOONGARCH_LSX], 654 [test "$enable_loongarch_lsx" != 'no' && test $compiler_support_loongarch_lsx = yes && 657 [test "$enable_loongarch_lsx" != "no" && 658 test "$compiler_support_loongarch_lsx" = "yes" && 655 659 case "$host_cpu" in 656 loongarch*) : ;;657 *) test "$enable_loongarch_lsx" != '' ;;660 loongarch*) : ;; 661 *) test "$enable_loongarch_lsx" != '' ;; 658 662 esac]) 659 663 -
trunk/src/libs/libpng-1.6.43/contrib/examples/iccfrompng.c
r96425 r105469 81 81 82 82 else 83 83 result = no_profile; 84 84 } 85 85 … … 156 156 157 157 else if (verbose && profile == no_profile) 158 158 printf("%s has no profile\n", filename); 159 159 } 160 160 -
trunk/src/libs/libpng-1.6.43/contrib/libtests/pngvalid.c
r103316 r105469 71 71 72 72 /* pngvalid requires write support and one of the fixed or floating point APIs. 73 * progressive read is also required currently as the progressive read pointer 74 * is used to record the 'display' structure. 73 75 */ 74 #if defined(PNG_WRITE_SUPPORTED) &&\ 75 (defined(PNG_FIXED_POINT_SUPPORTED) || defined(PNG_FLOATING_POINT_SUPPORTED)) 76 #if defined PNG_WRITE_SUPPORTED &&\ 77 (defined PNG_PROGRESSIVE_READ_SUPPORTED) &&\ 78 (defined PNG_FIXED_POINT_SUPPORTED || defined PNG_FLOATING_POINT_SUPPORTED) 76 79 77 80 #if PNG_LIBPNG_VER < 10500 … … 10010 10013 case ALPHA_MODE_OFFSET + PNG_ALPHA_OPTIMIZED: 10011 10014 # endif /* ALPHA_MODE_SUPPORTED */ 10015 # if (defined PNG_READ_BACKGROUND_SUPPORTED) ||\ 10016 (defined PNG_READ_ALPHA_MODE_SUPPORTED) 10012 10017 do_compose = (alpha > 0 && alpha < 1); 10013 10018 use_input = (alpha != 0); 10014 10019 break; 10020 # endif 10015 10021 10016 10022 default: … … 11925 11931 11926 11932 else if (strcmp(*argv, "--expand16") == 0) 11927 pm.test_gamma_expand16 = 1; 11933 { 11934 # ifdef PNG_READ_EXPAND_16_SUPPORTED 11935 pm.test_gamma_expand16 = 1; 11936 # else 11937 fprintf(stderr, "pngvalid: --expand16: no read support\n"); 11938 return SKIP; 11939 # endif 11940 } 11928 11941 11929 11942 else if (strcmp(*argv, "--noexpand16") == 0) … … 11940 11953 pm.test_lbg_gamma_composition = 0; 11941 11954 11942 # ifdef PNG_WRITE_tRNS_SUPPORTED 11943 else if (strcmp(*argv, "--tRNS") == 0) 11955 else if (strcmp(*argv, "--tRNS") == 0) 11956 { 11957 # ifdef PNG_WRITE_tRNS_SUPPORTED 11944 11958 pm.test_tRNS = 1; 11945 # endif 11959 # else 11960 fprintf(stderr, "pngvalid: --tRNS: no write support\n"); 11961 return SKIP; 11962 # endif 11963 } 11946 11964 11947 11965 else if (strcmp(*argv, "--notRNS") == 0) -
trunk/src/libs/libpng-1.6.43/contrib/pngminim/decoder/makefile
r96425 r105469 55 55 pngread$(C) pngrio$(C) pngrtran$(C) pngrutil$(C) \ 56 56 pngset$(C) pngtrans$(C) 57 57 58 58 # Standard headers 59 59 PNGH =png.h pngconf.h pngdebug.h pnginfo.h pngpriv.h pngstruct.h -
trunk/src/libs/libpng-1.6.43/contrib/tools/pngfix.c
r103316 r105469 133 133 /* Is it safe to copy? */ 134 134 #define SAFE_TO_COPY(chunk) (((chunk) & PNG_U32(0,0,0,32)) != 0) 135 136 /* Fix ups for builds with limited read support */137 #ifndef PNG_ERROR_TEXT_SUPPORTED138 # define png_error(a,b) png_err(a)139 #endif140 135 141 136 /********************************* UTILITIES **********************************/ -
trunk/src/libs/libpng-1.6.43/libpng-manual.txt
r103316 r105469 10 10 Based on: 11 11 12 libpng version 1.6.36, December 2018, through 1.6.4 2 - January 202412 libpng version 1.6.36, December 2018, through 1.6.43 - February 2024 13 13 Updated and distributed by Cosmin Truta 14 14 Copyright (c) 2018-2024 Cosmin Truta … … 1179 1179 row_pointers prior to calling png_read_png() with 1180 1180 1181 if (height > PNG_UINT_32_MAX /(sizeof (png_byte)))1181 if (height > PNG_UINT_32_MAX / (sizeof (png_bytep))) 1182 1182 png_error(png_ptr, 1183 1183 "Image is too tall to process in memory"); 1184 1184 1185 if (width > PNG_UINT_32_MAX /pixel_size)1185 if (width > PNG_UINT_32_MAX / pixel_size) 1186 1186 png_error(png_ptr, 1187 1187 "Image is too wide to process in memory"); -
trunk/src/libs/libpng-1.6.43/libpng.3
r103316 r105469 1 .TH LIBPNG 3 " January 29, 2024"1 .TH LIBPNG 3 "February 23, 2024" 2 2 .SH NAME 3 libpng \- Portable Network Graphics (PNG) Reference Library 1.6.4 23 libpng \- Portable Network Graphics (PNG) Reference Library 1.6.43 4 4 5 5 .SH SYNOPSIS … … 529 529 Based on: 530 530 531 libpng version 1.6.36, December 2018, through 1.6.4 2 - January 2024531 libpng version 1.6.36, December 2018, through 1.6.43 - February 2024 532 532 Updated and distributed by Cosmin Truta 533 533 Copyright (c) 2018-2024 Cosmin Truta … … 1698 1698 row_pointers prior to calling png_read_png() with 1699 1699 1700 if (height > PNG_UINT_32_MAX /(sizeof (png_byte)))1700 if (height > PNG_UINT_32_MAX / (sizeof (png_bytep))) 1701 1701 png_error(png_ptr, 1702 1702 "Image is too tall to process in memory"); 1703 1703 1704 if (width > PNG_UINT_32_MAX /pixel_size)1704 if (width > PNG_UINT_32_MAX / pixel_size) 1705 1705 png_error(png_ptr, 1706 1706 "Image is too wide to process in memory"); -
trunk/src/libs/libpng-1.6.43/libpngpf.3
r103316 r105469 1 .TH LIBPNGPF 3 " January 29, 2024"1 .TH LIBPNGPF 3 "February 23, 2024" 2 2 .SH NAME 3 libpng \- Portable Network Graphics (PNG) Reference Library 1.6.4 23 libpng \- Portable Network Graphics (PNG) Reference Library 1.6.43 4 4 (private functions) 5 5 -
trunk/src/libs/libpng-1.6.43/png.5
r103316 r105469 1 .TH PNG 5 " January 29, 2024"1 .TH PNG 5 "February 23, 2024" 2 2 .SH NAME 3 3 png \- Portable Network Graphics (PNG) format -
trunk/src/libs/libpng-1.6.43/png.c
r103316 r105469 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_4 2 Your_png_h_is_not_version_1_6_42;17 typedef png_libpng_version_1_6_43 Your_png_h_is_not_version_1_6_43; 18 18 19 19 /* Tells libpng that we have already handled the first "num_bytes" bytes … … 795 795 #else 796 796 return PNG_STRING_NEWLINE \ 797 "libpng version 1.6.4 2" PNG_STRING_NEWLINE \797 "libpng version 1.6.43" PNG_STRING_NEWLINE \ 798 798 "Copyright (c) 2018-2024 Cosmin Truta" PNG_STRING_NEWLINE \ 799 799 "Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson" \ … … 1822 1822 # ifdef PNG_WARNINGS_SUPPORTED 1823 1823 else 1824 1825 1826 1827 1828 1829 1830 1831 1824 { 1825 char number[PNG_NUMBER_BUFFER_SIZE]; /* +24 = 114 */ 1826 1827 pos = png_safecat(message, (sizeof message), pos, 1828 png_format_number(number, number+(sizeof number), 1829 PNG_NUMBER_FORMAT_x, value)); 1830 pos = png_safecat(message, (sizeof message), pos, "h: "); /* +2 = 116 */ 1831 } 1832 1832 # endif 1833 1833 /* The 'reason' is an arbitrary message, allow +79 maximum 195 */ … … 2512 2512 #endif /* COLORSPACE */ 2513 2513 2514 #ifdef __GNUC__2515 /* This exists solely to work round a warning from GNU C. */2516 static int /* PRIVATE */2517 png_gt(size_t a, size_t b)2518 {2519 return a > b;2520 }2521 #else2522 # define png_gt(a,b) ((a) > (b))2523 #endif2524 2525 2514 void /* PRIVATE */ 2526 2515 png_check_IHDR(png_const_structrp png_ptr, … … 2544 2533 } 2545 2534 2546 if (png_gt(((width + 7) & (~7U)), 2547 ((PNG_SIZE_MAX 2535 /* The bit mask on the first line below must be at least as big as a 2536 * png_uint_32. "~7U" is not adequate on 16-bit systems because it will 2537 * be an unsigned 16-bit value. Casting to (png_alloc_size_t) makes the 2538 * type of the result at least as bit (in bits) as the RHS of the > operator 2539 * which also avoids a common warning on 64-bit systems that the comparison 2540 * of (png_uint_32) against the constant value on the RHS will always be 2541 * false. 2542 */ 2543 if (((width + 7) & ~(png_alloc_size_t)7) > 2544 (((PNG_SIZE_MAX 2548 2545 - 48 /* big_row_buf hack */ 2549 2546 - 1) /* filter byte */ -
trunk/src/libs/libpng-1.6.43/png.h
r103316 r105469 2 2 /* png.h - header file for PNG reference library 3 3 * 4 * libpng version 1.6.4 24 * libpng version 1.6.43 5 5 * 6 6 * Copyright (c) 2018-2024 Cosmin Truta … … 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.4 2, January 2024:18 * libpng versions 1.6.36, December 2018, through 1.6.43, February 2024: 19 19 * Cosmin Truta 20 20 * See also "Contributing Authors", below. … … 240 240 * 1.5.30 15 10530 15.so.15.30[.0] 241 241 * ... 242 * 1.6.4 2 16 10641 16.so.16.41[.0]242 * 1.6.43 16 10643 16.so.16.43[.0] 243 243 * 244 244 * Henceforth the source version will match the shared-library major and … … 256 256 * application is loaded with a different version of the library. 257 257 * 258 * DLLNUM will change each time there are forward or backward changes259 * in binary compatibility (e.g., when a new feature is added).260 *261 258 * See libpng.txt or libpng.3 for more information. The PNG specification 262 259 * is available as a W3C Recommendation and as an ISO/IEC Standard; see … … 279 276 280 277 /* Version information for png.h - this should match the version in png.c */ 281 #define PNG_LIBPNG_VER_STRING "1.6.4 2"278 #define PNG_LIBPNG_VER_STRING "1.6.43" 282 279 #define PNG_HEADER_VERSION_STRING " libpng version " PNG_LIBPNG_VER_STRING "\n" 283 280 284 #define PNG_LIBPNG_VER_SONUM 16 285 #define PNG_LIBPNG_VER_DLLNUM 16 281 /* The versions of shared library builds should stay in sync, going forward */ 282 #define PNG_LIBPNG_VER_SHAREDLIB 16 283 #define PNG_LIBPNG_VER_SONUM PNG_LIBPNG_VER_SHAREDLIB /* [Deprecated] */ 284 #define PNG_LIBPNG_VER_DLLNUM PNG_LIBPNG_VER_SHAREDLIB /* [Deprecated] */ 286 285 287 286 /* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */ 288 287 #define PNG_LIBPNG_VER_MAJOR 1 289 288 #define PNG_LIBPNG_VER_MINOR 6 290 #define PNG_LIBPNG_VER_RELEASE 4 1289 #define PNG_LIBPNG_VER_RELEASE 43 291 290 292 291 /* This should be zero for a public release, or non-zero for a 293 * development version. [Deprecated]292 * development version. 294 293 */ 295 294 #define PNG_LIBPNG_VER_BUILD 0 … … 319 318 * XXYYZZ, where XX=major, YY=minor, ZZ=release 320 319 */ 321 #define PNG_LIBPNG_VER 1064 1 /* 1.6.42*/320 #define PNG_LIBPNG_VER 10643 /* 1.6.43 */ 322 321 323 322 /* Library configuration: these options cannot be changed after … … 429 428 * do not agree upon the version number. 430 429 */ 431 typedef char* png_libpng_version_1_6_4 2;430 typedef char* png_libpng_version_1_6_43; 432 431 433 432 /* Basic control structions. Read libpng-manual.txt or libpng.3 for more info. -
trunk/src/libs/libpng-1.6.43/pngconf.h
r103316 r105469 2 2 /* pngconf.h - machine-configurable file for libpng 3 3 * 4 * libpng version 1.6.4 24 * libpng version 1.6.43 5 5 * 6 6 * Copyright (c) 2018-2024 Cosmin Truta -
trunk/src/libs/libpng-1.6.43/pngpread.c
r103316 r105469 296 296 297 297 #endif 298 #ifdef PNG_READ_eXIf_SUPPORTED 299 else if (png_ptr->chunk_name == png_eXIf) 300 { 301 PNG_PUSH_SAVE_BUFFER_IF_FULL 302 png_handle_eXIf(png_ptr, info_ptr, png_ptr->push_length); 303 } 304 305 #endif 298 306 #ifdef PNG_READ_sRGB_SUPPORTED 299 307 else if (chunk_name == png_sRGB) -
trunk/src/libs/libpng-1.6.43/pngread.c
r103316 r105469 569 569 570 570 #ifdef PNG_READ_TRANSFORMS_SUPPORTED 571 if (png_ptr->transformations || png_ptr->num_palette_max >= 0) 571 if (png_ptr->transformations 572 # ifdef PNG_CHECK_FOR_INVALID_INDEX_SUPPORTED 573 || png_ptr->num_palette_max >= 0 574 # endif 575 ) 572 576 png_do_read_transformations(png_ptr, &row_info); 573 577 #endif -
trunk/src/libs/libpng-1.6.43/pngrtran.c
r103316 r105469 298 298 output_gamma = translate_gamma_flags(png_ptr, output_gamma, 1/*screen*/); 299 299 300 /* Validate the value to ensure it is in a reasonable range. The value300 /* Validate the value to ensure it is in a reasonable range. The value 301 301 * is expected to be 1 or greater, but this range test allows for some 302 * viewing correction values. The intent is to weed out users of this API 303 * who use the inverse of the gamma value accidentally! Since some of these 304 * values are reasonable this may have to be changed: 302 * viewing correction values. The intent is to weed out the API users 303 * who might use the inverse of the gamma value accidentally! 305 304 * 306 * 1.6.x: changed from 0.07..3 to 0.01..100 (to accommodate the optimal 16-bit307 * gamma of 36, and its reciprocal.)305 * In libpng 1.6.0, we changed from 0.07..3 to 0.01..100, to accommodate 306 * the optimal 16-bit gamma of 36 and its reciprocal. 308 307 */ 309 308 if (output_gamma < 1000 || output_gamma > 10000000) … … 442 441 443 442 png_ptr->quantize_index = (png_bytep)png_malloc(png_ptr, 444 (png_alloc_size_t) ((png_uint_32)num_palette * (sizeof (png_byte))));443 (png_alloc_size_t)num_palette); 445 444 for (i = 0; i < num_palette; i++) 446 445 png_ptr->quantize_index[i] = (png_byte)i; … … 459 458 /* Initialize an array to sort colors */ 460 459 png_ptr->quantize_sort = (png_bytep)png_malloc(png_ptr, 461 (png_alloc_size_t) ((png_uint_32)num_palette * (sizeof (png_byte))));460 (png_alloc_size_t)num_palette); 462 461 463 462 /* Initialize the quantize_sort array */ … … 593 592 /* Initialize palette index arrays */ 594 593 png_ptr->index_to_palette = (png_bytep)png_malloc(png_ptr, 595 (png_alloc_size_t)((png_uint_32)num_palette * 596 (sizeof (png_byte)))); 594 (png_alloc_size_t)num_palette); 597 595 png_ptr->palette_to_index = (png_bytep)png_malloc(png_ptr, 598 (png_alloc_size_t)((png_uint_32)num_palette * 599 (sizeof (png_byte)))); 596 (png_alloc_size_t)num_palette); 600 597 601 598 /* Initialize the sort array */ … … 762 759 763 760 png_ptr->palette_lookup = (png_bytep)png_calloc(png_ptr, 764 (png_alloc_size_t)(num_entries * (sizeof (png_byte)))); 765 766 distance = (png_bytep)png_malloc(png_ptr, (png_alloc_size_t)(num_entries * 767 (sizeof (png_byte)))); 768 769 memset(distance, 0xff, num_entries * (sizeof (png_byte))); 761 (png_alloc_size_t)(num_entries)); 762 763 distance = (png_bytep)png_malloc(png_ptr, (png_alloc_size_t)num_entries); 764 765 memset(distance, 0xff, num_entries); 770 766 771 767 for (i = 0; i < num_palette; i++) -
trunk/src/libs/libpng-1.6.43/pngtest.c
r103316 r105469 1 1 2 /* pngtest.c - a simple test program to testlibpng2 /* pngtest.c - a test program for libpng 3 3 * 4 4 * Copyright (c) 2018-2024 Cosmin Truta … … 38 38 #include <string.h> 39 39 40 /* Defined so I can write to a file on gui/windowing platforms */ 41 /* #define STDERR stderr */ 42 #define STDERR stdout /* For DOS */ 40 #ifdef PNG_ZLIB_HEADER 41 # include PNG_ZLIB_HEADER /* defined by pnglibconf.h from 1.7 */ 42 #else 43 # include <zlib.h> 44 #endif 43 45 44 46 #include "png.h" 45 47 46 /* Known chunks that exist in pngtest.png must be supported or pngtest will fail 47 * simply as a result of re-ordering them. This may be fixed in 1.7 48 /* Generate a compiler error if there is an old png.h in the search path. */ 49 typedef png_libpng_version_1_6_43 Your_png_h_is_not_version_1_6_43; 50 51 /* Ensure that all version numbers in png.h are consistent with one another. */ 52 #if (PNG_LIBPNG_VER != PNG_LIBPNG_VER_MAJOR * 10000 + \ 53 PNG_LIBPNG_VER_MINOR * 100 + \ 54 PNG_LIBPNG_VER_RELEASE) || \ 55 (PNG_LIBPNG_VER_SHAREDLIB != PNG_LIBPNG_VER_MAJOR * 10 + \ 56 PNG_LIBPNG_VER_MINOR) || \ 57 (PNG_LIBPNG_VER_SHAREDLIB != PNG_LIBPNG_VER_SONUM) || \ 58 (PNG_LIBPNG_VER_SHAREDLIB != PNG_LIBPNG_VER_DLLNUM) 59 # error "Inconsistent version numbers in png.h" 60 #endif 61 62 /* In version 1.6.1, we added support for the configure test harness, which 63 * uses 77 to indicate a skipped test. On the other hand, in cmake build tests, 64 * we still need to succeed on a skipped test, so: 65 */ 66 #if defined(HAVE_CONFIG_H) 67 # define SKIP 77 68 #else 69 # define SKIP 0 70 #endif 71 72 /* Known chunks that exist in pngtest.png must be supported, or pngtest will 73 * fail simply as a result of re-ordering them. This may be fixed in the next 74 * generation of libpng. 48 75 * 49 76 * pngtest allocates a single row buffer for each row and overwrites it, … … 52 79 * horribly trying to write extra data after writing garbage). 53 80 */ 54 #if defined PNG_READ_SUPPORTED && /* else nothing can be done */\ 55 defined PNG_READ_bKGD_SUPPORTED &&\ 56 defined PNG_READ_cHRM_SUPPORTED &&\ 57 defined PNG_READ_gAMA_SUPPORTED &&\ 58 defined PNG_READ_oFFs_SUPPORTED &&\ 59 defined PNG_READ_pCAL_SUPPORTED &&\ 60 defined PNG_READ_pHYs_SUPPORTED &&\ 61 defined PNG_READ_sBIT_SUPPORTED &&\ 62 defined PNG_READ_sCAL_SUPPORTED &&\ 63 defined PNG_READ_sRGB_SUPPORTED &&\ 64 defined PNG_READ_sPLT_SUPPORTED &&\ 65 defined PNG_READ_tEXt_SUPPORTED &&\ 66 defined PNG_READ_tIME_SUPPORTED &&\ 67 defined PNG_READ_zTXt_SUPPORTED &&\ 68 (defined PNG_WRITE_INTERLACING_SUPPORTED || PNG_LIBPNG_VER >= 10700) 69 70 #ifdef PNG_ZLIB_HEADER 71 # include PNG_ZLIB_HEADER /* defined by pnglibconf.h from 1.7 */ 72 #else 73 # include "zlib.h" 74 #endif 81 #if defined PNG_READ_SUPPORTED && /* else nothing can be done */ \ 82 defined PNG_READ_bKGD_SUPPORTED && \ 83 defined PNG_READ_cHRM_SUPPORTED && \ 84 defined PNG_READ_gAMA_SUPPORTED && \ 85 defined PNG_READ_oFFs_SUPPORTED && \ 86 defined PNG_READ_pCAL_SUPPORTED && \ 87 defined PNG_READ_pHYs_SUPPORTED && \ 88 defined PNG_READ_sBIT_SUPPORTED && \ 89 defined PNG_READ_sCAL_SUPPORTED && \ 90 defined PNG_READ_sRGB_SUPPORTED && \ 91 defined PNG_READ_sPLT_SUPPORTED && \ 92 defined PNG_READ_tEXt_SUPPORTED && \ 93 defined PNG_READ_tIME_SUPPORTED && \ 94 defined PNG_READ_zTXt_SUPPORTED && \ 95 (defined PNG_WRITE_INTERLACING_SUPPORTED || PNG_LIBPNG_VER >= 10700) 75 96 76 97 /* Copied from pngpriv.h but only used in error messages below. */ … … 78 99 # define PNG_ZBUF_SIZE 8192 79 100 #endif 80 #define FCLOSE(file) fclose(file)81 101 82 102 #ifndef PNG_STDIO_SUPPORTED 83 typedef FILE * png_FILE_p; 84 #endif 85 86 /* Makes pngtest verbose so we can find problems. */ 103 typedef FILE * png_FILE_p; 104 #endif 105 106 /* This hack was introduced for historical reasons, and we are 107 * still keeping it in libpng-1.6.x for compatibility reasons. 108 */ 109 #define STDERR stdout 110 87 111 #ifndef PNG_DEBUG 88 112 # define PNG_DEBUG 0 … … 90 114 91 115 #if PNG_DEBUG > 1 92 # define pngtest_debug(m) ((void)fprintf(stderr, m "\n")) 93 # define pngtest_debug1(m,p1) ((void)fprintf(stderr, m "\n", p1)) 94 # define pngtest_debug2(m,p1,p2) ((void)fprintf(stderr, m "\n", p1, p2)) 95 #else 96 # define pngtest_debug(m) ((void)0) 97 # define pngtest_debug1(m,p1) ((void)0) 98 # define pngtest_debug2(m,p1,p2) ((void)0) 99 #endif 100 101 #if !PNG_DEBUG 102 # define SINGLE_ROWBUF_ALLOC /* Makes buffer overruns easier to nail */ 103 #endif 104 105 #ifndef PNG_UNUSED 106 # define PNG_UNUSED(param) (void)param; 116 # define pngtest_debug(m) ((void)fprintf(stderr, m "\n")) 117 # define pngtest_debug1(m, p1) ((void)fprintf(stderr, m "\n", p1)) 118 # define pngtest_debug2(m, p1, p2) ((void)fprintf(stderr, m "\n", p1, p2)) 119 #elif PNG_DEBUG == 0 || PNG_DEBUG == 1 120 # define pngtest_debug(m) ((void)0) 121 # define pngtest_debug1(m, p1) ((void)0) 122 # define pngtest_debug2(m, p1, p2) ((void)0) 123 #else /* PNG_DEBUG < 0 */ 124 # error "Bad PNG_DEBUG value" 107 125 #endif 108 126 … … 121 139 122 140 #ifdef PNG_TIME_RFC1123_SUPPORTED 123 #define PNG_tIME_STRING_LENGTH 29124 141 static int tIME_chunk_present = 0; 125 static char tIME_string[PNG_tIME_STRING_LENGTH] = "tIME chunk is not present"; 126 127 #if PNG_LIBPNG_VER < 10619 128 #define png_convert_to_rfc1123_buffer(ts, t) tIME_to_str(read_ptr, ts, t) 129 130 static int 131 tIME_to_str(png_structp png_ptr, png_charp ts, png_const_timep t) 132 { 133 png_const_charp str = png_convert_to_rfc1123(png_ptr, t); 134 135 if (str == NULL) 136 return 0; 137 138 strcpy(ts, str); 139 return 1; 140 } 141 #endif /* older libpng */ 142 static char tIME_string[29] = "tIME chunk is not present"; 143 /* This use case is deprecated. 144 * See the declaration of png_convert_to_rfc1123_buffer for more details. 145 */ 142 146 #endif 143 147 … … 150 154 static int warning_count = 0; /* count calls to png_warning */ 151 155 152 /* Define png_jmpbuf() in case we are using a pre-1.0.6 version of libpng */153 #ifndef png_jmpbuf154 # define png_jmpbuf(png_ptr) png_ptr->jmpbuf155 #endif156 157 /* Defines for unknown chunk handling if required. */158 #ifndef PNG_HANDLE_CHUNK_ALWAYS159 # define PNG_HANDLE_CHUNK_ALWAYS 3160 #endif161 #ifndef PNG_HANDLE_CHUNK_IF_SAFE162 # define PNG_HANDLE_CHUNK_IF_SAFE 2163 #endif164 165 /* Utility to save typing/errors, the argument must be a name */166 #define MEMZERO(var) ((void)memset(&var, 0, sizeof var))167 168 156 /* Example of using row callbacks to make a simple progress meter */ 169 157 static int status_pass = 1; … … 174 162 read_row_callback(png_structp png_ptr, png_uint_32 row_number, int pass) 175 163 { 176 if (png_ptr == NULL || row_number > PNG_UINT_31_MAX) 177 return; 164 /* The callback should always receive correct parameters. */ 165 if (png_ptr == NULL) 166 png_error(png_ptr, "read_row_callback: bad png_ptr"); 167 if (row_number > PNG_UINT_31_MAX) 168 png_error(png_ptr, "read_row_callback: bad row number"); 169 if (pass < 0 || pass > 7) 170 png_error(png_ptr, "read_row_callback: bad pass"); 178 171 179 172 if (status_pass != pass) … … 189 182 { 190 183 fprintf(stdout, "\n "); 191 status_dots =30;184 status_dots = 30; 192 185 } 193 186 … … 199 192 write_row_callback(png_structp png_ptr, png_uint_32 row_number, int pass) 200 193 { 201 if (png_ptr == NULL || row_number > PNG_UINT_31_MAX || pass > 7) 202 return; 194 /* The callback should always receive correct parameters. */ 195 if (png_ptr == NULL) 196 png_error(png_ptr, "write_row_callback: bad png_ptr"); 197 if (row_number > PNG_UINT_31_MAX) 198 png_error(png_ptr, "write_row_callback: bad row number"); 199 if (pass < 0 || pass > 7) 200 png_error(png_ptr, "write_row_callback: bad pass"); 203 201 204 202 fprintf(stdout, "w"); … … 213 211 read_user_callback(png_structp png_ptr, png_row_infop row_info, png_bytep data) 214 212 { 215 PNG_UNUSED(png_ptr) 216 PNG_UNUSED(row_info) 217 PNG_UNUSED(data) 213 /* The callback should always receive correct parameters. */ 214 if (png_ptr == NULL) 215 png_error(png_ptr, "read_user_callback: bad png_ptr"); 216 if (row_info == NULL) 217 png_error(png_ptr, "read_user_callback: bad row info"); 218 if (data == NULL) 219 png_error(png_ptr, "read_user_callback: bad data"); 218 220 } 219 221 #endif … … 230 232 { 231 233 png_bytep dp = data; 234 235 /* The callback should always receive correct parameters. */ 232 236 if (png_ptr == NULL) 233 return; 237 png_error(png_ptr, "count_zero_samples: bad png_ptr"); 238 if (row_info == NULL) 239 png_error(png_ptr, "count_zero_samples: bad row info"); 240 if (data == NULL) 241 png_error(png_ptr, "count_zero_samples: bad data"); 234 242 235 243 /* Contents of row_info: … … 249 257 png_uint_32 n, nstop; 250 258 251 for (n = 0, nstop =row_info->width; n<nstop; n++)259 for (n = 0, nstop = row_info->width; n < nstop; n++) 252 260 { 253 261 if (row_info->bit_depth == 1) … … 295 303 if ((*dp | *(dp+1)) == 0) 296 304 zero_samples++; 297 dp +=2;305 dp += 2; 298 306 } 299 307 } … … 307 315 color_channels--; 308 316 309 for (n = 0, nstop =row_info->width; n<nstop; n++)317 for (n = 0, nstop = row_info->width; n < nstop; n++) 310 318 { 311 319 for (channel = 0; channel < color_channels; channel++) … … 320 328 zero_samples++; 321 329 322 dp +=2;330 dp += 2; 323 331 } 324 332 } … … 347 355 void 348 356 pngtest_check_io_state(png_structp png_ptr, size_t data_length, 349 png_uint_32 io_op);350 void351 pngtest_check_io_state(png_structp png_ptr, size_t data_length,352 357 png_uint_32 io_op) 353 358 { … … 362 367 * (file signature / header / data / crc) is as expected. 363 368 */ 364 switch ( io_state & PNG_IO_MASK_LOC)369 switch ((io_state & PNG_IO_MASK_LOC) != 0) 365 370 { 366 371 case PNG_IO_SIGNATURE: … … 392 397 png_voidp io_ptr; 393 398 399 if (png_ptr == NULL) 400 png_error(png_ptr, "pngtest_read_data: bad png_ptr"); 401 394 402 /* fread() returns 0 on error, so it is OK to store this in a size_t 395 403 * instead of an int, which is what fread() actually returns. … … 397 405 io_ptr = png_get_io_ptr(png_ptr); 398 406 if (io_ptr != NULL) 399 {400 407 check = fread(data, 1, length, (png_FILE_p)io_ptr); 401 }402 408 403 409 if (check != length) 404 {405 410 png_error(png_ptr, "Read Error"); 406 }407 411 408 412 #ifdef PNG_IO_STATE_SUPPORTED … … 415 419 pngtest_flush(png_structp png_ptr) 416 420 { 421 if (png_ptr == NULL) 422 png_error(png_ptr, "pngtest_flush: bad png_ptr"); 423 417 424 /* Do nothing; fflush() is said to be just a waste of energy. */ 418 PNG_UNUSED(png_ptr) /* Stifle compiler warning */419 425 } 420 426 #endif … … 430 436 size_t check; 431 437 438 if (png_ptr == NULL) 439 png_error(png_ptr, "pngtest_write_data: bad png_ptr"); 440 432 441 check = fwrite(data, 1, length, (png_FILE_p)png_get_io_ptr(png_ptr)); 433 442 434 443 if (check != length) 435 {436 444 png_error(png_ptr, "Write Error"); 437 }438 445 439 446 #ifdef PNG_IO_STATE_SUPPORTED … … 538 545 current_allocation += size; 539 546 total_allocation += size; 540 num_allocations ++;547 ++num_allocations; 541 548 542 549 if (current_allocation > maximum_allocation) … … 636 643 chunk used in ImageMagick to store "virtual page" size). */ 637 644 638 static struct user_chunk_data 645 typedef struct user_chunk_info_def 639 646 { 640 647 png_const_infop info_ptr; … … 643 650 png_byte sTER_mode; 644 651 int location[2]; 645 } 646 user_chunk_data; 652 } user_chunk_info; 647 653 648 654 /* Used for location and order; zero means nothing. */ … … 654 660 655 661 static void 656 init_ callback_info(png_const_infop info_ptr)657 { 658 MEMZERO(user_chunk_data);659 user_chunk_data.info_ptr = info_ptr;662 init_user_chunk_info(png_const_infop info_ptr, user_chunk_info *chunk_data) 663 { 664 memset(chunk_data, 0, sizeof(*chunk_data)); 665 chunk_data->info_ptr = info_ptr; 660 666 } 661 667 662 668 static int 663 set_ location(png_structp png_ptr, struct user_chunk_data *data, int what)669 set_chunk_location(png_structp png_ptr, user_chunk_info *chunk_data, int what) 664 670 { 665 671 int location; 666 672 667 if ((data->location[0] & what) != 0 || (data->location[1] & what) != 0) 668 return 0; /* already have one of these */ 673 if ((chunk_data->location[0] & what) != 0 || 674 (chunk_data->location[1] & what) != 0) 675 return 0; /* we already have one of these */ 669 676 670 677 /* Find where we are (the code below zeroes info_ptr to indicate that the 671 678 * chunks before the first IDAT have been read.) 672 679 */ 673 if ( data->info_ptr == NULL) /* after IDAT */680 if (chunk_data->info_ptr == NULL) /* after IDAT */ 674 681 location = what | after_IDAT; 675 682 676 else if (png_get_valid(png_ptr, data->info_ptr, PNG_INFO_PLTE) != 0)683 else if (png_get_valid(png_ptr, chunk_data->info_ptr, PNG_INFO_PLTE) != 0) 677 684 location = what | before_IDAT; 678 685 … … 680 687 location = what | before_PLTE; 681 688 682 if ( data->location[0] == 0)683 data->location[0] = location;689 if (chunk_data->location[0] == 0) 690 chunk_data->location[0] = location; 684 691 685 692 else 686 data->location[1] = location;693 chunk_data->location[1] = location; 687 694 688 695 return 1; /* handled */ … … 692 699 read_user_chunk_callback(png_struct *png_ptr, png_unknown_chunkp chunk) 693 700 { 694 struct user_chunk_data*my_user_chunk_data =695 ( struct user_chunk_data*)png_get_user_chunk_ptr(png_ptr);701 user_chunk_info *my_user_chunk_data = 702 (user_chunk_info*)png_get_user_chunk_ptr(png_ptr); 696 703 697 704 if (my_user_chunk_data == NULL) 698 png_error(png_ptr, "lost user chunk pointer");705 png_error(png_ptr, "lost pointer to user chunk data"); 699 706 700 707 /* Return one of the following: … … 721 728 return -1; /* Invalid mode */ 722 729 723 if (set_ location(png_ptr, my_user_chunk_data, have_sTER) != 0)724 { 725 my_user_chunk_data->sTER_mode =chunk->data[0];730 if (set_chunk_location(png_ptr, my_user_chunk_data, have_sTER) != 0) 731 { 732 my_user_chunk_data->sTER_mode = chunk->data[0]; 726 733 return 1; 727 734 } … … 740 747 return -1; /* Error return */ 741 748 742 if (set_ location(png_ptr, my_user_chunk_data, have_vpAg) == 0)749 if (set_chunk_location(png_ptr, my_user_chunk_data, have_vpAg) == 0) 743 750 return 0; /* duplicate vpAg */ 744 751 … … 752 759 #ifdef PNG_WRITE_SUPPORTED 753 760 static void 754 write_sTER_chunk(png_structp write_ptr )761 write_sTER_chunk(png_structp write_ptr, user_chunk_info *data) 755 762 { 756 763 png_byte sTER[5] = {115, 84, 69, 82, '\0'}; 757 764 758 765 if (verbose != 0) 759 fprintf(STDERR, "\n stereo mode = %d\n", user_chunk_data.sTER_mode);760 761 png_write_chunk(write_ptr, sTER, & user_chunk_data.sTER_mode, 1);766 fprintf(STDERR, "\n stereo mode = %d\n", data->sTER_mode); 767 768 png_write_chunk(write_ptr, sTER, &data->sTER_mode, 1); 762 769 } 763 770 764 771 static void 765 write_vpAg_chunk(png_structp write_ptr )772 write_vpAg_chunk(png_structp write_ptr, user_chunk_info *data) 766 773 { 767 774 png_byte vpAg[5] = {118, 112, 65, 103, '\0'}; … … 771 778 if (verbose != 0) 772 779 fprintf(STDERR, " vpAg = %lu x %lu, units = %d\n", 773 (unsigned long) user_chunk_data.vpAg_width,774 (unsigned long) user_chunk_data.vpAg_height,775 user_chunk_data.vpAg_units);776 777 png_save_uint_32(vpag_chunk_data, user_chunk_data.vpAg_width);778 png_save_uint_32(vpag_chunk_data + 4, user_chunk_data.vpAg_height);779 vpag_chunk_data[8] = user_chunk_data.vpAg_units;780 (unsigned long)data->vpAg_width, 781 (unsigned long)data->vpAg_height, 782 data->vpAg_units); 783 784 png_save_uint_32(vpag_chunk_data, data->vpAg_width); 785 png_save_uint_32(vpag_chunk_data + 4, data->vpAg_height); 786 vpag_chunk_data[8] = data->vpAg_units; 780 787 png_write_chunk(write_ptr, vpAg, vpag_chunk_data, 9); 781 788 } 782 789 783 790 static void 784 write_chunks(png_structp write_ptr, int location)791 write_chunks(png_structp write_ptr, user_chunk_info *data, int location) 785 792 { 786 793 int i; … … 792 799 * about - the chunks should not be duplicated! 793 800 */ 794 for (i =0; i<2; ++i)795 { 796 if ( user_chunk_data.location[i] == (location | have_sTER))797 write_sTER_chunk(write_ptr );798 799 else if ( user_chunk_data.location[i] == (location | have_vpAg))800 write_vpAg_chunk(write_ptr );801 for (i = 0; i < 2; ++i) 802 { 803 if (data->location[i] == (location | have_sTER)) 804 write_sTER_chunk(write_ptr, data); 805 806 else if (data->location[i] == (location | have_vpAg)) 807 write_vpAg_chunk(write_ptr, data); 801 808 } 802 809 } … … 873 880 png_uint_32 y; 874 881 png_uint_32 width, height; 875 volatile int num_passes;876 int pass;877 882 int bit_depth, color_type; 883 user_chunk_info my_user_chunk_data; 884 int pass, num_passes; 878 885 879 886 row_buf = NULL; … … 889 896 { 890 897 fprintf(STDERR, "Could not open output file %s\n", outname); 891 FCLOSE(fpin);898 fclose(fpin); 892 899 return 1; 893 900 } … … 926 933 927 934 #ifdef PNG_READ_USER_CHUNKS_SUPPORTED 928 init_ callback_info(read_info_ptr);929 png_set_read_user_chunk_fn(read_ptr, & user_chunk_data,935 init_user_chunk_info(read_info_ptr, &my_user_chunk_data); 936 png_set_read_user_chunk_fn(read_ptr, &my_user_chunk_data, 930 937 read_user_chunk_callback); 931 938 #endif … … 947 954 png_destroy_write_struct(&write_ptr, &write_info_ptr); 948 955 #endif 949 FCLOSE(fpin);950 FCLOSE(fpout);956 fclose(fpin); 957 fclose(fpout); 951 958 return 1; 952 959 } … … 967 974 png_destroy_info_struct(write_ptr, &write_end_info_ptr); 968 975 png_destroy_write_struct(&write_ptr, &write_info_ptr); 969 FCLOSE(fpin);970 FCLOSE(fpout);976 fclose(fpin); 977 fclose(fpout); 971 978 return 1; 972 979 } … … 1054 1061 1055 1062 #ifdef PNG_SET_UNKNOWN_CHUNKS_SUPPORTED 1056 /* Preserve all the unknown chunks, if possible. If this is disabled then,1063 /* Preserve all the unknown chunks, if possible. If this is disabled, then 1057 1064 * even if the png_{get,set}_unknown_chunks stuff is enabled, we can't use 1058 1065 * libpng to *save* the unknown chunks on read (because we can't switch the 1059 1066 * save option on!) 1060 1067 * 1061 * Notice that if SET_UNKNOWN_CHUNKS is *not* supported read will discard all1062 * unknown chunks and writewill write them all.1068 * Notice that if SET_UNKNOWN_CHUNKS is *not* supported, the reader will 1069 * discard all unknown chunks, and the writer will write them all. 1063 1070 */ 1064 1071 #ifdef PNG_SAVE_UNKNOWN_CHUNKS_SUPPORTED … … 1081 1088 * PLTE) here to indicate that we are after the IDAT. 1082 1089 */ 1083 user_chunk_data.info_ptr = NULL;1090 my_user_chunk_data.info_ptr = NULL; 1084 1091 #endif 1085 1092 … … 1197 1204 1198 1205 if (png_get_bKGD(read_ptr, read_info_ptr, &background) != 0) 1199 {1200 1206 png_set_bKGD(write_ptr, write_info_ptr, background); 1201 }1202 1207 } 1203 1208 #endif 1204 1209 #ifdef PNG_READ_eXIf_SUPPORTED 1205 1210 { 1206 png_bytep exif =NULL;1211 png_bytep exif = NULL; 1207 1212 png_uint_32 exif_length; 1208 1213 … … 1233 1238 if (png_get_oFFs(read_ptr, read_info_ptr, &offset_x, &offset_y, 1234 1239 &unit_type) != 0) 1235 {1236 1240 png_set_oFFs(write_ptr, write_info_ptr, offset_x, offset_y, unit_type); 1237 }1238 1241 } 1239 1242 #endif … … 1247 1250 if (png_get_pCAL(read_ptr, read_info_ptr, &purpose, &X0, &X1, &type, 1248 1251 &nparams, &units, ¶ms) != 0) 1249 {1250 1252 png_set_pCAL(write_ptr, write_info_ptr, purpose, X0, X1, type, 1251 1253 nparams, units, params); 1252 }1253 1254 } 1254 1255 #endif … … 1280 1281 if (png_get_sCAL(read_ptr, read_info_ptr, &unit, &scal_width, 1281 1282 &scal_height) != 0) 1282 {1283 1283 png_set_sCAL(write_ptr, write_info_ptr, unit, scal_width, scal_height); 1284 }1285 1284 } 1286 1285 #else … … 1305 1304 png_sPLT_tp entries; 1306 1305 1307 int num_entries = (int) png_get_sPLT(read_ptr, read_info_ptr, &entries); 1308 if (num_entries) 1309 { 1306 int num_entries = png_get_sPLT(read_ptr, read_info_ptr, &entries); 1307 if (num_entries != 0) 1310 1308 png_set_sPLT(write_ptr, write_info_ptr, entries, num_entries); 1311 }1312 1309 } 1313 1310 #endif … … 1329 1326 1330 1327 fprintf(STDERR,"\n"); 1331 for (i =0; i<num_text; i++)1328 for (i = 0; i < num_text; i++) 1332 1329 { 1333 1330 fprintf(STDERR," Text compression[%d]=%d\n", … … 1391 1388 1392 1389 if (num_unknowns != 0) 1393 {1394 1390 png_set_unknown_chunks(write_ptr, write_info_ptr, unknowns, 1395 1391 num_unknowns); 1396 #if PNG_LIBPNG_VER < 106001397 /* Copy the locations from the read_info_ptr. The automatically1398 * generated locations in write_end_info_ptr are wrong prior to 1.6.01399 * because they are reset from the write pointer (removed in 1.6.0).1400 */1401 {1402 int i;1403 for (i = 0; i < num_unknowns; i++)1404 png_set_unknown_chunk_location(write_ptr, write_info_ptr, i,1405 unknowns[i].location);1406 }1407 #endif1408 }1409 1392 } 1410 1393 #endif … … 1418 1401 png_write_info_before_PLTE(write_ptr, write_info_ptr); 1419 1402 1420 write_chunks(write_ptr, before_PLTE); /* before PLTE */1403 write_chunks(write_ptr, &my_user_chunk_data, before_PLTE); /* before PLTE */ 1421 1404 1422 1405 png_write_info(write_ptr, write_info_ptr); 1423 1406 1424 write_chunks(write_ptr, before_IDAT); /* after PLTE */1407 write_chunks(write_ptr, &my_user_chunk_data, before_IDAT); /* after PLTE */ 1425 1408 1426 1409 png_write_info(write_ptr, write_end_info_ptr); 1427 1410 1428 write_chunks(write_ptr, after_IDAT); /* after IDAT */1411 write_chunks(write_ptr, &my_user_chunk_data, after_IDAT); /* after IDAT */ 1429 1412 1430 1413 #ifdef PNG_COMPRESSION_COMPAT … … 1434 1417 #endif 1435 1418 1436 #ifdef SINGLE_ROWBUF_ALLOC1437 pngtest_debug("Allocating row buffer...");1438 row_buf = (png_bytep)png_malloc(read_ptr,1439 png_get_rowbytes(read_ptr, read_info_ptr));1440 1441 pngtest_debug1("\t%p", row_buf);1442 #endif /* SINGLE_ROWBUF_ALLOC */1443 1419 pngtest_debug("Writing row data"); 1444 1420 … … 1487 1463 for (y = 0; y < pass_height; y++) 1488 1464 { 1489 #ifndef SINGLE_ROWBUF_ALLOC1490 1465 pngtest_debug2("Allocating row buffer (pass %d, y = %u)...", pass, y); 1491 1466 … … 1496 1471 (unsigned long)png_get_rowbytes(read_ptr, read_info_ptr)); 1497 1472 1498 #endif /* !SINGLE_ROWBUF_ALLOC */1499 1473 png_read_rows(read_ptr, (png_bytepp)&row_buf, NULL, 1); 1500 1474 … … 1513 1487 #endif /* WRITE */ 1514 1488 1515 #ifndef SINGLE_ROWBUF_ALLOC1516 1489 pngtest_debug2("Freeing row buffer (pass %d, y = %u)", pass, y); 1517 1490 png_free(read_ptr, row_buf); 1518 1491 row_buf = NULL; 1519 #endif /* !SINGLE_ROWBUF_ALLOC */1520 1492 } 1521 1493 } … … 1549 1521 1550 1522 fprintf(STDERR,"\n"); 1551 for (i =0; i<num_text; i++)1523 for (i = 0; i < num_text; i++) 1552 1524 { 1553 1525 fprintf(STDERR," Text compression[%d]=%d\n", … … 1562 1534 #ifdef PNG_READ_eXIf_SUPPORTED 1563 1535 { 1564 png_bytep exif =NULL;1536 png_bytep exif = NULL; 1565 1537 png_uint_32 exif_length; 1566 1538 … … 1605 1577 1606 1578 if (num_unknowns != 0) 1607 {1608 1579 png_set_unknown_chunks(write_ptr, write_end_info_ptr, unknowns, 1609 1580 num_unknowns); 1610 #if PNG_LIBPNG_VER < 106001611 /* Copy the locations from the read_info_ptr. The automatically1612 * generated locations in write_end_info_ptr are wrong prior to 1.6.01613 * because they are reset from the write pointer (removed in 1.6.0).1614 */1615 {1616 int i;1617 for (i = 0; i < num_unknowns; i++)1618 png_set_unknown_chunk_location(write_ptr, write_end_info_ptr, i,1619 unknowns[i].location);1620 }1621 #endif1622 }1623 1581 } 1624 1582 #endif … … 1639 1597 * after IDAT. 1640 1598 */ 1641 write_chunks(write_ptr, after_IDAT);1599 write_chunks(write_ptr, &my_user_chunk_data, after_IDAT); 1642 1600 1643 1601 png_write_end(write_ptr, write_end_info_ptr); … … 1656 1614 1657 1615 pngtest_debug("Destroying data structs"); 1658 #ifdef SINGLE_ROWBUF_ALLOC1659 pngtest_debug("Destroying row_buf for read_ptr");1660 png_free(read_ptr, row_buf);1661 row_buf = NULL;1662 #endif /* SINGLE_ROWBUF_ALLOC */1663 1616 pngtest_debug("Destroying read_ptr, read_info_ptr, end_info_ptr"); 1664 1617 png_destroy_read_struct(&read_ptr, &read_info_ptr, &end_info_ptr); … … 1671 1624 pngtest_debug("Destruction complete."); 1672 1625 1673 FCLOSE(fpin);1674 FCLOSE(fpout);1626 fclose(fpin); 1627 fclose(fpout); 1675 1628 1676 1629 /* Summarize any warnings or errors and in 'strict' mode fail the test. … … 1718 1671 { 1719 1672 fprintf(STDERR, "Could not find file %s\n", outname); 1720 FCLOSE(fpin);1673 fclose(fpin); 1721 1674 return 1; 1722 1675 } … … 1754 1707 } 1755 1708 1756 FCLOSE(fpin);1757 FCLOSE(fpout);1709 fclose(fpin); 1710 fclose(fpout); 1758 1711 1759 1712 if (strict != 0 && unsupported_chunks == 0) … … 1786 1739 } 1787 1740 1788 FCLOSE(fpin);1789 FCLOSE(fpout);1741 fclose(fpin); 1742 fclose(fpout); 1790 1743 1791 1744 /* NOTE: the unsupported_chunks escape is permitted here because … … 1804 1757 #endif /* WRITE && WRITE_FILTER */ 1805 1758 1806 FCLOSE(fpin);1807 FCLOSE(fpout);1759 fclose(fpin); 1760 fclose(fpout); 1808 1761 1809 1762 return 0; … … 1852 1805 #endif 1853 1806 1854 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING)) 1855 { 1856 fprintf(STDERR, 1857 "Warning: versions are different between png.h and png.c\n"); 1858 fprintf(STDERR, " png.h version: %s\n", PNG_LIBPNG_VER_STRING); 1859 fprintf(STDERR, " png.c version: %s\n\n", png_libpng_ver); 1807 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) 1808 { 1809 fprintf(STDERR, "Warning: mismatching versions of png.h and png.c\n"); 1810 fprintf(STDERR, " png.h version string: %s\n", PNG_LIBPNG_VER_STRING); 1811 fprintf(STDERR, " png.c version string: %s\n\n", png_libpng_ver); 1860 1812 ++ierror; 1861 1813 } … … 1891 1843 strict++; 1892 1844 relaxed = 0; 1893 multiple =1;1845 multiple = 1; 1894 1846 } 1895 1847 … … 1901 1853 strict = 0; 1902 1854 relaxed++; 1903 multiple =1;1855 multiple = 1; 1904 1856 } 1905 1857 else if (strcmp(argv[1], "--xfail") == 0) … … 1911 1863 xfail++; 1912 1864 relaxed++; 1913 multiple =1;1865 multiple = 1; 1914 1866 } 1915 1867 … … 1943 1895 int allocation_now = current_allocation; 1944 1896 #endif 1945 for (i =2; i<argc; ++i)1897 for (i = 2; i < argc; ++i) 1946 1898 { 1947 1899 int kerror; … … 2014 1966 { 2015 1967 int i; 2016 for (i = 0; i <3; ++i)1968 for (i = 0; i < 3; ++i) 2017 1969 { 2018 1970 int kerror; … … 2142 2094 png_destroy_read_struct(&dummy_ptr, NULL, NULL); 2143 2095 2144 return (i nt)(ierror != 0);2096 return (ierror != 0); 2145 2097 } 2146 2098 #else … … 2151 2103 " test ignored because libpng was not built with read support\n"); 2152 2104 /* And skip this test */ 2153 return PNG_LIBPNG_VER < 10600 ? 0 : 77;2105 return SKIP; 2154 2106 } 2155 2107 #endif 2156 2157 /* Generate a compiler error if there is an old png.h in the search path. */2158 typedef png_libpng_version_1_6_42 Your_png_h_is_not_version_1_6_42; -
trunk/src/libs/libpng-1.6.43/scripts/checksym.awk
r103316 r105469 107 107 END{ 108 108 if (symbolo > lasto) { 109 print "highest symbol ordinal in png.h,", symbolo ", exceeds last ordinal from png.h", lasto 109 print "highest symbol ordinal in png.h,", 110 symbolo ", exceeds last ordinal from png.h", lasto 110 111 err = 1 111 112 } 112 113 if (mastero > lasto) { 113 print "highest symbol ordinal in", master ",", mastero ", exceeds last ordinal from png.h", lasto 114 print "highest symbol ordinal in", master ",", 115 mastero ", exceeds last ordinal from png.h", lasto 114 116 err = 1 115 117 } … … 150 152 } 151 153 if (symbol[o] != "" && removed[o] != "") { 152 print "png.h: symbol", o, "both exported as '" symbol[o] "' and removed as '" removed[o] "'" 154 print "png.h: symbol", o, 155 "both exported as '" symbol[o] "' and removed as '" removed[o] "'" 153 156 err = 1 154 157 } else if (symbol[o] != official[o]) { … … 156 159 err = 1 157 160 if (symbol[o] == "") 158 print "png.h: symbol", o, "is exported as '" official[o] "' in", master 161 print "png.h: symbol", o, 162 "is exported as '" official[o] "' in", master 159 163 else if (official[o] == "") 160 print "png.h: exported symbol", o, "'" symbol[o] "' not present in", master 164 print "png.h: exported symbol", o, 165 "'" symbol[o] "' not present in", master 161 166 else 162 print "png.h: exported symbol", o, "'" symbol[o] "' exists as '" official[o] "' in", master 167 print "png.h: exported symbol", o, 168 "'" symbol[o] "' exists as '" official[o] "' in", master 163 169 } 164 170 -
trunk/src/libs/libpng-1.6.43/scripts/libpng-config-head.in
r103316 r105469 12 12 # Modeled after libxml-config. 13 13 14 version=1.6.4 214 version=1.6.43 15 15 prefix="" 16 16 libdir="" -
trunk/src/libs/libpng-1.6.43/scripts/libpng.pc.in
r103316 r105469 6 6 Name: libpng 7 7 Description: Loads and saves PNG files 8 Version: 1.6.4 28 Version: 1.6.43 9 9 Libs: -L${libdir} -lpng16 10 10 Cflags: -I${includedir} -
trunk/src/libs/libpng-1.6.43/scripts/makefile.32sunu
r103316 r105469 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-202 2Cosmin Truta3 # Copyright (C) 2020-2024 Cosmin Truta 4 4 # Copyright (C) 2002, 2006, 2010-2014 Glenn Randers-Pehrson 5 5 # Copyright (C) 1998 Greg Roelofs … … 20 20 # Utilities: 21 21 CC=cc 22 AR _RC=ar rc22 AR=ar 23 23 RANLIB=echo 24 MKDIR_P=mkdir -p25 24 LN_SF=ln -f -s 26 25 RM_F=/bin/rm -f … … 43 42 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 44 43 CFLAGS=$(SUN_CC_FLAGS) # $(WARNMORE) -g 44 ARFLAGS=rc 45 45 LDFLAGS=$(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) libpng.a -lz -lm 46 46 … … 66 66 67 67 libpng.a: $(OBJS) 68 $(AR _RC) $@ $(OBJS)68 $(AR) $(ARFLAGS) $@ $(OBJS) 69 69 $(RANLIB) $@ 70 70 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.64sunu
r103316 r105469 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-202 2Cosmin Truta3 # Copyright (C) 2020-2024 Cosmin Truta 4 4 # Copyright (C) 2002, 2006, 2010-2014 Glenn Randers-Pehrson 5 5 # Copyright (C) 1998 Greg Roelofs … … 20 20 # Utilities: 21 21 CC=cc 22 AR _RC=ar rc22 AR=ar 23 23 RANLIB=echo 24 MKDIR_P=mkdir -p25 24 LN_SF=ln -f -s 26 25 RM_F=/bin/rm -f … … 42 41 -Wstrict-prototypes -Wmissing-prototypes # -Wconversion 43 42 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 44 CFLAGS= $(SUN_CC_FLAGS) # $(WARNMORE) -g 43 CFLAGS=$(SUN_CC_FLAGS) # $(WARNMORE) -g 44 ARFLAGS=rc 45 45 LDFLAGS=-L. -R. $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng16 -lz -lm 46 46 … … 66 66 67 67 libpng.a: $(OBJS) 68 $(AR _RC) $@ $(OBJS)68 $(AR) $(ARFLAGS) $@ $(OBJS) 69 69 $(RANLIB) $@ 70 70 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.aix
r103316 r105469 1 1 # makefile for libpng using gcc (generic, static library) 2 # Copyright (C) 2000, 202 2Cosmin Truta2 # Copyright (C) 2000, 2020-2024 Cosmin Truta 3 3 # Copyright (C) 2002, 2006-2009, 2014 Glenn Randers-Pehrson 4 4 # Copyright (C) 2000 Marc O. Gloor (AIX support added, from makefile.gcc) … … 16 16 CC = gcc 17 17 LD = $(CC) 18 AR _RC = ar rcs18 AR = ar 19 19 RANLIB = ranlib 20 MKDIR_P = mkdir -p21 20 RM_F = rm -f 22 21 … … 27 26 CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5 28 27 CFLAGS = -O2 -Wall -Wextra -Wundef # $(WARNMORE) -g 28 ARFLAGS = rc 29 29 LDFLAGS = -L. -L$(ZLIBLIB) -lpng16 -lz -lm # -g 30 30 … … 45 45 46 46 $(LIBNAME).a: $(OBJS) 47 $(AR _RC) $@ $(OBJS)47 $(AR) $(ARFLAGS) $@ $(OBJS) 48 48 $(RANLIB) $@ 49 49 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.amiga
r103316 r105469 27 27 # library (.lib) file creation command 28 28 AR= oml 29 # make directory command30 MKDIR= makedir31 29 32 30 # Pre-built configuration -
trunk/src/libs/libpng-1.6.43/scripts/makefile.beos
r103316 r105469 1 1 # makefile for libpng on BeOS x86 ELF with gcc 2 2 # modified from makefile.linux by Sander Stoks 3 # Copyright (C) 2020-202 2Cosmin Truta3 # Copyright (C) 2020-2024 Cosmin Truta 4 4 # Copyright (C) 2002, 2006, 2008, 2010-2014 Glenn Randers-Pehrson 5 5 # Copyright (C) 1999 Greg Roelofs … … 20 20 # Utilities: 21 21 CC=gcc 22 AR _RC=ar rc22 AR=ar 23 23 RANLIB=ranlib 24 MKDIR_P=mkdir -p25 24 LN_SF=ln -sf 26 25 CP=cp … … 43 42 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 44 43 CFLAGS=-O1 -funroll-loops $(ALIGN) -Wall -Wextra -Wundef # $(WARNMORE) -g 44 ARFLAGS=rc 45 45 # LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng -lz 46 46 LDFLAGS=-L. -Wl,-soname=$(LIBSOMAJ) -L$(ZLIBLIB) -lz # -g … … 67 67 68 68 libpng.a: $(OBJS) 69 $(AR _RC) $@ $(OBJS)69 $(AR) $(ARFLAGS) $@ $(OBJS) 70 70 $(RANLIB) $@ 71 71 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.clang
r103316 r105469 1 1 # makefile for libpng using clang (generic, static library) 2 # Copyright (C) 2000, 2014, 2019-202 2Cosmin Truta2 # Copyright (C) 2000, 2014, 2019-2024 Cosmin Truta 3 3 # Copyright (C) 2008, 2014 Glenn Randers-Pehrson 4 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 15 15 CC = clang 16 16 LD = $(CC) 17 AR _RC = ar rcs17 AR = ar 18 18 RANLIB = ranlib 19 19 CP = cp … … 29 29 CPPFLAGS = -I$(ZLIBINC) $(DEFS) # -DPNG_DEBUG=5 30 30 CFLAGS = -O2 -Wall -Wextra -Wundef # $(WARNMORE) -g 31 ARFLAGS = rc 31 32 LDFLAGS = -L$(ZLIBLIB) # -g 32 33 LIBS = -lz -lm … … 61 62 62 63 libpng.a: $(OBJS) 63 $(AR _RC) $@ $(OBJS)64 $(AR) $(ARFLAGS) $@ $(OBJS) 64 65 $(RANLIB) $@ 65 66 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.darwin
r103316 r105469 1 1 # makefile for libpng on Darwin / macOS 2 # Copyright (C) 2020-202 2Cosmin Truta2 # Copyright (C) 2020-2024 Cosmin Truta 3 3 # Copyright (C) 2002, 2004, 2006, 2008, 2010-2014 Glenn Randers-Pehrson 4 4 # Copyright (C) 2001 Christoph Pfisterer … … 25 25 # Utilities: 26 26 CC=cc 27 AR _RC=ar rc27 AR=ar 28 28 RANLIB=ranlib 29 MKDIR_P=mkdir -p30 29 LN_SF=ln -sf 31 30 CP=cp … … 37 36 CPPFLAGS=-I$(ZLIBINC) $(DEFS) 38 37 CFLAGS=-O3 -funroll-loops -Wall -Wextra -Wundef 38 ARFLAGS=rc 39 39 LDFLAGS=-L. -L$(ZLIBLIB) -lpng16 -lz 40 40 … … 64 64 65 65 libpng.a: $(OBJS) 66 $(AR _RC) $@ $(OBJS)66 $(AR) $(ARFLAGS) $@ $(OBJS) 67 67 $(RANLIB) $@ 68 68 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.dec
r103316 r105469 1 1 # makefile for libpng on DEC Alpha Unix 2 # Copyright (C) 2020-202 2Cosmin Truta2 # Copyright (C) 2020-2024 Cosmin Truta 3 3 # Copyright (C) 2000-2002, 2006, 2010-2014 Glenn Randers-Pehrson 4 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 18 18 # Utilities: 19 19 CC=cc 20 AR _RC=ar rc20 AR=ar 21 21 RANLIB=ranlib 22 MKDIR_P=mkdir23 22 LN_SF=ln -f -s 24 23 CP=cp … … 33 32 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 34 33 CFLAGS=-std -w1 -O # -g 34 ARFLAGS=rc 35 35 LDFLAGS=-L$(ZLIBLIB) -rpath $(ZLIBLIB) libpng.a -lz -lm 36 36 … … 52 52 53 53 libpng.a: $(OBJS) 54 $(AR _RC) $@ $(OBJS)54 $(AR) $(ARFLAGS) $@ $(OBJS) 55 55 $(RANLIB) $@ 56 56 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.dj2
r103316 r105469 1 1 # DJGPP (DOS gcc) makefile for libpng 2 # Copyright (C) 2020-202 2Cosmin Truta2 # Copyright (C) 2020-2024 Cosmin Truta 3 3 # Copyright (C) 2002, 2006, 2009-2014 Glenn Randers-Pehrson 4 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 9 9 10 10 CC=gcc 11 AR=ar 12 RANLIB=ranlib 11 13 CPPFLAGS=-I../zlib -DPNG_NO_SNPRINTF 12 14 CFLAGS=-O 15 ARFLAGS=rc 13 16 LDFLAGS=-L. -L../zlib/ -lpng -lz -lm 14 17 … … 33 36 34 37 libpng.a: $(OBJS) 35 ar rc$@ $(OBJS)36 ranlib$@38 $(AR) $(ARFLAGS) $@ $(OBJS) 39 $(RANLIB) $@ 37 40 38 41 pngtest: pngtest.o libpng.a -
trunk/src/libs/libpng-1.6.43/scripts/makefile.gcc
r103316 r105469 1 1 # makefile for libpng using gcc (generic, static library) 2 # Copyright (C) 2000, 2014, 2019-202 2Cosmin Truta2 # Copyright (C) 2000, 2014, 2019-2024 Cosmin Truta 3 3 # Copyright (C) 2008, 2014 Glenn Randers-Pehrson 4 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 15 15 CC = gcc 16 16 LD = $(CC) 17 AR _RC = ar rcs17 AR = ar 18 18 RANLIB = ranlib 19 19 CP = cp … … 29 29 CPPFLAGS = -I$(ZLIBINC) $(DEFS) # -DPNG_DEBUG=5 30 30 CFLAGS = -O2 -Wall -Wextra -Wundef # $(WARNMORE) -g 31 ARFLAGS = rc 31 32 LDFLAGS = -L$(ZLIBLIB) # -g 32 33 LIBS = -lz -lm … … 61 62 62 63 libpng.a: $(OBJS) 63 $(AR _RC) $@ $(OBJS)64 $(AR) $(ARFLAGS) $@ $(OBJS) 64 65 $(RANLIB) $@ 65 66 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.hp64
r103316 r105469 1 1 # makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product. 2 # Copyright (C) 2020-202 2Cosmin Truta2 # Copyright (C) 2020-2024 Cosmin Truta 3 3 # Copyright (C) 1999-2002, 2006, 2009, 2010-2014 Glenn Randers-Pehrson 4 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42 … … 30 30 # Utilities: 31 31 CC=cc 32 AR _RC=ar rc32 AR=ar 33 33 RANLIB=ranlib 34 MKDIR_P=mkdir -p35 34 LN_SF=ln -sf 36 35 CP=cp … … 42 41 # Caution: be sure you have built zlib with the same CFLAGS. 43 42 CCFLAGS=-O -Ae -Wl,+vnocompatwarnings +DD64 +Z 44 43 ARFLAGS=rc 45 44 LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm 46 45 … … 69 68 70 69 libpng.a: $(OBJS) 71 $(AR _RC) $@ $(OBJS)70 $(AR) $(ARFLAGS) $@ $(OBJS) 72 71 $(RANLIB) $@ 73 72 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.hpgcc
r103316 r105469 1 1 # makefile for libpng on HP-UX using GCC with the HP ANSI/C linker. 2 # Copyright (C) 2020-202 2Cosmin Truta2 # Copyright (C) 2020-2024 Cosmin Truta 3 3 # Copyright (C) 2002, 2006-2008, 2010-2014 Glenn Randers-Pehrson 4 4 # Copyright (C) 2001, Laurent faillie … … 20 20 # Utilities: 21 21 CC=gcc 22 AR=ar 23 RANLIB=ranlib 22 24 LD=ld 23 AR_RC=ar rc24 RANLIB=ranlib25 MKDIR_P=mkdir -p26 25 LN_SF=ln -sf 27 26 CP=cp … … 45 44 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 46 45 CFLAGS=-O3 -funroll-loops -Wall -Wextra -Wundef # $(WARNMORE) -g 46 ARFLAGS=rc 47 47 #LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng16 -lz -lm # -g 48 48 LDFLAGS=-L. -L$(ZLIBLIB) -lpng16 -lz -lm # -g … … 65 65 66 66 libpng.a: $(OBJS) 67 $(AR _RC) $@ $(OBJS)67 $(AR) $(ARFLAGS) $@ $(OBJS) 68 68 $(RANLIB) $@ 69 69 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.hpux
r103316 r105469 1 1 # makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product. 2 # Copyright (C) 2020-202 2Cosmin Truta2 # Copyright (C) 2020-2024 Cosmin Truta 3 3 # Copyright (C) 1999-2002, 2006, 2010-2014 Glenn Randers-Pehrson 4 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42 … … 31 31 # Utilities: 32 32 CC=cc 33 AR _RC=ar rc33 AR=ar 34 34 RANLIB=ranlib 35 MKDIR_P=mkdir -p36 35 LN_SF=ln -sf 37 36 RM_F=/bin/rm -f … … 41 40 # Caution: be sure you have built zlib with the same CFLAGS. 42 41 CCFLAGS=-O -Ae +DA1.1 +DS2.0 42 ARFLAGS=rc 43 43 LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm 44 44 … … 67 67 68 68 libpng.a: $(OBJS) 69 $(AR _RC) $@ $(OBJS)69 $(AR) $(ARFLAGS) $@ $(OBJS) 70 70 $(RANLIB) $@ 71 71 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.linux
r103316 r105469 1 1 # makefile for libpng.a and libpng16.so on Linux ELF with gcc 2 # Copyright (C) 2020-202 2Cosmin Truta2 # Copyright (C) 2020-2024 Cosmin Truta 3 3 # Copyright (C) 1998, 1999, 2002, 2006, 2008, 2010-2014 Greg Roelofs and 4 4 # Glenn Randers-Pehrson … … 19 19 # Utilities: 20 20 CC=gcc 21 AR _RC=ar rc21 AR=ar 22 22 RANLIB=ranlib 23 MKDIR_P=mkdir -p24 23 LN_SF=ln -sf 25 24 CP=cp … … 41 40 CPPFLAGS=-I$(ZLIBINC) $(DEFS) # -DPNG_DEBUG=5 42 41 CFLAGS=-O3 -funroll-loops -Wall -Wextra -Wundef # $(WARNMORE) -g 42 ARFLAGS=rc 43 43 LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng16 -lz -lm # -g 44 44 LDFLAGS_A=-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) libpng.a -lz -lm # -g … … 69 69 70 70 libpng.a: $(OBJS) 71 $(AR _RC) $@ $(OBJS)71 $(AR) $(ARFLAGS) $@ $(OBJS) 72 72 $(RANLIB) $@ 73 73 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.mips
r103316 r105469 1 1 # makefile for libpng 2 # Copyright (C) 2020-202 2Cosmin Truta2 # Copyright (C) 2020-2024 Cosmin Truta 3 3 # Copyright (C) 1998-2014 Glenn Randers-Pehrson 4 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 9 9 10 10 CC=cc 11 AR=ar 12 #RANLIB=ranlib 13 RANLIB=echo 11 14 CPPFLAGS=-I../zlib -DSYSV -Dmips 12 15 CFLAGS=-O -systype sysv -w 13 16 #CFLAGS=-O 17 ARFLAGS=rc 14 18 LDFLAGS=-L. -L../zlib/ -lpng -lz -lm 15 16 AR_RC=ar rc17 #RANLIB=ranlib18 RANLIB=echo19 19 20 20 # Pre-built configuration … … 35 35 36 36 libpng.a: $(OBJS) 37 $(AR _RC) $@ $(OBJS)37 $(AR) $(ARFLAGS) $@ $(OBJS) 38 38 $(RANLIB) $@ 39 39 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.msys
r103316 r105469 1 1 # makefile for libpng using MSYS/gcc (shared, static library) 2 # Copyright (C) 20 19-2022Cosmin Truta2 # Copyright (C) 2000, 2019-2024 Cosmin Truta 3 3 # Copyright (C) 2012 Glenn Randers-Pehrson and Christopher M. Wheeler 4 4 # … … 31 31 CC = gcc 32 32 LD = $(CC) 33 AR _RC = ar rcs33 AR = ar 34 34 RANLIB = ranlib 35 35 CP = cp 36 36 RM_F = rm -rf 37 MKDIR_P=mkdir -p 38 LN_SF=ln -sf 37 LN_SF = ln -sf 39 38 40 39 CPPFLAGS = # -DPNG_DEBUG=5 41 40 CFLAGS = -O2 -Wall -Wextra -Wundef # -g 41 ARFLAGS = rc 42 42 LDFLAGS = # -g 43 43 LIBS = -lz -lm 44 44 45 45 # File extensions 46 EXEEXT =.exe46 EXEEXT = .exe 47 47 48 48 # Pre-built configuration … … 76 76 77 77 libpng.a: $(OBJS) 78 $(AR _RC) $@ $(OBJS)78 $(AR) $(ARFLAGS) $@ $(OBJS) 79 79 $(RANLIB) $@ 80 80 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.sco
r103316 r105469 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-202 2Cosmin Truta4 # Copyright (C) 2020-2024 Cosmin Truta 5 5 # Copyright (C) 2002, 2006, 2010-2014 Glenn Randers-Pehrson 6 6 # Copyright (C) 1998 Greg Roelofs … … 21 21 # Utilities: 22 22 CC=cc 23 AR _RC=ar rc23 AR=ar 24 24 RANLIB=echo 25 MKDIR_P=mkdir26 25 LN_SF=ln -f -s 27 26 CP=cp … … 35 34 36 35 CPPFLAGS=-I$(ZLIBINC) 37 CFLAGS= -dy -belf -O3 36 CFLAGS=-dy -belf -O3 37 ARFLAGS=rc 38 38 LDFLAGS=-L. -L$(ZLIBLIB) -lpng16 -lz -lm 39 39 … … 62 62 63 63 libpng.a: $(OBJS) 64 $(AR _RC) $@ $(OBJS)64 $(AR) $(ARFLAGS) $@ $(OBJS) 65 65 $(RANLIB) $@ 66 66 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.sggcc
r103316 r105469 1 1 # makefile for libpng.a and libpng16.so, SGI IRIX with 'cc' 2 # Copyright (C) 2020-202 2Cosmin Truta2 # Copyright (C) 2020-2024 Cosmin Truta 3 3 # Copyright (C) 2001-2002, 2006, 2010-2014 Glenn Randers-Pehrson 4 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 18 18 # Utilities: 19 19 CC=gcc 20 AR _RC=ar rc20 AR=ar 21 21 RANLIB=echo 22 MKDIR_P=mkdir -p23 22 LN_SF=ln -sf 24 23 CP=cp … … 40 39 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 41 40 CFLAGS=$(ABI) -O $(WARNMORE) -fPIC -mabi=n32 # -g 41 ARFLAGS=rc 42 42 LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm # -g 43 43 LDSHARED=cc $(ABI) -shared -soname $(LIBSOMAJ) \ … … 62 62 63 63 libpng.a: $(OBJS) 64 $(AR _RC) $@ $(OBJS)64 $(AR) $(ARFLAGS) $@ $(OBJS) 65 65 $(RANLIB) $@ 66 66 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.sgi
r103316 r105469 1 1 # makefile for libpng.a and libpng16.so, SGI IRIX with 'cc' 2 # Copyright (C) 2020-202 2Cosmin Truta2 # Copyright (C) 2020-2024 Cosmin Truta 3 3 # Copyright (C) 2001-2002, 2006, 2007, 2010-2014 Glenn Randers-Pehrson 4 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 18 18 # Utilities: 19 19 CC=cc 20 AR _RC=ar rc20 AR=ar 21 21 RANLIB=echo 22 MKDIR_P=mkdir -p23 22 LN_SF=ln -sf 24 23 CP=cp … … 42 41 #CFLAGS= $(ABI) -O $(WARNMORE) -KPIC # -g 43 42 CFLAGS=$(ABI) -O $(WARNMORE) # -g 43 ARFLAGS=rc 44 44 LDFLAGS_A=$(ABI) -L. -L$(ZLIBLIB) -lpng16 -lz -lm # -g 45 45 LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm # -g … … 65 65 66 66 libpng.a: $(OBJS) 67 $(AR _RC) $@ $(OBJS)67 $(AR) $(ARFLAGS) $@ $(OBJS) 68 68 $(RANLIB) $@ 69 69 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.so9
r103316 r105469 2 2 # Updated by Chad Schrock for Solaris 9 3 3 # Contributed by William L. Sebok, based on makefile.linux 4 # Copyright (C) 2020-202 2Cosmin Truta4 # Copyright (C) 2020-2024 Cosmin Truta 5 5 # Copyright (C) 2002, 2006, 2008, 2010-2014 Glenn Randers-Pehrson 6 6 # Copyright (C) 1998-2001 Greg Roelofs … … 22 22 # gcc 2.95 doesn't work. 23 23 CC=cc 24 AR _RC=ar rc24 AR=ar 25 25 RANLIB=echo 26 MKDIR_P=mkdir -p27 26 LN_SF=ln -f -s 28 27 CP=cp … … 42 41 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 43 42 CFLAGS=-O3 43 ARFLAGS=rc 44 44 LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng16 -lz -lm 45 45 … … 68 68 69 69 libpng.a: $(OBJS) 70 $(AR _RC) $@ $(OBJS)70 $(AR) $(ARFLAGS) $@ $(OBJS) 71 71 $(RANLIB) $@ 72 72 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.solaris
r103316 r105469 1 1 # makefile for libpng on Solaris 2.x with gcc 2 # Copyright (C) 2020-202 2Cosmin Truta2 # Copyright (C) 2020-2024 Cosmin Truta 3 3 # Copyright (C) 2004, 2006-2008, 2010-2014 Glenn Randers-Pehrson 4 4 # Contributed by William L. Sebok, based on makefile.linux … … 20 20 # Utilities: 21 21 CC=gcc 22 AR _RC=ar rc22 AR=ar 23 23 RANLIB=echo 24 MKDIR_P=mkdir -p25 24 LN_SF=ln -f -s 26 25 CP=cp … … 41 40 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 42 41 CFLAGS=-O -Wall -Wextra -Wundef # $(WARNMORE) -g 42 ARFLAGS=rc 43 43 LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng16 -lz -lm # -g 44 44 … … 67 67 68 68 libpng.a: $(OBJS) 69 $(AR _RC) $@ $(OBJS)69 $(AR) $(ARFLAGS) $@ $(OBJS) 70 70 $(RANLIB) $@ 71 71 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.std
r103316 r105469 1 1 # makefile for libpng 2 # Copyright (C) 2020-202 2Cosmin Truta2 # Copyright (C) 2020-2024 Cosmin Truta 3 3 # Copyright (C) 2002, 2006, 2014 Glenn Randers-Pehrson 4 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 17 17 CPP = $(CC) -E 18 18 LD = $(CC) 19 AR _RC = ar rc19 AR = ar 20 20 RANLIB = ranlib 21 MKDIR_P = mkdir22 21 MV_F = mv -f 23 22 RM_F = rm -f … … 30 29 CPPFLAGS = -I$(ZLIBINC) $(NOHWOPT) # -DPNG_DEBUG=5 31 30 CFLAGS = -O # -g 31 ARFLAGS = rc 32 32 LDFLAGS = -L$(ZLIBLIB) # -g 33 33 LIBS = -lz -lm … … 67 67 68 68 libpng.a: $(OBJS) 69 $(AR _RC) $@ $(OBJS)69 $(AR) $(ARFLAGS) $@ $(OBJS) 70 70 $(RANLIB) $@ 71 71 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.sunos
r103316 r105469 1 1 # makefile for libpng 2 # Copyright (C) 2020-202 2Cosmin Truta2 # Copyright (C) 2020-2024 Cosmin Truta 3 3 # Copyright (C) 2002, 2006, 2014 Glenn Randers-Pehrson 4 4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. … … 15 15 16 16 CC=gcc 17 AR _RC=ar rc17 AR=ar 18 18 RANLIB=ranlib 19 MKDIR_P=mkdir -p20 19 CP=cp 21 20 RM_F=/bin/rm -f … … 23 22 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5 24 23 CFLAGS=-O 24 ARFLAGS=rc 25 25 LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm 26 26 … … 42 42 43 43 libpng.a: $(OBJS) 44 $(AR _RC) $@ $(OBJS)44 $(AR) $(ARFLAGS) $@ $(OBJS) 45 45 $(RANLIB) $@ 46 46 -
trunk/src/libs/libpng-1.6.43/scripts/makefile.vcwin32
r103316 r105469 31 31 32 32 # File extensions 33 O =.obj33 O = .obj 34 34 35 35 # File lists -
trunk/src/libs/libpng-1.6.43/scripts/options.awk
r103316 r105469 402 402 if (i > NF) { 403 403 # Output new 'option' lines to the intermediate file (out) 404 print "option READ_" opt, "requires READ_ANCILLARY_CHUNKS" reqread, "enables", opt enables , onoff >out 405 print "option WRITE_" opt, "requires WRITE_ANCILLARY_CHUNKS" reqwrite, "enables", opt enables, onoff >out 404 print "option READ_" opt, "requires READ_ANCILLARY_CHUNKS" reqread, 405 "enables", opt enables , onoff >out 406 print "option WRITE_" opt, "requires WRITE_ANCILLARY_CHUNKS" reqwrite, 407 "enables", opt enables, onoff >out 406 408 next 407 409 } … … 732 734 # an otherwise enabled option to turn it on; otherwise the 'if' 733 735 # handling is effectively disabled by 'everything = off' 734 if (option[i] == "off" || option[i] == "disabled" && everything != "on" || option[i] == "enabled" && everything == "off" && !have_ifs) { 736 if ((option[i] == "off") || 737 (option[i] == "disabled" && everything != "on") || 738 (option[i] == "enabled" && everything == "off" && !have_ifs)) { 735 739 print "# undef PNG_on /*default off*/" >out 736 740 } else { … … 753 757 print "# ifdef PNG_on" >out 754 758 if (i ~ /^fail_/) { 755 print error, i, "is on: enabled by:" iffs[i] enabledby[i] ", requires" requires[i] end >out 759 print error, i, "is on:", 760 "enabled by:" iffs[i] enabledby[i] ", requires" requires[i] end >out 756 761 } else if (i !~ /^ok_/) { 757 762 print def i sup >out … … 780 785 } 781 786 if (i ~ /^ok_/) { 782 print error, i, "not enabled: requires:" requires[i] ", enabled by:" iffs[i] enabledby[i] end >out 787 print error, i, "not enabled: ", 788 "requires:" requires[i] ", enabled by:" iffs[i] enabledby[i] end >out 783 789 } 784 790 print "#endif" >out -
trunk/src/libs/libpng-1.6.43/scripts/pnglibconf.dfa
r103316 r105469 205 205 # These options are specific to the ARM NEON hardware optimizations. At present 206 206 # these optimizations depend on GCC specific pre-processing of an assembler (.S) 207 # file so they probably won't work with other compilers. 208 # 209 # ARM_NEON_OPT: unset: check at compile time (__ARM_NEON__ must be defined by 210 # the compiler, typically as a result of specifying 211 # CC="gcc -mfpu=neon".) 212 # 0: disable (even if the CPU has a NEON FPU.) 213 # 1: check at run time (via ARM_NEON_{API,CHECK}) 214 # 2: switch on unconditionally (inadvisable - instead pass 215 # -mfpu=neon to GCC in CC) 216 # When building libpng avoid using any setting other than '0'; '1' is 217 # set automatically when either 'API' or 'CHECK' are configured in, 218 # '2' should not be necessary as -mfpu=neon will achieve the same 219 # effect as well as applying NEON optimizations to the rest of the 220 # libpng code. 221 # NOTE: any setting other than '0' requires ALIGNED_MEMORY 222 # ARM_NEON_API: (PNG_ARM_NEON == 1) allow the optimization to be switched on 223 # with png_set_option 224 # ARM_NEON_CHECK: (PNG_ARM_NEON == 1) compile a run-time check to see if Neon 225 # extensions are supported. This is poorly supported and 226 # deprecated - use the png_set_option API. 207 # file, so they probably won't work with other compilers. 208 # 209 # ARM_NEON_OPT: 210 # unset: check at compile time 211 # (__ARM_NEON__ must be predefined by the compiler, as a result of 212 # passing "-mfpu=neon" to the compiler options) 213 # 0: disable (even if the CPU has a NEON FPU) 214 # 1: check at run time (via ARM_NEON_{API,CHECK}) 215 # 2: switch on unconditionally 216 # (inadvisable - instead, pass "-mfpu=neon" to the compiler) 217 # NOTE: 218 # When building libpng, avoid using any setting other than '0'; 219 # '1' is set automatically when either 'API' or 'CHECK' are configured in; 220 # '2' should not be necessary, as "-mfpu=neon" will achieve the same effect 221 # as well as applying the NEON optimizations to the rest of libpng. 222 # NOTE: 223 # Any setting other than '0' requires ALIGNED_MEMORY. 224 # 225 # ARM_NEON_API: 226 # (PNG_ARM_NEON == 1) 227 # Allow the optimization to be switched on with png_set_option. 228 # 229 # ARM_NEON_CHECK: 230 # (PNG_ARM_NEON == 1) 231 # Compile a run-time check to see if Neon extensions are supported. 232 # This is poorly supported and deprecated - use the png_set_option API. 233 # 227 234 setting ARM_NEON_OPT 228 235 option ARM_NEON_API disabled requires ALIGNED_MEMORY enables SET_OPTION, … … 233 240 # These options are specific to the PowerPC VSX hardware optimizations. 234 241 # 235 # POWERPC_VSX_OPT: unset: check at compile time (__PPC64__,__ALTIVEC__,__VSX__ 236 # must be defined by the compiler, typically as a result 237 # of specifying 238 # "-mvsx -maltivec" compiler flags) 239 # 0: disable (even if the CPU supports VSX.) 240 # 1: check at run time (via POWERPC_VSX_{API,CHECK}) 241 # 2: switch on unconditionally (inadvisable - instead pass 242 # -mvsx -maltivec to compiler options) 243 # When building libpng avoid using any setting other than '0'; '1' is 244 # set automatically when either 'API' or 'CHECK' are configured in, 245 # '2' should not be necessary as "-mvsx -maltivec" will achieve the same 246 # effect as well as applying VSX optimizations to the rest of the 247 # libpng code. 248 # POWERPC_VSX_API: (PNG_POWERPC_VSX == 1) allow the optimization to be switched on 249 # with png_set_option 250 # POWERPC_VSX_CHECK: (PNG_POWERPC_VSX == 1) compile a run-time check to see if VSX 251 # extensions are supported. This is supported not for all OSes 252 # (see contrib/powerpc/README) 242 # POWERPC_VSX_OPT: 243 # unset: check at compile time 244 # (__PPC64__,__ALTIVEC__,__VSX__ must be predefined by the compiler, 245 # as a result of passing "-mvsx -maltivec" to the compiler options) 246 # 0: disable (even if the CPU supports VSX) 247 # 1: check at run time (via POWERPC_VSX_{API,CHECK}) 248 # 2: switch on unconditionally 249 # (inadvisable - instead, pass "-mvsx -maltivec" to the compiler) 250 # NOTE: 251 # When building libpng, avoid using any setting other than '0'; 252 # '1' is set automatically when either 'API' or 'CHECK' are configured in; 253 # '2' should not be necessary, as "-mvsx -maltivec" will achieve the same 254 # effect as well as applying the VSX optimizations to the rest of libpng. 255 # 256 # POWERPC_VSX_API: 257 # (PNG_POWERPC_VSX == 1) 258 # Allow the optimization to be switched on with png_set_option. 259 # 260 # POWERPC_VSX_CHECK: 261 # (PNG_POWERPC_VSX == 1) 262 # Compile a run-time check to see if VSX extensions are supported. 263 # This is not supported on all systems. See contrib/powerpc-vsx/README. 264 # 253 265 setting POWERPC_VSX_OPT 254 266 option POWERPC_VSX_API disabled enables SET_OPTION, … … 259 271 # These options are specific to the MIPS MSA hardware optimizations. 260 272 # 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. 273 # MIPS_MSA_OPT: 274 # unset: check at compile time 275 # (__mips_msa must be predefined by the compiler, as a result of 276 # passing "-mmsa -mfp64" to the compiler options) 277 # 0: disable (even if the CPU supports MSA) 278 # 1: check at run time (via MIPS_MSA_{API,CHECK}) 279 # 2: switch on unconditionally 280 # (inadvisable - instead, pass "-mmsa -mfp64" to the compiler) 281 # NOTE: 282 # When building libpng, avoid using any setting other than '0'; 283 # '1' is set automatically when either 'API' or 'CHECK' are configured in; 284 # '2' should not be necessary, as "-mmsa -mfp64" will achieve the same 285 # effect as well as applying the MSA optimizations to the rest of libpng. 286 # NOTE: 287 # Any setting other than '0' requires ALIGNED_MEMORY. 288 # 289 # MIPS_MSA_API: 290 # (PNG_MIPS_MSA == 1) 291 # Allow the optimization to be switched on with png_set_option. 292 # 293 # MIPS_MSA_CHECK: 294 # (PNG_MIPS_MSA == 1) 295 # Compile a run-time check to see if MSA extensions are supported. 296 # 278 297 setting MIPS_MSA_OPT 279 298 option MIPS_MSA_API disabled requires ALIGNED_MEMORY enables SET_OPTION, … … 284 303 # These options are specific to the MIPS MMI hardware optimizations. 285 304 # 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. 305 # MIPS_MMI_OPT: 306 # unset: check at compile time 307 # (__mips_loongson_mmi must be defined by the compiler, as a result of 308 # passing "-mloongson-mmi -march=loongson3a" to the compiler options) 309 # 0: disable (even if the CPU supports MMI) 310 # 1: check at run time (via MIPS_MMI_{API,CHECK}) 311 # 2: switch on unconditionally 312 # (inadvisable - instead, pass "-mloongson-mmi -march=loongson3a" to the 313 # compiler) 314 # NOTE: 315 # When building libpng, avoid using any setting other than '0'; 316 # '1' is set automatically when either 'API' or 'CHECK' are configured in; 317 # '2' should not be necessary, as "-mloongson-mmi -march=loongson3a" will 318 # achieve the same effect as well as applying the MMI optimizations to the 319 # rest of libpng. 320 # 321 # MIPS_MMI_API: 322 # (PNG_MIPS_MMI == 1) 323 # Allow the optimization to be switched on with png_set_option. 324 # 325 # MIPS_MMI_CHECK: 326 # (PNG_MIPS_MMI == 1) 327 # Compile a run-time check to see if MMI extensions are supported. 328 # 302 329 setting MIPS_MMI_OPT 303 330 option MIPS_MMI_API disabled requires ALIGNED_MEMORY enables SET_OPTION, -
trunk/src/libs/libpng-1.6.43/scripts/pnglibconf.h.prebuilt
r103316 r105469 1 1 /* pnglibconf.h - library build configuration */ 2 2 3 /* libpng version 1.6.4 2*/3 /* libpng version 1.6.43 */ 4 4 5 5 /* Copyright (c) 2018-2024 Cosmin Truta */ -
trunk/src/libs/libpng-1.6.43/scripts/pngwin.rc
r96425 r105469 90 90 VALUE "FileDescription", "PNG image compression library\000" 91 91 VALUE "FileVersion", PNG_LIBPNG_VER_STRING "\000" 92 VALUE "InternalName", PNG_LIBPNG_DLLFNAME QUOTE(PNG_LIBPNG_VER_ DLLNUM) PNG_LIBPNG_DLLFNAME_POSTFIX " (Windows 32 bit)\000"93 VALUE "LegalCopyright", "\251 1998-20 09 Glenn Randers-Pehrson et al.\000"92 VALUE "InternalName", PNG_LIBPNG_DLLFNAME QUOTE(PNG_LIBPNG_VER_SHAREDLIB) PNG_LIBPNG_DLLFNAME_POSTFIX " (Windows)\000" 93 VALUE "LegalCopyright", "\251 1998-2024 PNG Reference Library Authors\000" 94 94 #ifdef PNG_USER_VERSIONINFO_LEGALTRADEMARKS 95 95 VALUE "LegalTrademarks", PNG_USER_VERSIONINFO_LEGALTRADEMARKS "\000" 96 96 #endif /* PNG_USER_VERSIONINFO_LEGALTRADEMARKS */ 97 VALUE "OriginalFilename", PNG_LIBPNG_DLLFNAME QUOTE(PNG_LIBPNG_VER_ DLLNUM) PNG_LIBPNG_DLLFNAME_POSTFIX ".DLL\000"97 VALUE "OriginalFilename", PNG_LIBPNG_DLLFNAME QUOTE(PNG_LIBPNG_VER_SHAREDLIB) PNG_LIBPNG_DLLFNAME_POSTFIX ".DLL\000" 98 98 #ifdef PNG_USER_PRIVATEBUILD 99 99 VALUE "PrivateBuild", PNG_USER_PRIVATEBUILD "\000" -
trunk/src/libs/libpng-1.6.43/scripts/smakefile.ppc
r103316 r105469 12 12 LIBNAME = libpng.a 13 13 AR = ppc-amigaos-ar 14 AR _FLAGS= cr14 ARFLAGS = cr 15 15 RANLIB = ppc-amigaos-ranlib 16 16 LDFLAGS = -r -o … … 18 18 LN = ppc-amigaos-ld 19 19 RM = delete quiet 20 MKDIR = makedir21 20 22 21 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \ … … 27 26 28 27 $(LIBNAME): $(OBJS) 29 $(AR) $(AR _FLAGS) $@ $(OBJS)28 $(AR) $(ARFLAGS) $@ $(OBJS) 30 29 $(RANLIB) $@ 31 30
Note:
See TracChangeset
for help on using the changeset viewer.