Revision 52b41d7f configure

View differences:

configure
469 469
  fi
470 470
done
471 471

  
472
# test gcc version to see if vector builtins can be used
473
# currently only used on i386 for MMX builtins
474
cat > $TMPC << EOF
475
int main(void) { 
476
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
477
return 0;
478
#else
479
#error no vector builtins
480
#endif
481
}
482
EOF
483

  
484
builtin_vector=no
485
if $cc -o $TMPO $TMPC 2> /dev/null ; then
486
  builtin_vector=yes
487
  if test "$mmx" = "yes" ; then
488
     CFLAGS="$CFLAGS -msse"
489
  fi
490
fi
491

  
472 492
if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
473 493
cat << EOF
474 494

  
......
522 542
echo "Big Endian       $bigendian"
523 543
if test $cpu = "x86"; then
524 544
echo "MMX enabled      $mmx"
545
echo "Vector Builtins  $builtin_vector"
525 546
fi
526 547
if test $cpu = "mips"; then
527 548
echo "MMI enabled      $mmi"
......
583 604
  echo "TARGET_MMX=yes" >> config.mak
584 605
  echo "#define HAVE_MMX 1" >> $TMPH
585 606
fi
607
if test "$builtin_vector" = "yes" ; then
608
  echo "TARGET_BUILTIN_VECTOR=yes" >> config.mak
609
  echo "#define HAVE_BUILTIN_VECTOR 1" >> $TMPH
610
fi
586 611
if test "$mmi" = "yes" ; then
587 612
  echo "TARGET_MMI=yes" >> config.mak
588 613
  echo "#define HAVE_MMI 1" >> $TMPH

Also available in: Unified diff