#! /bin/sh
# $Id: cbanking-config.in.in 1094 2006-12-17 17:13:53Z martin $
# Author of this file: Martin Preuss<martin@libchipcard.de>

prefix="/usr"
exec_prefix="/usr"
libdir="/usr/lib"
includedir="/usr/include"
datadir="/usr/share"

result=""

for d in $*; do
    case $d in
	--includes)
	    result="$result -I/usr/lib/qt3//include "
	    ;;
	--libraries)
	    result="$result  -lcbanking"
	    ;;
	--data)
	    result="$result ${datadir}/cbanking"
	    ;;
	--vmajor)
	    result="$result 2"
	    ;;
	--vminor)
	    result="$result 2"
	    ;;
	--vpatchlevel)
	    result="$result 4"
	    ;;
	--vbuild)
	    result="$result 0"
	    ;;
	--vtag)
	    result="$result stable"
	    ;;
        --vstring)
	    result="$result 2.2.4"
            ;;
	*)
	    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
