Lines Matching +full:check +full:- +full:api +full:- +full:version
3 # Copyright (c) 2018-2024 Cosmin Truta
4 # Copyright (c) 2004-2016 Glenn Randers-Pehrson
12 dnl Minor upgrades (compatible ABI): increment the package version
17 dnl version (second field, or first if desired), set the minor
26 dnl Version number stuff here:
28 AC_INIT([libpng],[1.6.44],[png-mng-implement@lists.sourceforge.net])
32 # color-tests requires automake 1.11 or later
33 # silent-rules requires automake 1.11 or later
34 # dist-xz requires automake 1.11 or later
37 AM_INIT_AUTOMAKE([1.13 foreign dist-xz color-tests silent-rules subdir-objects])
38 # The following line causes --disable-maintainer-mode to be the default to
44 dnl version; aclocal.m4 will generate a failure if you use a prior version of
54 dnl End of version number stuff
59 # Check the basic programs.
70 dnl libtool/libtoolize; version 2.4.2 is the tested version. This or any
71 dnl compatible later version may be used
72 LT_INIT([win32-dll])
81 if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\
90 # This is a remnant of the old cc -E validation, where it may have been
96 AS_HELP_STRING([--disable-tests],
105 AS_HELP_STRING([--disable-tools],
113 # -Werror cannot be passed to GCC in CFLAGS because configure will fail
120 AS_HELP_STRING([[[--enable-werror[=OPT]]]],
121 [Pass -Werror or the given argument to the compiler if it is supported]),
122 [test "$enable_werror" = "yes" && enable_werror="-Werror"
130 [return argv[argc-1][0];]
138 # For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89.
141 # we test for that and force the "-std=c89" compiler option:
154 CFLAGS="$CFLAGS -std=c89"
170 AC_ARG_WITH(zlib-prefix,
171 AS_HELP_STRING([[[--with-zlib-prefix]]],
186 SLD=`$LD --version 2>&1 | grep Solaris`
198 # support for version-script, but doesn't actually
208 GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
210 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
229 | ${CPP:-${CC:-gcc} -E} - 2>&1 \
230 | ${EGREP:-grep} "^PREFIX=" \
231 | ${SED:-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
243 # Allow the pkg-config directory to be set
245 AS_HELP_STRING([[[--with-pkgconfigdir]]],
253 # Make the *-config binary config scripts optional
255 AS_HELP_STRING([[[--with-binconfigs]]],
256 [Generate shell libpng-config scripts as well as pkg-config data]
260 AC_MSG_NOTICE([[libpng-config scripts will not be built]])
267 # Support for prefixes to the API function names; this will generate defines
269 AC_ARG_WITH(libpng-prefix,
270 AS_HELP_STRING([[[--with-libpng-prefix]]],
271 [prefix libpng exported function (API) names with the given value]),
272 [if test "${withval:-no}" != "no"; then
275 AM_CONDITIONAL([DO_PNG_PREFIX], [test "${with_libpng_prefix:-no}" != "no"])
280 AC_ARG_ENABLE([unversioned-links],
281 AS_HELP_STRING([[[--enable-unversioned-links]]],
286 [libpng-config for all builds you do not need these links, but if you]
288 [link with -lpng; in that case you need the links.]
289 [The links can be installed manually using 'make install-header-links']
290 [and 'make install-library-links' and can be removed using the]
291 [corresponding uninstall- targets. If you do enable this option every]
293 [installed version of libpng. The default is to create the links;]
294 [use --disable-unversioned-links to change this]))
297 # --disable-unversioned-links must be given to turn the option off.
300 AC_ARG_ENABLE([unversioned-libpng-pc],
301 AS_HELP_STRING([[[--enable-unversioned-libpng-pc]]],
303 [version. This is done by default - use --disable-unversioned-libpng-pc]
308 AC_ARG_ENABLE([unversioned-libpng-config],
309 AS_HELP_STRING([[[--enable-unversioned-libpng-config]]],
310 [Install the configuration file 'libpng-config' as a link to the]
311 [versioned version. This is done by default - use]
312 [--disable-unversioned-libpng-config to change this.]))
316 # HOST-SPECIFIC OPTIONS
322 AC_ARG_ENABLE([hardware-optimizations],
323 AS_HELP_STRING([[[--enable-hardware-optimizations]]],
385 AC_ARG_ENABLE([arm-neon],
386 AS_HELP_STRING([[[--enable-arm-neon]]],
387 [Enable ARM NEON optimizations: =no/off, check, api, yes/on.]
389 [check: use internal checking code (deprecated and poorly supported);]
390 [api: disable by default, enable by a call to png_set_option;]
400 check)
402 [Check for ARM Neon support at run-time]);;
403 api)
405 [Turn on ARM Neon optimizations at run-time]);;
409 AC_MSG_WARN([--enable-arm-neon: please specify 'check' or 'api';]
411 [pass '-mfpu=neon' to the compiler.]);;
413 AC_MSG_ERROR([--enable-arm-neon=${enable_arm_neon}:]
417 # Add ARM-specific files to all builds where $host_cpu is arm ('arm*') or
431 AC_ARG_ENABLE([mips-msa],
432 AS_HELP_STRING([[[--enable-mips-msa]]],
433 [Enable MIPS MSA optimizations: =no/off, check, api, yes/on.]
435 [check: use internal checking code (deprecated and poorly supported);]
436 [api: disable by default, enable by a call to png_set_option;]
446 check)
448 [Check for MIPS MSA support at run-time]);;
449 api)
451 [Turn on MIPS MSA optimizations at run-time]);;
455 AC_MSG_WARN([--enable-mips-msa: please specify 'check' or 'api';]
457 [pass '-mmsa -mfp64' to the compiler.]);;
459 AC_MSG_ERROR([--enable-mips-msa=${enable_mips_msa}:]
463 # Add MIPS-specific files to all builds where $host_cpu is mips ('mips*') or
476 AC_ARG_ENABLE([mips-mmi],
477 AS_HELP_STRING([[[--enable-mips-mmi]]],
478 [Enable MIPS MMI optimizations: =no/off, check, api, yes/on.]
480 [check: use internal checking code (deprecated and poorly supported);]
481 [api: disable by default, enable by a call to png_set_option;]
491 check)
493 [Check for MIPS MMI support at run-time]);;
494 api)
496 [Turn on MIPS MMI optimizations at run-time]);;
500 AC_MSG_WARN([--enable-mips-mmi: please specify 'check' or 'api';]
502 [pass '-mloongson-mmi -march=loongson3a' to the compiler.]);;
504 AC_MSG_ERROR([--enable-mips-mmi=${enable_mips_mmi}:]
521 AC_ARG_ENABLE([intel-sse],
522 AS_HELP_STRING([[[--enable-intel-sse]]],
538 AC_MSG_ERROR([--enable-intel-sse=${enable_intel_sse}:]
542 # Add Intel-specific files to all builds where $host_cpu is Intel ('x86*') or
555 AC_ARG_ENABLE([powerpc-vsx],
556 AS_HELP_STRING([[[--enable-powerpc-vsx]]],
557 [Enable POWERPC VSX optimizations: =no/off, check, api, yes/on.]
559 [check: use internal checking code;]
560 [api: disable by default, enable by a call to png_set_option;]
568 # Prevent inclusion of the platform-specific files below:
570 check)
572 [Check for POWERPC VSX support at run-time])
573 AC_MSG_WARN([--enable-powerpc-vsx: please see contrib/powerpc/README]
575 api)
577 [Turn on POWERPC VSX optimizations at run-time]);;
581 AC_MSG_WARN([--enable-powerpc-vsx: please specify 'check' or 'api';]
583 [pass '-maltivec -mvsx' or '-mcpu=power8' to the compiler.]);;
585 AC_MSG_ERROR([--enable-powerpc-vsx=${enable_powerpc_vsx}:]
589 # Add PowerPC-specific files to all builds where $host_cpu is powerpc
602 AC_ARG_ENABLE([loongarch-lsx],
603 AS_HELP_STRING([[[--enable-loongarch-lsx]]],
620 AC_MSG_ERROR([--enable-loongarch-lsx=${enable_loongarch_lsx}:]
633 LSX_CFLAGS="${LSX_CFLAGS:-"-mlsx"}"
668 AC_CONFIG_FILES([libpng-config:libpng-config.in],
669 [chmod +x libpng-config])