#! /bin/sh

prefix=/opt/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

usage()
{
    cat <<EOH
Usage: xmlwrapp-config [options]
  --version   print the version number for xmlwrapp
  --libs      print the list of libraries you must use
  --cxxflags  print the C++ compiler flags to use
EOH

    exit 1
}

if test $# -eq 0; then
    usage
fi

while test $# -gt 0; do
    case "$1" in
	--version)
	    echo "0.9.1"
	    exit 0
	    ;;

	--libs)
	    echo "-L${exec_prefix}/lib -lxsltwrapp -L/opt/local/lib -lexslt -lxslt -lxml2 -L/opt/local/lib -lxslt -lxml2 -lxmlwrapp -L/opt/local/lib -lxml2"
	    ;;

	--cflags|--cxxflags)
	    echo "-I${prefix}/include"
	    ;;

	*)
	    usage
	    ;;

    esac
    shift
done

exit 0
