--- mm.SlackBuild	2006-08-17 05:34:46.000000000 -0400
+++ mm.SlackBuild.s390x	2006-09-12 15:10:41.000000000 -0400
@@ -38,7 +38,7 @@
   SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
 elif [ "$ARCH" = "i486" ]; then
   SLKCFLAGS="-O2 -march=i486 -mtune=i686"
-elif [ "$ARCH" = "s390" ]; then
+elif [ "$ARCH" = "s390x" ]; then
   SLKCFLAGS="-O2"
 elif [ "$ARCH" = "x86_64" ]; then
   SLKCFLAGS="-O2"
@@ -67,6 +67,7 @@
 CFLAGS="$SLKCFLAGS" \
 ./configure \
   --prefix=/usr \
+  --libdir='${exec_prefix}/lib64' \
   --mandir=/usr/man \
   --enable-static \
   --enable-shared \
@@ -78,10 +79,10 @@
 make install DESTDIR=$PKG || exit 1
 
 # Make sure the shared library is executable:
-chmod 755 $PKG/usr/lib/libmm.so.*
+chmod 755 $PKG/usr/lib64/libmm.so.*
 # 99% of these are also executable, but I don't think it matters.
 # Personally, I think they should be chmod 644, but what do I know?
-chmod 755 $PKG/usr/lib/libmm*.la
+chmod 755 $PKG/usr/lib64/libmm*.la
 
 # Strip binaries:
 ( cd $PKG
