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