#!/bin/sh

usage()
{
	echo "usage: $0 [OPTIONS]"
cat << EOH

options:
	[--libs]
	[--cflags]
	[--version]
EOH
	exit 1;
}

prefix=/opt/kde
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
libdl=-ldl

flags=""

while test $# -gt 0
do
  case $1 in
    --libs)
	  flags="$flags -L$libdir $libdl -lartsc  -DPIC -fPIC -lpthread"
	  ;;
    --cflags)
	  flags="$flags -I$includedir/artsc"
	  ;;
    --version)
	  echo 0.9.5
	  ;;
	*)
	  echo "$0: unknown option $1"
	  echo 
	  usage
	  ;;
  esac
  shift
done

if test -n "$flags"
then
  echo $flags
fi
