1#!/bin/sh
2
3usage()
4{
5    cat <<EOF
6Usage: audiere-config [OPTIONS]
7Options:
8        [--prefix]
9        [--version]
10        [--cxxflags]
11        [--libs]
12EOF
13    exit $1
14}
15
16if test $# -eq 0; then
17    usage 1 1>&2
18fi
19
20while test $# -gt 0; do
21    case "$1" in
22        -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
23        *) optarg= ;;
24    esac
25
26    case $1 in
27        --prefix)
28            echo @prefix@
29            ;;
30        --version)
31            echo @VERSION@
32            ;;
33        --cxxflags)
34            echo -I@prefix@@includedir@
35            ;;
36        --libs)
37            echo -L@prefix@@libdir@ -laudiere @EXTRA_LIBS@
38            ;;
39        *)
40            usage 1 1>& 2
41            ;;
42    esac
43    shift
44done
45