#! /bin/sh
dir="/opt/local"
# $Id$
# Author of this file: Martin Preuss<martin@libchipcard.de>

result=""

for d in $*; do
    case $d in
	--includes)
	    result="$result `/opt/local/bin/pkg-config --cflags aqbanking`"
	    ;;
	--libraries)
	    result="$result `/opt/local/bin/pkg-config --libs aqbanking`"
	    ;;
	--libraries++)
	    result="$result "
	    ;;
	--plugins)
	    result="$result `/opt/local/bin/pkg-config --variable=plugindir aqbanking`"
	    ;;
	--data)
	    result="$result `/opt/local/bin/pkg-config --variable=pkgdatadir aqbanking`"
	    ;;

	--vmajor)
	    result="$result `/opt/local/bin/pkg-config --variable=vmajor aqbanking`"
	    ;;
	--vminor)
	    result="$result `/opt/local/bin/pkg-config --variable=vminor aqbanking`"
	    ;;
	--vpatchlevel)
	    result="$result `/opt/local/bin/pkg-config --variable=vpatchlevel aqbanking`"
	    ;;
	--vbuild)
	    result="$result `/opt/local/bin/pkg-config --variable=vbuild aqbanking`"
	    ;;
	--vtag)
	    result="$result `/opt/local/bin/pkg-config --variable=vtag aqbanking`"
	    ;;
        --vstring)
	    result="$result `/opt/local/bin/pkg-config --variable=vstring aqbanking`"
            ;;
	*)
	    echo "Usage:"
	    echo "$0 --includes gives you the include flags"
	    echo "$0 --libraries gives you the library flags"
	    echo "$0 --vmajor gives the major version of AqBanking"
	    echo "$0 --vminor gives the minor version of AqBanking"
	    echo "$0 --vpatchlevel gives the patchlevel of AqBanking"
	    echo "$0 --vbuild gives the build number of AqBanking"
	    echo "$0 --vtag gives the tag of AqBanking (cvs, beta or stable)"
	    echo "$0 --vstring returns a version string"
	    exit 1
	    ;;
    esac
done
echo $result
