configure.in
branchSDL-1.2
changeset 13212 3d6dc20a0974
parent 13068 4a2c30be1127
child 13219 4f88e197acad
equal deleted inserted replaced
13154:af5e8b6a3c70 13212:3d6dc20a0974
   887             AC_DEFINE(SDL_ALTIVEC_BLITTERS)
   887             AC_DEFINE(SDL_ALTIVEC_BLITTERS)
   888             EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
   888             EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
   889         else
   889         else
   890         dnl Check standart gcc altivec options
   890         dnl Check standart gcc altivec options
   891             CheckAltivec
   891             CheckAltivec
       
   892         fi
       
   893     fi
       
   894 }
       
   895 
       
   896 dnl Check for ARM instruction support using gas syntax
       
   897 CheckARM()
       
   898 {
       
   899     AC_ARG_ENABLE(arm-simd,
       
   900 AC_HELP_STRING([--enable-arm-simd], [use SIMD assembly blitters on ARM [[default=yes]]]),
       
   901                   enable_arm_simd=$enableval, enable_arm_simd=yes)
       
   902     if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
       
   903         save_CFLAGS="$CFLAGS"
       
   904         have_arm_simd=no
       
   905         CFLAGS="-x assembler-with-cpp $CFLAGS"
       
   906         
       
   907         AC_MSG_CHECKING(for ARM SIMD)
       
   908         AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
       
   909         .text
       
   910         .arch armv6
       
   911         .object_arch armv4
       
   912         .arm
       
   913         .altmacro
       
   914         #ifndef __ARM_EABI__
       
   915         #error EABI is required (to be sure that calling conventions are compatible)
       
   916         #endif
       
   917         pld [r0]
       
   918         uqadd8 r0, r0, r0
       
   919         ]])], have_arm_simd=yes)
       
   920         AC_MSG_RESULT($have_arm_simd)
       
   921         
       
   922         CFLAGS="$save_CFLAGS"
       
   923         
       
   924         if test x$have_arm_simd = xyes; then
       
   925             AC_DEFINE(SDL_ARM_SIMD_BLITTERS)
       
   926 dnl            SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.c"
       
   927             SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
   892         fi
   928         fi
   893     fi
   929     fi
   894 }
   930 }
   895 
   931 
   896 dnl See if GCC's -fvisibility=hidden is supported (gcc4 and later, usually).
   932 dnl See if GCC's -fvisibility=hidden is supported (gcc4 and later, usually).
  2434         CheckDiskAudio
  2470         CheckDiskAudio
  2435         CheckDummyAudio
  2471         CheckDummyAudio
  2436         CheckDLOPEN
  2472         CheckDLOPEN
  2437         CheckNASM
  2473         CheckNASM
  2438         CheckAltivec
  2474         CheckAltivec
       
  2475         CheckARM
  2439         CheckOSS
  2476         CheckOSS
  2440         CheckDMEDIA
  2477         CheckDMEDIA
  2441         CheckMME
  2478         CheckMME
  2442         CheckALSA
  2479         CheckALSA
  2443         CheckARTSC
  2480         CheckARTSC