#!/bin/sh

WCFLAGS="-I/usr/local/include -I/usr/X11R6/include  -I/usr/X11R6/include"
WLFLAGS="-L/usr/local/lib -L/usr/X11R6/lib  -L/usr/X11R6/lib"
WLIBS="-lwraster -ltiff  -lXpm -lpng -lz -ljpeg -lungif -lXinerama -lXext -lX11  -lm"

usage="Usage: get-wraster-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 $WCFLAGS
        ;;
    --ldflags|--lflags)
	echo $WLFLAGS
        ;;
    --libs)
	echo $WLIBS
        ;;
    *)
    	echo "${usage}" 1>&2
    	exit 1
      	;;
  esac
  shift
done


