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

prefix="/usr/local"
exec_prefix="${prefix}"
libdir="${exec_prefix}/lib"
includedir="${prefix}/include"
datadir="${prefix}/share"

result=""

for d in $*; do
    case $d in
	--includes)
	    result="$result -I${includedir} -I${includedir} -I/usr/local/include -I/usr/local/include"
	    ;;
	--libraries)
	    result="$result -L${libdir} -lqbanking"
	    ;;
	--plugins)
	    result="$result ${aqbanking_plugindir}/frontends/qbanking"
	    ;;
	--data)
	    result="$result ${datadir}/qbanking"
	    ;;
	--helpdir)
	    result="$result ${datadir}/aqbanking/frontends/qbanking/help"
	    ;;
	--vmajor)
	    result="$result 2"
	    ;;
	--vminor)
	    result="$result 3"
	    ;;
	--vpatchlevel)
	    result="$result 3"
	    ;;
	--vbuild)
	    result="$result 0"
	    ;;
	--vtag)
	    result="$result stable"
	    ;;
        --vstring)
	    result="$result 2.3.3"
            ;;
	*)
	    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
