#!/bin/sh

prefix=/usr/local

PKGLIBDIR=/usr/local/lib/c_icap/
LIBDIR=/usr/local/lib/
CONFIGDIR=/etc/c-icap/
DATADIR=/usr/local/share/c_icap/
#LOGDIR=
SOCKDIR=/var/run/c-icap

INCDIR=/usr/local/include
INCDIR2=/usr/local/include/c_icap

VERSION=0.3.2

CFLAGS="-D_REENTRANT -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64"
LIBS="-L$LIBDIR -licapapi"
LDFLAGS=""


usage()
{
   cat <<EOTXT
Usage: c-icap-libicapapi-config [OPTIONS]

Where OPTION one of the following:
   --cflags		print preprocessor and compiler flags
   --libs		print linker flags
   --version		print the c-icap library  version
EOTXT
}


case $1 in
    '--cflags')
        echo $CFLAGS" -I"$INCDIR" -I"$INCDIR2;
        ;;
    '--libs')
       echo $LIBS;
       ;;
    '--version')
       echo $VERSION;
       ;;
    *)
        usage
esac;
