Blame SOURCES/cairo-multilib.patch

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