#!/bin/sh

usage () {
    cat <<EOF
This script is a part of dictd package.

Usage: dictd-config [OPTIONS]
Options:
  [--help]
  [--version]
  [--libs]
  [--cflags]
  [--plugindir]   Directory where plugin should be installed and searched
  [--dictdir]     Directory where dictionaries should be installed and searched
EOF
}

prefix=@prefix@
exec_prefix=@exec_prefix@

while test $# -ne 0; do
    case $1 in
	--help)
	    usage
	    exit;;
	--version)
	    echo @DICT_VERSION@
	    exit;;
	--libs)
	    echo -L@libdir@
	    exit;;
	--cflags)
	    echo -I@includedir@
	    exit;;
	--plugindir)
	    echo @libexecdir@
	    exit;;
	--dictdir)
	    echo @datadir@
	    exit;;
	*)
	    echo "invalid argument $1"
	    exit 2
    esac
    shift
done

usage


syntax highlighted by Code2HTML, v. 0.9.1