#!/bin/sh

prefix="/usr/pkg"
exec_prefix=$prefix

SCFLAGS="-I$prefix/include   -I/usr/X11R7/include -I/usr/local/include  -I/usr/pkg/include -DDRIVER_VOXWARE" 
SLFLAGS="-L$exec_prefix/lib   -L/usr/X11R7/lib -L/usr/local/lib"
SLIBS="-lwsound -lX11  -lPropList -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -laudiofile "

usage="Usage: get-wsound-flags [--cflags] [--ldflags] [--libs]"

if test $# -eq 0; then
      echo "${usage}" 1>&2
      exit 1
fi

while test $# -gt 0; do
  case $1 in
    --cflags)
	echo $SCFLAGS
        ;;
    --ldflags|--lflags)
	echo $SLFLAGS
        ;;
    --libs)
	echo $SLIBS
        ;;
    *)
    	echo "${usage}" 1>&2
    	exit 1
      	;;
  esac
  shift
done


