Description: Fix configury with multiarch libc.
Bug-Ubuntu: https://bugs.launchpad.net/bugs/756116
Bug-Debian: http://bugs.debian.org/629693
Forwarded: no
Author: Matthias Klose <doko@ubuntu.com>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2012-01-30

--- spim-8.0+dfsg.orig/spim/Configure
+++ spim-8.0+dfsg/spim/Configure
@@ -74,7 +74,15 @@ fi;
 rm -f endian endian.exe
 
 
-if [ -f /usr/lib/libc.a ]; then
+multiarch=$(dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+if [ -f /usr/lib/$multiarch/libc.a ]; then
+  # Debian Universe:
+  echo Looks like a Debian universe exists...
+  echo Scaning libc
+  nm /usr/lib/$multiarch/libc.a > library_contents
+  set flag = -s
+else if [ -f /usr/lib/libc.a ]; then
   # BSD Universe:
   echo Looks like a BSD universe exists...
   echo Scaning libc
@@ -106,6 +114,7 @@ else if [ -f /usr/lib64/libc.a ]; then
 fi;
 fi;
 fi;
+fi;
 fi;
 fi;
 
