#!/bin/sh
CWD=`pwd` 
cat << EOF

Due to crazy MMX checking, without major patching it looks like the
only way to make this package generic is to compile it on a 386 or 486.

You are using one of those, right?

EOF
read JUNK
cd /tmp
tar xzvf $CWD/gmp-3.0.1.tar.gz
cd gmp-3.0.1
CFLAGS=-O2 ./configure --prefix=/usr \
                       --with-gnu-ld
# This doesn't work.  And autoconf isn't helpful, since gmp appears to use an
# autoconf version that's not released yet.
#                       i386-slackware-linux
make
make install
mkdir -p /usr/doc/gmp-3.0.1
cp -a AUTHORS COPYING COPYING.LIB ChangeLog INSTALL NEWS README /usr/doc/gmp-3.0.1
chown -R root.root /usr/doc/gmp-3.0.1
chmod 644 /usr/doc/gmp-3.0.1/*
