#!/bin/sh

UNAME=`uname -m`
case $UNAME in
  ppc*|sparc*)
    DEFAULT32=1
    ;;
  *64|s390x)
    DEFAULT32=0
    ;;
  *)
    DEFAULT32=1
    ;;
esac
if [ $DEFAULT32 -eq 1 -a -e /usr/lib/sympow ] ; then
    LIB=lib
elif [ -e /usr/lib64/sympow ] ; then
    LIB=lib64
elif [ -e /usr/lib/sympow ] ; then
    LIB=lib
else
    echo "Error: could not locate sympow on your system. Exitting..."
    exit 1
fi

cd /usr/$LIB/sympow
./sympow $*
