File liboil-0.3.13-disable-ppc64-opts.patch of Package liboil

Index: configure
===================================================================
--- configure.orig	2008-02-22 21:56:03.000000000 +0100
+++ configure	2008-03-16 19:07:48.000000000 +0100
@@ -10534,7 +10534,7 @@ cat >>confdefs.h <<\_ACEOF
 _ACEOF
 
       ;;
-    xpowerpc|xppc|xpowerpc64|xppc64)
+    xpowerpc|xppc)
       HAVE_POWERPC=yes
 
 cat >>confdefs.h <<\_ACEOF
@@ -10631,7 +10631,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
 	 test -z "$ac_c_werror_flag" ||
 	 test ! -s conftest.err
        } && test -s conftest.$ac_objext; then
-  flag_ok=yes
+  flag_ok=no
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
@@ -10641,7 +10641,7 @@ fi
 
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
-  if test "X$flag_ok" = Xyes ; then
+  if test "X$flag_ok" = Xyes -a "X$HAVE_POWERPC" = "Xyes" ; then
     HAVE_GCC_ASM_POWERPC_FPU=yes
     true
   else
Index: m4/as-host-defines.m4
===================================================================
--- m4/as-host-defines.m4.orig	2008-02-22 20:59:17.000000000 +0100
+++ m4/as-host-defines.m4	2008-03-16 19:10:31.000000000 +0100
@@ -19,7 +19,7 @@ AC_DEFUN([AS_HOST_DEFINES],
       HAVE_AMD64=yes
       AC_DEFINE(HAVE_AMD64, 1, [Defined if host is amd64])
       ;;
-    xpowerpc|xppc|xpowerpc64|xppc64)
+    xpowerpc|xppc)
       HAVE_POWERPC=yes
       AC_DEFINE(HAVE_POWERPC, 1, [Defined if host is powerpc])
       ;;
openSUSE Build Service is sponsored by