Blame SOURCES/cairo-multilib.patch

f6e2e3
diff -up cairo-1.12.14/util/cairo-trace/cairo-trace.in.multilib cairo-1.12.14/util/cairo-trace/cairo-trace.in
f6e2e3
--- cairo-1.12.14/util/cairo-trace/cairo-trace.in.multilib	2013-07-18 16:03:38.044832193 -0400
f6e2e3
+++ cairo-1.12.14/util/cairo-trace/cairo-trace.in	2013-07-18 16:03:43.981882777 -0400
f6e2e3
@@ -2,6 +2,12 @@
f6e2e3
 
f6e2e3
 prefix=@prefix@
f6e2e3
 exec_prefix=@exec_prefix@
f6e2e3
+case `uname -m` in
f6e2e3
+  x86_64|s390x|ppc64) libdir=@prefix@/lib64
f6e2e3
+    ;;
f6e2e3
+  *) libdir=@prefix@/lib
f6e2e3
+    ;;
f6e2e3
+esac
f6e2e3
 
f6e2e3
 nofile=
f6e2e3
 flush=
f6e2e3
@@ -90,7 +96,7 @@ export CAIRO_TRACE_PROG_NAME
f6e2e3
 
f6e2e3
 if test "x$CAIRO_TRACE_SO" = "x"; then
f6e2e3
     CAIRO_TRACE_SO=""
f6e2e3
-    for lib in @libdir@/cairo/libcairo-trace.@SHLIB_EXT@ @libdir@/cairo/libcairo-trace.@SHLIB_EXT@* @libdir@/cairo/libcairo-trace.*.@SHLIB_EXT@ ; do
f6e2e3
+    for lib in $libdir/cairo/libcairo-trace.@SHLIB_EXT@ $libdir/cairo/libcairo-trace.@SHLIB_EXT@* $libdir/cairo/libcairo-trace.*.@SHLIB_EXT@ ; do
f6e2e3
 	if test -h "$lib" -o -f "$lib"; then
f6e2e3
 	    CAIRO_TRACE_SO="$lib"
f6e2e3
 	    break
f6e2e3
@@ -98,7 +104,7 @@ if test "x$CAIRO_TRACE_SO" = "x"; then
f6e2e3
     done
f6e2e3
 fi
f6e2e3
 if test "x$CAIRO_TRACE_SO" = "x"; then
f6e2e3
-    echo "Could not find the cairo-trace shared library in @libdir@/cairo/." >&2
f6e2e3
+    echo "Could not find the cairo-trace shared library in $libdir/cairo/." >&2
f6e2e3
     echo "Set the CAIRO_TRACE_SO environment variable to the full path of the library." >&2
f6e2e3
     exit 15
f6e2e3
 fi