#! /bin/sh
arch=$1
osname=$2
. pari/O$osname-$arch/dft.Config.in
# /usr/bin/sed on solaris does not understand \+ 
if ( test x$version = "x2.1" && test x$patch = "x0" ) || test x$version = "x2.0"; then
	mydlldflags=`echo "$DLLDFLAGS" | sed -e 's/-[^ \t][^ \t]*[ \t][ \t]*\$@//'`
else
	mydlldflags=`echo "$DLLDFLAGS" | sed -e 's/-[^ \t][^ \t]*[ \t][ \t]*\$(LIBPARI_SONAME)//'`
fi
myincludedir=`echo "$includedir" | sed -e 's/\/pari\/\?$//'`
echo "$CC -c $cflags -I$myincludedir %s.c; $DLLD -o %s.$DLSUFFIX $mydlldflags $EXTRADLLDFLAGS %s.o"

