#!/bin/sh
# $Id: cfg-Xaw,v 1.7 2010/12/29 21:11:03 tom Exp $
# common configure-script for xvile

case `partition` in
cygwin64)
# test-program dumps core when checking --with-perl if XTSTRINGDEFS used...
	;;
*)
CPPFLAGS="-DXTSTRINGDEFINES $CPPFLAGS"; export CPPFLAGS
	;;
esac

CFLAGS="-O -g $CFLAGS"; export CFLAGS

case `partition` in
xen-netbsd)
	OPT="$OPT --x-includes=/usr/X11R7/include --x-libraries=/usr/X11R7/lib"
	;;
esac

cfg-vile $OPT \
	--with-app-defaults=`x-app-defaults` \
	--with-icondir=`x-pixmaps` \
	--with-screen=Xaw "$@"
