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

result=""

for d in $*; do
    case $d in
	--includes)
	    result="$result `/usr/bin/pkg-config  --cflags gwenhywfar`"
	    ;;
	--libraries)
	    result="$result `/usr/bin/pkg-config --libs gwenhywfar`"
	    ;;
	--bindir)
	    result="$result `/usr/bin/pkg-config  --variable=bindir gwenhywfar`"
	    ;;
	--headers)
	    result="`$result /usr/bin/pkg-config  --variable=headerdir gwenhywfar`"
	    ;;
	--plugins)
	    result="$result `/usr/bin/pkg-config  --variable=plugindir gwenhywfar`"
	    ;;
	--vmajor)
	    result="$result `/usr/bin/pkg-config  --variable=vmajor gwenhywfar`"
	    ;;
	--vminor)
	    result="$result `/usr/bin/pkg-config  --variable=vminor gwenhywfar`"
	    ;;
	--vpatchlevel)
	    result="$result `/usr/bin/pkg-config  --variable=vpatchlevel gwenhywfar`"
	    ;;
	--vbuild)
	    result="$result `/usr/bin/pkg-config  --variable=vbuild gwenhywfar`"
	    ;;
	--vtag)
	    result="$result `/usr/bin/pkg-config  --variable=vtag gwenhywfar`"
	    ;;
        --vstring)
	    result="$result `/usr/bin/pkg-config  --variable=vstring gwenhywfar`"
            ;;
        --has-crypt)
	    # Keep this argument in order not to completely break
	    # the old gwenhywfar.m4 macro.
	    result="This argument is obsolete. See $0 --help for current arguments."
            ;;
	--has-ui)
	    # Keep this argument in order not to completely break
	    # the old gwenhywfar.m4 macro.
	    result="This argument is obsolete. See $0 --help for current arguments."
	    ;;
	--libraries++)
	    # Keep this argument in order not to completely break
	    # the old gwenhywfar.m4 macro.
	    result="This argument is obsolete. See $0 --help for current arguments."
	    ;;
	--libraries-ui)
	    # Keep this argument in order not to completely break
	    # the old gwenhywfar.m4 macro.
	    result="This argument is obsolete. See $0 --help for current arguments."
	    ;;
	*)
	    echo "Usage:"
	    echo "$0 --includes gives you the include flags"
	    echo "$0 --libraries gives you the library flags"
	    echo "$0 --bindir returns the folder for binary tools"
	    echo "$0 --headers gives you the location of the header files"
	    echo "$0 --vmajor gives the major version of LibGwenhywfar"
	    echo "$0 --vminor gives the minor version of LibGwenhywfar"
	    echo "$0 --vpatchlevel gives the patchlevel of LibGwenhywfar"
	    echo "$0 --vbuild gives the build number of LibGwenhywfar"
	    echo "$0 --vtag gives the tag of LibGwenhywfar (cvs, beta or stable)"
	    echo "$0 --vstring returns a version string"
	    exit 1
	    ;;
    esac
done
echo $result
