#!/bin/sh

prefix=

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

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

VERSION=0.5.5

CFLAGS="-D_REENTRANT -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -fno-strict-aliasing -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;
