#!/bin/sh

usage()
{
	echo "usage: $0 [--cflags] [--libs] [--version]"
	exit 0
}

cflags=no
libs=no
version=no

test "$1" || usage

while test "$1"; do
	case "$1" in
	--cflags )
		cflags=yes
		;;
	--libs )
		libs=yes
		;;
	--version )
		version=yes
		;;
	* )
		usage
		;;
	esac
	shift
done

test "$cflags" = yes && cat << FOO
-I/usr/local/include/kannel -O2 -pipe -fno-strict-aliasing -pthread -I/usr/local/include -D_LARGE_FILES= -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/include/openssl
FOO

test "$libs" = yes && cat << FOO
-L/usr/local/lib/kannel -lgw -lwap -lgwlib -lssl -lpcreposix -lrt -lm  -lpthread  -L/usr/local/lib -pthread -Wl,-rpath=/usr/lib:/usr/local/lib -L/usr/local/lib -lxml2 -lz -L/usr/local/lib -liconv -lm -L/usr/local/lib -Wl,-R/usr/local/lib -lpcreposix -lpcre -L/usr/lib -lcrypto -lssl -liconv
FOO

test "$version" = yes && cat << FOO
1.5.0
FOO

