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

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

result=""

for d in $*; do
    case $d in
	--includes)
	    result="$result -I${includedir}/aqbanking5 -I/opt/local/include/gwenhywfar4"
	    ;;
	--libraries)
	    result="$result -L${libdir} -laqbanking"
	    ;;
	--libraries++)
	    result="$result "
	    ;;
	--plugins)
	    result="$result ${libdir}/aqbanking/plugins/35"
	    ;;
	--data)
	    result="$result ${datadir}/aqbanking"
	    ;;

        --has-qbanking)
            result=@with_qbanking@
            ;;
	--qbanking-libraries)
	    result="$result -L${libdir} @qbanking_libs@"
	    ;;
	--qbanking-plugins)
	    result="$result @qbanking_plugindir@"
	    ;;
	--qbanking-helpdir)
	    result="$result @qbanking_helpdir@"
	    ;;

        --has-aqhbci)
            result=yes
            ;;
	--aqhbci-libraries)
	    result="$result -L${libdir} -laqhbci"
	    ;;

	--vmajor)
	    result="$result 5"
	    ;;
	--vminor)
	    result="$result 8"
	    ;;
	--vpatchlevel)
	    result="$result 2"
	    ;;
	--vbuild)
	    result="$result 0"
	    ;;
	--vtag)
	    result="$result stable"
	    ;;
        --vstring)
	    result="$result 5.8.2"
            ;;
	*)
	    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
