1996-05-20 20:18:47 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
sysname=$1
|
|
|
|
|
|
|
|
uname=`uname -s`
|
|
|
|
machine=`uname -m`
|
|
|
|
|
|
|
|
if [ "$sysname" = "" ]; then
|
|
|
|
case $uname in
|
|
|
|
ULTRIX)
|
|
|
|
sysname=ultrix;;
|
|
|
|
BSD/OS)
|
|
|
|
sysname=bsdos;;
|
|
|
|
OSF1)
|
|
|
|
if [ $machine = 'alpha' ]; then
|
1996-05-22 09:51:59 +00:00
|
|
|
sysname=alphaosf
|
1996-05-20 20:18:47 +00:00
|
|
|
fi;;
|
|
|
|
Linux)
|
|
|
|
sysname=linux;;
|
|
|
|
SunOS)
|
|
|
|
case `uname -r` in
|
|
|
|
4*) sysname=sunos4;;
|
|
|
|
5*) sysname=sunos5-5;;
|
|
|
|
esac;;
|
|
|
|
NetBSD)
|
|
|
|
sysname=netbsd;;
|
|
|
|
FreeBSD)
|
|
|
|
sysname=freebsd;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$sysname" = "" ]; then
|
|
|
|
echo
|
|
|
|
echo "Unknown system. If this is an SCO system running ODT 3.0 or"
|
|
|
|
echo "higher, type \`\`./configure sco''. Otherwise, this is a"
|
|
|
|
echo "configuration that isn't supported or hasn't been tested."
|
|
|
|
echo
|
|
|
|
echo "Supported configurations are:"
|
|
|
|
echo " ultrix ULTRIX 4.2A or higher"
|
|
|
|
echo " bsdos BSDI BSD/OS 2.1"
|
|
|
|
echo " alphaosf DEC Alpha OSF/1"
|
|
|
|
echo " linux Linux"
|
|
|
|
echo " sunos4 Sunos 4.1.4 (earlier releases may work)"
|
|
|
|
echo " sunos5-5 SunOS 5.5 (Solaris 2.5) (earlier 2.x releases may work)"
|
|
|
|
echo " netbsd NetBSD 1.1 or higher"
|
|
|
|
echo " freebsd FreeBSD"
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
|
|
|
|
sed -e "/^##\+\+${sysname}\+\+/,/^##--${sysname}--/s/^#//" \
|
|
|
|
<Makefile.dist >Makefile
|
|
|
|
|
|
|
|
exit 0
|