Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas


Modified Files:
        configure.in 


Log Message:


fix some stuff for altivec on linux latest gcc 4.0.2...

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/configure.in,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -3 -r1.119 -r1.120
--- configure.in        20 Sep 2005 12:44:36 -0000      1.119
+++ configure.in        24 Sep 2005 05:53:27 -0000      1.120
@@ -762,7 +762,6 @@
     ;;
 esac
 altivec_cflags=""
-altivec_libs=""
 AC_MSG_CHECKING(whether to build altivec code)
 AC_ARG_ENABLE(cpu-altivec, 
   [  --enable-cpu-altivec            enable altivec code], [
@@ -782,12 +781,22 @@
 if test "x$have_altivec" = "xyes"; then
    AC_CHECK_HEADER(altivec.h,
      [
-        altivec_libs="-laltivec"
         AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
        build_cpu_altivec="yes"
      ],
      [
-        build_cpu_altivec="no"
+       PF=$CFLAGS
+       CFLAGS=$CFLAGS" -maltivec"
+       AC_CHECK_HEADER(altivec.h,
+         [
+            AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
+           build_cpu_altivec="yes"
+         ],
+         [
+            build_cpu_altivec="no"
+         ]
+       )
+       CFLAGS=$PF
      ]
    )
 fi
@@ -798,6 +807,10 @@
          AC_MSG_RESULT(yes)
          altivec_cflags="-faltivec"
          AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
+      elif echo "int main(){ return 0;}" | gcc -maltivec -E - > /dev/null 
2>&1; then
+         AC_MSG_RESULT(yes)
+         altivec_cflags="-maltivec"
+         AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
       else
          AC_MSG_RESULT(no)
       fi




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to