From 09d718fae966760954248b964b290af1275f7a4c Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Fri, 26 Apr 2013 15:46:28 -0500 Subject: [PATCH] [libpng15] Imported from libpng-1.5.16beta03.tar --- ANNOUNCE | 1 + configure | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ANNOUNCE b/ANNOUNCE index 394a6ded7..12101e168 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -40,6 +40,7 @@ Version 1.5.16beta02 [April 26, 2013] Regenerated configure files. Version 1.5.16beta03 [April 26, 2013] + Test for 'arm*' not just 'arm' in the host_cpu configure variable. Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/configure b/configure index d3f8855d4..bdd2063cf 100755 --- a/configure +++ b/configure @@ -12843,13 +12843,15 @@ $as_echo "#define PNG_ARM_NEON_SUPPORTED /**/" >>confdefs.h fi -# If enable/disable was not specified default to using the optimizations if the -# host CPU is ARM and the compiler is targeting a NEON host. The latter test -# is done in scripts/pnglibconf.dfa by checking for __ARM_NEON__. The -# AM_CONDITIONAL below controls whether the ARM NEON source files are built. +# Add ARM specific files to all builds where the host_cpu is arm ('arm*') or +# where ARM optimizations were explicitly requested (this allows a fallback if a +# future host CPU does not match 'arm*') if test "$enable_arm_neon" != 'no' && - test "$host_cpu" = 'arm' -o "$enable_arm_neon" != ''; then + case "$host_cpu" in + arm*) :;; + *) test "$enable_arm_neon" != '';; + esac; then PNG_ARM_NEON_TRUE= PNG_ARM_NEON_FALSE='#' else