Blame SOURCES/libpng-fix-arm-neon.patch

01e100
diff --git a/configure.ac b/configure.ac
01e100
index 4fb0778..930bf50 100644
01e100
--- a/configure.ac
01e100
+++ b/configure.ac
01e100
@@ -283,17 +283,21 @@ AC_ARG_ENABLE([arm-neon],
01e100
    [case "$enableval" in
01e100
       no|off)
01e100
          # disable the default enabling on __ARM_NEON__ systems:
01e100
+         AC_DEFINE([PNG_ARM_NEON], [], [ARM NEON support])
01e100
          AC_DEFINE([PNG_ARM_NEON_OPT], [0],
01e100
                    [Disable ARM Neon optimizations])
01e100
          # Prevent inclusion of the assembler files below:
01e100
          enable_arm_neon=no;;
01e100
       check)
01e100
+         AC_DEFINE([PNG_ARM_NEON], [], [ARM NEON support])
01e100
          AC_DEFINE([PNG_ARM_NEON_CHECK_SUPPORTED], [],
01e100
                    [Check for ARM Neon support at run-time]);;
01e100
       api)
01e100
+         AC_DEFINE([PNG_ARM_NEON], [], [ARM NEON support])
01e100
          AC_DEFINE([PNG_ARM_NEON_API_SUPPORTED], [],
01e100
                    [Turn on ARM Neon optimizations at run-time]);;
01e100
       yes|on)
01e100
+         AC_DEFINE([PNG_ARM_NEON], [], [ARM NEON support])
01e100
          AC_DEFINE([PNG_ARM_NEON_OPT], [2],
01e100
                    [Enable ARM Neon optimizations])
01e100
          AC_MSG_WARN([--enable-arm-neon: please specify 'check' or 'api', if]
01e100
diff --git a/pngpriv.h b/pngpriv.h
01e100
index 1997503..789206f 100644
01e100
--- a/pngpriv.h
01e100
+++ b/pngpriv.h
01e100
@@ -125,7 +125,7 @@
01e100
     * associated assembler code, pass --enable-arm-neon=no to configure
01e100
     * or put -DPNG_ARM_NEON_OPT=0 in CPPFLAGS.
01e100
     */
01e100
-#  if (defined(__ARM_NEON__) || defined(__ARM_NEON)) && \
01e100
+#  if defined(PNG_ARM_NEON) && (defined(__ARM_NEON__) || defined(__ARM_NEON)) && \
01e100
    defined(PNG_ALIGNED_MEMORY_SUPPORTED)
01e100
 #     define PNG_ARM_NEON_OPT 2
01e100
 #  else