configure: Regenerate configure script with the ARM SIMD/NEON changes. SDL-1.2
authorOzkan Sezer <sezeroz@gmail.com>
Thu, 31 Oct 2019 14:01:50 +0300
branchSDL-1.2
changeset 132234ceb979e228a
parent 13222 c8562ecca3c9
child 13224 9ed6ca274a7e
configure: Regenerate configure script with the ARM SIMD/NEON changes.
configure
     1.1 --- a/configure	Thu Oct 31 14:00:28 2019 +0300
     1.2 +++ b/configure	Thu Oct 31 14:01:50 2019 +0300
     1.3 @@ -963,6 +963,8 @@
     1.4  enable_mintaudio
     1.5  enable_nasm
     1.6  enable_altivec
     1.7 +enable_arm_simd
     1.8 +enable_arm_neon
     1.9  enable_ipod
    1.10  enable_video_nanox
    1.11  enable_nanox_debug
    1.12 @@ -1692,6 +1694,8 @@
    1.13    --enable-mintaudio      support Atari audio driver [default=yes]
    1.14    --enable-nasm           use nasm assembly blitters on x86 [default=yes]
    1.15    --enable-altivec        use altivec assembly blitters on PPC [default=yes]
    1.16 +  --enable-arm-simd       use SIMD assembly blitters on ARM [default=yes]
    1.17 +  --enable-arm-neon       use NEON assembly blitters on ARM [default=yes]
    1.18    --enable-ipod           configure SDL to work with iPodLinux [default=no]
    1.19    --enable-video-nanox    use nanox video driver [default=no]
    1.20    --enable-nanox-debug    print debug messages [default=no]
    1.21 @@ -4632,13 +4636,13 @@
    1.22  else
    1.23    lt_cv_nm_interface="BSD nm"
    1.24    echo "int some_variable = 0;" > conftest.$ac_ext
    1.25 -  (eval echo "\"\$as_me:4635: $ac_compile\"" >&5)
    1.26 +  (eval echo "\"\$as_me:4639: $ac_compile\"" >&5)
    1.27    (eval "$ac_compile" 2>conftest.err)
    1.28    cat conftest.err >&5
    1.29 -  (eval echo "\"\$as_me:4638: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
    1.30 +  (eval echo "\"\$as_me:4642: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
    1.31    (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
    1.32    cat conftest.err >&5
    1.33 -  (eval echo "\"\$as_me:4641: output\"" >&5)
    1.34 +  (eval echo "\"\$as_me:4645: output\"" >&5)
    1.35    cat conftest.out >&5
    1.36    if $GREP 'External.*some_variable' conftest.out > /dev/null; then
    1.37      lt_cv_nm_interface="MS dumpbin"
    1.38 @@ -5848,7 +5852,7 @@
    1.39    ;;
    1.40  *-*-irix6*)
    1.41    # Find out which ABI we are using.
    1.42 -  echo '#line 5851 "configure"' > conftest.$ac_ext
    1.43 +  echo '#line 5855 "configure"' > conftest.$ac_ext
    1.44    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1.45    (eval $ac_compile) 2>&5
    1.46    ac_status=$?
    1.47 @@ -7518,11 +7522,11 @@
    1.48     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    1.49     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1.50     -e 's:$: $lt_compiler_flag:'`
    1.51 -   (eval echo "\"\$as_me:7521: $lt_compile\"" >&5)
    1.52 +   (eval echo "\"\$as_me:7525: $lt_compile\"" >&5)
    1.53     (eval "$lt_compile" 2>conftest.err)
    1.54     ac_status=$?
    1.55     cat conftest.err >&5
    1.56 -   echo "$as_me:7525: \$? = $ac_status" >&5
    1.57 +   echo "$as_me:7529: \$? = $ac_status" >&5
    1.58     if (exit $ac_status) && test -s "$ac_outfile"; then
    1.59       # The compiler can only warn and ignore the option if not recognized
    1.60       # So say no if there are warnings other than the usual output.
    1.61 @@ -7857,11 +7861,11 @@
    1.62     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    1.63     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1.64     -e 's:$: $lt_compiler_flag:'`
    1.65 -   (eval echo "\"\$as_me:7860: $lt_compile\"" >&5)
    1.66 +   (eval echo "\"\$as_me:7864: $lt_compile\"" >&5)
    1.67     (eval "$lt_compile" 2>conftest.err)
    1.68     ac_status=$?
    1.69     cat conftest.err >&5
    1.70 -   echo "$as_me:7864: \$? = $ac_status" >&5
    1.71 +   echo "$as_me:7868: \$? = $ac_status" >&5
    1.72     if (exit $ac_status) && test -s "$ac_outfile"; then
    1.73       # The compiler can only warn and ignore the option if not recognized
    1.74       # So say no if there are warnings other than the usual output.
    1.75 @@ -7962,11 +7966,11 @@
    1.76     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    1.77     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1.78     -e 's:$: $lt_compiler_flag:'`
    1.79 -   (eval echo "\"\$as_me:7965: $lt_compile\"" >&5)
    1.80 +   (eval echo "\"\$as_me:7969: $lt_compile\"" >&5)
    1.81     (eval "$lt_compile" 2>out/conftest.err)
    1.82     ac_status=$?
    1.83     cat out/conftest.err >&5
    1.84 -   echo "$as_me:7969: \$? = $ac_status" >&5
    1.85 +   echo "$as_me:7973: \$? = $ac_status" >&5
    1.86     if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1.87     then
    1.88       # The compiler can only warn and ignore the option if not recognized
    1.89 @@ -8017,11 +8021,11 @@
    1.90     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    1.91     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1.92     -e 's:$: $lt_compiler_flag:'`
    1.93 -   (eval echo "\"\$as_me:8020: $lt_compile\"" >&5)
    1.94 +   (eval echo "\"\$as_me:8024: $lt_compile\"" >&5)
    1.95     (eval "$lt_compile" 2>out/conftest.err)
    1.96     ac_status=$?
    1.97     cat out/conftest.err >&5
    1.98 -   echo "$as_me:8024: \$? = $ac_status" >&5
    1.99 +   echo "$as_me:8028: \$? = $ac_status" >&5
   1.100     if (exit $ac_status) && test -s out/conftest2.$ac_objext
   1.101     then
   1.102       # The compiler can only warn and ignore the option if not recognized
   1.103 @@ -10819,7 +10823,7 @@
   1.104    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   1.105    lt_status=$lt_dlunknown
   1.106    cat > conftest.$ac_ext <<_LT_EOF
   1.107 -#line 10822 "configure"
   1.108 +#line 10826 "configure"
   1.109  #include "confdefs.h"
   1.110  
   1.111  #if HAVE_DLFCN_H
   1.112 @@ -10915,7 +10919,7 @@
   1.113    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   1.114    lt_status=$lt_dlunknown
   1.115    cat > conftest.$ac_ext <<_LT_EOF
   1.116 -#line 10918 "configure"
   1.117 +#line 10922 "configure"
   1.118  #include "confdefs.h"
   1.119  
   1.120  #if HAVE_DLFCN_H
   1.121 @@ -15082,11 +15086,11 @@
   1.122     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   1.123     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   1.124     -e 's:$: $lt_compiler_flag:'`
   1.125 -   (eval echo "\"\$as_me:15085: $lt_compile\"" >&5)
   1.126 +   (eval echo "\"\$as_me:15089: $lt_compile\"" >&5)
   1.127     (eval "$lt_compile" 2>conftest.err)
   1.128     ac_status=$?
   1.129     cat conftest.err >&5
   1.130 -   echo "$as_me:15089: \$? = $ac_status" >&5
   1.131 +   echo "$as_me:15093: \$? = $ac_status" >&5
   1.132     if (exit $ac_status) && test -s "$ac_outfile"; then
   1.133       # The compiler can only warn and ignore the option if not recognized
   1.134       # So say no if there are warnings other than the usual output.
   1.135 @@ -15181,11 +15185,11 @@
   1.136     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   1.137     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   1.138     -e 's:$: $lt_compiler_flag:'`
   1.139 -   (eval echo "\"\$as_me:15184: $lt_compile\"" >&5)
   1.140 +   (eval echo "\"\$as_me:15188: $lt_compile\"" >&5)
   1.141     (eval "$lt_compile" 2>out/conftest.err)
   1.142     ac_status=$?
   1.143     cat out/conftest.err >&5
   1.144 -   echo "$as_me:15188: \$? = $ac_status" >&5
   1.145 +   echo "$as_me:15192: \$? = $ac_status" >&5
   1.146     if (exit $ac_status) && test -s out/conftest2.$ac_objext
   1.147     then
   1.148       # The compiler can only warn and ignore the option if not recognized
   1.149 @@ -15233,11 +15237,11 @@
   1.150     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   1.151     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   1.152     -e 's:$: $lt_compiler_flag:'`
   1.153 -   (eval echo "\"\$as_me:15236: $lt_compile\"" >&5)
   1.154 +   (eval echo "\"\$as_me:15240: $lt_compile\"" >&5)
   1.155     (eval "$lt_compile" 2>out/conftest.err)
   1.156     ac_status=$?
   1.157     cat out/conftest.err >&5
   1.158 -   echo "$as_me:15240: \$? = $ac_status" >&5
   1.159 +   echo "$as_me:15244: \$? = $ac_status" >&5
   1.160     if (exit $ac_status) && test -s out/conftest2.$ac_objext
   1.161     then
   1.162       # The compiler can only warn and ignore the option if not recognized
   1.163 @@ -23212,6 +23216,162 @@
   1.164      fi
   1.165  }
   1.166  
   1.167 +CheckARM()
   1.168 +{
   1.169 +    # Check whether --enable-arm-simd was given.
   1.170 +if test "${enable_arm_simd+set}" = set; then
   1.171 +  enableval=$enable_arm_simd; enable_arm_simd=$enableval
   1.172 +else
   1.173 +  enable_arm_simd=yes
   1.174 +fi
   1.175 +
   1.176 +    if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
   1.177 +        save_CFLAGS="$CFLAGS"
   1.178 +        have_arm_simd=no
   1.179 +        CFLAGS="-x assembler-with-cpp $CFLAGS"
   1.180 +
   1.181 +        { $as_echo "$as_me:$LINENO: checking for ARM SIMD" >&5
   1.182 +$as_echo_n "checking for ARM SIMD... " >&6; }
   1.183 +        cat >conftest.$ac_ext <<_ACEOF
   1.184 +/* confdefs.h.  */
   1.185 +_ACEOF
   1.186 +cat confdefs.h >>conftest.$ac_ext
   1.187 +cat >>conftest.$ac_ext <<_ACEOF
   1.188 +/* end confdefs.h.  */
   1.189 +
   1.190 +        .text
   1.191 +        .arch armv6
   1.192 +        .object_arch armv4
   1.193 +        .arm
   1.194 +        .altmacro
   1.195 +        #ifndef __ARM_EABI__
   1.196 +        #error EABI is required (to be sure that calling conventions are compatible)
   1.197 +        #endif
   1.198 +        pld [r0]
   1.199 +        uqadd8 r0, r0, r0
   1.200 +
   1.201 +_ACEOF
   1.202 +rm -f conftest.$ac_objext
   1.203 +if { (ac_try="$ac_compile"
   1.204 +case "(($ac_try" in
   1.205 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1.206 +  *) ac_try_echo=$ac_try;;
   1.207 +esac
   1.208 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   1.209 +$as_echo "$ac_try_echo") >&5
   1.210 +  (eval "$ac_compile") 2>conftest.er1
   1.211 +  ac_status=$?
   1.212 +  grep -v '^ *+' conftest.er1 >conftest.err
   1.213 +  rm -f conftest.er1
   1.214 +  cat conftest.err >&5
   1.215 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   1.216 +  (exit $ac_status); } && {
   1.217 +	 test -z "$ac_c_werror_flag" ||
   1.218 +	 test ! -s conftest.err
   1.219 +       } && test -s conftest.$ac_objext; then
   1.220 +  have_arm_simd=yes
   1.221 +else
   1.222 +  $as_echo "$as_me: failed program was:" >&5
   1.223 +sed 's/^/| /' conftest.$ac_ext >&5
   1.224 +
   1.225 +
   1.226 +fi
   1.227 +
   1.228 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1.229 +        { $as_echo "$as_me:$LINENO: result: $have_arm_simd" >&5
   1.230 +$as_echo "$have_arm_simd" >&6; }
   1.231 +
   1.232 +        CFLAGS="$save_CFLAGS"
   1.233 +
   1.234 +        if test x$have_arm_simd = xyes; then
   1.235 +            cat >>confdefs.h <<\_ACEOF
   1.236 +#define SDL_ARM_SIMD_BLITTERS 1
   1.237 +_ACEOF
   1.238 +
   1.239 +            SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
   1.240 +        fi
   1.241 +    fi
   1.242 +}
   1.243 +
   1.244 +CheckNEON()
   1.245 +{
   1.246 +    # Check whether --enable-arm-neon was given.
   1.247 +if test "${enable_arm_neon+set}" = set; then
   1.248 +  enableval=$enable_arm_neon; enable_arm_neon=$enableval
   1.249 +else
   1.250 +  enable_arm_neon=yes
   1.251 +fi
   1.252 +
   1.253 +    if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
   1.254 +        save_CFLAGS="$CFLAGS"
   1.255 +        have_arm_neon=no
   1.256 +        CFLAGS="-x assembler-with-cpp $CFLAGS"
   1.257 +
   1.258 +        { $as_echo "$as_me:$LINENO: checking for ARM NEON" >&5
   1.259 +$as_echo_n "checking for ARM NEON... " >&6; }
   1.260 +        cat >conftest.$ac_ext <<_ACEOF
   1.261 +/* confdefs.h.  */
   1.262 +_ACEOF
   1.263 +cat confdefs.h >>conftest.$ac_ext
   1.264 +cat >>conftest.$ac_ext <<_ACEOF
   1.265 +/* end confdefs.h.  */
   1.266 +
   1.267 +        .text
   1.268 +        .fpu neon
   1.269 +        .arch armv7a
   1.270 +        .object_arch armv4
   1.271 +        .eabi_attribute 10, 0
   1.272 +        .arm
   1.273 +        .altmacro
   1.274 +        #ifndef __ARM_EABI__
   1.275 +        #error EABI is required (to be sure that calling conventions are compatible)
   1.276 +        #endif
   1.277 +        pld [r0]
   1.278 +        vmovn.u16 d0, q0
   1.279 +
   1.280 +_ACEOF
   1.281 +rm -f conftest.$ac_objext
   1.282 +if { (ac_try="$ac_compile"
   1.283 +case "(($ac_try" in
   1.284 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1.285 +  *) ac_try_echo=$ac_try;;
   1.286 +esac
   1.287 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
   1.288 +$as_echo "$ac_try_echo") >&5
   1.289 +  (eval "$ac_compile") 2>conftest.er1
   1.290 +  ac_status=$?
   1.291 +  grep -v '^ *+' conftest.er1 >conftest.err
   1.292 +  rm -f conftest.er1
   1.293 +  cat conftest.err >&5
   1.294 +  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
   1.295 +  (exit $ac_status); } && {
   1.296 +	 test -z "$ac_c_werror_flag" ||
   1.297 +	 test ! -s conftest.err
   1.298 +       } && test -s conftest.$ac_objext; then
   1.299 +  have_arm_neon=yes
   1.300 +else
   1.301 +  $as_echo "$as_me: failed program was:" >&5
   1.302 +sed 's/^/| /' conftest.$ac_ext >&5
   1.303 +
   1.304 +
   1.305 +fi
   1.306 +
   1.307 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1.308 +        { $as_echo "$as_me:$LINENO: result: $have_arm_neon" >&5
   1.309 +$as_echo "$have_arm_neon" >&6; }
   1.310 +
   1.311 +        CFLAGS="$save_CFLAGS"
   1.312 +
   1.313 +        if test x$have_arm_neon = xyes; then
   1.314 +            cat >>confdefs.h <<\_ACEOF
   1.315 +#define SDL_ARM_NEON_BLITTERS 1
   1.316 +_ACEOF
   1.317 +
   1.318 +            SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
   1.319 +        fi
   1.320 +    fi
   1.321 +}
   1.322 +
   1.323  CheckVisibilityHidden()
   1.324  {
   1.325      { $as_echo "$as_me:$LINENO: checking for GCC -fvisibility=hidden option" >&5
   1.326 @@ -30633,6 +30793,8 @@
   1.327          CheckDLOPEN
   1.328          CheckNASM
   1.329          CheckAltivec
   1.330 +        CheckARM
   1.331 +        CheckNEON
   1.332          CheckOSS
   1.333          CheckDMEDIA
   1.334          CheckMME